summaryrefslogtreecommitdiff
path: root/pkg_resources/tests
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
|
* Fix typo, correcting failures on late Pythons when mock is not already ↵Jason R. Coombs2016-02-191-1/+1
| | | | installed.
* Correct tests under both Python 2 and 3.Steve Kowalik2016-02-191-2/+2
|
* Merge from master, resolving conflicts.Steve Kowalik2016-02-162-33/+94
|\
| * 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-162-1/+5
| |/
* | Correct tests after the move to packaging 16.1.Steve Kowalik2016-02-091-1/+1
| |
* | Merge from default.Steve Kowalik2016-01-071-6/+4
|\ \ | |/
| * 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-313-20/+145
| |\ | | | | | | | | | | | | --HG-- branch : feature/issue-229
| * | Merge with masterJason R. Coombs2015-01-031-1/+3
| | | | | | | | | | | | | | | --HG-- branch : feature/issue-229
* | | Destroy MarkerEvaluation for being pointless, fix two silly mistakes in ↵Steve Kowalik2016-01-071-7/+5
| | | | | | | | | | | | tests and update packaging changes.
* | | First shot at removing usage of _markerlib and switching to the PEP 508 ↵Steve Kowalik2015-12-101-6/+2
| |/ |/| | | | | implementation in packaging.
* | 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.
* | 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
| |
* | Add test capturing possible violation in expectation due to new Python ↵Jason R. Coombs2015-06-071-0/+16
| | | | | | | | 2.7.10 release. Ref #380.