Commits

Kirill Simonov committed 43e35a2

Added Makefile targets `dist` and `pypi`.

`make dist` builds a source distribution.
`make pypi` registers the package on PyPI.

Added a distutils manifest file.

  • Participants
  • Parent commits c3f67f2

Comments (0)

Files changed (2)

+# This file specifies non-source code files that should be
+# included to the source distribution.
+
+# README files.
+include README INSTALL NEWS LICENSE Makefile Makefile.env.sample
+
+# Regression tests.
+recursive-include test *.yaml *.sql
+
+# Documentation (source)
+recursive-include doc *.py *.rst
+
+# FIXME: how to include the HTML documentation?
+
 # This makefile provides various build, installation and testing tasks.
 
-.PHONY: default build install develop doc \
+.PHONY: default build install develop doc dist windist pypi \
 	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
 	@echo "  *** Regression Testing ***"
 	@echo "  test: to run HTSQL regression tests"
 doc:
 	sphinx-build -b html doc build/doc
 
+# Build a source distribution.
+dist:
+	python setup.py sdist --formats=zip,gztar -d build/dist
+
+# Register the package with PyPI.
+pypi:
+	python setup.py register
 
 #
 # Regression testing tasks.