Commit Graph

183 Commits

Author SHA1 Message Date
Dan Ryan 7697541dc0 Merge branch 'master' into locking-handle-eggs 2018-03-28 18:00:01 -04:00
Jeff Tratner b0445a2c0b Lint fixes
Fix up tests a little more

Use temp_environ rather than monkeypatch
2018-03-27 15:30:22 -04:00
Tzu-ping Chung f8499281e8 Ensure locking works with eggs
Patch notpip to recognise .egg formats on PyPI. Close #1849, ref #1850.
2018-03-27 12:16:47 +08:00
Tzu-ping Chung c590e80449 Some tests for the scripts section 2018-03-26 15:48:06 +08:00
Jeff Tratner ebf5ed843b Detect .venv at project root when in subdirectory
Also remove `PIPENV_SHELL_COMPAT` which appears to be no longer used.

(confirmed test case fails without this change and passes with it).
2018-03-23 15:35:12 -07:00
Jeff Tratner 8f79f13ea4 Split hash function into two 2018-03-23 00:11:34 -07:00
Jeff Tratner 1f31f40f2b clean up hash change calc
Add test case for pipenv hash changing
2018-03-23 00:11:34 -07:00
Tzu-ping Chung e51b5d0996 Add tests for environment marker precedence logic
Close #1757.
2018-03-23 01:56:27 +08:00
Tzu-ping Chung 49cb2b087a Add test to go through the editable check code path
This would have failed without the previous commit.
2018-03-21 23:32:58 +08:00
Jeff Tratner c7e1abab24 Fix error on empty virtualenv and pipenv clean
Obv could also *not* create the empty virtualenv when running pipenv
clean, but in general can imagine this also occurring if you created an
empty virtualenv and then tried to do clean within it.

(installed packages was [''])
2018-03-16 13:58:59 -07:00
Tzu-ping Chung 4d41f918ac Better testing basic outputs 2018-03-15 00:53:31 +08:00
Tzu-ping Chung ae512d2fee chdir when testing .env loading
Fix #1666. This also fixes the .env overwriting so we can get rid of the
recovering fixture!
2018-03-15 00:53:31 +08:00
Tzu-ping Chung d0292145f9 Restore .env after testing 2018-03-14 18:24:21 +08:00
kennethreitz 2ed7fb6d6b don't support all extras
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-12 09:09:28 -04:00
kennethreitz de972255e6 remove invalid tests 2018-03-11 12:24:28 -04:00
kennethreitz 54e808fd67 test
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-11 07:55:58 -04:00
Dan Ryan 634c71eaeb Vendor pew under script name pewtwo
- Breaks dependency on psutil
2018-03-08 12:07:47 -05:00
kennethreitz 38edd3418e cleanup test
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 09:23:01 -05:00
kennethreitz 9d97805fd8 new test, modifications to pip
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 09:20:03 -05:00
kennethreitz 2cc55447d5 remove completion test
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:23:31 -05:00
kennethreitz 15ba4bd2a7 wow
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-05 14:02:48 -05:00
kennethreitz bd17544a51 non
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 20:26:58 -05:00
kennethreitz 61fa011ae4 non-determinism
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 20:19:37 -05:00
kennethreitz 50a5cff20e refactor
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 16:41:29 -05:00
kennethreitz 43e48f8542 clean things up
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 16:36:28 -05:00
kennethreitz 7bdde8afac fix broken test
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 13:27:07 -05:00
kennethreitz ad115887a2 flask
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 12:26:34 -05:00
kennethreitz cdd154f8c8 more artifacts
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 11:59:31 -05:00
kennethreitz 5b57403eef cleanup
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 11:36:21 -05:00
kennethreitz 0446673682 fixes
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 11:04:42 -05:00
kennethreitz 569da07afe add lots of pypis 2018-03-04 10:39:43 -05:00
kennethreitz bf54ce94f0 working! getting there
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 10:25:24 -05:00
kennethreitz 48452e6f84 try this
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-04 07:48:23 -05:00
Jace Browning 8469499e99 Assume PIPENV_VENV_IN_PROJECT when a local virtual environment exists 2018-02-24 15:10:59 -05:00
Dan Ryan 19de332644 Broad fixes to testing infrastructure
- Add custom rmtree function to handle windows rms
- Only warn on failure to remove a tree
- This should mitigate a large portion of our windows test failures
- After sufficiently substantial time investment I am currently of the
opinion that there is no real elegant way to handle this (I have tried
programmatically finding all processes with open file handles,
terminating them with a 500ms retry and a 15s timeout)
- Close and handle tempfiles in resolvers
- Only create tempfiles for non-editable deps
- set umask and `PIP_SRC` for test context
- Warn instead of throwing exceptions
- Backport TemporaryDirectory for python2/3 compatibility and reliance
on custom rmtree error handling
- Vendor backport of `weakref.finalize` for
`TemporaryDirectory.cleanup()`
- Add PyTest fixtures to wrap and cleanup `PIP_SRC` directory at the module level to avoid permissions errors on appveyor
- Add resource warnings for PY2 compat
Lock instead of installing complex resolver test
- Add a special condition for allowing access errors
2018-02-23 16:40:24 -05:00
kennethreitz c359a8fcef remove update test
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-23 15:08:39 -05:00
kennethreitz a21160acd1 remove flake8
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-23 14:53:14 -05:00
kennethreitz e16a19eece remove bunk test
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-20 07:53:18 -05:00
luz.paz 06f3b1a291 MIsc. comment and doc typos
Found via `codespell -q 3 --skip="./patched"`
reverted
2018-02-18 13:58:14 -05:00
Dan Ryan 92e58fe97e Allow tests with PermissionErrors to pass 2018-02-04 22:27:18 -05:00
Dan Ryan eea5d57b9f Fix VCS requirement generation
- Fixes issues when turning vcs lines into requirements
- At some point there was a regression around this which treats them as
normal paths
- This now follows pip practices as well
- Big todo: clean up duplicate functionality / break out logic for
requirements parsing
- Adds regression test for this case
2018-02-04 22:27:10 -05:00
Daniel Watkins 3ff0b6f549 Explicitly cause dependency resolution failure in the test
This also moves to using projects that are more closely related to this
one as the examples.
2018-02-04 22:25:45 -05:00
Daniel Watkins 88e72d56d1 Make test assertions match the test name more closely
This updates
test_editable_vcs_install_in_pipfile_with_dependency_resolution_doesnt_traceback
to check (a) that dependency resolution was triggered, and (b) that
there was no traceback (rather than just the specific traceback we are
currently seeing).
2018-02-04 22:25:45 -05:00
Daniel Watkins 6e811dc7a2 Add test that reproduces #1240 2018-02-04 22:25:44 -05:00
Dan Ryan bc5bb39020 More thorough checks before resolving files
- Fixes #1225
- Add checks for Wheel files and archive files specifically
- Adopts egg-fragment parsing for local file paths to allow naming of
filesystem paths as well
- Adds these checks both to the get_requirement() function and the
is_installable_file() function
2018-02-04 22:25:44 -05:00
kennethreitz 9c4482649b fix tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-02-04 14:19:07 -05:00
Nate Prewitt 72081cca22 Merge pull request #1363 from pypa/hotfix/1097_remerge
#1097 remerge
2018-01-27 16:51:13 -08:00
Dan Ryan 9e8d03970a Update test assertions for proper path casing
- Aligns tests with #1221 on windows
2018-01-27 13:08:34 -05:00
Dan Ryan c92693c14f Undo all the cleanup, fix tests 2018-01-27 02:32:15 -05:00
Dan Ryan 0d622b219d Test --system flag 2018-01-27 02:12:56 -05:00