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

549 commits

Author SHA1 Message Date
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
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
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