summaryrefslogtreecommitdiff
path: root/distutils2/config.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge fixes for #13901, #11805, #13712 and other improvements?ric Araujo2012-02-051-6/+18
|\
| * Allow multiple values for package_data in setup.cfg (#11805).?ric Araujo2012-02-051-6/+18
| | | | | | | | | | | | | | | | | | | | Even though the resources system obsoletes data_files and package_data (see bug discussion), package_data still exists to allow compatibility with distutils and thus an easier transition. In setup.py, the values are lists of glob patterns, so the setup.cfg syntax needed a way to express multiple values too. Reported by Erik Bray.
* | Branch merge?ric Araujo2011-11-201-23/+14
|\ \ | |/ |/|
| * Merge default?ric Araujo2011-10-181-2/+1
| |\
| * | Start a branch to provide Distutils2 for Python 3.?ric Araujo2011-09-241-19/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This codebase is compatible with 3.1, 3.2 and 3.3. It was converted with 2to3 and a semi-automated diff/merge with packaging in 3.3 to fix some idioms. We?ve now come full circle from 2.x to 3.x to 2.x to 3.x again :) Starting from now, contributors can make patches for packaging (preferred, as the stdlib?s regrtest is very useful), distutils2 or distutils-python3, and we?ll make patches flow between versions.
* | | Remove unused names?ric Araujo2011-11-201-1/+0
| | |
* | | 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
|/
* Don?t let invalid line in setup.cfg pass silently?ric Araujo2011-09-191-3/+4
|
* Minor improvement to extensions in setup.cfg: check parent package?ric Araujo2011-09-191-1/+16
|
* Minor improvement to extensions section in setup.cfg.?ric Araujo2011-09-191-4/+7
| | | | | | The right-hand part in [extension: foo] is now used as the name of the extension module. (I changed the separator from = to : and allowed whitespace to make the sections look nicer.)
* Fix the backport fixes.?ric Araujo2011-09-181-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backports: - sysconfig is now always imported from our backports - when hashlib is not found, our backport is used instead of the md5 module (debatable; we could just drop hashlib) Version-dependent features: - PEP 370 features are only enabled for 2.6+ - the check for sys.dont_write_bytecode was fixed to use getattr with a default value instead of hasattr Idioms/syntax: - octal literals lost their extra 0 - misused try/except blocks have been changed back to try/finally (it?s legal in 2.4 too, it?s only try/except/finally that isn?t) - exception catching uses the regular 2.x idiom instead of sys.exc_info - file objects are closed within finally blocks (this causes much whitespace changes but actually makes diff with packaging easier) Renamed modules: - some missed renamings (_thread, Queue, isAlive, urllib.urlsplit, etc.) were fixed Other: - a few false positive replacements of ?packaging? by ?distutils2? in comments or docstrings were reverted - util.is_packaging regained its name - assorted whitespace/comment/import changes to match packaging
* Use `setup.cfg` as the canonical source for installationJeremy Kloth2011-09-121-1/+2
|
* Fixed a python2.4 syntax errors.Alexandru Plugaru2011-08-301-4/+6
|
* Backported packaging from cpython default, overwriting previous version.Vinay Sajip2011-08-181-82/+118
|
* Merging the resource branch !Alexis Metaireau2011-02-131-3/+5
|\
| * Use lazy form in logging calls, again.?ric Araujo2011-02-101-4/+5
| | | | | | | | | | | | | | | | | | | | | | Logging calls have the signature (msg, *args, **kwargs) so that the %-formatting can be delayed until it is needed. Logger objects also have an isEnabledFor method that can be used to isolate expensive code. Next steps: use only one of d2.logger methods or logging module functions; use a proper handler in our test machinery instead of monkey-patching; remove cmd.warn and cmd.announce and use logging instead. TODOs have been added in the modules and on the wiki.
* | Change resource files declaration in setup.cfgPierre-Yves David2011-02-061-14/+12
| | | | | | | | | | | | | | | | | | | | | | Resource files declaration move from they own section ``[resources]`` to a ``resources`` key in the ``[files]`` section. The format of the declaration in the ``resources`` key stay the same:: [<base-glob>] <glob> = {dispatch}/destination/ this change is motivated by the fact that config parser "key" are always lower case and can't hold file path information propertly.
* | Add an XXX marker on a silently passing error in package data files.Pierre-Yves David2011-02-061-1/+1
| |
* | renames datafiles in ressources for consistency with setup.cfg sectionPierre-Yves David2011-02-021-1/+1
| |
* | merge with upstreamPierre-Yves David2011-02-021-1/+10
|\ \ | |/
| * Parsing extension sections with interpret in setup.cfgAndre Espaze2011-01-301-1/+10
| |
* | Improve compatibility with pep8 for file config.pyFELD Boris2011-01-311-7/+6
| |
* | MergeFELD Boris2011-01-301-8/+3
|\ \ | |/
| * Parsing compiler arguments with shlex.splitAndre Espaze2011-01-301-8/+3
| | | | | | | | Thanks to Julien Jehannet for the tip.
* | Merge with upstream and update some unittest to the new data-files ↵FELD Boris2011-01-291-12/+23
|\ \ | |/ |/| | | implementation
| * Update some unittest to the new way of declaring data_files.FELD Boris2011-01-291-11/+2
| | | | | | | | | | Remove implementation of old way to do it. Fix lots of bugs due to type errors.
| * Merge with main branchFELD Boris2011-01-291-2/+24
| |\
| | * merge with main branchPierre-Yves David2011-01-291-15/+31
| | |\
| | * | add support for exclusing datafiles in setup.cfgPierre-Yves David2011-01-291-0/+2
| | | |
| | * | [datafiles] remove regex use to detect space. You just can't escape themPierre-Yves David2011-01-281-4/+2
| | | |
| | * | Distutils 2 now install datafiles in the right place (indicated by sysconfig).FELD Boris2011-01-281-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | Data files are read from config file. Data files are installed to the expanded category file. Data files list is written in DATAFILES file in .dist-info dir.
* | | | make a private function private :)Alexis Metaireau2011-01-291-14/+15
| | | |
* | | | merge with Andr?Alexis Metaireau2011-01-291-2/+2
|\ \ \ \ | |/ / /
| * | | Fix two NameErrors (#11057)?ric Araujo2011-01-291-1/+2
| | |/ | |/|
* | | Building extensions from the setup.cfgAndre Espaze2011-01-291-0/+46
|/ / | | | | | | | | | | This changeset adds the setup.cfg syntax for building binary extensions. Note the extension key defined by the section name is not yet used for managing build dependencies.
* | make sure we don't convert packages_root into a multiline valueTarek Ziade2011-01-291-1/+8
| |
* | merge to lastest headGael Pasgrimaud2011-01-291-5/+6
|\ \
| * \ merge Julien's cloneGael Pasgrimaud2011-01-291-5/+17
| |\ \
| * | | Better handling of multi lines fields of the setup.cfg.Julien Miotte2011-01-281-5/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now single line values can be written on the same line as the field name. For instance, the line: project_url = spam,http://spam.spam Was causing python -m distutils.run sdist with this error: ValueError: need more than 1 value to unpack Now, every field that should be of multiple use is handled as a list.
* | | simplified the package_dir option - just one root dir allowedTarek Ziade2011-01-291-5/+1
| |/ |/|
* | Allow to have more than one file in description-file. Also check that those ↵Gael Pasgrimaud2011-01-281-5/+17
|/ | | | files are added to MANIFEST
* Save up a bit of memory thanks to dict.iter* and __iter__?ric Araujo2010-12-171-3/+3
|
* now distutils2 uses set_command to set its own commandsTarek Ziade2010-11-131-20/+19
|
* now you can register your custom compilers using the .cfg filesTarek Ziade2010-11-111-0/+9
|
* now sub_commands can be configure in the .cfg filesTarek Ziade2010-11-071-20/+24
|
* introducing a logger object and started to drop log module usageTarek Ziade2010-10-251-4/+4
|
* py_modules -> modulesTarek Ziade2010-10-231-1/+1
|
* now sdist uses the extra_files option from setup.cfg, and the Distribution ↵Tarek Ziade2010-10-171-1/+1
| | | | object has it as an attribute
* now accepting description-fileTarek Ziade2010-10-131-0/+14
|