aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources
Commit message (Collapse)AuthorAgeFilesLines
* Merged in msabramo/setuptools/DistributionNotFound_list_requirers (pull ↵Jason R. Coombs2015-03-281-7/+26
|\ | | | | | | | | | | request #126) DistributionNotFound: Show requirers
| * DistributionNotFound: Move message template to classMarc Abramowitz2015-03-241-9/+25
| | | | | | | | | | --HG-- branch : DistributionNotFound_list_requirers
| * DistributionNotFound: Show requirersMarc Abramowitz2015-03-191-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is very helpful to know who required the missing package. E.g.: pkg_resources.DistributionNotFound: The 'colorama>=0.3.1' distribution was not found and is required by smlib.log. Note that there was a comment: "unfortunately, zc.buildout uses a str(err) to get the name of the distribution here..", but I did a search in the `buildout` code and I think that is no longer true, so I think that we're free to make the exception message more helpful without risk of breaking buildout: # In clone from https://github.com/buildout/buildout $ ag DistributionNotFound src/zc/buildout/buildout.py 686: except (ImportError, pkg_resources.DistributionNotFound): $ pip install --download=. --no-install zc.buildout ... Saved ./zc.buildout-2.3.1.tar.gz ... $ tar xf zc.buildout-2.3.1.tar.gz $ ag DistributionNotFound zc.buildout-2.3.1 zc.buildout-2.3.1/src/zc/buildout/buildout.py 686: except (ImportError, pkg_resources.DistributionNotFound): --HG-- branch : DistributionNotFound_list_requirers
* | Merge backoutJason R. Coombs2015-03-202-12/+1
|\ \
| * | Backed out changeset 6e045b2724d0 and 56d7ea3d42b2. Ref #307.Jason R. Coombs2015-03-202-12/+2
| | |
* | | Disable warning of LegacyVersion in parsed_version. This functionality ↵Jason R. Coombs2015-03-201-1/+0
| | | | | | | | | | | | should be called explicitly at whatever times are appropriate for the warning. Fixes #307.
* | | Prefer new string formatting. Re-use variable names.Jason R. Coombs2015-03-201-2/+3
| | |
* | | Reindent warning and use short circuits for flatter implementation.Jason R. Coombs2015-03-201-19/+23
| | |
* | | Extract method for warning of legacy versionJason R. Coombs2015-03-201-1/+5
| | |
* | | Reindent EGG_NAME to reflect structure.Jason R. Coombs2015-03-201-3/+11
|/ /
* | Update EGG_NAME regular expression matcher to allow names to include dashes. ↵Jason R. Coombs2015-03-201-2/+2
| | | | | | | | Fixes failing test and fixes #307.
* | Add test capturing failure to parse package names with hyphens. Ref #307Jason R. Coombs2015-03-201-0/+10
|/
* Remove unused parameter.Jason R. Coombs2015-03-151-2/+2
|
* Default to 755 permissions since checks later on test for non-group-writabilityVolker Braun2015-03-051-1/+1
|
* ensure py_version and platform are str in hashcmpMinRK2015-02-051-2/+2
| | | | avoids unorderable None, str when sorting dists on Python 3
* Add __ne__ method to Requirement classMarc Abramowitz2015-03-061-0/+3
| | | | | | It seems like if it has an `__eq__` method, it should probably have a `__ne__` method. I ran into this while working on pip -- see https://github.com/pypa/pip/pull/2493#discussion_r25955295
* Update warning to clarify when and how the instance should be use directly ↵Jason R. Coombs2015-01-291-2/+4
| | | | or what to do otherwise.
* Use pytest.raises for brevity and clarity of purpose.Jason R. Coombs2015-01-061-3/+2
|
* Use pytests parametrize to create separate tests for each specJason R. Coombs2015-01-061-6/+6
|
* Refactor for clarityJason R. Coombs2015-01-061-3/+2
|
* Equal signs are now allowed in entry point names.Jason R. Coombs2015-01-061-1/+1
|
* Restore support for printable characters in the entry point name. Fixes #327.Jason R. Coombs2015-01-062-1/+12
|
* Add EntryPoint.resolve and deprecate most usage of EntryPoint.load. Removed ↵11.3Jason R. Coombs2015-01-051-8/+14
| | | | EntryPoint._load.
* Merge deprecation warning fixJason R. Coombs2015-01-051-0/+1
|\
| * Bump stacklevel to 2 to inform the caller of the issue.Jason R. Coombs2015-01-051-0/+1
| |
* | Fix test failure on Python 2Jason R. Coombs2015-01-041-0/+2
| |
* | Add test capturing expectation when dependencies conflict during resolve. ↵Jason R. Coombs2015-01-041-0/+25
| | | | | | | | Fixes #281
* | Normalize whitespaceJason R. Coombs2015-01-041-4/+6
| |
* | Only raise a ContextualVersionConflict when dependent requirements are present.Jason R. Coombs2015-01-041-1/+11
| |
* | No need to mutate the set to a list; just use the set.Jason R. Coombs2015-01-041-2/+2
| |
* | Split out ContextualVersionConflictJason R. Coombs2015-01-041-11/+18
| |
* | Test the report methodJason R. Coombs2015-01-042-7/+32
| |
* | Add test for WorkingSet.find() when a conflict occurs.Jason R. Coombs2015-01-041-0/+16
| |
* | Remove unreachable branchJason R. Coombs2015-01-041-2/+1
| |
* | Add another assertion on the exception.Jason R. Coombs2015-01-041-1/+4
| |
* | Extract variableJason R. Coombs2015-01-041-4/+2
| |
* | Remove try/except/fail - Exceptions are failures by default.Jason R. Coombs2015-01-041-4/+2
| |
* | And again in doctestJason R. Coombs2015-01-041-2/+1
| |
* | Use except/as, now supported by Python 2.6Jason R. Coombs2015-01-041-6/+4
| |
* | Moved test_resources and test_pkg_resources to pkg_resources package.Jason R. Coombs2015-01-033-0/+719
| |
* | Remove remaining reference to setuptools from test_resourcesJason R. Coombs2015-01-031-0/+2
| |
* | Upgrade packaging lib to 15.0Donald Stufft2015-01-024-12/+75
| |
* | Fix regression in entry-point name parsingIan Cordasco2015-01-021-1/+1
|/ | | | See #323 for more details.
* Officially deprecated EntryPoint.load(require=False).Jason R. Coombs2014-12-311-0/+6
|
* Don't allow imports relative to the pkg_resources module.Jason R. Coombs2014-12-311-2/+1
|
* Extract _load method which is the same as calling .load(False).Jason R. Coombs2014-12-311-0/+3
|
* Rename variable for clarityJason R. Coombs2014-12-311-2/+2
|
* Return value directlyJason R. Coombs2014-12-311-2/+1
|
* Use reduce to retrieve attributes. Reuse error from AttributeError when ↵Jason R. Coombs2014-12-311-5/+4
| | | | translating to ImportError.
* Correct implementation fixing failing testsJason R. Coombs2014-12-311-2/+3
|