aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove SetuptoolsVersion and SetuptoolsLegacyVersion. Ref #296.Jason R. Coombs2018-03-171-109/+2
|
* Extract version comparisons as pytest parameters.Jason R. Coombs2018-03-171-84/+51
|
* Feed the hobgoblins (delint).Jason R. Coombs2018-03-065-18/+42
|
* Prevent StopIteration from bubbling up in parse_requirements. Fixes #1285.Jason R. Coombs2018-03-051-1/+4
|
* Perform marker calculation in one stepJason R. Coombs2018-02-101-6/+6
|
* Use partitionJason R. Coombs2018-02-101-2/+2
|
* Use filterJason R. Coombs2018-02-101-14/+13
|
* Extract method for filtering extrasJason R. Coombs2018-02-101-10/+24
|
* Remove redundant initializationJason R. Coombs2018-02-101-1/+1
|
* Extract method for _build_dep_mapJason R. Coombs2018-02-101-14/+18
|
* Add a commentJason R. Coombs2018-02-101-0/+4
|
* DelintJason R. Coombs2018-02-101-7/+31
|
* Slightly simplify code via rstrip()Doug Greiman2017-12-221-2/+1
|
* Fix trailing slash handling in pkg_resources.ZipProviderDoug Greiman2017-12-111-0/+4
| | | | | | | | | | | | Given a ZipProvider, if the underlying ZipImporter prefix is empty, then resource_listdir('') and resource_listdir('subdir/') fail, while resource_listdir('/') and resource_listdir('subdir') succeed. On the other hand, if the underlying ZipImport prefix is not empty, then resource_listdir('/') fails but resource_listdir('') succeeds. With this change, the cases listed succeed with or without trailing slashes.
* Add testcase for pkg_resources.ZipProvider.resource_listdirDoug Greiman2017-12-111-0/+35
|
* Shorten message and update changelog. Ref #1209.Jason R. Coombs2017-11-251-2/+3
|
* Improved exception message of pkg_resources.ResolutionErrorAndreas Maier2017-11-221-1/+3
|
* Merge branch 'master' into drop-py26Jason R. Coombs2017-11-192-75/+165
|\
| * Remove unnecessary serialization/parsing of extras in EntryPoint.__init__. ↵Jason R. Coombs2017-10-121-3/+1
| | | | | | | | Fixes #1132.
| * Use simpler Requirement from packaging.requirementsJason R. Coombs2017-10-121-1/+3
| |
| * Feed the hobgoblins (delint).Jason R. Coombs2017-10-121-25/+47
| |
| * Clean up resource warnings during testsJon Dufresne2017-09-162-3/+7
| | | | | | | | | | | | | | | | | | | | When tests are invoked with the Python flag -Wall, warnings appear in the form of: ResourceWarning: unclosed file ... Close all files and resources deterministically to avoid such warnings. Most often, easiest to do using a context manager.
| * Screen entries before sorting in find_on_path. Ref #1134.Jason R. Coombs2017-09-091-1/+13
| |
| * Extract function for resolving the dist factory for a path item entryJason R. Coombs2017-09-091-12/+16
| |
| * Create a NoDists factory for returning no dists, whose boolean value is False.Jason R. Coombs2017-09-091-1/+18
| |
| * Extract function for listdirJason R. Coombs2017-09-091-15/+23
| |
| * Short circuit and dedent large blockJason R. Coombs2017-09-091-32/+33
| |
| * Extract variable for is_metaJason R. Coombs2017-09-091-2/+2
| |
| * Assign dists just onceJason R. Coombs2017-09-091-12/+12
| |
| * Extract distributions_from_metadataJason R. Coombs2017-09-091-11/+18
| |
| * Extract functions for resolving egg_link and reading non-empty lines from a ↵Jason R. Coombs2017-09-091-12/+26
| | | | | | | | file.
| * Remove unnecessary paretheses.Jason R. Coombs2017-09-091-3/+1
| |
| * Extract variable for ignorable errors to improve indentation.Jason R. Coombs2017-09-091-2/+5
| |
* | Merge branch 'master' into drop-py26Jason R. Coombs2017-09-036-67/+688
|\|
| * Merge branch 'master' into less-statJason R. Coombs2017-09-032-3/+489
| |\
| | * pkg_resources: improve WorkingSet.resolve(replace_conflicting=True)Benoit Pierre2017-08-292-3/+489
| | | | | | | | | | | | | | | | | | | | | | | | Correctly replace conflicting distributions in sub-requirements if possible (instead of only for top-level requirements passed as arguments). Fix #1124.
| * | pkg_resources: do not call stat() and access()Julien Danjou2017-08-281-39/+56
| |/ | | | | | | | | | | | | | | | | | | | | | | The current code in find_on_path is doing a lot of stat() calls which are actually useless and prone to race conditions. As described in Python documentation (https://docs.python.org/3/library/os.html#os.access), os.access must not be used before opening a file. Same goes for a directory. This patch removes those checks by handling exceptions correctly when using os.listdir() instead, which improves pkg_resources import time.
| * Better detect unpacked eggsLeonardo Rochael Almeida2017-07-312-4/+79
| | | | | | | | | | | | Do not assume a directory named in `.egg` is an egg, unless it has an actual egg metadata directory. Closes #462
| * Use inspect.getmro to inspect the mro. Alternate implementation to that ↵Jason R. Coombs2017-07-261-10/+11
| | | | | | | | proposed in #1092.
| * tests: switch back to mock instead of backports.unittest_mockBenoit Pierre2017-07-151-1/+1
| |
| * Confusingly, the issue was fixed in a larger point release on Python 3.3 ↵Jason R. Coombs2017-07-131-2/+2
| | | | | | | | than on Python 3.2.
| * Correct bounds and boolean selector.Jason R. Coombs2017-07-131-4/+4
| |
| * Restrict use of os.makedirs to those with the security patch introduced in ↵Jason R. Coombs2017-07-131-4/+9
| | | | | | | | Python 3.2.6, 3.3.5, and 3.4.1 per https://bugs.python.org/issue21082. Ref #1082.
| * Correctly honor exist_ok. Ref #1083.Jason R. Coombs2017-07-131-1/+1
| |
| * Avoid race condition in ensure_directory. Ref #1083.Jason R. Coombs2017-07-132-2/+20
| |
| * Merge branch 'master' into feature/re-vendor-sadfaceJason R. Coombs2017-05-301-1/+1
| |\
| | * Python 3.6 invalid escape sequence deprecation fixesVille Skyttä2017-02-241-1/+1
| | |
| * | Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"Jason R. Coombs2017-02-2418-10/+8946
| |/ | | | | | | | | This reverts commit 089cdeb489a0fa94d11b7307b54210ef9aa40511, reversing changes made to aaec654d804cb78dbb6391afff721a63f26a71cd.
| * support dist-info distributions inside zip filesAlexander Duryagin2017-02-101-0/+6
| |
| * Rely on backports.unittest_mock plugin to make mock available on old Python ↵Jason R. Coombs2017-01-301-4/+1
| | | | | | | | versions. Ref #949.