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

20 commits

Author SHA1 Message Date
Zvezdan Petkovic 4e2c1fa77c Use a realpath for the temporary build directory. (#3701)
Some systems have /tmp symlinked which confuses custom builds, such as
numpy. This ensures that real path is passed and that such builds
resolve their paths correctly during build and install.

Added test for the change and also for the previous related fix: #707

---

*This was migrated from pypa/pip#3079 to reparent it to the ``master``
branch. Please see original pull request for any previous discussion.*
2016-05-19 21:02:26 -04:00
Xavier Fernandez 50ed3d49e9 Check for PEP263 headers in req files 2016-03-07 11:08:59 +01:00
Xavier Fernandez b2ee4f8255 Simplify test
locale.getpreferredencoding(False) is not always utf8
2016-03-04 10:50:29 +01:00
Xavier Fernandez e2889268bd utils: decode requirement files according to their BOM if present 2016-03-04 10:50:29 +01:00
Xavier Fernandez 2956a3ef41 Add --all option to pip freeze
In order to include pip/setuptools/wheel in the freeze output
Closes #1610
2016-02-17 13:29:32 +01:00
Xavier Fernandez 227572f757 Make sure to keep the timestamp when untaring
closes #3201
2016-01-02 17:08:24 +01:00
Donald Stufft f39bc756e5 Merge branch 'develop' into hashes2 2015-11-06 18:46:09 -05:00
Xavier Fernandez f1bf7515c2 pip.index: remove INSTALLED_VERSION
closes #703
2015-11-04 22:52:44 +01:00
Erik Rose b0ef6ab5b4 Fix unicode errors in unit tests of Hashes under Python 3. 2015-09-25 12:24:32 -04:00
Erik Rose 1e41f01823 Add checks against requirements-file-dwelling hashes for most kinds of packages. Close #1175.
* Add --require-hashes option. This is handy in deployment scripts to force application authors to hash their requirements. It is also a convenient way to get pip to show computed hashes for a virgin, unhashed requirements file. Eventually, additions to `pip freeze` should fill a superset of this use case.
  * In --require-hashes mode, at least one hash is required to match for each requirement.
  * Option-based requirements (--sha256=...) turn on --require-hashes mode implicitly.
  * Internet-derived URL-based hashes are "necessary but not sufficient": they do not satisfy --require-hashes mode when they match, but they are still used to guard against transmission errors.
  * Other URL-based requirements (#md5=...) are treated just like flag-based ones, except they don't turn on --require-hashes.
* Complain informatively, with the most devastating errors first so you don't chase your tail all day only to run up against a brick wall at the end. This also means we don't complain that a hash is missing, only for the user to find, after fixing it, that we have no idea how to even compute a hash for that type of requirement.
  * Complain about unpinned requirements when hash-checking mode is on, lest they cause the user surprise later.
  * Complain about missing hashes.
  * Complain about requirement types we don't know how to hash (like VCS ones and local dirs).
* Have InstallRequirement keep its original Link around (original_link) so we can differentiate between URL hashes from requirements files and ones downloaded from the (untrustworthy) internet.
* Remove test_download_hashes, which is obsolete. Similar coverage is provided in test_utils.TestHashes and the various hash cases in test_req.py.
2015-09-24 22:16:00 -04:00
Thomas Kluyver 068dfd7bd9 Simplify tests using pytest fixtures 2015-03-20 16:09:34 -07:00
Thomas Kluyver 7034545111 Make pep8 linter happy 2015-03-19 09:35:53 -07:00
Thomas Kluyver 7982ecc1e8 Make pep8 a bit happier
Still not very happy
2015-03-18 17:45:53 -07:00
Thomas Kluyver e1989f0d1a Add test for normalize_path()
And call abspath() when not following symlinks
2015-03-18 16:02:30 -07:00
Paul Moore 584b2d0f82 Remove find_command - let subprocess.Popen search PATH for the VCS command to run 2015-03-11 11:37:39 +00:00
Paul Moore 18748b3de6 Make pip.utils.rmtree retry in case antivirus etc holds a directory 2015-02-04 20:34:24 +00:00
Marc Abramowitz 071174457f Separate pip freeze command from operation
By extracting the logic into pip.operations.freeze, the hope is that
folks could do a freeze programmatically more easily.
2014-12-16 06:50:20 -08:00
Paul Moore b0d173e435 Added unit tests for get_installed_distributions user_only 2014-10-15 23:03:44 +01:00
Marcus Smith 9d01010672 fix false positive tests due to assert tuple syntax 2014-10-08 21:51:14 -07:00
Donald Stufft 767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Renamed from tests/unit/test_util.py (Browse further)