[Checkins] SVN: zope.schema/branches/tseaver-test_cleanup/ Added ``setup.py dev`` alias

Tres Seaver cvs-admin at zope.org
Fri Apr 20 14:32:10 UTC 2012


Log message for revision 125200:
  Added ``setup.py dev`` alias 
  
  - Runs ``setup.py develop`` plus installs ``nose`` and ``coverage``.
  
  Added ``setup.py docs`` alias
  
  - Installs ``Sphinx`` and dependencies.
  

Changed:
  U   zope.schema/branches/tseaver-test_cleanup/CHANGES.txt
  A   zope.schema/branches/tseaver-test_cleanup/setup.cfg
  U   zope.schema/branches/tseaver-test_cleanup/setup.py

-=-
Modified: zope.schema/branches/tseaver-test_cleanup/CHANGES.txt
===================================================================
--- zope.schema/branches/tseaver-test_cleanup/CHANGES.txt	2012-04-20 13:33:05 UTC (rev 125199)
+++ zope.schema/branches/tseaver-test_cleanup/CHANGES.txt	2012-04-20 14:32:06 UTC (rev 125200)
@@ -5,9 +5,12 @@
 4.1.2 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Added ``setup.py dev`` alias (runs ``setup.py develop`` plus installs
+  ``nose`` and ``coverage``).
 
+- Added ``setup.py docs`` alias (installs ``Sphinx`` and dependencies).
 
+
 4.1.1 (2012-03-23)
 ------------------
 

Added: zope.schema/branches/tseaver-test_cleanup/setup.cfg
===================================================================
--- zope.schema/branches/tseaver-test_cleanup/setup.cfg	                        (rev 0)
+++ zope.schema/branches/tseaver-test_cleanup/setup.cfg	2012-04-20 14:32:06 UTC (rev 125200)
@@ -0,0 +1,11 @@
+[nosetests]
+nocapture=1
+cover-package=zope.schema
+cover-erase=1
+with-doctest=0
+where=src
+
+[aliases]
+dev = develop easy_install zope.schema[testing]
+docs = easy_install zope.schema[docs]
+

Modified: zope.schema/branches/tseaver-test_cleanup/setup.py
===================================================================
--- zope.schema/branches/tseaver-test_cleanup/setup.py	2012-04-20 13:33:05 UTC (rev 125199)
+++ zope.schema/branches/tseaver-test_cleanup/setup.py	2012-04-20 14:32:06 UTC (rev 125200)
@@ -71,6 +71,8 @@
 if sys.version_info < (2, 7):
     REQUIRES += ['ordereddict']
 
+TESTS_REQUIRE = ['zope.testing']
+
 setup(name='zope.schema',
       version='4.1.2.dev0',
       url='http://pypi.python.org/pypi/zope.schema',
@@ -90,8 +92,8 @@
       packages=find_packages('src'),
       package_dir = {'': 'src'},
       namespace_packages=['zope',],
-      extras_require={'test': ['zope.testing'],
-                      'docs': ['z3c.recipe.sphinxdoc']},
+      #extras_require={
+      #                'docs': ['z3c.recipe.sphinxdoc']},
       install_requires=REQUIRES,
       classifiers=[
         "Development Status :: 5 - Production/Stable",
@@ -108,5 +110,10 @@
       include_package_data = True,
       zip_safe = False,
       test_suite='__main__.alltests',
-      tests_require='zope.testing',
-      )
+      tests_require=TESTS_REQUIRE,
+      extras_require={
+        'docs': ['Sphinx'],
+        'test': TESTS_REQUIRE,
+        'testing': TESTS_REQUIRE + ['nose', 'coverage'],
+      },
+)



More information about the checkins mailing list