mirror of
https://github.com/wassname/psaw.git
synced 2026-08-20 12:40:32 +08:00
16 lines
444 B
Makefile
16 lines
444 B
Makefile
# Get version number from file
|
|
# dynamically define filename of wheel object from version number
|
|
# Make a build target for the current version's wheel
|
|
# add as a dependency to the publish make targets
|
|
|
|
.PHONY: wheel test-publish publish
|
|
|
|
wheel:
|
|
python setup.py sdist bdist_wheel
|
|
|
|
test-publish: wheel
|
|
twine upload --repository-url https://test.pypi.org/legacy/ dist/$(ls dist | tail -1)
|
|
|
|
publish: wheel
|
|
twine upload dist/$(ls dist | tail -1)
|