# This makefile provides various build, installation and testing tasks.
-.PHONY: default build install develop doc \
+.PHONY: default build install develop doc \
test cleanup train train-ctl train-sqlite train-pgsql purge-test
@echo " install: to install the HTSQL packages"
@echo " develop: to install the HTSQL packages in the development mode"
@echo " doc: to build the HTSQL documentation"
+ @echo " dist: to build a source distribution"
+ @echo " pypi: to register the package with PyPI"
@echo " *** Regression Testing ***"
@echo " test: to run HTSQL regression tests"
sphinx-build -b html doc build/doc
+# Build a source distribution.
+ python setup.py sdist --formats=zip,gztar -d build/dist
+# Register the package with PyPI.
+ python setup.py register
# Regression testing tasks.