-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
94 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include tox.ini | ||
include LICENSE README.md tox.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,59 @@ | ||
.PHONY: clean-pyc clean-build docs clean build install install-all version | ||
.PHONY: clean build install version release dist | ||
|
||
help: | ||
@echo "clean-build - remove build artifacts" | ||
@echo "clean-pyc - remove Python file artifacts" | ||
@echo "clean-test - remove Python file artifacts" | ||
@echo "clean-eggs - remove cached eggs" | ||
@echo "build - build package" | ||
@echo "version - get version number" | ||
@echo "install - install packages" | ||
@echo "test - run tests quickly with the default Python" | ||
@echo "test-all - run tests on every Python version with tox" | ||
@echo "release - package and upload a release" | ||
@echo "dist - package" | ||
|
||
clean: clean-build clean-pyc | ||
clean: clean-build clean-test clean-eggs | ||
rm -rf htmlcov/ | ||
|
||
clean-build: | ||
rm -rf build/ | ||
rm -rf dist/ | ||
rm -rf *.egg-info | ||
|
||
clean-pyc: | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
.PHONY: clean-test | ||
clean-test: | ||
find . | grep -E "(__pycache__|\.pyc|\.pyo$$)" | xargs rm -rf | ||
rm -rf .pytest_cache/ | ||
|
||
.PHONY: clean-eggs | ||
clean-eggs: | ||
rm -rf .eggs/ | ||
|
||
.PHONY: build | ||
build: clean-build clean-eggs | ||
python3 setup.py build_ext --inplace | ||
|
||
install: clean-build | ||
python3 setup.py install | ||
|
||
version: | ||
python setup.py --version | ||
python3 setup.py --version | ||
|
||
.PHONY: test | ||
test: | ||
python3 setup.py test | ||
|
||
.PHONY: test-all | ||
test-all: | ||
tox | ||
|
||
.PHONY: release | ||
release: clean build | ||
python setup.py sdist upload | ||
python setup.py bdist_wheel upload | ||
python3 setup.py sdist bdist_wheel | ||
twine check dist/* | ||
twine upload --verbose dist/* | ||
|
||
.PHONY: dist | ||
dist: clean build | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
ls -l dist | ||
python3 setup.py sdist bdist_wheel | ||
twine check dist/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters