summaryrefslogtreecommitdiff
path: root/pkg_resources
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | change find_module to find_spec for py37 compatAlex Hirzel2018-10-281-4/+5
| | | |
* | | | Merge pull request #1899 from pypa/feature/1823-fail-warningsJason R. Coombs2020-03-081-5/+6
|\ \ \ \ | | | | | | | | | | Error on warnings.
| * | | | 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.
* | | | Merge branch 'master' into patch-1Jason R. Coombs2020-03-0714-56/+94
|\ \ \ \ | |/ / /
| * | | 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-01-193-6/+9
| | | |
| * | | Update Python 2 warning to include a minimum sunset date and add a preamble ↵Jason R. Coombs2020-01-141-2/+5
| | | | | | | | | | | | | | | | to make referencing the warning more reliable. Ref #1458.
| * | | Add obnoxious warning about Python 2 being unsupported on this release with ↵Jason R. Coombs2020-01-032-0/+20
| | | | | | | | | | | | | | | | 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
| | | |
| * | | test: drop pkg_resources tests dependency on easy_installBenoit Pierre2019-11-139-45/+39
| | | |
| * | | Merge pull request #1814 from benoit-pierre/fix_requirement_hash/equalityJason R. Coombs2019-10-272-0/+18
| |\ \ \ | | | | | | | | | | pkg_resources: fix ``Requirement`` hash/equality implementation
| | * | | pkg_resources: fix ``Requirement`` hash/equality implementationBenoit Pierre2019-08-132-0/+18
| | | | | | | | | | | | | | | | | | | | Take PEP 508 direct URL into account.
| * | | | Fixes for python3.10Anthony Sottile2019-08-173-3/+3
| |/ / /
* | | | Also remove mysterious hack from pkg_resources.externJason R. Coombs2020-03-071-7/+0
|/ / /
* | | Fix #1790 : Include the file path in get_metadata() UnicodeDecodeErrors (#1791)Chris Jerdonek2019-07-132-2/+65
| | | | | | | | | | | | Include the file path in get_metadata() UnicodeDecodeErrors.
* | | tests: fix `test_distribution_version_missing` to work with pytest>=5.0Benoit Pierre2019-06-301-1/+1
| | |
* | | Include file path when Version: missingChris Jerdonek2019-04-032-3/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-202-3/+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-102-1/+54
|\ \ \ | |_|/ |/| | Call os.path.normpath to normalize paths for comp
| * | Test normalize_path on various inputsTzu-ping Chung2018-10-291-4/+52
| | |
| * | 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-252-1/+6
| | |
* | | Add unit tests for PkgResourcesDeprecationWarningrobinjhuang2018-10-281-1/+10
| | |
* | | 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 .`).
* | Bump to pyparsing 2.2.1 and re-run paver update_vendored. Fixes #1480.Jason R. Coombs2018-09-232-13/+35
| |
* | 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
| * | always process module.__path__ for namespace packages, fixes #1321Alexander Duryagin2018-06-271-5/+6
| | |
* | | Merge pull request #1324 from torsava/safe_nameJason R. Coombs2018-09-161-2/+2
|\ \ \ | | | | | | | | Make safe_name compliant to PEP 503 and behaviour of pip > 8.1.2
| * | | Make safe_name compliant to PEP 503 and behaviour of pip > 8.1.2Tomas Orsava2018-04-121-2/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to PEP 503, a "normalized" project name has all runs of the characters ., - and _ replaced with a single - character. [0] Similarly, since version 8.1.2, that is the behaviour of pip as well. [1] However, Setuptools still allows a . in the normalized name, which is causing trouble down the line. [0] https://www.python.org/dev/peps/pep-0503/#normalized-names [1] https://github.com/pypa/pip/issues/3666
* | | Suppress warnings in importer.find_module. Fixes #1111.Jason R. Coombs2018-09-141-1/+6
| | |
* | | Rely on rpartition.Jason R. Coombs2018-09-141-4/+4
| | |
* | | Assign on separate linesJason R. Coombs2018-09-141-1/+2
| | |
* | | Merge pull request #1451 from hugovk/upgrade-appdirsPaul Ganssle2018-08-172-17/+73
|\ \ \ | | | | | | | | Upgrade vendored appdirs from 1.4.0 to 1.4.3
| * | | Upgrade vendored appdirs from 1.4.0 to 1.4.3Hugo2018-08-172-17/+73
| | | |
* | | | Merge pull request #1450 from hugovk/upgrade-pyparsingPaul Ganssle2018-08-171-15/+39
|\ \ \ \ | |/ / / |/| | | Upgrade vendored PyParsing from 2.1.10 to 2.2.0
| * | | Upgrade vendored pyparsing from 2.1.10 to 2.2.0Hugo2018-08-091-15/+39
| | | |
* | | | Rewrite loop as single generator expression.Jason R. Coombs2018-08-111-7/+6
|/ / /
* | | Merge pull request #1418 from pganssle/egg_race_conditionPaul Ganssle2018-07-202-2/+41
|\ \ \ | | | | | | | | Egg race condition
| * | | Fix race condition in _bypass_ensure_directoryPaul Ganssle2018-07-121-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a race condition in _bypass_ensure_directory where two threads or processes may erroneously fail because they are both creating the same directory. A more robust implementation of this may involve exposing the un-wrapped os.makedirs. Originally reported with proposed patch by @JonKohler in github PR #1412. This patch came out of discussions on that thread.
| * | | Add test for cache_path race conditionPaul Ganssle2018-07-121-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This mocks out the isdir call so that the directory is created immediately after you determine whether or not it exists, thus simulating a race condition between two threads or processes creating the same directory.
* | | | Switch over to using six.PY{2,3} when possiblePaul Ganssle2018-07-101-1/+3
|/ / /