23 lines
423 B
Makefile
23 lines
423 B
Makefile
.PHONY: test sdist wheel release pre-release clean
|
|
|
|
test:
|
|
python -Wall runtests.py
|
|
|
|
sdist:
|
|
python setup.py sdist
|
|
|
|
wheel:
|
|
python setup.py bdist_wheel --universal
|
|
|
|
release: clean sdist wheel
|
|
twine upload dist/*
|
|
|
|
pre-release: sdist wheel
|
|
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
|
|
|
|
clean:
|
|
find . | grep -E '(__pycache__|\.pyc|\.pyo$)' | xargs rm -rf
|
|
rm -rf build
|
|
rm -rf dist
|
|
rm -rf *.egg-info
|