summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Correct tests under both Python 2 and 3.Steve Kowalik2016-02-191-2/+2
|
* Merge from master, resolving conflicts.Steve Kowalik2016-02-161-30/+52
|\
| * Use new style string formattingJason R. Coombs2016-01-311-3/+3
| |
| * Extract variable for template stringJason R. Coombs2016-01-311-11/+12
| |
| * Normalize all paths, not excluding ''. Fixes #491.Jason R. Coombs2016-01-311-1/+1
| |
| * Rename inner function and add docstringJason R. Coombs2016-01-311-3/+6
| |
| * Extract function _rebuild_mod_pathJason R. Coombs2016-01-311-10/+16
| |
| * Adapt resolution of classes from importlib.machinery. Restores compatibility ↵Jason R. Coombs2016-01-261-6/+5
| | | | | | | | for PyPy3 where importlib.machinery exists but FileFinder and SourceFileLoader aren't implemented.
| * Pull up DefaultProvider registration into a classmethod.Jason R. Coombs2016-01-261-3/+7
| |
| * Combine redundant imports of future functionalityJason R. Coombs2016-01-261-4/+1
| |
| * Invoke import on importlib.machinery directly. Access an attribute to force ↵Jason R. Coombs2016-01-231-3/+4
| | | | | | | | import in delayed-import environments. Fixes #487.
| * Merged in embray/setuptools (pull request #167)Jason R. Coombs2016-01-161-7/+18
| |\ | | | | | | | | | Possible fix for #207
| | * Sort __path__ entries for namespace packages according to their orderErik Bray2016-01-061-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in sys.path. This ensures that lookups in __path__ will be the same as sys.path resolution. This also adds a replace argument to Distribution.insert_on meant to be used with the replace argumen to WorkingSet.add. This ensures that new sys.path entries added via WorkingSet.add are inserted at the beginning, rather than appended to the end. This is necessary for consistency with the above change, and kind of makes more sense anyways. This means that if a Distribution is added to a WorkingSet, that replaces a different version of that Distribution, the new version of that Distribution will have its location first on sys.path.
| | * Fixes the original root cause of #231, and re-enables the test when the ↵Erik Bray2015-12-311-2/+7
| | | | | | | | | | | | tempdir is a symlink (this does not explicitly test that /tmp itself is a symlink, but the effect is the same--only one of the path levels needs to be a symlink to reproduce this isssue)
| * | Always use Python 3 version of mapJason R. Coombs2016-01-161-1/+1
| |/
| * Use six in pkg_resources.Jason R. Coombs2016-01-041-22/+9
| | | | | | | | | | --HG-- branch : feature/issue-229
| * Combine separate VendorImporters into a single one in pkg_resources.externJason R. Coombs2016-01-021-1/+0
| | | | | | | | | | --HG-- branch : feature/issue-229
| * Use the same technique in pkg_resources, relying on an 'extern' module to ↵Jason R. Coombs2015-12-311-9/+4
| | | | | | | | | | | | | | resolve the conditional import. --HG-- branch : feature/issue-229
| * Fixes #475: correct a typo in metadata environment marker evaluationlsenta2015-12-161-1/+1
| |
* | Correct tests after the move to packaging 16.1.Steve Kowalik2016-02-091-2/+2
| |
* | Switch back to SyntaxError for invalid markers, stops consumers having to ↵Steve Kowalik2016-02-081-3/+6
| | | | | | | | import packaging themselves
* | Properly merge from default.Steve Kowalik2016-01-071-33/+14
| |
* | Destroy MarkerEvaluation for being pointless, fix two silly mistakes in ↵Steve Kowalik2016-01-071-160/+21
| | | | | | | | tests and update packaging changes.
* | Update to the newest packaging, and collapse _parse_requirement_specsSteve Kowalik2015-12-101-4/+1
| |
* | Merge from master.Steve Kowalik2015-12-101-2/+2
|\ \ | |/
| * Remove deprecated use of 'U' in io.open mode parameter. Fixes #472.Jason R. Coombs2015-12-091-1/+1
| |
| * Avoid errors when metadata directory is broken. Ref #419.Jason R. Coombs2015-12-081-1/+1
| |
* | First shot at removing usage of _markerlib and switching to the PEP 508 ↵Steve Kowalik2015-12-101-124/+34
|/ | | | implementation in packaging.
* Read metadata as utf-8; Fixes failure when LC_ALL=CJason R. Coombs2015-12-011-1/+1
|
* Leave _version unset if no metadata version was found.Jason R. Coombs2015-12-011-1/+2
|
* Re-use metadata loading functionality from Provider. Fixes #469.Jason R. Coombs2015-12-011-16/+7
|
* Always use Python 3 map in pkg_resourcesJason R. Coombs2015-11-301-0/+1
|
* Always use Python 3 filter in pkg_resourcesJason R. Coombs2015-11-301-0/+2
|
* Merge Pull Request #144Jason R. Coombs2015-11-281-10/+51
|\
| * Rename method as _version_from_metadata.Jason R. Coombs2015-11-281-5/+5
| |
| * Encapsulate egg-info special behavior in EggInfoDistribution class.Jason R. Coombs2015-11-281-20/+26
| |
| * Extract method for _version_from_egg_info.Jason R. Coombs2015-11-281-15/+24
| |
| * Add docstringJason R. Coombs2015-11-281-0/+4
| |
| * Return None when no version is encountered.Jason R. Coombs2015-11-281-2/+2
| |
| * Use partition to avoid integer literalsJason R. Coombs2015-11-281-1/+2
| |
| * Rewrite _version_from_file using iterables and filtersJason R. Coombs2015-11-281-5/+5
| |
| * Look deeper at .egg-info files for package name and version information when ↵Eric Larson2015-09-011-7/+28
| | | | | | | | available.
* | Back out 435b1b762fba. The change breaks detection of zip eggs. Reopens #462.Jason R. Coombs2015-11-241-1/+0
| |
* | Only detect a path as an unpacked egg if it also has an EGG-INFO directory. ↵Jason R. Coombs2015-11-221-0/+1
| | | | | | | | Fixes #462.
* | Extract function for detecting unpacked egg. Ref #462.Jason R. Coombs2015-11-221-5/+12
|/
* Merge pull request #28 from rouge8/platform_python_implementationJason R. Coombs2015-11-011-0/+1
|\ | | | | Add support for python_platform_implementation environment marker
| * Add support for python_platform_implementation environment markerAndy Freeland2015-09-101-0/+1
| | | | | | | | | | | | This patch adds support for the 'python_platform_implementation' environment marker as defined by PEP-0426: https://www.python.org/dev/peps/pep-0426/#environment-markers
* | Extract a a method to encapsulate behavior and documentation. Rewrite for ↵Jason R. Coombs2015-11-011-6/+13
| | | | | | | | loop as legacy-style dictionary comprehension.
* | Fix "dictionary changed size during iteration"Vadim Markovtsev2015-11-011-1/+1
| | | | | | env is being modified at the same time as being iterated which leads to RuntimeError: dictionary changed size during iteration.
* | Dropping support for Python 3.2 and earlier Python 3 versions. Currently ↵Jason R. Coombs2015-10-221-0/+7
| | | | | | | | only log a warning, but future versions will fail.