2020-05-30 16:32:40 +00:00
|
|
|
install:
|
|
|
|
python setup.py install
|
|
|
|
|
|
|
|
remove:
|
|
|
|
pip uninstall python3-anticaptcha -y
|
|
|
|
|
2020-05-30 17:01:34 +00:00
|
|
|
test:
|
2020-11-10 21:47:23 +00:00
|
|
|
pip install pytest coverage pytest-asyncio requests_mock
|
|
|
|
coverage run -m pytest tests -v --disable-warnings
|
|
|
|
coverage report -m python3_anticaptcha/*.py
|
2020-05-30 17:01:34 +00:00
|
|
|
|
2020-05-30 16:32:40 +00:00
|
|
|
refactor:
|
2022-12-13 16:14:13 +00:00
|
|
|
autoflake --in-place \
|
|
|
|
--recursive \
|
|
|
|
--remove-unused-variables \
|
|
|
|
--remove-duplicate-keys \
|
|
|
|
--remove-all-unused-imports \
|
|
|
|
--ignore-init-module-imports \
|
|
|
|
python3_anticaptcha/ setup.py && \
|
|
|
|
black python3_anticaptcha/ setup.py && \
|
|
|
|
isort python3_anticaptcha/ setup.py
|
|
|
|
|
|
|
|
lint:
|
|
|
|
autoflake --in-place --recursive python3_anticaptcha/ --check && \
|
|
|
|
black python3_anticaptcha/ --check && \
|
|
|
|
isort python3_anticaptcha/ --check-only
|
2020-05-30 16:32:40 +00:00
|
|
|
|
2020-11-10 21:47:23 +00:00
|
|
|
release:
|
2022-12-13 16:14:13 +00:00
|
|
|
pip install twine
|
2020-05-30 16:32:40 +00:00
|
|
|
python setup.py upload
|