1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

723 commits

Author SHA1 Message Date
Paul Moore
dcc90c0e49 Fix test that expected a specific error message 2018-07-31 16:21:19 +01:00
Pradyun Gedam
b13cee6388
Merge branch 'master' into refactor/pip-cli-subpackage 2018-07-30 09:52:18 +05:30
Pradyun Gedam
1694a5f1bf
Move status_codes to pip._internal.cli 2018-07-30 09:43:53 +05:30
Pradyun Gedam
21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam
4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Pradyun Gedam
8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +05:30
Pradyun Gedam
531be4f886
Merge pull request #5571 from bstrdsmkr/pep508_urls_as_deps
Allow PEP508 url dependencies in install_requires
2018-07-23 15:13:42 +05:30
Pradyun Gedam
9a076e73ab
Add test for rejecting pyproject.toml with empty build-system table 2018-07-21 16:23:59 +05:30
Pradyun Gedam
c18f19a6a4
Don't warn if pyproject.toml does not contain build-system.requires 2018-07-21 12:58:27 +05:30
Pradyun Gedam
0bd01d9462
Merge pull request #5336 from benoit-pierre/src_build_reqs_in_pep518
PEP 518: enable source installs for build dependencies
2018-07-20 09:36:52 +05:30
Pradyun Gedam
a84dde5982
Update test to check newer logic 2018-07-15 17:15:35 +05:30
Pradyun Gedam
e6e0a14b68
Merge pull request #5523 from pradyunsg/deprecations
Remove items slated for removal in pip 11.0
2018-07-15 16:57:57 +05:30
Bstrdsmkr
c71ac73102 Allow PEP508 url dependencies in install_requires 2018-07-11 08:23:49 -04:00
Pradyun Gedam
e3b06f9e51
Isolate when pyproject.toml does not have build-system.requires 2018-07-09 07:48:36 +05:30
Benoit Pierre
06fb565f0c tests: drop package4 test data
No need for a wheel of `simple` now that build dependencies support source installs.
2018-06-26 10:40:23 +02:00
Benoit Pierre
43b8ed4945 detect fork-bombs during build dependencies installs 2018-06-26 10:40:23 +02:00
Kexuan Sun
14fe337bcf Improve autocompletion function on file name completion (#5125) 2018-06-21 22:59:31 +05:30
Pradyun Gedam
52782f0547
Remove the "legacy" format for 'pip list' 2018-06-21 21:19:17 +05:30
Pradyun Gedam
e8a56683d3
Merge pull request #5512 from pradyunsg/feature/refuse-non-compliant-pyproject
Start warning on non compliant pyproject.toml files and rejecting obviously incorrect ones
2018-06-20 15:25:04 +05:30
Pradyun Gedam
4fedc45bbb
Merge pull request #5489 from jdufresne/https
Update doc and comment URLs to https where available
2018-06-20 12:49:35 +05:30
Pradyun Gedam
2b68c7983e
Only disable isolation when build-system.requires is skipped 2018-06-19 16:27:07 +05:30
Pradyun Gedam
fdd5101128
Cleanup Tests 2018-06-19 16:27:07 +05:30
Pradyun Gedam
a25cb53d02
Add tests to verify refusal of non PEP 518 compliant pyproject.toml 2018-06-19 16:27:07 +05:30
Adrien Morison
c16ff34296 Clearer msg for already installed deps when updating (#5319) 2018-06-19 12:16:43 +05:30
Pradyun Gedam
daa3163d08
Restrict install time dependency warnings to directly-dependant packages 2018-06-15 11:29:36 +05:30
Pradyun Gedam
0983d0da6c
Update failing tests for pytest changes 2018-06-14 16:37:10 +05:30
Jon Dufresne
9c4bd6d5eb Update doc and comment URLs to https where available 2018-06-13 09:00:42 -07:00
Pradyun Gedam
54722aa7ec
Remove unused imports 2018-06-13 13:17:30 +05:30
Pradyun Gedam
030d48a25e
Merge pull request #5427 from benoit-pierre/fix_some_tests
Fix some tests
2018-06-06 13:08:53 +05:30
Benoit Pierre
1335eba819 tests: tweak test_pip_wheel_with_user_set_in_config (#5428)
To reduce failures when connection to PyPI is [flaky](https://ci.appveyor.com/project/benoit-pierre/pip/build/1.0.293/job/qohehq43vuwiek1p#L164).
2018-05-31 11:42:10 +05:30
Pradyun Gedam
b120d24e4d
Add @pytest.mark.network to a test that did not have it (#5459) 2018-05-30 22:49:43 +05:30
Pradyun Gedam
8cfed25602
Use python -m for pip modifying test 2018-05-30 15:57:48 +05:30
Benoit Pierre
f64713226e tests: fix test_pip_wheel_fail_cause_of_previous_build_dir 2018-05-19 12:51:27 +02:00
Benoit Pierre
72820a6100 tests: fix test_cleanup_prevented_upon_build_dir_exception 2018-05-19 12:51:27 +02:00
Benoit Pierre
ca4e2ad6ad improve handling of PEP 518 build requirements
Offload more work to the underlying pip command used to install the
build requirements, so there's no need to duplicate code to handle
environment markers/extras. This is done by setting the correct options
from the finder passed in argument to `_install_build_reqs`.
2018-05-18 23:45:55 +02:00
Benoit Pierre
04874e24fd tests: improve PEP 518 tests
- avoid hitting the index: use `common_wheels`/`script.pip_install_local`
- use `script.pip(..., use_module=True)` to simplify some tests
- improve `test_pep518_uses_build_env` parametrization
- simplify `test_pep518_with_user_pip`: we only need to check build
  requirements can be installed, so no need for testing with both
  `install` and `wheel` command
- fix `test_pip_wheel_with_pep518_build_reqs_no_isolation`: building
  pep518-3.0 without isolation should fail if the build requirements
  are not installed.
2018-05-18 23:45:55 +02:00
Benoit Pierre
3de9bdb7f2 tests: tweak simplewheel test distribution
- change module name to prevent conflicts with other distributions
- add a `__version__` field for version checks
2018-05-18 23:40:15 +02:00
Donald Stufft
90b3db476f Drop support for Python 3.3 2018-05-17 13:34:48 -04:00
William T Olson
8d2068906b Rename manylinux2 tag as manylinux2010
This reflects the change in the tag name in PEP 571.
2018-05-15 10:16:35 -04:00
Mark Williams
fde4a826b9 Preliminary manylinux2 support. 2018-05-15 09:09:56 -04:00
Daniel Shaulov
d67d98dd91 Add a --prefer-binary flag. (#5370)
The flag makes pip prefer an older but valid binary distributions over a newer source distributions.

Fixes #3785.
2018-05-11 11:17:32 +05:30
Benoit Pierre
02b678f557 fix PEP 518 support when pip is installed in the user site
Do not use the build environment isolation during the build dependencies installation.
2018-04-16 22:58:44 +02:00
Donald Stufft
b2c5c678af Skip test due to Warehouse behavior change 2018-04-16 15:59:47 -04:00
Donald Stufft
275ab7c3f5 Switch pip to use Warehouse by default 2018-04-16 15:54:11 -04:00
Paul Moore
2ae420e8e9 Style checker line length 2018-04-10 18:30:07 +01:00
Paul Moore
22c8656b57 Don't warn about script locations if --target is specified 2018-04-10 18:07:53 +01:00
Benoit Pierre
6da1d9e47c fix PEP 518 support
* fix build environment handling when using PyPy
* do use the build environment for all build commands
* allow installing and building a wheel of a PEP 518 enabled
  package without prior installation of setuptools and/or wheels
* fix check for minimum supported requirements for PEP 518 support:
  - correctly handle complex requirements
  - both setuptools and wheels are needed
2018-04-08 14:06:11 +02:00
Dustin Ingram
9c97937e74
Add failing test for short-SHA refs 2018-04-03 14:32:48 -05:00
Pradyun Gedam
ecc1072ba0
Merge pull request #5146 from pradyunsg/fix/check-accept-prerelease-versions
Accept prerelease versions when checking conflicts
2018-04-03 23:18:10 +05:30
Stephan Erb
72b3195f0e Fix name normalization used for install warnings 2018-04-02 20:17:20 +02:00
Pradyun Gedam
1862d2f887
Accept prerelease versions when checking conflicts 2018-04-02 21:35:49 +05:30
Pradyun Gedam
da2d7ce5b5
Merge branch 'master' into resolver/warn-after-resolution 2018-03-30 13:39:22 +05:30
Pradyun Gedam
f286fb8bdd
pip check should care about the markers 2018-03-28 13:44:21 +05:30
Pradyun Gedam
cde3f4c354
Verify returncode in all pip check tests 2018-03-28 13:40:47 +05:30
Pradyun Gedam
3d7fbb31a9
Merge branch 'master' into resolver/warn-after-resolution 2018-03-27 20:10:56 +05:30
Paul Moore
307503494e
Merge pull request #4956 from segevfiner/complete-short-opts
Add auto completion of short options
2018-03-26 15:51:25 +01:00
Paul Moore
17e0d115e8 Fix for issue 5085 (--user set in config causes pip wheel to fail) 2018-03-25 18:22:18 +01:00
Phil Pennock
cb529e677b reduce new pylint complaints
Mostly indentation complaints, plus an unused test parameter, fixed.
Leaves one new pylint complaint, which is about a test function naming
issue which affects every test.
2018-03-20 17:32:22 -04:00
Phil Pennock
23cd8f6899 Keep install options in requirements.txt from leaking
The list of install options passed into the setup routine is mutable,
passed by reference, so adding items for "this package" to that list
mutates the options for all subsequent packages.

Isolate the lists before mutating them.

Includes a functional test, which has been confirmed to fail without
this fix.

Fixes #3763
Fixes #4453
Fixes #5089
2018-03-20 16:23:34 -04:00
Paul Moore
834c1f12d5 Remove test_basic_install_environment_markers.
This test relies on buggy setuptools behaviour (keeping
requirements with environment markers in install_requires,
rather than moving them to extras_require) which has been
fixed in recent setuptools versions.
2018-03-20 13:48:15 +00:00
Pradyun Gedam
c08d4cc806
Add --no-build-isolation for disabling build isolation 2018-03-09 00:01:26 +05:30
Pradyun Gedam
851518b17a
Merge branch 'refactor/reduce-action-at-distance' into resolver/warn-after-resolution 2018-03-03 02:51:37 +05:30
Paul Moore
34cc364903
Merge pull request #4999 from xoviat/pep518-editable
Run setup.py develop inside of PEP 518 build environment
2018-03-02 08:40:17 +00:00
xoviat
76f62b7129 🎨 2018-03-01 12:41:32 -06:00
Segev Finer
1b357e5810 Add tests for auto completion of short options 2018-02-06 00:04:14 +02:00
xoviat
9280d17873 Download setuptools and wheel to packages 2018-01-28 17:10:56 -06:00
xoviat
736cd67d9d Add regression test 2018-01-28 16:44:38 -06:00
Ed Morley
4b81388199 Use log level info when ignoring packages due to environment markers
The use of environment markers implies that the user expects the
packages to not be installed in some cases (eg depending on version
of Python), so the log output shouldn't be classed as a warning,
particularly since this results in it being sent to `stderr` rather
than `stdout`.

Fixes #4876.
2018-01-28 15:36:23 +00:00
Pradyun Gedam
1c911bfbdd
🎨 Make the linters happy again 2018-01-26 11:06:16 +05:30
Pradyun Gedam
3013f743c4
Fix the normalization in test 2018-01-26 08:25:50 +05:30
Pradyun Gedam
2c86cc3237
Add tests related to normalization of names 2018-01-24 18:16:59 +05:30
Pradyun Gedam
045e244b7e
Run pip check in pip install
Also, add --no-warn-conflicts option to allow supressing the error messages generated.
2018-01-24 18:16:18 +05:30
Pradyun Gedam
4c147397ea
Merge branch 'master' into cache/ephem-wheel-cache 2018-01-24 02:15:21 +05:30
Pradyun Gedam
e31d784b41
Rename a few tests to add the word "basic"
This essentially allows me to do an overall check general check by running the tests using pytest's `-k basic` syntax. Given that I like running tests often and that, in general, I make typos more often than changes that break core functionality, I think this will reduce cycle times for me.
2017-12-16 23:43:46 +05:30
Anthony Sottile
e21e2d3f8f Upgrade syntax in ./tests
Changes were automated via https://github.com/asottile/pyupgrade

See #4921
2017-12-14 21:59:41 -08:00
Pradyun Gedam
cd14240529
Merge branch 'master' into cache/ephem-wheel-cache 2017-12-01 19:16:27 +05:30
Pradyun Gedam
8f4f15a5a9
Merge pull request #4881 from pradyunsg/misc/trailing-commas-imports
isort: Include trailing commas
2017-11-24 07:34:14 +05:30
Pradyun Gedam
353a13ddff
isort: Include trailing commas 2017-11-21 13:23:59 +05:30
Pradyun Gedam
8ed4ac1fe6
Another round of https updates (#4870) 2017-11-21 00:53:22 +05:30
Pradyun Gedam
5a8b11cbe4
Improve --no-color and test for it (#4866)
* Improve the --no-color test
* Let the logger decide to not color things
* misc: Move handler name outside dict
2017-11-20 17:18:13 +05:30
Xavier Fernandez
9ff3c18bf2
Merge pull request #4529 from mwilliamson/download-platform-no-deps
Allow download with specific platform and --no-deps
2017-11-17 23:28:16 +01:00
Pradyun Gedam
01d97e71f0
Merge branch 'master' into cache/ephem-wheel-cache 2017-11-17 12:32:40 +05:30
Xavier Fernandez
9e20c3f5b1 Merge branch 'master' into fix_3741 2017-11-07 22:59:26 +01:00
Pradyun Gedam
ce146f6666
tests: don't check the actual sequence in test 2017-11-06 00:52:36 +05:30
Min RK
b734d6e30d test trailing-newline uninstall behavior 2017-11-05 16:49:58 +01:00
Pradyun Gedam
b9feb191a9
Merge pull request #4642 from pradyunsg/feature/idempotent-uninstall 2017-11-05 15:32:32 +05:30
Oz N Tiram
4370a5a37b Add a global option to disable colors (#4739)
* Add a global option to disable colors

 This is a fix for issue #2449

 All it does is simply add a global option --no-color

 Internally it switches ColorizedStreamHandler to StreamHandler if
 this flag is detected.

* Fix lint errors

 * not sure it makes the code more readable though ...

* Fix typo

* Choose logging class before assigning

 * As requested per review
 * Make the code shorter and easier to follow

* Be polite to followers, add commas

* Add functional test for the --no-color output

* Better detection of windows

* Fix fragile tests - can't trust script --quiet

 * The version found in Travis-CI does not respect this flag
   It added a prefix line and suffix line found if one does not
   add the flag --quiet (script from util-linux 2.26.2).

   As such the out  put is:

     Script started on Fri 27 Oct 2017 07:17:30 AM CEST
     \x1b[31mCannot uninstall requirement noSuchPackage, not installed\x1b[0m\n

     Script done on Fri 27 Oct 2017 07:17:31 AM CEST

  With this change, the test should pass, and is hopefully more stable.

* Simplify testing for color or no-color
2017-11-05 15:23:57 +05:30
Pradyun Gedam
cf989e5ace
tests: github repositories should use https (#4838) 2017-11-05 08:54:56 +05:30
Pradyun S. Gedam
8222d788f6
Switch pip uninstall behaviour to be idempotent
pip uninstall no longer aborts if a package is not installed; instead
it prints a warning that the package is not installed and it is
skipping the uninstallation of it for this reason.
2017-11-03 22:28:24 +05:30
Benoit Pierre
288a10b17a tests: fix freeze integration tests on Windows (#4832) 2017-11-03 20:06:47 +05:30
Calvin Smith
4e97d3d5f9 Freeze not installed (#4292, #4293) 2017-10-31 11:13:46 +05:30
Mathieu Bridon
62875be050 Record installed files in a deterministic order
Installed files are recorded by Pip in the order the underlying tool
(Distutils, Setuptools, ...) recorded them.

Unfortunately, at least Setuptools doesn't record them in a
deterministic order in the case of a directory being installed, as it
uses os.walk to find the list of files.

We could fix all those underlying tools to record their files in a
deterministic order in all situations. But fixing it once here in Pip
for all tools is certainly simpler and more future-proof.

This makes the installation more reproducible, and therefore more
verifiable.
2017-10-26 22:29:19 +02:00
Pradyun Gedam
e36bb6d5c3 Merge branch 'master' into cache/ephem-wheel-cache 2017-10-24 15:44:43 +05:30
Chris Jerdonek
b112292068 Address issue #1139: make --force-reinstall not require --upgrade (#4432)
* Add failing tests for issue #1139 re: --force-reinstall.

* Address issue #1139: make --force-reinstall not require --upgrade.

* Address review comments.

* Address @xavfernandez's review comments.

This makes the new tests not require network access.
2017-10-24 00:03:20 +02:00
Pradyun Gedam
1c6a450643
Merge branch 'master' of github.com:pypa/pip into cache/ephem-wheel-cache 2017-10-20 13:51:22 +05:30
Michael Williamson
2d97891497 Allow downloading of sdists for specific platform with --no-deps 2017-10-12 09:30:28 +01:00
Michael Williamson
2f90cd0735 Split tests for download with specific platform 2017-10-12 09:30:28 +01:00
Michael Williamson
70ddf290ed Remove duplicate test case 2017-10-12 09:30:28 +01:00
Dustin Ingram
ff5b2013a0 Use correct executable name for completion command (#4755) 2017-10-12 10:59:53 +05:30
Benoit Pierre
961737ab98 Fix integration tests on Windows (#4769) 2017-10-06 20:51:42 +01:00
Pradyun Gedam
02c219e2c4 Merge pull request #4728 from scop/escseq
Python 3.6 invalid escape sequence deprecation fixes
2017-10-06 17:11:45 +05:30
Chris Jerdonek
adc932b6af Address @xavfernandez's review comments. 2017-10-05 15:52:10 -07:00
Chris Jerdonek
28061a71c5 Fix test after rebasing another time. 2017-10-05 13:35:14 -07:00
Chris Jerdonek
dd58b1427f Update imports after _internal refactoring. 2017-10-05 10:42:04 -07:00
Chris Jerdonek
1f44b2a586 Add failing test to check that no warning gets logged. 2017-10-05 10:42:04 -07:00
Chris Jerdonek
eebd561f00 Some clean-ups. 2017-10-05 10:42:04 -07:00
Chris Jerdonek
15d058edf0 Start using Git.get_revision_sha(). 2017-10-05 10:42:04 -07:00
Chris Jerdonek
85dc157147 Add Git.get_revision_sha() with tests. 2017-10-05 10:40:55 -07:00
Chris Jerdonek
b65dfd2686 Test installing after updating the remote repository. 2017-10-05 10:40:55 -07:00
Chris Jerdonek
da30b7007d Address @pradyunsg's review comment. 2017-10-05 02:32:54 -07:00
Chris Jerdonek
d646aaca72 Choose a better name, and other clean-ups. 2017-10-05 02:32:54 -07:00
Chris Jerdonek
c66ecc73ab Address issue #4507: don't warn when installing from a commit hash (#4674)
* Add failing test for issue #4507.

* Add looks_like_hash() with tests.

* Add news file.

* Address issue #4507 by using looks_like_hash().

* Tweak warning text.

* Fix test after rebasing.

* Remove extra line.
2017-10-05 00:16:10 +02:00
Pradyun S. Gedam
16cda3069d Cleanup and rename test 2017-10-04 18:55:04 +05:30
Pradyun S. Gedam
901f52976a Fix test that broke in the merge 2017-10-04 18:53:55 +05:30
Pradyun S. Gedam
ebf06ceb9d Merge master 2017-10-04 16:58:31 +05:30
Chris Jerdonek
035a2a720b Add failing tests for issue #1130. 2017-10-02 15:33:32 -07:00
Benoit Pierre
d778fc330e Small tests related cleanups (#4703)
* fix test not using temporary directory
* avoid creating a `cache_dir` directory in the source tree
* drop `data` fixture from tests that don't use it

* tests: fix pytest warning
2017-10-02 18:33:52 +01:00
Pradyun Gedam
fc7ca26489 Warn user when installing scripts outside PATH (#4553) 2017-10-02 17:54:37 +01:00
Chris Jerdonek
3e56733df4 Add a RevOptions class (#4707)
* Add the RevOptions class, and test.

* Start using the RevOptions class.

* Add news file.

* Update for mypy.

* Fix test after rebasing.

* Address @xavfernandez's review comments.
2017-10-02 00:21:11 +02:00
Dustin Ingram
8d96363882 Don't assume master branch exists when reinstalling editable package from Git (#4450)
* Add failing test

* Don't assume master branch is default

* Don't expect output to stderr

* Use the 'short ref' instead of the 'full ref'
2017-09-30 00:30:30 +02:00
Ville Skyttä
8fb2b6318f Python 3.6 invalid escape sequence deprecation fixes
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2017-09-15 23:35:45 +03:00
Pradyun S. Gedam
fcfdc0f189 Fix Tests to depend on testpypi 2017-09-12 15:41:52 +05:30
Donald Stufft
95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Pradyun S. Gedam
841f5dfb5c Add support for YAML based test files (#4637) 2017-08-07 12:03:43 -04:00
Xavier Fernandez
1c7876fa49 Fix test_install_no_binary_disables_building_wheels
The only files present in the cache were http cache files from the
pip install wheel command.
2017-07-21 18:08:53 +02:00
Xavier Fernandez
b709b1ef4a Add a common_wheels fixtures providing wheel & setuptools wheels 2017-07-21 18:08:53 +02:00
Thomas Kluyver
ad50ac98ba Install 'wheel' for test that now requires it 2017-07-05 20:06:11 -04:00
Thomas Kluyver
1c03c1b092 Remove string formatting operation 2017-07-05 20:06:11 -04:00
Thomas Kluyver
5610636500 Update test to check for dist-info 2017-07-05 20:06:11 -04:00
Thomas Kluyver
73440ede23 Update another install output test 2017-07-05 20:06:11 -04:00
Thomas Kluyver
a51843a92a Expect temp files on another test 2017-07-05 20:06:11 -04:00
Thomas Kluyver
ad242d179d Update test of install output 2017-07-05 20:06:11 -04:00
Thomas Kluyver
9109322ed5 Expect temp files in another test 2017-07-05 20:06:11 -04:00
Thomas Kluyver
ee67867369 Allow temp files for another test
When there's a previous build directory, no_clean is set
2017-07-05 20:05:24 -04:00
Pradyun S. Gedam
21be153044 Display where pip is looking for packages (#4483)
Display where PackageFinder is looking for packages
2017-06-26 21:45:47 +01:00
Pradyun S. Gedam
c92cbe7aba Add Required-by field to pip show (#4564) 2017-06-26 08:58:52 -04:00
Pradyun S. Gedam
4e47f04fe5 Sort imports 2017-06-13 23:41:31 +05:30
Pradyun S. Gedam
b0ed0f7e9b Merge branch 'master' into configuration-command 2017-06-13 21:26:10 +05:30
Pradyun S. Gedam
9923c1ad7e Sort imports and minor Flake8 changes (#4520)
* Run isort on the codebase

Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests

* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam
bd850c0798 Improve tests 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
f6a7f4b7c4 🎨 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
9430b9376f Also check unset functionality in test 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
6cf5d7db54 Add basic tests for configuration 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
3efb452a2a Use an enum-like attribute to refer to configuration sources 2017-05-20 12:56:13 +05:30
Pradyun S. Gedam
f9990605dc Add non-working test for patched configuration file 2017-05-20 12:56:13 +05:30
Thomas Kluyver
20955812bf Merge branch 'master' into pep518 2017-05-19 11:04:32 +01:00
Pradyun S. Gedam
1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Thomas Kluyver
9c7ed29009 Fix some more tests which build packages from source 2017-05-13 23:47:17 +01:00
Thomas Kluyver
61f89c5e80 Make pep8 happy again 2017-05-13 23:10:34 +01:00
Thomas Kluyver
2e865164ba Find build requirements in the tmp copy of test data folder 2017-05-13 23:05:11 +01:00
Thomas Kluyver
aee5b6c984 Download packages to path, not to file:/// URL 2017-05-13 22:41:15 +01:00
Thomas Kluyver
2b2bdd1567 Download setuptools, wheel during tests
Rather than storing wheels in the test data directory
2017-05-13 19:51:38 +01:00
Thomas Kluyver
1164677d05 Merge branch 'pep518' of github.com:takluyver/pip into pep518 2017-04-26 13:45:48 +01:00
Thomas Kluyver
65585b962e Allow temp files in test of --no-clean option 2017-04-26 13:38:13 +01:00
Thomas Kluyver
034efe5f2b Let pip look in packages directory for 'wheel -e' test 2017-04-13 10:56:41 +01:00
Dustin Ingram
0eb8033808
Add failing test for installing from git refs 2017-04-07 09:34:27 -04:00
Xavier Fernandez
4ee868553c Merge pull request #4208 from frame-technology/relative-file-paths
Support relative paths for file links.
2017-04-07 10:02:48 +02:00
Donald Stufft
88fa958db2 Merge pull request #4224 from kuzmiigo/fix-search-latest-version
Fix the latest version number in search results
2017-04-06 18:18:06 -04:00
Brandon L. Reiss
1902760220 Fix egg= param in relative path tests
Also, reduce the number of test cases because these tests take too long.

The issue is that the setup and teardown of the test environment takes a
long time, and in order to reuse the same test environment, we must
perform install/uninstall cycles to test different URL and path formats.

A better approach might be to generate `FSPkg` using a function that
writes the `setup.py` and `__init__.py` files to a new directory. The
test packages would be easy to generate and save the uninstall time.

For now, we reduce the number of URL/path formats tested, since the
previous test coverage was even more limited.
2017-04-06 09:49:57 -04:00
luojiebin
d0c0cc9e80 Fixed issue #949 (#4414)
* Showed installers when list command runs with -vv option

* Added news entry

* Updated code to show both location and installer of a package when '-v' is used

* Removed installer from freeze format

* Moved get_installer function to pip.utils.packaging
2017-04-06 15:16:18 +02:00
Brandon L. Reiss
c932706bbe Split relative paths tests to avoid timeout
Tests are timing out and also not following requirements/install test
factorization. Split to conform to test organization and to prevent
test timeout.
2017-04-05 18:38:26 -04:00
Brandon L. Reiss
97667d55f1 Fix from PR comments.
Responding to comments from @xavfernandez.
2017-04-05 12:33:48 -04:00
Brandon L. Reiss
f4f67ea5d2 Add install relative path test. 2017-04-05 11:58:21 -04:00
Luo Jiebin
5394bc744f Added test for verbose option of list command 2017-04-02 19:00:50 +08:00
Thomas Kluyver
8a9d0493e7 Use finder to find build deps to install 2017-04-01 19:29:47 +01:00
Thomas Kluyver
f257e85d8a Try to fix pep518 test 2017-04-01 19:29:47 +01:00
Thomas Kluyver
b4f65bfc7c Try adding smoketest of pep518 build dependency installation 2017-04-01 19:29:47 +01:00
Donald Stufft
ee53f58079 Merge pull request #4379 from alex/in-memory-functional-pip-testing
Refs #4377 -- hack job for initial functional testing in memory
2017-03-31 23:29:39 -04:00
fiber-space
fa7aeb6cc8 Fixes destination directory of data_files when 'pip install --target' is used (#4092) (#4152) 2017-03-26 23:55:50 +02:00
Xavier Fernandez
49f259814f tests: addapt test_install_quiet
-qqq is now needed to hide warnings
2017-03-26 17:39:32 +02:00
Alex Gaynor
ef7db41728 Do the monkey patch instead 2017-03-26 11:17:02 -04:00
Alex Gaynor
ca19d0d572 Refs #4377 -- hack job for initial functional testing in memory 2017-03-26 10:54:32 -04:00
Donald Stufft
78bfe0a6a5 Merge pull request #4370 from alex/patch-5
Fixes #530 -- delete a test that has been skipped for 5 years
2017-03-24 11:30:10 -04:00
Alex Gaynor
26fe03b20a unused imports 2017-03-24 10:23:05 -04:00
Alex Gaynor
71a1d3e4bc Fixes #530 -- delete a test that has been skipped for 5 years 2017-03-24 10:14:10 -04:00
Alex Gaynor
29851b2a72 Fixes #168 -- remove a legacy test
It has a commented out assertion that used to be broken, and now refers to removed behavior.
2017-03-24 09:15:59 -04:00
Donald Stufft
6b54145783 Deprecate support for Python 3.3 2017-03-22 19:22:56 -04:00
Donald Stufft
2f7007ca0a Merge pull request #4351 from dstufft/remove-10
Officially bump to 10.0 and remove deprecated items.
2017-03-20 14:45:02 -04:00
Donald Stufft
b291b7f3c6 Fix a test that only runs on older Pythons 2017-03-20 12:21:26 -04:00
Alex Gaynor
3e527f2fbf Fixed some pytest warnings in the tests 2017-03-20 11:45:29 -04:00
Donald Stufft
fabb73971e Remove the ability to uninstall distutils installed projects 2017-03-20 10:49:57 -04:00
Donald Stufft
95b9541ed4 Remove the deprecated --(no-)use-wheel flags 2017-03-20 10:49:56 -04:00
Donald Stufft
0b1f521059 Switch the default for pip list to the columns format 2017-03-20 10:49:56 -04:00
Donald Stufft
e6bfa12403 Remove the deprecated --download option to install 2017-03-20 10:49:56 -04:00
Ville Skyttä
cee7a53712 Python 3.6 invalid escape sequence deprecation fixes 2017-03-20 13:54:29 +01:00
Donald Stufft
bb48371714 Removed the deprecated `--egg` flag 2017-03-19 20:31:23 -04:00
Donald Stufft
ceb7feed75 Update tests for the removal of Python 2.6 2017-03-18 14:52:14 -04:00
Donald Stufft
59cb562d59 Fix up some bookkeeping 2017-03-18 14:52:14 -04:00
Xavier Fernandez
5b7060a20d Deprecate the _strip_postfix function (#4174)
It only happens for editable-non-file URLs and is an undocumented
behavior.
2017-02-13 10:02:20 +01:00
Xavier Fernandez
6ec5597930 Add support for PEP 508 @ url syntax (#4175)
* Add support for PEP 508 @ url syntax

* Add test for install_requires

* Forbid dependencies direct url
2017-02-05 12:22:36 +01:00
Atsushi Odagiri
ee345ef37b add exclude-editable option to list command (#4016)
* added exclude-editable option to list command

* added include-editable option

* added functional test

* added changes
2017-01-31 13:06:47 +01:00
Atsushi Odagiri
fa629ffa81 Add exclude-editable option to freeze command (#4015)
* exclude editable

* added implementation to exclude editable

* added functional test for excluding editable from freeze list

* fix flake8

* fix changelog
2017-01-11 22:37:39 +01:00
Igor Kuzmitshov
2bdc93dd7b Fix the latest version number in search results
When listing found packages, `print_results()` uses the last version in
the versions list of a package, but that version is not necessarily the
latest. For example, `SearchCommand.search()` may return the following
(tested with JFrog Artifactory PyPI repo):

    pypi_hits = command.search(args, options)

    [{'_pypi_ordering': 1,
      'name': 'testlib',
      'summary': 'Test library.',
      'version': '1.0.5'},
     {'_pypi_ordering': 0,
      'name': 'testlib',
      'summary': 'Test library.',
      'version': '1.0.3'}]

`pip.commands.search.transform_hits()` preserves the order of versions:

    hits = pip.commands.search.transform_hits(pypi_hits)

    [{'name': 'testlib',
      'summary': 'Test library.',
      'versions': ['1.0.5', '1.0.3']}]

`pip.commands.search.print_results()` uses the last version in the list:

    pip.commands.search.print_results(hits)

    testlib (1.0.3)  - Test library.

Expected result:

    testlib (1.0.5)  - Test library.

`print_results()` uses `highest_version()` already to compare the
installed version with the latest found version (for installed
packages). Same function is used in this fix to show the latest
versions of all found packages.
2017-01-09 23:43:29 +00:00
Nikhil Benesch
20326d8b24 Failing exit status when no requirements specified (#4210)
* add failing tests for #2720

* fix #2720: exit status when no requirements specified

* Don't fail when blank requirements files specified
2017-01-06 23:21:46 +01:00
Pradyun
8f9a48e806 Fix Tests for Travis CI (#4199)
* FIx Tests to pip paramiko

* Make the test completely local

It's easier to depend on a local package than to depend on a network based test.
2016-12-23 11:09:45 +01:00
Xavier Fernandez
4716962112 Improve tests
- improve two tests to make them network-less
- add a bunch of pytest.mark
2016-12-04 21:54:50 +01:00
Francesco Montesano
d64b871d97 Allow pip install with entrypoint names with colons (#3901) 2016-11-19 00:27:16 +01:00
Xavier Fernandez
a12f2f493c Reimplement pip check tests without network
Add small test for complex dependency names
2016-11-13 22:51:15 +01:00
Donald Stufft
7f1c180e70 Correct the setting name in pip list format deprecation (#4069) 2016-11-03 18:36:56 -04:00
Donald Stufft
f1d0939d63 Revert "Normalize file URLs" (#4071) 2016-11-03 11:24:34 -04:00