Christopher Hunt
830e29e189
Move wheel to operations.install.wheel ( #7421 )
...
* Update documentation
For now just fixing the paths and adding a sub-package docstring.
2019-12-04 06:02:39 +08:00
Chris Hunt
ca43dac401
Move wheel version check to install_unpacked_wheel
...
This helps in several ways:
1. makes it easier to test the correct behavior of wheel installation via
`install_unpacked_wheel` independent of `InstallRequirement`
2. is easier to understand, since `install_unpacked_wheel` itself should
know which Wheel version(s) it supports
3. reduces the scope of `check_compatibility` and `wheel_version`, which
will make it easier to move `wheel` to `operations.install.wheel`
2019-12-03 06:53:02 +08:00
Chris Hunt
60f6ed9387
Move wheel.Wheel to models.wheel.Wheel
...
This aligns more closely with how the class is used and makes it easier
to move the rest of the wheel module to a dedicated module for
installation.
2019-12-02 11:52:51 +08:00
Chris Hunt
1abf978e88
Move format_tag to pep425tags
...
This is a more appropriate place for the function, since it is more
related to tags than wheels, and will make it easier to refactor Wheel
into its own module.
2019-12-02 11:52:51 +08:00
Chris Hunt
ccc231e4de
Remove old TODO in wheel.Wheel
...
Moving installation into this class would add complexity but only to
service a single caller (InstallRequirement). Better to keep the Wheel
representation, which is used in several places, small and focused and
installation can be moved to its own module.
2019-12-02 11:52:51 +08:00
mdebi
f6aaba9fd9
Warn if a path in PATH starts with tilde during install
2019-11-16 00:16:41 +01:00
Maxim Kurnikov
d1452ffabd
add global disallow_any_generics=True
2019-11-12 21:08:48 +03:00
Chris Hunt
e03a71aff8
Use new Scheme model for wheel installation
2019-11-07 12:43:39 -05:00
Pradyun Gedam
647d30ec77
Move hash_file to utils.misc
...
Why: Allows for better code reuse, without introducing dependency
between wheel->wheel_builder.
2019-11-04 11:51:08 +05:30
Pradyun Gedam
da9a432576
Move WheelBuilder and friends to a dedicated module
2019-11-04 11:49:02 +05:30
Stéphane Bidoul (ACSONE)
9cad519521
Cache wheels built from immutable Git requirements
...
Cache wheels that are built from Git requirements
that contain an immutable revision (i.e. a sha).
2019-11-03 22:54:33 +01:00
Stéphane Bidoul (ACSONE)
ba60397dd4
Make pip wheel cache what it built
...
Just like pip install.
2019-11-03 22:08:42 +01:00
Christopher Hunt
2a2794e09b
Merge pull request #7268 from sbidoul/remove-should_use_ephem_cache-sbi
...
remove should_use_ephemeral_cache
2019-11-01 16:29:03 +08:00
Maxim Kurnikov
3d3f663701
set disallow_untyped_defs=True for pip._internal.wheel
2019-10-29 18:28:41 -04:00
Stéphane Bidoul (ACSONE)
cdf09bfc4a
remove should_use_ephemeral_cache
2019-10-29 09:15:44 +01:00
Stéphane Bidoul (ACSONE)
e638e24e10
do not repeat tests in should_cache
2019-10-28 22:56:04 +01:00
Stéphane Bidoul (ACSONE)
aaa4237adf
refactor should_use_ephemeral_cache
2019-10-28 22:56:04 +01:00
Jacob Kim
618e97520d
Respect docstring conventions ( #7230 )
...
Respect PEP 257 -- Docstring Conventions in wheel.py
2019-10-20 09:14:50 -04:00
Pradyun Gedam
8dbf8461fc
Clean up wheel.move_wheel_files ( #7176 )
2019-10-20 13:26:48 +05:30
Pradyun Gedam
bcad1b1cb5
Add new option: pip wheel --save-wheel-names ( #6377 )
2019-10-19 11:03:15 +05:30
Chris Hunt
66c3e6010d
Move arg builder functions to setuptools_build
2019-10-12 21:20:10 -04:00
Chris Hunt
3d931388dc
Parameterize bdist_wheel and clean args functions
2019-10-12 21:12:32 -04:00
Chris Hunt
c451bce259
Separate functions for constructing setuptools args
...
To prepare for factoring these out into a separate module.
2019-10-12 21:09:24 -04:00
Chris Hunt
913f856739
Cleanup arguments, add docstring
2019-10-11 22:24:50 -04:00
Chris Hunt
39572ddd12
Don't pass InstallRequirement to install_unpacked_wheel
...
We are only using this value for logging. Passing a string reduces
coupling between InstallRequirement and this function.
2019-10-11 21:58:58 -04:00
Chris Hunt
4682f3cb9b
Pass scheme to install_unpacked_wheel
...
This reduces the number of required arguments and helps establish a
convention for install_* functions, which should take a scheme instead
of the individual components.
2019-10-11 21:49:39 -04:00
Chris Hunt
578de7d863
Rename wheel install function
2019-10-11 21:41:47 -04:00
Pradyun Gedam
ff041cc5b0
Merge branch 'master' into master
2019-09-30 21:33:34 +05:30
Pradyun Gedam
1ad0495fdd
Rename {run -> runner}_with_spinner_message
2019-09-30 12:17:07 +05:30
Pradyun Gedam
46bd454e3e
Use pep517.Pep517HookCaller.subprocess_runner
...
Also, create a new utility function for showing a spinner when running
a subprocess.
Why: The subprocess_runner API was specifically added to make it
possible for pip to stop monkey-patching Pep517HookCaller, while still
maintaining its output style. The relevant monkeypatch will be removed
in a follow up commit.
2019-09-30 12:16:45 +05:30
Pradyun Gedam
2eafb0218b
Update all the imports as needed
2019-09-30 11:15:24 +05:30
Maxim Kurnikov
3692097cca
add per-file disallow_untyped_defs=False, and set it to True globally
2019-09-29 23:31:15 +02:00
Maxim Kurnikov
64dacbf888
update mypy to 0.730
2019-09-28 17:42:27 +03:00
Pradyun Gedam
c6a2f0aac7
Rename {setup_py_dir -> unpacked_source_directory}
...
Why: Because PEP 517 means you won't have a setup.py in your unpacked sources.
2019-09-27 00:53:24 +05:30
Patrik Kopkan
9a2181a087
Add new option: pip wheel --save-wheel-names
2019-09-25 13:39:34 +02:00
Chris Jerdonek
0435316fde
Move path_to_url() to utils/urls.py.
2019-09-24 02:01:52 -07:00
Chris Hunt
ee8cc0e648
Use unpack_file instead of unpack_file_url in wheel
2019-09-19 20:19:24 -04:00
Pradyun Gedam
ad68984ec6
Rename {build_location -> ensure_build_location}
2019-09-15 22:09:34 +05:30
Pradyun Gedam
e0239735a3
Refactor wheel.move_wheel_files to use updated distlib ( #6763 )
2019-09-09 00:18:15 +05:30
Pradyun Gedam
5bee317e66
Simplify build loop in WheelBuilder.build ( #6978 )
...
Merge pull request #6978 from chrahunt/refactor/wheel-build-simpler-loop
2019-09-07 21:04:43 +05:30
Chris Hunt
f92961d99e
More descriptive function name.
2019-09-07 10:50:14 -04:00
Chris Hunt
3da9a89b5b
%-style to .format style string formatting.
2019-09-07 09:56:36 -04:00
Chris Hunt
6ebee37dc4
Add comment, reformat logging statement.
2019-09-07 09:39:32 -04:00
Chris Hunt
0c5721fe84
Simplify directory delete marker file check.
2019-09-05 11:25:19 +02:00
Chris Hunt
4cbbec982b
Shorten long line.
2019-09-04 22:33:09 -04:00
Chris Hunt
aa90d44239
Store output directory in build set instead of calculating in loop.
2019-09-04 22:29:16 -04:00
Chris Hunt
41f0ea076e
Remove unneeded shorter alias.
2019-09-04 22:27:37 -04:00
Chris Hunt
ebac7c012a
Pull constant python_tag out of loop.
2019-09-04 22:21:40 -04:00
Chris Hunt
907bc82d8b
Un-optimize conditional directory creation.
2019-09-04 22:17:19 -04:00
Chris Hunt
3473a6736d
Simplify assertion 2.
...
Per `should_use_ephemeral_cache`, we only use a non-ephemeral cache
if `cache_available`, so there's no need to check it again here.
2019-09-04 22:11:10 -04:00