-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
51 lines (39 loc) · 1023 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
include .env
export CODECOV_TOKEN
export PIPENV_VENV_IN_PROJECT=1
init:
pipenv install --dev
test:
pipenv run python test_lorem.py
coverage:
pipenv run coverage run test_lorem.py
pipenv run coverage html
open htmlcov/index.html
read
rm -rf htmlcov
rm .coverage
update:
pipenv run pip install -U pip setuptools wheel
pipenv update
pipenv install --dev
pipenv clean
dist: clean-pypi pypi-setup pypi-upload
pypi-setup:
pipenv run python setup.py test sdist bdist_wheel
pypi-upload:
twine check dist/* || true
twine upload dist/* -r pypi --skip-existing
twine upload dist/* -r pypitest --skip-existing
clean-pyc:
find . -iname __pycache__ | xargs rm -rf
find . -iname '*.pyc' | xargs rm -f
clean-misc: clean-pyc
find . -iname .DS_Store | xargs rm -f
clean-pipenv:
pipenv --rm
clean-pypi:
mkdir -p dist sdist eggs wheels
find dist -iname '*.egg' -exec mv {} eggs \;
find dist -iname '*.whl' -exec mv {} wheels \;
find dist -iname '*.tar.gz' -exec mv {} sdist \;
rm -rf build dist *.egg-info