Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a makefile cause python packaging sucks.
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Yes python packaging sucks. | ||
# I hope that a makefile | ||
# will help everyone to update the pakage. | ||
# don't foret to bump the version number in setup.py | ||
|
||
.PHONY: dist | ||
|
||
clean: | ||
rm -rf build | ||
rm -rf dist | ||
|
||
dist: clean | ||
# source distribution | ||
python3 setup.py sdist | ||
# 'compiled' distribution | ||
# you mignt need to `pip3 install wheel` | ||
python3 setup.py bdist_wheel | ||
|
||
upload: dist | ||
# upload to Python package index` | ||
twine upload dist/* | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal=1 |
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