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

181 commits

Author SHA1 Message Date
Chris Jerdonek
951e0cba51
Fix #5868: TypeError in move_wheel_files(). (#5883) 2018-10-24 09:19:58 -07:00
Tzu-ping Chung
3368819156 Split, simplify, and fix egg_info_matches 2018-10-22 16:46:42 +08:00
Pradyun Gedam
4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Pradyun Gedam
8df8e53901
Merge branch 'master' into refactor/introduce-models 2018-07-24 01:35:56 +05:30
Oliver Jeeves
ca5cca3426
Fix error trying to generate scripts warning when PATH not set
fixes #5558
2018-07-07 02:59:55 +05:30
Pradyun Gedam
89223dd47c
Sort imports 2018-06-24 02:41:57 +05:30
Pradyun Gedam
c02af381f2
Caplog! 2018-06-24 02:38:21 +05:30
Andrés Delfino
7b1f2a06d2 Add test for PR #5293 (#5325)
* Test that trailing os.sep are ignored while searching PATH
* Simplify paths list creation
2018-04-23 21:21:43 +05:30
Pradyun Gedam
54bf509636
Add test for normalization
As suggested by @pfmoore
2018-04-07 17:25:41 +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
24fd884672
Decouple WheelBuilder from RequirementSet (#4860) 2017-11-16 15:16:21 +05:30
Pradyun Gedam
fc7ca26489 Warn user when installing scripts outside PATH (#4553) 2017-10-02 17:54:37 +01:00
Donald Stufft
95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Benoit Pierre
c58a4ccf1d tests: fix mistakenly skipped test (#4665) 2017-08-31 13:17:56 -04:00
Pradyun S. Gedam
6f29b5d552 Move wheel_cache out of RequirementSet (#4600)
It now goes into both Resolver and WheelBuilder, where it belongs.
2017-07-05 19:57:35 -04:00
Pradyun S. Gedam
581c12b5bc Move some RequirementSet attributes to RequirementPreparer (#4583)
* Move some attributes to RequirementPreparer

* 🎨

Remove unused import
2017-07-05 14:41:45 -04:00
Pradyun S. Gedam
69ef4d9224 From RequirementSet to Resolver - Part 1 (#4546) 2017-06-27 12:37:38 -04:00
Pradyun S. Gedam
29df9244f2 🔧 2017-06-16 12:10:42 +05:30
Pradyun S. Gedam
fe5b7c9c9a Begin moving WheelCache to pip.cache 2017-06-15 18:34:05 +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
1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Vincent Philippon
8378567b61 Install wheel with a non-PEP 440 version in the filename.
PEP 427 has no specific requirements for the format of the version.
As pip wheel allows to create a wheel with a non-PEP 440 version,
it should also be able to install that same wheel.
2017-03-27 23:12:42 -04:00
Alex Gaynor
3e527f2fbf Fixed some pytest warnings in the tests 2017-03-20 11:45:29 -04:00
Xavier Fernandez
b559221ee1 Move uninstall file selection logic to req_uninstall.py 2016-11-20 13:04:14 +01:00
Francesco Montesano
d64b871d97 Allow pip install with entrypoint names with colons (#3901) 2016-11-19 00:27:16 +01:00
Lipis
d86d171364 OS X -> macOS (#4074) 2016-11-06 12:24:43 -05:00
Stéphane Bidoul (ACSONE)
4d1b798465 Allow creating wheels for editable packages (#3695) 2016-05-26 06:41:01 -04:00
Ville Skyttä
46582e5ab6 Use logger.warning instead of deprecated logger.warn 2016-04-15 16:30:28 +03:00
Donald Stufft
8e236dd6a0 Update to use the Requirement class from packaging 2016-03-07 11:40:39 +11:00
Olivier Grisel
09b99e8ece Move pep425tags tests to their own file 2016-02-23 09:36:24 +01:00
Xavier Fernandez
e1e93520e5 Fix test_install_prefix on Windows 2016-01-17 22:40:46 +01:00
Marcus Smith
ca47dc9949 Merge pull request #3252 from domenkozar/install/prefix
Support pip install --prefix
2015-11-26 09:30:20 -08:00
Domen Kožar
e14a66f1b9 Support --prefix argument to install command.
There was no way to override prefix for an installation for wheels
previously. The default it whatever sys.prefix points to.
2015-11-22 19:13:51 +01:00
Nate Coraor
63d239ffac 1. Provide a fallback mechanism for determining ABI flags if config vars
are unavailable, but issue a warning if this is used.
2. Explicitly handle the case where the unicode detection finds wide
   unicode but this is a 3.3+ build (necessary due to #1)
3. Fix tests broken due to #2.
2015-10-13 15:58:03 -04:00
Nate Coraor
1b5b4ac9f7 Add unit tests for manual SOABI detection 2015-10-13 10:38:07 -04:00
Andy Freeland
73a439ea66 Add pip.compat.expanduser to workaround http://bugs.python.org/issue14768 2015-09-29 16:01:32 -04:00
Min RK
659d81d880 verify that hyphens are never allowed in tags 2015-06-18 14:49:56 -07:00
Robert Collins
bb0b429a49 Issue #2731: Constraints files.
This adds constraints files. Like requirements files constraints files
control what version of a package is installed, but unlike
requirements files this doesn't itself choose to install the package.
This allows things that aren't explicitly desired to be constrained if
and only if they are installed.
2015-06-03 06:38:33 +12:00
Donald Stufft
9089430ab7 Support a falsey cache-dir 2015-06-01 20:52:02 -04:00
Donald Stufft
0ebc37d17a Expand ~ in the wheel cache directory 2015-06-01 17:24:11 -04:00
Robert Collins
fd33cd3ddf Rationalise wheel_dir usage.
We we normalising it right before making it, after passing it
RequirementSet, which means RequirementSet also had to normalise it.

And then we passed it to WheelBuilder which as a result had to
normalise it too.

Instead, pass it as-is to RequirementSet, have that normalise it, and
then pull it back out in WheelBuilder.
2015-04-08 09:40:05 +12:00
Donald Stufft
767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
MinRK
471f7b4e8c test multi-arch wheels on darwin 2014-05-29 22:00:42 -07:00
MinRK
6d1e9b4eab test OS X arch support 2014-05-29 22:00:40 -07:00
Marcus Smith
12034176a1 build wheels for dependencies of editables 2014-05-03 10:12:57 -07:00
Marcus Smith
04b3dc8eb8 pep8 fixes 2014-04-25 14:42:14 -07:00
Marcus Smith
ebe2465635 merge 1.5.X to empty_dirs_develop 2014-04-25 14:08:40 -07:00
Marcus Smith
b274b85f96 don't install empty dirs during wheel installs 2014-04-21 23:07:25 -07:00
Matthew Iversen
b26d91c880 Ensure wheel-Version is compatible with pip 2014-02-19 20:01:22 -05:00
Matthew Iversen
f0d093feec Simplify wheel exception raises assertion 2014-02-19 18:32:41 +11:00
Matthew Iversen
5a6855dcf1 Fix test logic, tiny error / import cleanup 2014-02-19 10:31:12 +11:00
Matthew Iversen
897b509275 Python 3 compatibility 2014-02-18 17:59:53 +11:00
Matthew Iversen
6cd145ab62 Add unit test for check_compatibility 2014-02-18 15:21:18 +11:00
Matthew Iversen
13f6c68f0c Ensure wheel-Version is compatible with pip 2014-02-15 17:21:22 +11:00
Donald Stufft
9f027337a8 Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
Marcus Smith
ac45fcb570 additional wheel filename tests 2014-01-15 20:42:14 -08:00
Ralf Schmitt
70c42ad26e fix typo in test name 2014-01-16 00:21:04 +01:00
Ralf Schmitt
9815271737 raise InvalidWheelFilename if version is missing in wheel filename
Wheel('Cython-cp27-none-linux_x86_64.whl') did raise an AttributeError
instead of InvalidWheelFilename.

This has also been discussed an is similar to
https://github.com/pypa/pip/pull/1445
2014-01-16 00:18:03 +01:00
Marcus Smith
ea97076ce0 Merge pull request #1445 from schmir/fix-wheel-single-digit-version
make sure that wheel files with a single digit version do work
2014-01-15 14:22:39 -08:00
Ralf Schmitt
2ca9ba6521 make sure that wheel files with a single digit version do work
this is a rather serious bug, since it makes 'pip wheel ...' fail with
the following error if the wheelhouse contains such a wheel:

,----
| ...
|   File "/home/ralf/.ve/dev/local/lib/python2.7/site-packages/pip/wheel.py", line 420, in __init__
|     self.version = wheel_info.group('ver').replace('_', '-')
| AttributeError: 'NoneType' object has no attribute 'replace'
`----
2014-01-09 16:15:38 +01:00
Donald Stufft
cb7af82f20 Remove the setuptools version check
With the vendoring of pkg_resources we no longer need to worry
about the version of the installed setuptools.
2014-01-07 08:11:28 -05:00
Donald Stufft
52c92de482 Test the entry points parsing 2013-11-19 08:32:58 -05:00
Marcus Smith
3dc40cad46 - if installing directly from a wheel, fail if it has an invalid name or is unsupported
- when walking links, skip invalid wheel filenames, don't crash
2013-11-14 16:35:24 -08:00
Donald Stufft
505333e996 Fix the tests 2013-11-07 16:39:44 -05:00
Donald Stufft
597184ee11 Revert "REmove problematic tests that test dead simple functionality"
This reverts commit 0f4477000c.
2013-11-07 16:37:58 -05:00
Donald Stufft
0f4477000c REmove problematic tests that test dead simple functionality 2013-11-07 15:44:09 -05:00
Paul Moore
2902ce7985 Make the check for wheel support in setuptools test for DistInfoDistribution rather than check the version 2013-10-06 20:15:47 +01:00
Donald Stufft
487925ea3f Isolate the tests from the shared data directory 2013-08-27 06:49:35 -04:00
Marcus Smith
9b4b651cc6 we'll assume '_' means '-' for versions from wheel filenames 2013-08-21 23:30:15 -07:00
Donald Stufft
da0bc4b1d1 Switch to using py.test as the test runner instead of nose
* Better output with the bare asserts we use throughout the tests
* Function fixtures are pretty nice, especially as a way to
  start a background server or create an isolated virtualenv
2013-08-21 10:19:58 -04:00
Marcus Smith
f91fc2f4c9 use sysconfig from pep425tags and use mock's patch context mgr 2013-07-27 20:48:15 -07:00
Daniel Holth
59e5368eac function in case of broken sysconfig. fix #1074 2013-07-23 20:18:26 -04:00
Daniel Holth
3ac1280cd2 wheel: test WHEEL "root_is_purelib" parser 2013-06-30 23:40:20 -04:00
Daniel Holth
3b9e90e42b wheel: add tags parameter to support_index_min also 2013-06-30 14:56:43 -04:00
Daniel Holth
b6c2dc3b62 wheel: improve unit tests 2013-06-30 14:54:45 -04:00
Marcus Smith
231d84df0b wheel test for NotImplementedError being raised 2013-06-27 23:12:52 -07:00
Marcus Smith
fae0c02b60 Merge pull request #1013 from qwcode/wheel_req
have 'pip wheel' only be satisfied with setuptools (DONT MERGE)
2013-06-27 18:23:11 -07:00
Marcus Smith
fb397cd1ec have "pip wheel" only be satisfied by setuptools 2013-06-27 00:20:28 -07:00
y-p
42102e9dea unpack_file should use flatten=False for .whl files GH1011 2013-06-26 22:02:27 +03:00
Marcus Smith
72f0ec9419 wheel is also supported now with setuptools>=0.7.2 2013-06-13 22:04:05 -07:00
Marcus Smith
28298c413d more functional/unit tests restructure 2013-05-29 13:41:13 -07:00