Commits

Tarek Ziadé committed 61d1f45

cleaned up setup.py and added a Makefile for the release

  • Participants
  • Parent commits 225bd62
  • Tags 1.0a2

Comments (0)

Files changed (3)

+EZ = bin/easy_install
+VIRTUALENV = virtualenv
+PYTHON = bin/python
+HG = hg
+
+.PHONY: release build
+
+build:
+	$(VIRTUALENV) --no-site-packages --distribute .
+	$(PYTHON) setup.py build
+
+release:
+	hg tag `python setup.py --version`
+	hg ci -m "Release tagged"
+	cd docs; make html
+	$(PYTHON) setup.py upload_docs
+	$(PYTHON) setup.py register sdist upload
 [build_ext]
 # needed so that tests work without mucking with sys.path
 inplace = 1
+
+[upload_docs]
+upload-dir = docs/build/html
       description=README,
       classifier=_CLASSIFIERS.split('\n'),
       packages=find_packages(),
-      cmdclass={'sdist': sdist_hg, 'install': install_hg},
+      cmdclass={'sdist_hg': sdist_hg, 'install_hg': install_hg},
       package_data={'distutils2._backport': ['sysconfig.cfg']},
       project_url=[('Mailing list',
                     'http://mail.python.org/mailman/listinfo/distutils-sig/'),