Donald Stufft
68c0b472a7
Run the unit tests before the integration tests
2014-06-30 20:00:35 -04:00
Donald Stufft
6876d4b613
Merge pull request #1859 from nailor/support-no-use-wheel
...
req: Support --no-use-wheel flag in requirements.txt
2014-06-25 23:45:01 -04:00
Donald Stufft
9b11ed231c
Merge pull request #1854 from Ivoz/compat-cleaning
...
Remove unnecessary imports, move some to six
2014-06-16 12:06:21 -04:00
Donald Stufft
e05a759b6e
Fix #1101 - Properly handle a <base> without a href
2014-06-13 07:49:56 -04:00
Jyrki Pulliainen
3377dd1917
req: Support --no-use-wheel flag in requirements.txt
...
Default from pip 1.6 will be to always use wheels, so the --use-wheels
in requirements.txt is now deprecated. However, the --no-use-wheels
is introduced to be able to disable wheel usage via requirements.txt.
2014-06-10 14:57:24 +02:00
Matthew Iversen
b7770c502a
Remove unnecessary imports, move some to six
2014-06-07 04:21:51 +10: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
3d64db281b
merge 1.5.X into develop
2014-05-26 15:06:36 -07:00
Marcus Smith
3066157cc3
when installing from wheel files, parse the filename to build the requirement
2014-05-25 21:00:39 -07:00
Matthew Iversen
dcb0ee0702
Move backwardcompat package to compat module
2014-05-14 13:10:06 +10:00
Donald Stufft
52ca02608e
Use CacheControl instead of custom cache code
...
* Deprecates the --download-cache option & removes the download
cache code.
* Removes the in memory page cache on the index
* Uses CacheControl to cache all cacheable HTTP requests to the
filesystem.
* Properly handles CacheControl headers for unconditional
caching.
* Will use ETag and Last-Modified headers to attempt to do a
conditional HTTP request to speed up cache misses and turn
them into cache hits.
* Removes some concurrency unsafe code in the download cache
accesses.
* Uses a Cache-Control request header to limit the maximum
length of time a cache is valid for.
* Adds pip.appdirs to handle platform specific application
directories such as cache, config, data, etc.
2014-05-09 18:28:20 -04:00
Marcus Smith
b0b05737a9
Merge pull request #1787 from qwcode/wheel_editables
...
build wheels for dependencies of editables
2014-05-09 15:00:50 -07:00
Donald Stufft
7037443975
Require an already created session to be passed into APIs
2014-05-06 22:37:46 -04:00
Alex Gaynor
a94ce18f62
Use the correct URL in the test
...
This saves loading a redirect in the test suite. speeeeeeed
2014-05-06 16:35:18 -07:00
Marcus Smith
12034176a1
build wheels for dependencies of editables
2014-05-03 10:12:57 -07:00
Donald Stufft
763c906b3f
Merge pull request #1741 from djs/develop
...
Add option --no-ssl-verify to skip ssl cert verification
2014-05-03 07:45:07 -04:00
Alex Gaynor
b48b9ce53f
Resolve several typos in the codebase
2014-04-29 22:33:04 -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
Dan Savilonis
9a9d7acefe
Add option --no-check-certificate to skip ssl cert verification
2014-04-24 01:46:33 -04:00
Matthew Iversen
c854973beb
Use pytest monkeypatching for sys.platform
2014-04-23 22:54:39 +10:00
Marcus Smith
5ff772d774
a teardown that pytest recognizes
2014-04-22 13:09:13 -07:00
Marcus Smith
b274b85f96
don't install empty dirs during wheel installs
2014-04-21 23:07:25 -07:00
Matthew Iversen
9cb0ea294a
Add tests, improve code addition
2014-04-17 08:42:41 +10:00
Donald Stufft
22c562429a
Use Accept-Encoding: identity when requesting files
2014-03-27 11:34:51 -04:00
Donald Stufft
5a76a47d3b
Fix code to handle the latest flake8
2014-03-26 18:24:19 -04:00
schlamar
6dfdad58eb
Fixed failing test case.
2014-03-13 21:04:43 +01:00
schlamar
3affcaa2b8
install_lib should take precedence when reading distutils config.
2014-03-13 20:19:26 +01:00
Bruno Renié
244b399f1f
Fix #1424 -- add support for SSL client certificate
2014-03-07 13:41:15 +01:00
Donald Stufft
c85150a500
Merge pull request #1444 from novel/retries
...
Introduce 'retry' option
2014-03-06 22:10:34 -05:00
Daniele Procida
68cacfb71d
fixes #1615
2014-03-05 18:17:43 -05:00
Marcus Smith
bff390eb1e
pkg exclusions for pip list/freeze
2014-02-28 20:09:26 -08:00
Donald Stufft
95ac4c16f5
Remove dependency links support from pip
2014-02-25 18:39:40 -05:00
Donald Stufft
95035fc5c4
Turn on everything in flake8
...
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05: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
Marcus Smith
a25b3d15c2
when file urls have hash fragments, check it
2014-02-08 09:06:54 -08:00
Marcus Smith
51a93e0672
'pip wheel' should download wheels, when it finds them
...
Conflicts:
pip/commands/wheel.py
pip/download.py
pip/req/req_set.py
pip/wheel.py
2014-02-08 09:05:40 -08:00
Roman Bogorodskiy
f29dd1ad32
Introduce 'retry' option
...
Add a 'retry' option which allows to configure how many
retries pip should make before giving up on HTTP request.
When the retries count is specified by user, its value is
passed to HTTPAdapter from requests which handles all
the underlying operations.
2014-02-04 00:37:05 +04:00
Marcus Smith
eb7a31e019
when file urls have hash fragments, check it
2014-02-01 14:04:58 -08:00
Marcus Smith
e41bf0230e
'pip wheel' should download wheels, when it finds them
2014-02-01 11:41:55 -08:00
Donald Stufft
9f027337a8
Use Flake8 on the test of pip's Python files
2014-01-28 19:47:58 -05:00
Donald Stufft
2743768b7b
Fix the style of the code base to better match pep8
2014-01-27 14:11:29 -05:00
Donald Stufft
8a2882c2c6
Merge branch 'master' into develop
...
Conflicts:
pip/__init__.py
pip/req.py
2014-01-26 10:39:29 -05:00
Donald Stufft
bd7dae9ed3
Properly parse comments from the end of a line
2014-01-22 21:50:57 -05:00
Donald Stufft
e9a896a9a0
Merge branch 'master' into develop
...
Conflicts:
docs/installing.rst
pip/__init__.py
2014-01-20 22:48:44 -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
Marcus Smith
a7c522da97
fix references to req methods/classes after refactor
2014-01-12 10:05:11 -08:00
Marcus Smith
d680fd4f1f
merge from 1.5.X
2014-01-11 16:28:00 -08:00
Donald Stufft
57acb26498
If --allow-unverified is used assume it also means --allow-external
2014-01-10 10:35:55 -05: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
aa6136014f
Use the raw stream to prevent decoding the response
2014-01-07 11:57:25 -05: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
Stefan Scherfke
4fb769f9e0
Fix test to run on Python 2.6.
2013-12-20 14:31:12 -05:00
Stefan Scherfke
83a85fedc9
Try utf-8, the system’s default encoding, and latin1 when reading egg_info-files to avoid UnicodeDecodeErrors at the installation of a package.
2013-12-20 14:31:12 -05:00
Stefan Scherfke
eda45bfcf7
Fix test to run on Python 2.6.
2013-12-20 12:49:53 -05:00
Stefan Scherfke
b878de0fe1
Try utf-8, the system’s default encoding, and latin1 when reading egg_info-files to avoid UnicodeDecodeErrors at the installation of a package.
2013-12-20 12:49:52 -05:00
Marcus Smith
f53befcd99
merge from 1.5.X
2013-12-08 15:24:42 -08:00
Paul Moore
1e7ae116f5
Typo fixes and clarifications
2013-12-08 12:08:22 +00:00
Paul Moore
884861f390
Added a virtualenv-specific configuration file
2013-12-04 13:04:54 +00:00
Marcus Smith
1f5343ec31
skip symlink tests when not hasattr(os, 'symlink')
2013-11-24 15:50:11 -08:00
Marcus Smith
1d1aaa9058
fix for certain platforms/versions not having os.O_NOFOLLOW
2013-11-24 15:26:22 -08:00
Marcus Smith
56d3a48de1
Merge pull request #1330 from qwcode/path_to_url
...
a single `path_to_url` function with tests
2013-11-20 16:09:57 -08:00
Marcus Smith
ade1bcf987
backwardcompat fixes for py3
2013-11-20 15:36:09 -08:00
Donald Stufft
52c92de482
Test the entry points parsing
2013-11-19 08:32:58 -05:00
Marcus Smith
73b8692d86
a single path_to_url
function with tests
2013-11-18 22:12:41 -08: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
Marcus Smith
ebb52ee12c
use "INSTALLED_VERSION" (not "InfLink") as the name for the object that represents the "link" for the installed version of a requirement
2013-11-06 09:35:57 -08:00
Marcus Smith
ab21c1de32
pip.locations.distutils_scheme
should read distutils config files
2013-11-04 23:40:26 -08:00
Donald Stufft
3ffa404d3e
Merge pull request #1272 from dstufft/fix-pip-wheel
...
Make Wheel respect --root
2013-10-31 06:07:08 -07:00
Donald Stufft
00c11deb25
Ensure that --root continues to work with Wheels
2013-10-31 08:49:23 -04:00
Marcus Smith
588fb6f25e
some extra logging and options tests
2013-10-30 18:16:30 -07:00
Donald Stufft
12ee7cc6d9
Do not respect dependency links by default
2013-10-27 18:34:46 -04:00
Donald Stufft
840db882de
Remove the allow_all_unverified
2013-10-26 23:52:04 -04:00
Donald Stufft
616ce39061
Rename --allow-insecure to --allow-unverified
2013-10-26 23:47:57 -04: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
Marcus Smith
b2341831b9
merge fix due to 1.4.X still using nose
2013-10-05 22:18:20 -07:00
Marcus Smith
3c0072cc00
merge from 1.4.X
2013-10-05 21:49:41 -07:00
Paul Nasrat
ad66052f05
Merge pull request #1215 from pnasrat/subdirectory-editable
...
Merge subdirectory editable feature
2013-10-05 19:13:10 -07:00
Paul Moore
e1c5497b11
Python 2.7 io.StringIO is text-only, use backwardcompat
2013-10-05 17:41:52 +01:00
Paul Moore
137b8260ac
Fix test_log on Python 3, StringIO module is no longer available
2013-10-04 15:58:09 +01:00
Marcus Smith
f44952dc87
fake what version of setuptools is present to get past the setuptools requirement in travis
2013-10-01 22:45:32 -07:00
Marcus Smith
11a178fda2
1) If the wheel name != search_name, then return immediately. Not doing so,
...
exposes wheel link matching unnecessarily to Issue #1217 .
2) If somehow the pip code is broken, and unsupported wheels are being
passed to the sorter, then atleast fail with a meaningful error.
2013-10-01 21:33:26 -07:00
Paul Nasrat
a1bbab37d4
Fix deleted brack
2013-09-30 13:52:08 -04:00
Paul Nasrat
951ef7438c
Merge remote-tracking branch 'niedbalski/develop' into subdirectory-editable
...
Conflicts:
CHANGES.txt
tests/functional/test_install_reqs.py
tests/lib/__init__.py
tests/unit/test_req.py
Additional work - refactored tests to new style.
2013-09-27 14:42:05 -04:00
Donald Stufft
06b91a85d4
Merge pull request #1145 from dstufft/use-requests
...
Use requests instead of urllib2
2013-09-26 12:16:19 -07:00
Donald Stufft
ff2854a855
Use requests instead of urllib2
2013-09-24 23:32:03 -04:00
Marcus Smith
0eb29ef126
Fix problem where multiple .write() log consumers resulted
...
in extra line breaks. Specifically, using --log resulted in logging
with extra line breaks.
2013-09-21 21:42:18 -07:00
Marcus Smith
e4b1159e16
--log test when the command fails
2013-09-19 20:50:30 -07:00
Marcus Smith
5eafbb6dfc
logging tests for --log and --log-file
2013-09-19 19:02:06 -07:00
Marcus Smith
0e5b28e4aa
- consolidate the option tests into one test module
...
- replace the complex multi-assert tests with simpler ones
- add more tests to confirm our option precedence
2013-09-17 21:44:57 -07:00
Marcus Smith
eed12b54c1
command parsing tests
2013-09-16 22:21:21 -07:00
Marcus Smith
ed9e3f49a5
unit tests for pip.baseparser.ConfigOptionParser
2013-09-15 17:24:44 -07:00
Donald Stufft
946465b395
The error message isn't always the same for this test
2013-08-27 06:49:40 -04:00
Donald Stufft
99f520dfa0
Instead of monkeypatching setuptools on Travis, just upgrade it
2013-08-27 06:49:40 -04:00
Donald Stufft
fe60a1d5cf
Use a constant for the source directory
2013-08-27 06:49:40 -04:00
Donald Stufft
1650d4166a
Fix some missing find_links -> data.find_links switches
2013-08-27 06:49:40 -04:00
Donald Stufft
1bd8dd99f8
Determine the src directory automatically
2013-08-27 06:49:40 -04:00
Donald Stufft
487925ea3f
Isolate the tests from the shared data directory
2013-08-27 06:49:35 -04:00
Donald Stufft
0c42245f21
Replace explicit calls to reset_env() with the script fixture
2013-08-27 06:47:23 -04:00
Donald Stufft
1bc31ec02e
Merge pull request #1157 from dstufft/refactor-tests-lib
...
Refactor tests.lib.* to simplify and remove global state
2013-08-22 01:52:03 -07:00
Donald Stufft
08247973b6
Fix the Python 3.3 issue, it only seems to happen on Travis
2013-08-22 04:19:58 -04:00
Marcus Smith
9b4b651cc6
we'll assume '_' means '-' for versions from wheel filenames
2013-08-21 23:30:15 -07:00
Donald Stufft
9894c8baac
Refactor tests.lib
...
* Move virtualenv creation out of TestPipEnvironment
* Remove global state and force explicit use of TestPipEnvironment
instances
* Remove "backup" virtualenv copying and instead create new
virtual environments each time.
* Remove the monkeypatched "PyPICache" functionality
* Remove things that were not being used anymore and were dead
weight
* Remove sitecustomize support which was primarily used to
monkeypatch the "PyPICache" but was used in one or two other
tests.
2013-08-21 22:40:16 -04: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
Jorge Niedbalski
d16281f141
Merge remote-tracking branch 'pip-orig/develop' into develop
2013-08-20 10:38:53 -03:00
Marcus Smith
1f989ff32e
merge from 1.4.X
2013-08-19 21:23:39 -07:00
Marcus Smith
65007e3c65
when unpacking archives, don't preserve permissions except execution for regular files
2013-08-17 00:18:40 -07:00
Jorge Niedbalski R
ebc40a16bf
Merge from upstream project
2013-08-12 11:20:15 -07:00
Donald Stufft
5d2b6b3be0
Merge pull request #1109 from dstufft/better-warning-output
...
Colorize Log Output
2013-08-07 21:05:30 -07:00
Donald Stufft
fcdee3c652
Merge branch 'master' into develop
...
Conflicts:
.travis.yml
CHANGES.txt
pip/__init__.py
tests/functional/test_install_index.py
2013-08-07 21:21:32 -04:00
Donald Stufft
e5c64f0878
Add some tests to ensure behavior
2013-08-05 01:55:28 -04:00
Donald Stufft
3ef4ee4693
Remove direct support for PEP381 Mirrors
...
* PEP381 Mirroring support was never fully implemented leaving
users of it trivially exploitable to a MITM or malicious mirror
operator.
* 2 out of 6 of the mirrors have been removed from the pool and
will never resolve.
* The remaining mirrors often fall behind
* The mirrors will likely never be available under HTTPS
* People who wish to use a mirror of PyPI can still do so by
manually specifying a mirror url for --index-url or
--extra-index-url which is more flexible, allowing for
mirrors to be hosted under any domain.
2013-07-29 12:42:33 -04:00
Marcus Smith
84480ac9b7
Merge pull request #1095 from qwcode/fix-1074
...
function in case of broken sysconfig. fix #1074
2013-07-27 21:09:19 -07:00
Marcus Smith
f91fc2f4c9
use sysconfig from pep425tags and use mock's patch context mgr
2013-07-27 20:48:15 -07:00
Jorge Niedbalski
abf27b5bd2
[tests] added test for subdirectory editable options
2013-07-24 12:25:35 -03:00
Marcus Smith
a3109c17c6
changing global build dir name; see https://github.com/pypa/pip/issues/1078#issuecomment-21469936
2013-07-24 01:25:59 -07:00
Daniel Holth
59e5368eac
function in case of broken sysconfig. fix #1074
2013-07-23 20:18:26 -04:00
Marcus Smith
3b0eb9136a
fix regexp for windows paths
2013-07-11 21:36:46 -07:00
Daniel Holth
823cee17ef
mock moved attribute
2013-06-30 23:44:51 -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
78a40129dd
patch wheel unit tests to appear to be running with setuptools
2013-06-27 18:08:25 -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
3e460e6946
test merge fixes
2013-06-19 17:08:32 -07:00
Marcus Smith
e0e19cc831
Merge pull request #1003 from qwcode/test_new_setuptools
...
support the new setuptools
2013-06-19 16:53:39 -07:00
david
267c79df2e
Fix #982 by using the effective user id on unix systems instead of depending on
...
getpass.getuser(). This is required because on some systems 'LOGNAME'
is not updated by sudo.
Signed-off-by: david <db@d1b.org>
2013-06-15 13:17:45 +10:00
Marcus Smith
72f0ec9419
wheel is also supported now with setuptools>=0.7.2
2013-06-13 22:04:05 -07:00
Donald Stufft
fb24b3eaaa
Change --allow-external to work per project and add --allow-all-external
2013-06-07 10:43:52 -04:00
Donald Stufft
74d0246bcd
Test the different variations of allow_insecure and allow_external
2013-06-07 10:43:52 -04:00
Marcus Smith
60f8da5c41
4 more wheel tests
2013-06-06 19:11:43 -07:00
Carl Meyer
b3a791223c
Cached or already-downloaded files with bad hashes are ignored.
2013-05-30 17:00:10 -06:00
Carl Meyer
388d1b53a7
Refactor unpack_http_url.
2013-05-30 16:59:57 -06:00
Marcus Smith
890df0d25a
add back test lost in the restructure
2013-05-29 13:41:13 -07:00
Marcus Smith
28298c413d
more functional/unit tests restructure
2013-05-29 13:41:13 -07:00