|
1 | 1 | help: |
2 | 2 | @echo " env install all production dependencies" |
3 | | - @echo " dev install all dev and production dependencies (virtualenv is assumed)" |
4 | 3 | @echo " clean remove unwanted stuff" |
5 | 4 | @echo " lint check style with pycodestyle" |
6 | 5 | @echo " test run tests" |
7 | 6 | @echo " coverage run codecov" |
8 | 7 |
|
9 | 8 | env: |
10 | | - pyenv install -s 2.7.12 |
11 | | - pyenv install -s 3.5.2 |
12 | | - pyenv local 2.7.12 3.5.2 |
13 | | - pip install -U pip |
14 | | - |
15 | | -dev: env |
16 | | - pip install -Ur requirements.txt |
17 | | - pip install -Ur requirements-test.txt |
| 9 | + pipenv install -d |
18 | 10 |
|
19 | 11 | info: |
20 | | - @python --version |
21 | | - @pyenv --version |
22 | | - @pip --version |
23 | | - @pycodestyle --version |
| 12 | + @pipenv run python --version |
| 13 | + @pipenv graph |
24 | 14 |
|
25 | 15 | clean: |
26 | 16 | rm -rf build |
27 | 17 | rm -rf dist |
28 | 18 | rm -f violations.flake8.txt |
29 | | - python setup.py clean |
| 19 | + pipenv clean |
| 20 | + pipenv run python setup.py clean |
30 | 21 | find . -name '*.pyc' -exec rm -f {} \; |
31 | 22 | find . -name '*.pyo' -exec rm -f {} \; |
32 | 23 | find . -name '*~' ! -name '*.un~' -exec rm -f {} \; |
33 | 24 |
|
34 | | -lint: info |
35 | | - pycodestyle |
| 25 | +lint: |
| 26 | + pipenv run pylint --rcfile=./setup.cfg ronkyuu tests |
36 | 27 |
|
37 | 28 | test: lint |
38 | | - python setup.py test |
39 | | - |
40 | | -tox.ini: requirements.txt requirements-test.txt |
41 | | - tox --recreate |
42 | | - |
43 | | -tox: tox.ini |
44 | | - tox |
| 29 | + pipenv run python setup.py test |
45 | 30 |
|
46 | 31 | coverage: clean |
47 | | - coverage run --source=ronkyuu setup.py test |
48 | | - |
49 | | -ci: lint coverage |
50 | | - @coverage html |
51 | | - @coverage report |
52 | | - # CODECOV_TOKEN=`cat .codecov-token` codecov |
| 32 | + pipenv run coverage run --source=ronkyuu setup.py test |
| 33 | + pipenv run coverage report |
| 34 | + pipenv run coverage html |
| 35 | + pipenv run codecov |
53 | 36 |
|
54 | 37 | check: clean |
55 | 38 | check-manifest |
56 | | - python setup.py check |
| 39 | + pipenv run python setup.py check |
57 | 40 |
|
58 | 41 | upload: check |
59 | | - python setup.py sdist upload |
60 | | - python setup.py bdist_wheel upload |
| 42 | + pipenv run python setup.py sdist upload |
| 43 | + pipenv run python setup.py bdist_wheel upload |
61 | 44 |
|
62 | 45 | dist: check |
63 | | - python setup.py sdist |
| 46 | + pipenv run python setup.py sdist |
0 commit comments