[Checkins] SVN: z3c.setuptools_mercurial/trunk/ - Feature: Add a test for getting the file list within a sub-directory of the

Stephan Richter srichter at gmail.com
Wed Dec 16 01:11:47 EST 2009


Log message for revision 106625:
  - Feature: Add a test for getting the file list within a sub-directory of the
    repository.
  
  - Bug: It turns out that setuptools does not like "./<path>" notation but only
    "<path>". Fixed the problem.
  
  - Get ready for release.
  
  

Changed:
  _U  z3c.setuptools_mercurial/trunk/
  U   z3c.setuptools_mercurial/trunk/CHANGES.txt
  U   z3c.setuptools_mercurial/trunk/setup.py
  U   z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/README.txt
  U   z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/finder.py

-=-

Property changes on: z3c.setuptools_mercurial/trunk
___________________________________________________________________
Modified: svn:ignore
   - .installed.cfg
bin
develop-eggs
dist
parts

   + .installed.cfg
bin
coverage
develop-eggs
dist
parts


Modified: z3c.setuptools_mercurial/trunk/CHANGES.txt
===================================================================
--- z3c.setuptools_mercurial/trunk/CHANGES.txt	2009-12-16 05:18:04 UTC (rev 106624)
+++ z3c.setuptools_mercurial/trunk/CHANGES.txt	2009-12-16 06:11:46 UTC (rev 106625)
@@ -2,12 +2,16 @@
 CHANGES
 =======
 
-1.0.1 (unknown)
----------------
+1.0.1 (2009-12-16)
+------------------
 
-- ...
+- Feature: Add a test for getting the file list within a sub-directory of the
+  repository.
 
+- Bug: It turns out that setuptools does not like "./<path>" notation but only
+  "<path>". Fixed the problem.
 
+
 1.0.0 (2009-12-15)
 ------------------
 

Modified: z3c.setuptools_mercurial/trunk/setup.py
===================================================================
--- z3c.setuptools_mercurial/trunk/setup.py	2009-12-16 05:18:04 UTC (rev 106624)
+++ z3c.setuptools_mercurial/trunk/setup.py	2009-12-16 06:11:46 UTC (rev 106625)
@@ -23,7 +23,7 @@
 
 setup (
     name='z3c.setuptools_mercurial',
-    version='1.0.1dev',
+    version='1.0.1',
     author = "Stephan Richter and the Zope Community",
     author_email = "zope-dev at zope.org",
     description = "Mercurial File Finder Plugin for Setuptools",

Modified: z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/README.txt
===================================================================
--- z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/README.txt	2009-12-16 05:18:04 UTC (rev 106624)
+++ z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/README.txt	2009-12-16 06:11:46 UTC (rev 106625)
@@ -55,9 +55,13 @@
   >>> cmd('hg add ' + os.path.join(repos, 'dir1', 'dir11', 'data1.txt'))
 
   >>> finder.find_files(repos)
-  ['./data.txt',
-   './dir1/data1.txt',
-   './dir1/dir11/data1.txt']
+  ['data.txt',
+   'dir1/data1.txt',
+   'dir1/dir11/data1.txt']
 
 Note that the result of the finder is always a list of relative locations
 based on the input directory.
+
+  >>> finder.find_files(os.path.join(repos, 'dir1'))
+  ['data1.txt',
+   'dir11/data1.txt']

Modified: z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/finder.py
===================================================================
--- z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/finder.py	2009-12-16 05:18:04 UTC (rev 106624)
+++ z3c.setuptools_mercurial/trunk/src/z3c/setuptools_mercurial/finder.py	2009-12-16 06:11:46 UTC (rev 106625)
@@ -39,6 +39,6 @@
         return []
     # The process finished successfully, so let's use the result. Only select
     # those files that really belong to the passed in directory.
-    return [path.replace(dirname, '.')
+    return [path.replace(dirname+os.path.sep, '')
             for path in stdout.splitlines()
             if path.startswith(dirname)]



More information about the checkins mailing list