Debian Codegraph @

Makefile

raw
1 pep8-rules := E501,N806,W503,W504
2
3 init:
4 pip install -r requirements.txt
5
6 test:
7 # This runs all of the tests, on both Python 2 and Python 3.
8 tox --parallel auto
9
10 watch:
11 # This automatically selects and re-executes only tests affected by recent changes.
12 ptw -- --testmon
13
14 retry:
15 # This will retry failed tests on every file change.
16 py.test -n auto --forked --looponfail
17
18 ci:
19 py.test -n 8 --forked --junitxml=report.xml
20
21 lint:
22 flake8 --ignore $(pep8-rules) cloudscraper tests
23
24 format:
25 # Automatic reformatting
26 autopep8 -aaa --ignore $(pep8-rules) --in-place --recursive cloudscraper tests
27
28 coverage:
29 py.test --cov-config=.coveragerc --verbose --cov-report=term --cov-report=xml --cov=cloudscraper tests
30 coveralls
31
32 clean:
33 rm -fr build dist .egg cloudscraper.egg-info report.xml coverage.xml
34
35 build:
36 make clean
37 python3 setup.py sdist bdist_wheel --universal
38
39 publish:
40 make build
41 pip3 install 'twine>=1.5.0'
42 twine upload dist/*
43 make clean
44
45 publish_test:
46 make build
47 pip3 install 'twine>=1.5.0'
48 twine upload --repository-url https://test.pypi.org/legacy/ dist/*
49 make clean