summaryrefslogtreecommitdiff
path: root/pkg_resources
Commit message (Collapse)AuthorAgeFilesLines
* 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-162-13/+72
|\ | | | | | | Possible fix for #207
| * Sort __path__ entries for namespace packages according to their orderErik Bray2016-01-062-11/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-312-8/+27
| | | | | | | | 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-163-2/+6
|/
* Use six in pkg_resources.feature/issue-229Jason R. Coombs2016-01-042-25/+11
|
* Move six to pkg_resources for use there.Jason R. Coombs2016-01-043-1/+870
|
* Extract variable for extant name. Add comment about the hack.Jason R. Coombs2016-01-021-3/+9
|
* Add some docstringsJason R. Coombs2016-01-021-0/+13
|
* Based on experimentation, the canonical module name needs to be in ↵Jason R. Coombs2016-01-021-1/+4
| | | | sys.modules on Python prior to 3.3, but must be omitted on Python 3.3 and later.
* Combine separate VendorImporters into a single one in pkg_resources.externJason R. Coombs2016-01-022-1/+1
|
* Pop the module off the stack, preventing the 'Version' class from having a ↵Jason R. Coombs2016-01-021-2/+1
| | | | different manifestation in packaging than in pkg_resources.
* Make VendorImporter more genericJason R. Coombs2016-01-021-13/+20
|
* Create a PEP 302 importer for managing conditional import of vendored ↵Jason R. Coombs2016-01-022-45/+42
| | | | packages from the 'extern' namespace. This technique avoids the use of 'imp' and works even when setuptools is installed as a zipped egg. Ref #229.
* Move extern.packaging into a package to enable package-relative imports to ↵Jason R. Coombs2016-01-011-0/+0
| | | | resolve propertly. Ref #229.
* Use the same technique in pkg_resources, relying on an 'extern' module to ↵Jason R. Coombs2015-12-314-11/+50
| | | | resolve the conditional import.
* Update vendoring technique to match that used for packaging. Ref #229.Jason R. Coombs2015-12-311-3/+1
|
* Merge with master. Ref #229.Jason R. Coombs2015-12-311-1/+3
|\
| * Merge with masterJason R. Coombs2015-01-034-0/+723
| |\
* | | Fixes #475: correct a typo in metadata environment marker evaluationlsenta2015-12-161-1/+1
| | |
* | | 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
| | |
* | | 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
| | |
* | | Add test for regression on Python 3 when LANG=C and there is non-ascii in ↵Jason R. Coombs2015-12-011-1/+5
| | | | | | | | | | | | the metadata file before the version. Ref #469.
* | | 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-282-10/+103
|\ \ \
| * | | 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
| | | |
| * | | Merge with latest testsJason R. Coombs2015-11-281-7/+28
| |\ \ \
| | * | | Look deeper at .egg-info files for package name and version information when ↵Eric Larson2015-09-011-7/+28
| | | | | | | | | | | | | | | | | | | | available.
| * | | | Rewrite test to use distutils' install_egg_info to generate the metadata.Jason R. Coombs2015-11-281-10/+11
| | | | |
| * | | | Rewrite test to simply create the egg_info.Jason R. Coombs2015-11-281-80/+35
| | | | |
| * | | | Rename test to match intention.Jason R. Coombs2015-11-281-1/+1
| | | | |
| * | | | Move test into pkg_resources testsJason R. Coombs2015-11-281-0/+96
| |/ / /
* | | | 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-012-0/+4
|\ \ \ | | | | | | | | | | | | Add support for python_platform_implementation environment marker
| * | | Add support for python_platform_implementation environment markerAndy Freeland2015-09-102-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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.