summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Put colon-separated compound statement on separate lines.stepshal2016-07-211-1/+2
|
* Fix misspellingsstepshal2016-06-261-1/+1
|
* Always inject extra into the environment when evaluating markers. Fixes #544.Jason R. Coombs2016-04-151-2/+2
|
* Instead of reasing a new exception, just augment the existing exception, ↵Jason R. Coombs2016-04-071-2/+5
| | | | avoiding any concerns about exception type, but still communicating the context necessary to trace the issue. Ref #537.
* Merge pull request #537 from ri0t/patch-1Jason R. Coombs2016-04-071-1/+4
|\ | | | | This helps finding packages with bad utf
| * This helps finding packages with bad utfriot2016-04-071-1/+4
| | | | | | Checking hundreds of possibly installed packages manually should NOT be expected of the user ;)
* | Rely on short-circuit in 'or' rather than building a separate iterable.Jason R. Coombs2016-04-071-8/+1
| |
* | Adjust expectation that 'extra' is not in the marker evaluation if no extras ↵Jason R. Coombs2016-04-071-10/+12
| | | | | | | | demanded the requirement.
* | Extract _ReqExtras to encapsulate that functionality and decouple it from ↵Jason R. Coombs2016-04-071-24/+29
| | | | | | | | WorkingSet.
* | Reinstate the or guard in WorkingSet._markers_passSteve Kowalik2016-04-061-1/+1
|/
* Remove fallback value until there's something that explains or requires it.Jason R. Coombs2016-04-051-1/+1
|
* Extract method for testing marker evaluationJason R. Coombs2016-04-051-11/+24
|
* Restore evaluating environment markers in WorkingSetSteve Kowalik2016-04-051-3/+11
| | | | | | | | | | Correctly deal with parsed requirements that include extras as a marker inside WorkingSet that are populated from METADATA inside wheels, like we get from pip>=7. This partially reverts commit 04d10ff025e1cbef7ec93a2008c930e856045c8a. Closes: #523
* Bypass environment marker evaluation in requirements resolution. Ref #523.Jason R. Coombs2016-03-311-2/+4
|
* Remove unused importsJason R. Coombs2016-03-311-7/+0
|
* Support environment markers in *_requires, via WorkingSet.Steve Kowalik2016-03-241-0/+4
|
* Rename variables for clarity and easier troubleshooting (avoid masking ↵Jason R. Coombs2016-03-201-3/+4
| | | | intermediate 'parts' value).
* Add in safe_name for project_name, which disappeared in my refactor.Steve Kowalik2016-03-071-1/+2
|
* Change pkg_resources.Requirement to be a subclass of packagingSteve Kowalik2016-03-071-14/+7
|
* Shift requirement parsing inside RequirementSteve Kowalik2016-03-011-24/+18
|
* 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
|