-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
37 lines (27 loc) · 790 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
# Add to PHONY target list so it always it run even when nothing has changed
.PHONY: dist install clean venv-create venv-activate docs check-dist test-pypi pypi-upload
dist:
python setup.py sdist bdist_wheel
install:
pip install .
clean:
$(RM) -r build dist src/*.egg-info
$(RM) -r .pytest_cache
find . -name __pycache__ -exec rm -r {} +
#git clean -fdX
venv-create:
python -m venv many_requests-venv
source many_requests-venv/bin/activate
venv-activate:
# Doesn't work. Need to execute manually
source many_requests-venv/bin/activate
venv-delete:
rm -rf many_requests-venv
docs:
sphinx-build -a -E -b html docs_source docs
check-dist:
twine check dist/*
test-pypi:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
pypi-upload:
twine upload dist/*