art: make pypi to build py2/3 wheels and publish cur version
@@ -167,3 +167,10 @@ docker:
# Build bash library
bashlib:
cd bashlib; make lib
+
+# Build wheels in py2 and py3 venv and twine upload them
+pypi:
+ source $(HOME)/env/py3/bin/activate;python setup.py build bdist_wheel
+ source $(HOME)/env/py2/bin/activate;python setup.py build bdist_wheel
+ echo $(PYTHON) setup.py sdist
+ version=`grep version= setup.py|grep -Po "([0-9]+\.?)+"`; twine upload "dist/ocrd-$$version"*
