summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | | | | | Improve one test, remove a setuptoolism in another?ric Araujo2012-02-052-6/+14
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Port OS X --enable-shared fix from packaging (#13901; untested)?ric Araujo2012-02-052-4/+10
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Update list of trove classifiers?ric Araujo2011-11-301-0/+12
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Typos?ric Araujo2011-11-302-2/+2
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Remove duplicate script?ric Araujo2011-11-252-7/+2
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Kludge for hashlib?ric Araujo2011-11-251-2/+7
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Don?t display skip messages for tests that we?ll never fix?ric Araujo2011-11-231-6/+7
| |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Better separate compat and _backport.?ric Araujo2011-11-2310-157/+155
| |/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves individual backported functions from compat into a new _backport.misc module. compat regains its original purpose of containing 2to3 support code (i.e. compat for projects using distutils2, not internal compat for d2 code) and all backports now live under the private _backport subnamespace. Also fix the definition of ?any? to bind it to the builtin in 2.5+ (fsencode and detect_encoding not changed, they never exist in 2.x).
* | | | | | | | | | | | | | Remove unused names?ric Araujo2011-11-204-4/+0
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Make test_manifest pass on 2.4 and 2.5 (fixes #11751).?ric Araujo2011-11-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code added massages the output of fnmatch in old Pythons to make it match more recent behavior (it was changed in 2.6 to append '\Z(?ms)' instead of '$', to support newline characters in filenames). I could have changed the tests, but I prefer having the code do the same thing for all versions as far as possible.
* | | | | | | | | | | | | | Remove usage of stdlib shutil.?ric Araujo2011-11-2016-29/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should help avoiding issues like #13170. Because of implicit relative imports, _backport.tarfile already imported shutil from the backports instead of the stdlib; I have inlined the only function it needed to remove the circular dependency between these modules.
* | | | | | | | | | | | | | Add tests for tests.support (#12659), thanks to Francisco Mart?n Brugu??ric Araujo2011-11-153-0/+87
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Remove 'verbose' arguments, obsoleted by logging?ric Araujo2011-11-1512-50/+38
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Add tests to check initial contents of d2.database caches?ric Araujo2011-11-151-0/+7
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Update test setup.cfg (followup to e39d1b6f0856)?ric Araujo2011-11-151-1/+1
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Move copies of stdlib test code from tests.__init__ to runtests.?ric Araujo2011-11-155-150/+145
| |/ / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I deleted captured_stdout because its usage felt clumsy to me; better to use stdlib?s test.support.captured_stdout in packaging and just write out the code for d2. I checked that adding the import of d2.tests.unittest at the top level did not change the coverage accuracy (see comment in the source and the history of the file for more info).
* | | | | | | | | | | | | The error message should contain the key as given, not normalized.?ric Araujo2011-11-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backout of 8f69359881aa. Reported by Jeremy Kloth.
* | | | | | | | | | | | | Replace nick with full name?ric Araujo2011-11-141-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | Fix module name?ric Araujo2011-11-121-1/+1
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | |
* | | | | | | | | | | | Use more usual name for one option of install_distinfo?ric Araujo2011-11-124-21/+20
| | | | | | | | | | | |
* | | | | | | | | | | | Add missing entry?ric Araujo2011-11-121-0/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Clean up mocking of stdout and stdin in tests.?ric Araujo2011-11-129-116/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition, update the create module to use logging.
* | | | | | | | | | | | Undo potentially confusing name change.?ric Araujo2011-11-129-20/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method was named reinitialize_command in distutils and accompanied by a comment suggesting to change it to get_reinitialized_command. Following that, I did the change for distutils2, but it proved confusing: The Distribution object has an internal cache of command objects, to make sure only one instance is ever used, and the name get_reinitialized_command could suggest that the object returned was independent of that cache, which it was not. I?m reverting the name change to make code clearer.
* | | | | | | | | | | | Make sure tests that register custom commands also clear them?ric Araujo2011-11-123-26/+39
| | | | | | | | | | | |
* | | | | | | | | | | | Minor assorted cleanups.?ric Araujo2011-11-128-48/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove __main__ blocks obsoleted by pysetup - Fix typo ?seperate? - Add one test that was promised but not written - Reorganize one file
* | | | | | | | | | | | Code simplification?ric Araujo2011-11-121-4/+2
| | | | | | | | | | | |
* | | | | | | | | | | | Super considered super.?ric Araujo2011-11-128-31/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think I?ve got all of them (I?ll clean up compat after); if someone knows a lint tool that can detect missing super calls, please let me know.
* | | | | | | | | | | | Change signature of tests.support.LoggingCatcher.get_logs.?ric Araujo2011-11-1211-77/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I need this for some tests, and it makes code clearer. This commit also changes some assertEqual calls to use (actual, expected) order and fix some pyflakes warnings.
* | | | | | | | | | | | Improve byte-compilation to be independent of -O or -B.?ric Araujo2011-11-1212-204/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All code (util.byte_compile, build_py, install_lib) can now create .pyc and/or.pyo files according to options given by users, without interference from the calling Python?s own optimize mode or from the sys.dont_write_bytecode switch. The rationale is that packaging gives control over the creation of .pyc/.pyo files to the user with its own explicit option, and the behavior should not be changed if the calling Python happens to run with -B or -O for whatever reason. This is actually a bug fix, not an improvement: Digging into the early history of distutils shows that the original author wanted this behavior (see for example comments in build_py in r12940).
* | | | | | | | | | | | Bring back callable.?ric Araujo2011-11-122-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hasattr is subtly wrong, as special methods are looked up on the class, and given that the callable builtin is back in Python 3.2 we may as well use it. Regular users shouldn?t see the DeprecationWarnings, and us developers can just ignore thme when running tests.
* | | | | | | | | | | | Update test to account for recent Python bugfix.?ric Araujo2011-11-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This does not mean that we can run tests successfully with a Python 2.7 built from its repository: The version that will become 2.7.3 reports itself as 2.7.2 (except for a ?+? in sys.version, but that?s an implementation detail). Some tests need access to Python.h and that isn?t found when running from an uninstalled Python anyway.
* | | | | | | | | | | | Clean up some idioms in tests.?ric Araujo2011-11-1211-44/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use os.makedirs (I had forgotten about it!) - Let TempdirManager.write_file call os.path.join for us - Let TempdirManager.tearDown go back to the previous working directory for us - Use a skip instead of hiding a method with an underscore - Reset the finalized attribute of command objects before calling ensure_finalized a second time, so that it?s not a no-op - Address pyflakes warnings
* | | | | | | | | | | | Increase test coverage for manifest (#11751).?ric Araujo2011-11-114-8/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One test fails on versions older than 2.6 because of a change in fnmatch; we?re discussing how best to fix that on the bug tracker and another commit will follow up.
* | | | | | | | | | | | Expand tests and fix bugs in util.resolve_name.?ric Araujo2011-11-112-35/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code is still ugly, but at least it works better now. Patches to make it easier to read are welcome, as well as support in #12915.
* | | | | | | | | | | | Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive code?ric Araujo2011-11-112-2/+2
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | More information about the Python 3 port.?ric Araujo2011-11-111-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It?s more useful if this file contains all information in both branches.
* | | | | | | | | | | Fix writing of the RESOURCES file (#12386).?ric Araujo2011-11-113-5/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was not broken in d2 because codecs.open allows 'b' in mode.
* | | | | | | | | | | Credit David Barnett for his help?ric Araujo2011-11-111-2/+2
| | | | | | | | | | |
* | | | | | | | | | | Fix import in install_data (#13170). Thanks to David Barnett.?ric Araujo2011-11-111-1/+1
| | | | | | | | | | |
* | | | | | | | | | | Avoid diverging from upstream in backports?ric Araujo2011-11-111-6/+1
| | | | | | | | | | |
* | | | | | | | | | | pyflakes is more important than pep8, run it first?ric Araujo2011-11-111-1/+3
| | | | | | | | | | |
* | | | | | | | | | | Propagate error code from Python?ric Araujo2011-11-111-5/+5
| | | | | | | | | | |
* | | | | | | | | | | Update and expand README?ric Araujo2011-11-111-17/+36
| | | | | | | | | | |
* | | | | | | | | | | Update developers notes?ric Araujo2011-11-111-3/+20
| | | | | | | | | | |
* | | | | | | | | | | Fill in missing entries for last year?ric Araujo2011-11-112-22/+185
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | |
* | | | | | | | | | Fix missing imports in generated setup scripts (#13205).?ric Araujo2011-10-213-15/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I?ve made more edits than the bug report suggested to make sure the generated setup script is compatible with many Python versions; a comment in the source explains that in detail. Thanks to David Barnett for the report and original patch.
* | | | | | | | | | Remove one overlooked with statement?ric Araujo2011-10-191-2/+8
| | | | | | | | | |
* | | | | | | | | | Update short description of Distutils2?ric Araujo2011-10-191-1/+1
| |/ / / / / / / / |/| | | | | | | |
* | | | | | | | | Kludge around shlex not supporting unicode in 2.x (#13170).?ric Araujo2011-10-191-2/+4
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Thanks to David Barnett for the diagnosis.
* | | | | | | | Synchronize config with packaging (fixes #13170)?ric Araujo2011-10-181-2/+1
| |_|_|_|_|_|/ |/| | | | | |