Commits

Jeffrey Goettsch committed 1510342

Initial commit with modified Makefile from py-pushnotify.

Comments (0)

Files changed (1)

+test_cmd = nosetests --with-coverage --cover-package=$(package) $(package)/tests/tests.py
+docs_cmd = epydoc --name $(package) --url $(project_url) --docformat plaintext --html $(package) -o $(docs_dir)
+
+# update these with project specific values
+project_url = http://example.com/foo/
+package = package_name
+docs_dir = docs
+
+clean:
+	rm -rf dist/* build/* Manifest
+
+test:
+	$(test_cmd)
+
+.PHONY: docs
+docs:
+	$(docs_cmd)
+	hg add $(docs_dir)
+
+upload_docs: docs
+	python setup.py upload_docs --upload-dir=$(docs_dir)
+
+check:
+	python setup.py check
+
+build: check
+	python setup.py sdist --formats=gztar,zip bdist_wininst
+
+upload: build
+	python setup.py register sdist --formats=gztar,zip bdist_wininst upload