summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove py2_warn, no longer needed as a SyntaxError is encountered before the ↵Jason R. Coombs2020-07-071-1/+0
| | | | warning can be issueed.
* Merge branch 'master' into 2020-06-11-raise-fromJason R. Coombs2020-07-031-10/+7
|\
| * Merge pull request #2137 from pypa/debt/remove-RequirementParseErrorJason R. Coombs2020-07-031-9/+5
| |\ | | | | | | Remove superfluous RequirementParseError
| | * Add a compatibility wrapper, so downstream consumers trapping a ↵Jason R. Coombs2020-06-151-0/+4
| | | | | | | | | | | | RequirementParseError will now trap an InvalidRequirement, allowing transition to only trapping an InvalidRequirement.
| | * Remove superfluous RequirementParseError. Ref #1832.Jason R. Coombs2020-05-241-9/+1
| | |
| * | Merge pull request #2143 from pypa/distutilsJason R. Coombs2020-07-031-1/+2
| |\ \ | | | | | | | | Adopt distutils
| | * | catch some resource leaksmattip2020-07-021-1/+2
| | | |
* | | | Fix exception causes all over the codebaseRam Rachum2020-06-281-9/+9
|/ / /
* | | Merge pull request #1973 from jdufresne/makedirsJason R. Coombs2020-06-151-2/+1
|\ \ \ | |/ / |/| | Remove pkg_resources.py31compat.makedirs() in favor of the stdlib
| * | Remove pkg_resources.py31compat.makedirs() in favor of the stdlibJon Dufresne2020-02-161-2/+1
| | | | | | | | | | | | | | | As setuptools is now python 3.5+, this compatibility shim is no longer necessary.
* | | Extract _parents function and _set_egg method. Reword comment.Jason R. Coombs2020-05-281-12/+21
| |/ |/|
* | Just remove fragment remover. PyPI no longer supplies these md5 values ↵Jason R. Coombs2020-05-121-11/+2
| | | | | | | | anyway. Fixes #2089.
* | To assess the directoriness of an entry, include the path of that entry.Jason R. Coombs2020-05-101-1/+4
| |
* | Fix test failures when 'foo.dist-info' does not existJason R. Coombs2020-05-101-1/+1
| |
* | Merge branch 'master' into check-file-distinfoJason R. Coombs2020-05-101-13/+13
|\ \
| * | change: Mac OS X -> macOSReece Dunham2020-04-111-13/+13
| | | | | | | | | | | | Signed-off-by: Reece Dunham <me@rdil.rocks>
* | | Restore single returnJason R. Coombs2020-05-101-10/+12
| | |
* | | Restore parameterJason R. Coombs2020-05-101-3/+3
| | |
* | | Stop recognizing files ending with .dist-info as distNguyễn Gia Phong2020-04-241-16/+14
|/ / | | | | | | As proposed in PEP 376, dist-info distributions must be directories.
* | Merge pull request #1563 from alhirzel/masterJason R. Coombs2020-03-211-4/+8
|\ \ | | | | | | Change find_module to find_spec for py37 compat
| * | Trap AttributeError in exactly one place.Jason R. Coombs2020-03-211-8/+4
| | |
| * | updated per comments from @pganssle in #1563Alex Hirzel2018-11-091-8/+11
| | |
| * | Merge remote-tracking branch 'upstream/master'Alex Hirzel2018-11-091-1/+12
| |\ \
| * | | default to find_module, fall-back to find_spec, fail gracefully afterAlex Hirzel2018-10-281-5/+9
| | | |
| * | | change find_module to find_spec for py37 compatAlex Hirzel2018-10-281-4/+5
| | | |
* | | | Reword UserWarning for insecure extraction path so that the message can be ↵Jason R. Coombs2020-03-071-5/+6
| |_|/ |/| | | | | | | | keyed for ignoring it. Ref #1899.
* | | 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-191-1/+3
| | |
* | | Add obnoxious warning about Python 2 being unsupported on this release with ↵Jason R. Coombs2020-01-031-0/+1
| | | | | | | | | | | | guidance on how to avoid the warning and what to do if that guidance was ineffective.
* | | drop support for Python 3.4Benoit Pierre2019-11-151-2/+2
| | |
* | | Merge pull request #1814 from benoit-pierre/fix_requirement_hash/equalityJason R. Coombs2019-10-271-0/+1
|\ \ \ | | | | | | | | pkg_resources: fix ``Requirement`` hash/equality implementation
| * | | pkg_resources: fix ``Requirement`` hash/equality implementationBenoit Pierre2019-08-131-0/+1
| | | | | | | | | | | | | | | | Take PEP 508 direct URL into account.
* | | | Fixes for python3.10Anthony Sottile2019-08-171-1/+1
|/ / /
* | | Fix #1790 : Include the file path in get_metadata() UnicodeDecodeErrors (#1791)Chris Jerdonek2019-07-131-2/+11
| | | | | | | | | | | | Include the file path in get_metadata() UnicodeDecodeErrors.
* | | Include file path when Version: missingChris Jerdonek2019-04-031-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Related to pip's github issue pypa/pip#6194. This has come up in pip's issue tracker (github) multiple times: - pypa/pip#6177 - pypa/pip#6283 - pypa/pip#6194
* | | Add Distribution._get_version() for DRYChris Jerdonek2019-04-031-2/+8
| | |
* | | Add two tests capturing expectation for '' and None to ↵Jason R. Coombs2019-02-131-0/+13
| | | | | | | | | | | | _validate_resource_path. Ref #1686.
* | | Disallow Windows absolute paths unconditionally with no deprecation period.Jason R. Coombs2019-01-271-3/+24
| | |
* | | Remove usage relying on deprecated and ambiguous leading slash. Ref #1635Jason R. Coombs2019-01-201-1/+1
| | |
* | | Also disallow leading '/' in resource paths. Ref #1635.Jason R. Coombs2019-01-201-3/+6
| | |
* | | Update docs to match implementation that resource names are rooted at the ↵Jason R. Coombs2019-01-201-7/+3
| | | | | | | | | | | | package. Ref #1635.
* | | Add validation of a resource path according to the docs. Only warn for now. ↵Jason R. Coombs2019-01-201-0/+45
| | | | | | | | | | | | Ref #1635.
* | | Merge pull request #1521 from uranusjr/normalize-path-normpathPaul Ganssle2018-11-101-1/+1
|\ \ \ | |_|/ |/| | Call os.path.normpath to normalize paths for comp
| * | Merge branch 'master' into normalize-path-normpathJason R. Coombs2018-10-251-1/+12
| |\ \ | | |/
| * | Call os.path.normpath to normalize paths for compTzu-ping Chung2018-10-251-1/+1
| | |
* | | Add custom deprecation warning classesJunhan Huang2018-10-281-1/+12
| |/ |/| | | | | | | | | | | | | | | | | | | `DeprecationWarning` is not visible by default in the latest versions of CPython, so this switches the deprecation warnings in setuptools and pkg_resources over to custom classes derived from `Warning` instead. Fixes issue github issue #159 Co-authored-by: Junhan Huang <robin.j.huang@gmail.com> Co-authored-by: Marton Pono <marci93@gmail.com>
* | Merge pull request #1335 from themiwi/patch-1Jason R. Coombs2018-10-251-1/+12
|\ \ | |/ |/| Adds call to os.path.abspath() in pkg_resources.normalize_path() on Cygwin
| * Extract patch and its purpose into a specialized function which can be ↵Jason R. Coombs2018-10-251-9/+12
| | | | | | | | excluded from coverage.
| * Adds call to os.path.abspath() in pkg_resources.normalize_path() on CygwinMichael Wild2018-04-221-1/+9
| | | | | | This works around problems that stem from getcwd(3) on Cygwin returning paths containing symlinks. I am not sure at all whether this is a good place to fix it, but that's where I got hit by the issue when doing a `python setup.py develop` (or `pip install -e .`).
* | Revert "Make safe_name compliant to PEP 503 and behaviour of pip > 8.1.2"Jason R. Coombs2018-09-161-2/+2
| |
* | Merge pull request #1402 from ↵Jason R. Coombs2018-09-161-5/+6
|\ \ | | | | | | | | | | | | daa/pkg-resources-always-handle-namespace-package-path Improved handling of module __path__ attribute for namespace packages, fixes #1321