-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
28 lines (18 loc) · 895 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
all:
@echo 'MakeFile for PyPI packaging '
@echo ' '
@echo 'make sdist Creates source distribution '
@echo 'make wheel Creates Wheel distribution '
@echo 'make pypi Package and upload to PyPI '
@echo 'make pypitest Package and upload to PyPI test server'
@echo 'make clean Remove all build related directories '
sdist:
python3 setup.py sdist >/dev/null 2>&1
wheel:
python3 setup.py bdist_wheel >/dev/null 2>&1
pypi:clean sdist wheel
twine upload dist/*
pypitest: clean sdist wheel
twine upload -r pypitest dist/*
clean:
rm -rf dist && rm -rf build && rm -rf *.egg-info