Getting ready for PyPI.

This commit is contained in:
Simon Forman
2018-04-21 20:46:35 -07:00
parent b2a4c0e1f8
commit 92c15a73e3
4 changed files with 21 additions and 26 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
# My make-fu style is old and tired. I just want to have a few helper commands.
TESTDIR = ./test00
VERSION = 0.1.0
.PHONY: clean sdist test docs
@@ -12,11 +13,13 @@ clean:
sdist:
python ./setup.py sdist
# In order to support testing the code as installed
# create a virtualenv and install the source dist zip there.
test: sdist
$(RM) -r $(TESTDIR)
virtualenv --system-site-packages --never-download $(TESTDIR)
. $(TESTDIR)/bin/activate && \
pip install --no-cache-dir --no-index ./dist/Joypy-0.1.tar.gz
pip install --no-cache-dir --no-index ./dist/Joypy-$(VERSION).tar.gz
echo "Type: source $(TESTDIR)/bin/activate"