Skip to content

Commit

Permalink
create a Makefile to ease building a release
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Aug 19, 2024
1 parent 37225e1 commit 53fb39e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
clean:
rm README.txt
rm -rf ./dist ./build

generate_pypi_README:
${VIRTUAL_ENV}/bin/pytextile README.textile | sed -e 's/^\t//' > README.txt

build: generate_pypi_README
python -m build

upload_to_test: build
twine check ./dist/*
twine upload --repository test_textile ./dist/*

upload_to_prod: build
twine check ./dist/*
# for now, don't actually upload to prod PyPI, just output the command to do so.
@echo "twine upload --repository textile ./dist/*"

0 comments on commit 53fb39e

Please sign in to comment.