[Zope-Checkins] SVN: Zope/trunk/setup.py Install the oddball 'png'
(no extension!) file from
Tim Peters
tim.one at comcast.net
Tue Apr 26 23:04:39 EDT 2005
Log message for revision 30198:
Install the oddball 'png' (no extension!) file from
zope/app/publisher/browser/tests/testfiles/. This
required adding a one-shot mechanism to Finder.visit().
The only tests that fail from a WinBuilders build/
directory now are the two that have been failing on
Windows since last October.
Changed:
U Zope/trunk/setup.py
-=-
Modified: Zope/trunk/setup.py
===================================================================
--- Zope/trunk/setup.py 2005-04-27 02:35:08 UTC (rev 30197)
+++ Zope/trunk/setup.py 2005-04-27 03:04:33 UTC (rev 30198)
@@ -1157,6 +1157,12 @@
'.txt', '.xml', '.zcml', '.mar', '.in', '.sample',
'.rst', '.request', '.response',
]
+
+ONESHOTS = [# zope/app/publisher/browser/tests/testfiles/
+ # has a file named plain 'png', with no extension.
+ 'png',
+ ]
+
IGNORE_NAMES = (
'CVS', '.svn', # Revision Control Directories
)
@@ -1182,16 +1188,16 @@
for ignore in IGNORE_NAMES:
if ignore in files:
files.remove(ignore)
- for file in files:
+ for fname in files:
# First see if this is one of the packages we want to add, or if
# we're really skipping this package.
if '__init__.py' in files:
aspkg = dir[self._plen:].replace(os.sep, '.')
self._pkgs[aspkg] = True
# Add any extra files we're interested in
- base, ext = os.path.splitext(file)
- if ext in self._exts:
- self._files.append(os.path.join(dir, file))
+ base, ext = os.path.splitext(fname)
+ if ext in self._exts or fname in ONESHOTS:
+ self._files.append(os.path.join(dir, fname))
def copy_files(self, cmd, outputbase):
for file in self._files:
More information about the Zope-Checkins
mailing list