[Checkins] SVN: zope.exceptions/branches/tseaver-no_2to3/ Added 'setup.py dev' alias;

Tres Seaver cvs-admin at zope.org
Fri Apr 6 19:36:26 UTC 2012


Log message for revision 125020:
  Added 'setup.py dev' alias;
  
  - runs ``setup.py develop``
  
  - installs +  ``nose`` and ``coverage``
  
  Added 'setup.py docs' alias:
  
  - installs ``Sphinx``, ``repoze.sphinx.autointerface``, and dependencies.
  

Changed:
  U   zope.exceptions/branches/tseaver-no_2to3/CHANGES.txt
  U   zope.exceptions/branches/tseaver-no_2to3/setup.cfg
  U   zope.exceptions/branches/tseaver-no_2to3/setup.py

-=-
Modified: zope.exceptions/branches/tseaver-no_2to3/CHANGES.txt
===================================================================
--- zope.exceptions/branches/tseaver-no_2to3/CHANGES.txt	2012-04-06 19:36:18 UTC (rev 125019)
+++ zope.exceptions/branches/tseaver-no_2to3/CHANGES.txt	2012-04-06 19:36:22 UTC (rev 125020)
@@ -7,7 +7,12 @@
 
 - Dropped explicit support for Python 2.4 / 2.5 / 3.1.
 
+- Added 'setup.py dev' alias (runs ``setup.py develop`` plus installs
+  ``nose`` and ``coverage``).
 
+- Added 'setup.py docs' alias (installs ``Sphinx`` and dependencies).
+
+
 3.7.1 (2012-03-28)
 ------------------
 

Modified: zope.exceptions/branches/tseaver-no_2to3/setup.cfg
===================================================================
--- zope.exceptions/branches/tseaver-no_2to3/setup.cfg	2012-04-06 19:36:18 UTC (rev 125019)
+++ zope.exceptions/branches/tseaver-no_2to3/setup.cfg	2012-04-06 19:36:22 UTC (rev 125020)
@@ -4,3 +4,7 @@
 cover-erase=1
 with-doctest=0
 where=src
+
+[aliases]
+dev = develop easy_install zope.exceptions[testing]
+docs = easy_install zope.exceptions[docs]

Modified: zope.exceptions/branches/tseaver-no_2to3/setup.py
===================================================================
--- zope.exceptions/branches/tseaver-no_2to3/setup.py	2012-04-06 19:36:18 UTC (rev 125019)
+++ zope.exceptions/branches/tseaver-no_2to3/setup.py	2012-04-06 19:36:22 UTC (rev 125020)
@@ -21,15 +21,18 @@
 import os
 from setuptools import setup, find_packages
 import sys
-if sys.version_info < (3, ):
-    extra = {}
-else:
+
+extra = {
+    'extras_require': {'docs': ['Sphinx', 'repoze.sphinx.autointerface'],
+                       'testing': ['nose', 'coverage'],
+                      }
+}
+
+if sys.version_info >= (3, ):
     # Python 3 support:
-    extra = dict(
-        use_2to3=True,
-        setup_requires=['zope.fixers'],
-        use_2to3_fixers = ['zope.fixers'],
-    )
+    extra['use_2to3'] = True
+    extra['setup_requires'] = ['zope.fixers']
+    extra['use_2to3_fixers'] = ['zope.fixers']
 
 
 def read(*rnames):



More information about the checkins mailing list