summaryrefslogtreecommitdiff
path: root/pkg_resources/tests/test_resources.py
Commit message (Collapse)AuthorAgeFilesLines
* Mark failing tests as xfail until they can be resolved. Ref #591.Jason R. Coombs2016-07-231-0/+5
|
* Always inject extra into the environment when evaluating markers. Fixes #544.Jason R. Coombs2016-04-151-9/+1
|
* Merge pull request #533 from s-t-e-v-e-n-k/compare-ep-attributesJason R. Coombs2016-04-071-1/+4
|\ | | | | Stop comparing repr()'s in TestEntryPoint
| * Stop comparing repr()'s in TestEntryPointSteve Kowalik2016-04-061-1/+4
| | | | | | | | | | | | | | | | | | In Python 3, the default order of iterables can not determined, so comparing the repr of objects that include tuples is not static like it is under Python 2. Compare the attributes of EntryPoint instead, making sure to sort .attrs and .extras. Closes: #526
* | Adjust expectation that 'extra' is not in the marker evaluation if no extras ↵Jason R. Coombs2016-04-071-3/+5
| | | | | | | | demanded the requirement.
* | Extract _ReqExtras to encapsulate that functionality and decouple it from ↵Jason R. Coombs2016-04-071-4/+19
| | | | | | | | WorkingSet.
* | Reinstate the or guard in WorkingSet._markers_passSteve Kowalik2016-04-061-0/+6
|/
* Restore evaluating environment markers in WorkingSetSteve Kowalik2016-04-051-5/+74
| | | | | | | | | | Correctly deal with parsed requirements that include extras as a marker inside WorkingSet that are populated from METADATA inside wheels, like we get from pip>=7. This partially reverts commit 04d10ff025e1cbef7ec93a2008c930e856045c8a. Closes: #523
* Drop unused safe_repr functionSteve Kowalik2016-04-011-11/+0
| | | | | When _assertIn was removed from test_resources, the safe_repr function was not dropped, leaving it with no callers, so drop it.
* Bypass environment marker evaluation in requirements resolution. Ref #523.Jason R. Coombs2016-03-311-0/+1
|
* Extract separate test for test_environment_markers in test_resources. Remove ↵Jason R. Coombs2016-03-311-2/+6
| | | | unused variable.
* Merge https://bitbucket.org/pypa/setuptools/pull-requests/185.Jason R. Coombs2016-03-291-0/+5
|\
| * Support environment markers in *_requires, via WorkingSet.Steve Kowalik2016-03-241-0/+5
| |
* | Update most bitbucket references to point to Github now. Fixes #422.Jason R. Coombs2016-03-291-1/+1
|/
* Add in a test that checks comparsion of Requirement with markersSteve Kowalik2016-03-081-0/+22
|
* Change pkg_resources.Requirement to be a subclass of packagingSteve Kowalik2016-03-071-1/+1
|
* Shift requirement parsing inside RequirementSteve Kowalik2016-03-011-12/+13
|
* Add test capturing expectation that spaces between version specifiers should ↵Jason R. Coombs2016-02-251-0/+4
| | | | be allowed. Ref #502.
* Add test capturing previously allowed usage. Ref #499.Jason R. Coombs2016-02-191-0/+3
|
* Correct tests under both Python 2 and 3.Steve Kowalik2016-02-191-2/+2
|
* Merge from master, resolving conflicts.Steve Kowalik2016-02-161-33/+92
|\
| * Fix failing tests on Python 220.0Jason R. Coombs2016-02-071-0/+2
| |
| * Fix syntax errors on Python 2Jason R. Coombs2016-02-071-1/+2
| |
| * Remove unused importsJason R. Coombs2016-02-031-2/+0
| |
| * Extract ns_str as class attributeJason R. Coombs2016-02-031-5/+5
| |
| * Use consistent numbering for clarity.Jason R. Coombs2016-02-031-3/+3
| |
| * Use py.path objects for cleaner setupJason R. Coombs2016-02-031-15/+15
| |
| * Extract variable for readabilityJason R. Coombs2016-02-031-3/+5
| |
| * Use py.path objects for cleaner setupJason R. Coombs2016-02-031-16/+12
| |
| * Rewrite setup/teardown methods as pytest fixtures, encapsulating concepts ↵Jason R. Coombs2016-02-031-42/+52
| | | | | | | | for clarity. Incidentally, this also fixes #231.
| * Merged in embray/setuptools (pull request #167)Jason R. Coombs2016-01-161-6/+54
| |\ | | | | | | | | | Possible fix for #207
| | * Sort __path__ entries for namespace packages according to their orderErik Bray2016-01-061-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-311-6/+20
| | | | | | | | | | | | 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-161-1/+3
| |/
* | Correct tests after the move to packaging 16.1.Steve Kowalik2016-02-091-1/+1
|/
* Use six in pkg_resources.Jason R. Coombs2016-01-041-3/+2
| | | | | --HG-- branch : feature/issue-229
* Use the same technique in pkg_resources, relying on an 'extern' module to ↵Jason R. Coombs2015-12-311-2/+1
| | | | | | | resolve the conditional import. --HG-- branch : feature/issue-229
* Update vendoring technique to match that used for packaging. Ref #229.Jason R. Coombs2015-12-311-3/+1
| | | | | --HG-- branch : feature/issue-229
* Merge with master. Ref #229.Jason R. Coombs2015-12-311-20/+73
|\ | | | | | | | | --HG-- branch : feature/issue-229
| * Backed out changeset 6e045b2724d0 and 56d7ea3d42b2. Ref #307.Jason R. Coombs2015-03-201-10/+0
| |
| * Add test capturing failure to parse package names with hyphens. Ref #307Jason R. Coombs2015-03-201-0/+10
| |
| * 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-061-0/+11
| |
| * 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
| |
| * Test the report methodJason R. Coombs2015-01-041-3/+3
| |