Dan Ryan
00ebba4b58
Switch to tablib and try again
...
Signed-off-by: Dan Ryan <dan@danryan.co >
2018-03-29 22:00:44 -04:00
Dan Ryan
4043ee57f6
Merge branch 'jtratner/fix-scripts-quoting' into locking-handle-eggs
2018-03-29 21:12:13 -04:00
Jeff Tratner
15c19ee001
Make run easier to understand
2018-03-29 17:57:04 -07:00
Dan Ryan
15bb50cfa4
Add some markers
...
Signed-off-by: Dan Ryan <dan@danryan.co >
2018-03-29 20:43:27 -04:00
Dan Ryan
139d8bd553
Merge branch 'master' into locking-handle-eggs
2018-03-29 09:32:20 -04:00
Jeff Tratner
133417a941
Remove extraneous is_vcs calls
...
1. is_vcs requires (req.path or req.uri) to be truthy.
2. (req.path or req.uri) would be true in first if statement
Thus if you have:
```
if (req.uri or req.path or ...) and not req.vcs
elif req.vcs or is_vcs(req.path)
```
if `is_vcs(req.path)` is Truthy, then the first if clause must be
truthy, so it's unnecessary.
Also add a quick test to confirm that originating purpose for that check
is now handled otherwise.
2018-03-29 09:32:04 -04:00
Jeff Tratner
5de48b4800
Better shell quoting
...
1. Only use split() when we actually come in from CLI (possibly never
need to do that at all)
2. Add some additional test cases to cover quoting.
3. Better error message in case of missing executable pulled from a run
script.
E.g.:
```
[scripts]
random = "myexecutable a b c"
myexecutable = "echo 5"
```
```
Error: the command myexecutable (from random) could not be found within PATH.
```
vs. previous, which had a slightly disingenous error message.
```
Error: the command myexecutable could not be found within PATH or Pipfile's [scripts].
```
2018-03-29 00:55:08 -07:00
Jeff Tratner
7afa528c0f
Fix small test case typo
2018-03-28 23:54:00 -07:00
Dan Ryan
71896d1f20
Skip python 3 only test on py2
...
Signed-off-by: Dan Ryan <dan@danryan.co >
2018-03-29 00:48:01 -04:00
Dan Ryan
14cdff2c0b
Include markers when they are included at top lvl
...
Signed-off-by: Dan Ryan <dan@danryan.co >
2018-03-29 00:13:20 -04:00
Dan Ryan
4a425c3429
Add regression tests for resolver changes
...
Signed-off-by: Dan Ryan <dan@danryan.co >
2018-03-28 23:00:38 -04:00
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
luz.paz
63f7e988f7
Misc. typos
...
Found via `codespell -q 3`
2018-03-27 13:42:27 -04:00
Dan Ryan
e4bdc0fb5b
Add randomwords and missing requests artifacts
2018-03-27 01:17:04 -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
Mariusz Masztalerczuk
0ac8eb3f9c
Fix problem with incorrect import path
2018-03-21 12:40:28 +01:00
kennethreitz
e8e38d7929
Merge pull request #1769 from dvf/dvf/parse-environment-variables
...
Allow values in Pipfile to consume Environment Variables
2018-03-20 08:16:31 -04:00
Asher Foa
31581b3f0c
fix prepare_pip_source_args not properly handle user & pw in repo URLs
2018-03-17 16:25:44 -07:00
Daniel van Flymen
adbaf4a0e9
Add tests
2018-03-16 18:34:45 -04: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
kennethreitz
c2f7f697ee
black
...
https://github.com/ambv/black
2018-03-14 17:00:29 -04: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
055e62009c
these were horrible, need to be re-written
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-11 10:24:49 -04:00
kennethreitz
54e808fd67
test
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-11 07:55:58 -04:00
Dan Ryan
78854115f0
Don't shellquote list-type subprocess input
2018-03-08 21:56:07 -05:00
Dan Ryan
634c71eaeb
Vendor pew under script name pewtwo
...
- Breaks dependency on psutil
2018-03-08 12:07:47 -05:00
kennethreitz
4c92159a92
oops
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-06 10:14:14 -05:00
kennethreitz
edd020ed99
fix
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-06 09:46:28 -05:00
kennethreitz
4f17626637
prototype for mocking json responses
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-06 09:41:12 -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
87e777343f
new artifacts for pypi
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-06 08:50:04 -05:00
kennethreitz
11b5952f9a
fix
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-05 14:42:50 -05:00
kennethreitz
bbd5a7fd47
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-05 14:38:32 -05:00
kennethreitz
6b1c688c16
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-05 14:36:56 -05:00
kennethreitz
8264b762f6
cleanup
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-05 14:36:22 -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
833093e361
only run windows tests
...
Signed-off-by: Kenneth Reitz <me@kennethreitz.org >
2018-03-05 13:41:07 -05:00