Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Minor tweaks in packaging’s test_dist. | Éric Araujo | 2011-06-17 | 1 | -21/+15 | |
| | | | | | | | | | | | | | | | | | | | | - Use different Metadata objects to write and read a PKG-INFO (METADATA) file, to make sure the tested values come from the file - No need to restore methods on an instance after monkey-patching them: the methods are still the same on the class - Harmonize dedent calls | |||||
| * | Stop binding sys.path as default parameter value in packaging. | Éric Araujo | 2011-06-16 | 2 | -9/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | The two public functions in database default to sys.path if the given *paths* argument is None; the private functions don’t have default values for their arguments anymore, which is fine as the public functions that call them pass their arguments down. Likewise in install, the functions will pass down their *paths* arguments down to database functions. A one-line unneeded function in install was removed instead of being changed, and the few remaining tests that used brute-force restoration of sys.path have been cleaned up to use sys.path.remove. | |||||
| * | Packaging: remove last mentions and uses of setup.py in the code. | Éric Araujo | 2011-06-16 | 2 | -17/+3 | |
| | | | | | | | | | | Now only the compatibility layer (in create, util and install) talk about setup.py. | |||||
| * | Clean up packaging.tests.test_mixin2to3 | Éric Araujo | 2011-06-16 | 1 | -34/+43 | |
| | | ||||||
* | | Issue #12333: run tests on the new module in a subprocess | Victor Stinner | 2011-06-17 | 1 | -24/+16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | It is not possible to unload a module written in C, so use a subprocess to run the tests on the module compiled by test_build_ext(). Using a subprocess, we don't have to unload the module, save/restore sys.path, and the test can be run more than once. This commit fixes also an access error on rmtree() on Windows: because the module was not really unloaded, it was not possible to remove the temporary directory (it is not possible to remove a directory on Windows if it still contains an open file). | |||||
* | | Issue #12333: close files before removing the directory | Victor Stinner | 2011-06-17 | 1 | -3/+2 | |
| | | | | | | | | | | packaging.tests.support.TempdirManager: rmtree() fails on Windows if there are still open files in the directory. | |||||
* | | Issue #12333: restore the previous dir before removing the current directory | Victor Stinner | 2011-06-17 | 1 | -8/+5 | |
|/ | | | | | | | packaging.tests.support.TempdirManager: removing the current directory is not allowed on Windows or Solaris. Store the current directory and restore it before removing the temporary directory (which is used as the working directory during the tests). | |||||
* | Issue #12167: Fix a reafleak in packaging.tests.PyPIServer constructor | Victor Stinner | 2011-06-15 | 1 | -1/+3 | |
| | | | | Don't modify mutable default arguments... | |||||
* | Specify the encoding of the setup.cfg in one packaging test (#12320) | Éric Araujo | 2011-06-12 | 1 | -1/+1 | |
| | ||||||
* | Allow multiple setup hooks in packaging’s setup.cfg files (#12240). | Éric Araujo | 2011-06-10 | 2 | -8/+30 | |
| | | | | Original patch by Erik Bray. | |||||
* | setup.cfg: Document that description-file can contain more than one file | Éric Araujo | 2011-06-10 | 1 | -1/+1 | |
| | ||||||
* | Fix assorted bugs in packaging.util.cfg_to_args (#11595). | Éric Araujo | 2011-06-10 | 1 | -7/+41 | |
| | | | | Original patch by Erik Bray. | |||||
* | Don’t try to install something when running from uninstalled source (#12246). | Éric Araujo | 2011-06-10 | 1 | -2/+12 | |
| | | | | Original patch by Tshepang Lekhonkhobe. | |||||
* | Clean up extra environment variable after packaging tests. | Éric Araujo | 2011-06-10 | 1 | -1/+1 | |
| | | | | | | | | | | | | | packaging.util.check_environ will define HOME and PLAT if they don’t exist; for some reason, it does not define PLAT when running the tests from a checkout (so no regrtest warning) but does when running from an installed Python. Cleaning up the envvar in test_dist fixes the warning on my machine, but I suspect that a test runner using a different order to run files or running them in parallel may have PLAT defined in its environment because of another test. Quite a lot of code ends up calling check_environ; maybe we should just clean up PLAT in every test. For now I’m doing this simple fix, we’ll see if we get bug reports. | |||||
* | Fix omission in test for packaging install_distinfo command. | Éric Araujo | 2011-06-10 | 1 | -1/+1 | |
| | | | | | | | | The code does not write checksum or file length for .pyc and .pyo in the RECORD file, in compliance with PEP 376, but the test forgot to take .pyo into account. This was not caught because there were no .pyo in the checkout, but after installing there are .pyo files created by compileall, and the test picks them up. | |||||
* | Fix example in packaging test_config. | Éric Araujo | 2011-06-09 | 1 | -2/+2 | |
| | | | | | | The example C extension used the “three.fast_taunt” name, but no “three” parent was defined in the setup.cfg. This did not cause a failure nor even print a warning, we may want to change that. | |||||
* | Packaging cleanup: remove use of script_name where obsolete | Éric Araujo | 2011-06-08 | 5 | -19/+0 | |
| | ||||||
* | Fix UnboundLocalError in a finally block of one packaging test | Éric Araujo | 2011-06-06 | 1 | -1/+1 | |
| | ||||||
* | Fix sdist to always include setup.cfg (#11092), to comply with the spec | Éric Araujo | 2011-06-06 | 2 | -11/+19 | |
| | ||||||
* | Use strings instead of sets of lines in packaging.create tests. | Éric Araujo | 2011-06-06 | 1 | -57/+63 | |
| | | | | | Using sets in tests did not check whether the values were written in the right section or with the right key. | |||||
* | Fix comment | Éric Araujo | 2011-06-06 | 1 | -1/+1 | |
| | ||||||
* | Cleanup in packaging: don’t unnecessarily instantiate exceptions | Éric Araujo | 2011-06-04 | 1 | -1/+1 | |
| | ||||||
* | Document autoflushing in packaging.test.support.LoggingCatcher.get_logs. | Éric Araujo | 2011-06-03 | 1 | -1/+4 | |
| | | | | | | I’m afraid my docstring is not as clear as it should be, but I can’t find a concise way of describing what the code does. Suggestions for improvements welcome. | |||||
* | Fix format of warnings from the packaging check command | Éric Araujo | 2011-06-02 | 1 | -0/+11 | |
| | ||||||
* | Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler. | Éric Araujo | 2011-06-02 | 3 | -15/+19 | |
| | | | | | This removes the need to call flush manually in each test, except when testing code that creates warning without checking them. | |||||
* | Branch merge | Éric Araujo | 2011-06-01 | 2 | -7/+6 | |
|\ | ||||||
| * | Re-apply distutils2 changes lost before the merge of packaging. | Éric Araujo | 2011-05-31 | 1 | -5/+4 | |
| | | | | | | | | | | wrap_text was removed in favor of standard textwrap but the removal of the function was lost in a bad merge; a change in sdist mysteriously disappeared. | |||||
| * | Fix test name in debug message | Éric Araujo | 2011-05-31 | 1 | -2/+2 | |
| | | ||||||
* | | make sure we check for write access before starting the install, and add ↵ | Tarek Ziade | 2011-05-31 | 2 | -4/+41 | |
| | | | | | | | | correct exit code | |||||
* | | better UI when the user does not have the perms to remove the project | Tarek Ziade | 2011-05-30 | 1 | -5/+23 | |
| | | ||||||
* | | fixed the test_uninstall patch | Tarek Ziade | 2011-05-30 | 1 | -2/+2 | |
|/ | ||||||
* | removed spurious output | Tarek Ziade | 2011-05-30 | 1 | -1/+7 | |
| | ||||||
* | Cleaned up the installer output behavior. | Tarek Ziade | 2011-05-30 | 2 | -24/+23 | |
| | | | | | | This change also makes sure the logger handlers are not alterated after an installation. That also fixes the remaining environment alteration issue in test_packaging. | |||||
* | cleanup packaging.database | Tarek Ziade | 2011-05-30 | 1 | -5/+3 | |
| | ||||||
* | a resource module for 2 functions is overkill. database is the right place ↵ | Tarek Ziade | 2011-05-30 | 2 | -170/+156 | |
| | | | | for those | |||||
* | Port r86353 to packaging (#10359: “;” after function definition is ↵ | Éric Araujo | 2011-05-29 | 1 | -1/+1 | |
| | | | | invalid in ISO C) | |||||
* | Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2 | Éric Araujo | 2011-05-28 | 1 | -3/+6 | |
| | ||||||
* | Issue #12180: Fixed a few remaining errors in test_packaging when no threading. | Tarek Ziade | 2011-05-25 | 4 | -7/+36 | |
| | ||||||
* | Issue #12167: packaging.tests.test_dist unloads the temporary module | Victor Stinner | 2011-05-24 | 1 | -0/+2 | |
| | | | | Fix a reference leak. | |||||
* | Issue #12167: packaging.tests.support, LoggingCatcher restores correctly the | Victor Stinner | 2011-05-24 | 1 | -1/+2 | |
| | | | | log level. Avoid also calls to .addCleanup() in setUp(). | |||||
* | Issue #12125: fixed the failures under Solaris due to improper test cleanup. | Tarek Ziade | 2011-05-23 | 3 | -1/+14 | |
| | ||||||
* | fixed the cwd cleanup in packaging test_util | Tarek Ziade | 2011-05-23 | 1 | -1/+8 | |
| | ||||||
* | make sure the cwd is restored on tearDown | Tarek Ziade | 2011-05-23 | 1 | -0/+5 | |
| | ||||||
* | make sure build_dir.build_lib is synced to the faked build location | Tarek Ziade | 2011-05-23 | 1 | -0/+4 | |
| | ||||||
* | skip more tests in packaging if threading is not supported | Tarek Ziade | 2011-05-22 | 3 | -3/+20 | |
| | ||||||
* | not using a server name anymore as the 127.0.0.1 <> localhost symmetry is ↵ | Tarek Ziade | 2011-05-22 | 1 | -3/+1 | |
| | | | | not true under Windows 7 | |||||
* | Issue 12132 - skip the test_buil_ext test if the xx module is not found | Tarek Ziade | 2011-05-22 | 1 | -1/+5 | |
| | ||||||
* | Issue 10126 - backported distutils fix for the enable-share mode into packaging | Tarek Ziade | 2011-05-22 | 1 | -1/+24 | |
| | ||||||
* | added the Content-Length header. that fixes the weird ↵ | Tarek Ziade | 2011-05-21 | 1 | -0/+1 | |
| | | | | packaging.pypi.errors.HashDoesNotMatch errors | |||||
* | deactivating one test under win32 for now | Tarek Ziade | 2011-05-21 | 1 | -0/+1 | |
| |