Skip to content

Commit 53fb39e

Browse files
committed
create a Makefile to ease building a release
1 parent 37225e1 commit 53fb39e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
clean:
2+
rm README.txt
3+
rm -rf ./dist ./build
4+
5+
generate_pypi_README:
6+
${VIRTUAL_ENV}/bin/pytextile README.textile | sed -e 's/^\t//' > README.txt
7+
8+
build: generate_pypi_README
9+
python -m build
10+
11+
upload_to_test: build
12+
twine check ./dist/*
13+
twine upload --repository test_textile ./dist/*
14+
15+
upload_to_prod: build
16+
twine check ./dist/*
17+
# for now, don't actually upload to prod PyPI, just output the command to do so.
18+
@echo "twine upload --repository textile ./dist/*"

0 commit comments

Comments
 (0)