summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/filelist.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884).Éric Araujo2012-02-251-7/+13
| | | | | | | | | | | | | | | These regex changes fix a number of issues for distutils on Windows: - #6884: impossible to include a file starting with 'build' - #9691 and #14004: sdist includes too many files - #13193: test_filelist failures This commit replaces the incorrect changes done in 557a973709de, c566a3447ba1 and 3925081a7ca0 to fix #13193; we were too eager to fix the test failures and I did not study the code enough before greenlighting patches. This time we have unit tests from the problems reported by users to be sure we have the right fix. Thanks to Nadeem Vawda for his help.
* Fix distutils.filelist.FileList under Windows (#13193).Éric Araujo2012-02-121-4/+2
| | | | | | | | The code used to call os.path.join to build a regex but without escaping the backslash, which lead to test failures on Windows. Antoine Pitrou fixed it in 557a973709de by enhancing the code to accept both / and \, with proper escaping, but in my opinion this goes against the distutils feature freeze, hence this change.
* Issue #13193: Fix distutils.filelist.FileList under Windows. TheAntoine Pitrou2011-11-121-1/+4
| | | | "recursive-include" directive now recognizes both legal path separators.
* removing the last remaning apply() callsTarek Ziadé2009-10-031-1/+1
|
* added more test coverage for distutils.filelist to prevent regressions when ↵Tarek Ziadé2009-08-181-4/+1
| | | | fnmatch or re are changed
* module cleanupTarek Ziadé2009-08-171-57/+42
|
* fixed how fnmatch.translate is used (since it has changed in r74475 for ↵Tarek Ziadé2009-08-171-2/+3
| | | | #6665). Now the code is not harcoding the usage of $ anymore
* Fixed #1491431: distutils.filelist.glob_to_re was broken for some edge cases ↵Tarek Ziadé2009-04-051-2/+3
| | | | (detailed in the test
* Issue #5052: removed backward compatibility information (out of date)Tarek Ziadé2009-01-251-2/+0
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Fix typo (from SF bug #962602)Walter Dörwald2004-05-311-1/+1
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-5/+0
| | | | is often out of date
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-111-1/+1
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Add missing import of log.Jeremy Hylton2002-06-041-0/+1
|
* Remove unused imports caught by pycheckerJeremy Hylton2002-06-041-1/+1
|
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-34/+24
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Whitespace normalization.Fred Drake2001-12-061-14/+14
|
* Standardize whitespace in function calls.Greg Ward2000-09-261-35/+34
|
* Added list-like methods: 'append()', 'extend()', 'sort()'.Greg Ward2000-07-301-14/+46
| | | | | | | | | | | Added 'remove_duplicates()'. Simplified constructor: no longer take 'files' or 'allfiles' as args, and no longer have 'dir' attribute at all. Added 'set_allfiles()' and 'findall()' so the client does have a way to set the list of all files. Changed 'include_pattern()' to use the 'findall()' method instead of the external function. (Of course, the method is just a trivial wrapper around the function.)
* Typo fix.Greg Ward2000-07-301-1/+1
|
* Ditched the unused 'recursive_exclude_pattern()' method.Greg Ward2000-07-301-24/+0
|
* Renamed 'select_pattern()' to 'include_pattern()'.Greg Ward2000-07-301-15/+16
| | | | Other cosmetic/doc/comment tweaks.
* Renamed 'process_line()' to 'process_template_line()', and factored outGreg Ward2000-07-301-69/+63
| | | | '_parse_template_line()'.
* Added class docstring and ditched inappropriate class attrs.Greg Ward2000-07-301-123/+126
| | | | Indentation/whitspace fixes.
* Provides the FileList class for building a list of filenames by exploringGreg Ward2000-07-301-0/+362
the filesystem, and filtering the list by applying various patterns. Initial revision (almost) as supplied in a patch by Rene Liebscher; I just renamed the class from Template to FileList, and the module accordingly.