summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_register.py
Commit message (Collapse)AuthorAgeFilesLines
* Clean up mocking of stdout and stdin in packaging tests.Éric Araujo2011-11-061-13/+1
| | | | | | | | Running with regrtest does not show spurious output or unrestored sys.std* objects; sometimes running with make test is different, I’ll watch the buildbots. In addition, update the create module to use logging.
* Minor tweak to packaging tests.Éric Araujo2011-11-061-0/+1
| | | | | | | | | | When an option is changed on a command object, calling ensure_finalized for a second time will not run finalize_options again, because ensure_finalized is a no-op the second time. By resetting the finalized attribute, we can be sure that whatever computation takes place in finalize_options will happen again. (In test_command_clean, I removed two lines that were a no-op.)
* Add tests for Unicode handling in packaging’ check and register (#13114)Éric Araujo2011-10-111-8/+20
|
* Final bag of small changes coming from distutils2.Éric Araujo2011-09-191-1/+1
| | | | | | | | | - minor cleanup in Metadata - trigger creation of the sysconfig._CONFIG_VARS dict - home_page is used over home-page: it’s not a compound word, it’s an escaped space Distutils2 is now synchronized with Packaging.
* Remove display options (--name, etc.) from the Distribution class.Éric Araujo2011-08-291-1/+1
| | | | | | | | | | | | These options were used to implement “setup.py --name”, “setup.py --version”, etc. which are now handled by the pysetup metadata action or direct parsing of the setup.cfg file. As a side effect, the Distribution class no longer accepts a 'url' key in its *attrs* argument: it has to be 'home-page' to be recognized as a valid metadata field and passed down to the dist.metadata object. I cleaned up some comments, docstrings and code along the way.
* Factor out code used by packaging commands for HTTP requests (#12169).Éric Araujo2011-07-081-5/+5
| | | | | | We now have one function to prepare multipart POST requests, and we use CRLF, as recommended by the HTTP spec (#10150). Initial patch by John Edmonds.
* initial import of the packaging package in the standard libraryTarek Ziade2011-05-191-0/+259