[Python-checkins] python/nondist/sandbox/setuptools TODO.txt, 1.1, 1.2 setup.py, 1.1, 1.2

pje at users.sourceforge.net pje at users.sourceforge.net
Sat Mar 20 15:52:13 EST 2004


Update of /cvsroot/python/python/nondist/sandbox/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27800

Modified Files:
	TODO.txt setup.py 
Log Message:
Flesh out 'depends' command to display dependencies' status, and halt if
all requirements aren't met.  (Also, check planned install location for
the dependencies, as well as checking sys.path.)  Also:

* Allow 'Feature()' objects to include 'Require()' objects, so that
  dependencies can be optional

* 'Require()' objects can set a homepage, whose URL will be displayed by 
  the 'depends' command if the dependency needs to be installed.
  
* Misc. fixes/refactoring of version validation to properly handle 
  "unknown" versions, and to decouple version fetching from version
  checking.

* Updated TODO to remove various completed items.


Index: TODO.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/TODO.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TODO.txt	19 Mar 2004 20:53:14 -0000	1.1
--- TODO.txt	20 Mar 2004 20:52:11 -0000	1.2
***************
*** 11,18 ****
    * Dependency class
  
-     * Check for presence/version via file existence, regular expression match,
-       version comparison (using 'distutils.version' classes), installed on
-       sys.path, or require just installation directory
- 
      * Find appropriate release, or explain why not
  
--- 11,14 ----
***************
*** 43,58 ****
    * REQUIRES should probably just be list of dependencies
  
- * Bootstrap module
- 
-   The idea here is that you include the "bootstrap module" in your
-   distribution, and it downloads the right version of setuptools automatically
-   if a good-enough version isn't on sys.path.  This would let you use
-   setuptools for your installer, without having to distribute the full
-   setuptools package.  This would might look something like::
- 
-       from boot_setuptools import require_version
-       require_version("0.6", "http://somewhere/setuptools-0.6.tar.gz")
-       
-       from setuptools import setup, Feature, findPackages
-       # ...etc
- 
--- 39,40 ----

Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setup.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** setup.py	19 Mar 2004 20:53:14 -0000	1.1
--- setup.py	20 Mar 2004 20:52:11 -0000	1.2
***************
*** 4,7 ****
--- 4,8 ----
  
  from setuptools import setup, find_packages, Require
+ from distutils.version import LooseVersion
  
  setup(
***************
*** 15,19 ****
  
      test_suite = 'setuptools.tests.test_suite',
!     requires = [Require('Distutils','1.0.3','distutils')],
      packages = find_packages(),
      py_modules = ['setuptools_boot'],
--- 16,25 ----
  
      test_suite = 'setuptools.tests.test_suite',
!     requires = [
!         Require('Distutils','1.0.3','distutils',
!             "http://www.python.org/sigs/distutils-sig/"
!         ),
!         Require('PyUnit', None, 'unittest', "http://pyunit.sf.net/"),
!     ],
      packages = find_packages(),
      py_modules = ['setuptools_boot'],




More information about the Python-checkins mailing list