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

2047 commits

Author SHA1 Message Date
Christian Clauss f58ec8365b
NEWS.rst: Fix typos discovered by codespell (#7642)
https://github.com/codespell-project/codespell
2020-02-03 01:14:08 +08:00
Pradyun Gedam e060970d51
Merge pull request #7675 from deepak1725/string-format2
Updated string_formatting to .format
2020-02-02 02:05:34 +05:30
Deepak Sharma 61e1721b80 msg formatting updated 2020-01-30 21:57:31 +05:30
Deepak Sharma d31cf696e8 string_formatting 2020-01-30 20:33:00 +05:30
Chris Hunt f2af7df453 Use tempdir_registry to control auto-deleted files globally
Next we can actually transition some files to be globally-managed that
are only deleted conditionally.
2020-01-29 23:04:26 -05:00
Chris Hunt 45991bcc1e Use explicit default value for TempDirectory delete flag
Now we can opt-in to globally-managed + globally-configured file
deletion for pre-existing directories by passing an explicit `None`.
2020-01-29 23:04:14 -05:00
Christopher Hunt b6ecc3917e
Merge pull request #7653 from chrahunt/refactor/remove-unnecessary-marker-file
Remove unnecessary write_delete_marker_file
2020-01-29 08:59:23 +08:00
Chris Hunt d028af98e3 Remove unnecessary write_delete_marker_file
InstallRequirement only checks for a delete marker file in source_dir.
Since the result of ensure_build_location is set to source_dir (in
ensure_has_source_dir), and ensure_build_location returns a subdirectory
of the build_directory to which we write the delete marker file, then
this delete marker file is never used.
2020-01-25 18:09:24 -05:00
Christopher Hunt 153e22ae34
Merge pull request #7614 from deepak1725/string-formatting
Updated string formatting
2020-01-26 02:40:40 +08:00
Pradyun Gedam a4fac3f882
Bump for development 2020-01-24 20:17:38 +05:30
Pradyun Gedam 931749f871
Bump for release 2020-01-24 20:17:34 +05:30
Pradyun Gedam 78a77229b4
Upgrade packaging to 20.1 2020-01-24 16:37:38 +05:30
Deepak Sharma b242c3979a String formatting updated 2020-01-23 18:09:59 +05:30
Christopher Hunt f1cd4cb48e
Merge pull request #7608 from uranusjr/global-cleanup
Delay TempDirectory.delete resolution to cleanup
2020-01-22 18:25:05 +08:00
Pradyun Gedam b47903e5bb
Merge pull request #7621 from pradyunsg/hotfix/importerrors-in-distributions
Rename pip._internal.distributions.{source -> sdist}
2020-01-21 18:09:30 +05:30
Pradyun Gedam 8f3687cfd9
Rename pip._internal.distributions.{source -> sdist}
Certain environments seem to be leaving behind empty folders in this
directory -- There was an older pip release that included a source/
folder here which isn't getting deleted for some reason. I have not
figured out the root cause why this happens yet. This is resulting in
ImportErrors since Python imports have a higher precedence for packages
compared to modules.

This commit changes the name we're trying to import from, which should
help prevent this mode of failure.
2020-01-21 17:53:24 +05:30
Pradyun Gedam d9a315eaf6
Bump for development 2020-01-21 16:15:22 +05:30
Pradyun Gedam 8ad871a6bb
Bump for release 2020-01-21 16:15:21 +05:30
Pradyun Gedam 7b2f0aa00d
Upgrade pkg_resources (via setuptools) to 44.0.0 2020-01-21 13:51:30 +05:30
Pradyun Gedam 947fceb0f9
Upgrade six to 1.14.0 2020-01-21 13:42:05 +05:30
Pradyun Gedam 501e00cec4
Upgrade urllib3 to 1.25.7 2020-01-21 13:37:47 +05:30
Pradyun Gedam 022f0e265b
Upgrade certifi to 2019.11.28 2020-01-21 13:37:42 +05:30
Pradyun Gedam 7770dc204e
Upgrade pyparsing to 2.4.6 2020-01-21 13:16:34 +05:30
Pradyun Gedam 9bce54e54a
Upgrade ipaddress to 1.0.23 2020-01-21 13:13:27 +05:30
Pradyun Gedam dd07badf20
Upgrade distlib to 0.3.0 2020-01-21 13:11:38 +05:30
Pradyun Gedam 744d0ebbd4
Upgrade colorama to 0.4.3 2020-01-21 13:10:01 +05:30
Pradyun Gedam ac42c232ce
Update CacheControl to 0.12.6 2020-01-21 12:48:59 +05:30
Stéphane Bidoul (ACSONE) 0e1e0ef566 _should_cache does not depend on check_binary_allowed
_should_cache is only called by _get_cache_dir.

In pip install mode, _get_cache_dir is never called when
check_binary_allowed returns False because in that case
should_build_for_install_command has returned False before
and the build was skipped.

In pip wheel mode, check_binary_allowed always returns True
(because it is not passed to the build function).

So _should_cache can use _always_true for check_binary_allowed.

*Alternative*

Alternatively, we could have passed check_binary_allowed
to build in pip wheel mode. The only difference is that wheels built
locally from *legacy* packages would then not be cached,
when pip wheel is used with --no-binary.
2020-01-20 10:41:48 +01:00
Pradyun Gedam f1cf84e2f8
Merge pull request #7542 from sbidoul/normalize-cache-dir-sbi
Eagerly normalize cache directory
2020-01-18 22:38:59 +05:30
Tzu-ping Chung ffa6d9d3d0 Delay TempDirectory.delete resolution to cleanup 2020-01-17 21:06:13 +08:00
Chris Hunt 0a57e4e9f2 Manage temp directory deletion centrally
This gives us a global toggle that we can use to control whether
temporary directories get deleted from one place (ideally, in the
commands taking --no-clean).
2020-01-10 11:08:05 +01:00
Chris Hunt 3fac3d74ac Inline _make_build_dir in InstallRequirement
This untested function was only used in one place. Inlining it makes it
easier to see the symmetry between the writing of the delete marker file
in `ensure_build_location` and checking for it in
`remove_temporary_source`.
2020-01-08 20:34:28 -05:00
Chris Hunt 71e0ea19af Assert req.source_dir is None during linked requirement preparation
req.source_dir is only set by:

1. `InstallRequirement.__init__`
2. `InstallRequirement.ensure_has_source_dir`

`InstallRequirement.__init__` is only called with source_dir for
editable requirements, for which we would not call
`RequirementPreparer.prepare_linked_requirement` (only
`prepare_editable_requirement`).

We will use this assertion for justifying later refactoring.
2020-01-08 20:11:28 -05:00
Xavier Fernandez fe3e892a93
Merge pull request #7354 from chrahunt/maint/use-packaging-tags
Use packaging.tags for doing compatible wheel tag calculation
2020-01-08 22:41:35 +01:00
Stéphane Bidoul (ACSONE) 6fa3a2ee58
Remove redundant cache dir normalization in _build_session
Now the cache is normalized eagerly, this is not necessary here anymore.
assert the path is absolute to prevent regression.
2020-01-08 08:02:29 +01:00
Stéphane Bidoul (ACSONE) 8ce0859012
Remove redundant expanduser in WheelCache
Path normalization, which includes expanduser is now
done eagerly. Assert this when initializing
WheelCache.
2020-01-08 08:02:29 +01:00
Stéphane Bidoul (ACSONE) 4d79037527
Eagerly normalize the cache directory
Fixes #7541
2020-01-08 08:01:09 +01:00
Christopher Hunt 5529bacc1f
Merge pull request #7569 from uranusjr/req-uninstall-logger
Use logger to log instead of logging
2020-01-08 11:05:40 +08:00
Christopher Hunt eeeecbe856
Merge pull request #7543 from sbidoul/deprecate-gitgitarobase-sbi
Deprecate git+git@ form of VCS requirements
2020-01-08 11:04:12 +08:00
Chris Hunt ae21af701d Remove unused version functions 2020-01-07 19:01:14 -05:00
Chris Hunt 2b1b60f6db Remove unused get_platform function
Now handled internally in `packaging.tags` (in `_platform_tags`).
2020-01-07 19:01:09 -05:00
Chris Hunt 896317d13d Remove unused abi functions
Previously, these were used when the user did not provide an explicit
ABI. Now this is handled internally in `packaging.tags` (by
`_cpython_abi` and `_generic_abi`).
2020-01-07 19:01:05 -05:00
Chris Hunt 7aaa705c15 Remove unused glibc functions
The remaining glibc-related functions are required to allow us to put
the libc version in the pip user agent (for stats).
2020-01-07 19:01:00 -05:00
Chris Hunt 2455977bc8 Remove unused manylinux auto-deduction functions 2020-01-07 19:00:55 -05:00
Chris Hunt 9b3443583e Simplify _get_custom_platforms
Since we only call this function when platform is not None, we can drop
one of the branches. This is the only place using our manylinux
auto-deduction functions, so those can be removed next.
2020-01-07 19:00:51 -05:00
Chris Hunt ad546b5e8d Remove unnecessary conversion in get_supported
Now that we're fully using packaging.tags, everything in the supported
list is already Tag.

Further, since each function is responsible for its own set of
non-overlapping tags, we can also remove the de-duplication.
2020-01-07 19:00:46 -05:00
Chris Hunt 3e66ab0918 Inline packaging.tags.generic_tags 2020-01-07 19:00:41 -05:00
Chris Hunt 72dcd34eb2 Make packaging.tags.generic_tags unconditional 2020-01-07 19:00:37 -05:00
Chris Hunt 293b778374 Customize platforms for packaging.tags.generic_tags 2020-01-07 19:00:32 -05:00
Chris Hunt 0bebeb66e6 Customize abis for packaging.tags.generic_tags 2020-01-07 19:00:28 -05:00