[Python-checkins] distutils2: cleaned up setup.py and added a Makefile for the release
tarek.ziade
python-checkins at python.org
Sun Sep 19 11:06:31 CEST 2010
tarek.ziade pushed 61d1f457a279 to distutils2:
http://hg.python.org/distutils2/rev/61d1f457a279
changeset: 673:61d1f457a279
tag: tip
user: Tarek Ziade <tarek at ziade.org>
date: Sun Sep 19 11:06:16 2010 +0200
summary: cleaned up setup.py and added a Makefile for the release
files: Makefile, setup.cfg, setup.py
diff --git a/Makefile b/Makefile
new file mode 100644
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+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
diff --git a/setup.cfg b/setup.cfg
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,6 @@
[build_ext]
# needed so that tests work without mucking with sys.path
inplace = 1
+
+[upload_docs]
+upload-dir = docs/build/html
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -219,7 +219,7 @@
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/'),
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list