Xavier Fernandez
9c64c82186
Merge pull request #7561 from chrahunt/maint/use-packaging-tags-mac-versions
...
Switch to packaging.tags.mac_version for macOS wheel tag backfilling
2020-01-07 14:39:01 +01:00
Pradyun Gedam
9e910aa81d
Remove AppVeyor ( #7564 )
2020-01-07 13:27:58 +00:00
Pradyun Gedam
52309f98d1
Merge pull request #7532 from uranusjr/pip-upgrade-prompt-message
...
Use sys.executable to format upgrade message
2020-01-07 12:34:54 +00:00
Pradyun Gedam
ea27521359
Custom optparse.Option type that calls expanduser ( #7534 )
2020-01-07 12:26:38 +00:00
Pradyun Gedam
6c515125c2
Merge pradyunsg:revert/6864 into master ( #7557 )
...
Revert addition of un-suffixed pip CLI entry points for invocation check on Windows
2020-01-07 08:16:38 +00:00
Chris Hunt
bc20a983da
Use packaging.tags.mac_platforms
...
This function takes care of the version iteration AND architecture
determination internally.
2020-01-07 02:16:57 -05:00
Chris Hunt
687a00b3e1
Sort pep425tags typing imports
...
Makes the next change easier to review.
2020-01-07 02:16:28 -05:00
Christopher Hunt
1d0eb4625f
Merge pull request #7563 from chrahunt/maint/use-packaging-tags-tag
...
Use packaging.tags.Tag to represent tag throughout the code
2020-01-07 15:16:00 +08:00
Pradyun Gedam
4ee779f79e
Drop no longer valid tests
2020-01-07 12:25:11 +05:30
Chris Hunt
58f175fdf2
Remove unused format_tag
...
Since we delegate tag formatting to packaging.tags.Tag, we don't need
this function or its tests.
2020-01-07 01:42:42 -05:00
Chris Hunt
80b2c82d0c
Use packaging.tags.Tag in place of Tuple
...
This is the standard type used by packaging.tags. Making this change
throughout the code lets us start switching over to using its
tag-generating functions in get_supported().
We also get rid of a test, since it was superseded by `__str__` in
packaging.tags.Tag.
2020-01-07 01:42:42 -05:00
Christopher Hunt
f526f13a76
Merge pull request #7562 from chrahunt/maint/use-packaging-tags-interpreter-functions
...
Use interpreter_name and interpreter_version from packaging.tags
2020-01-07 14:39:54 +08:00
Christopher Hunt
4f7146c71c
Merge pull request #7566 from chrahunt/maint/use-packaging-tags-refactor-platform-list
...
Extract platform list into separate function in pep425tags
2020-01-07 14:38:26 +08:00
Tzu-ping Chung
9bf6a3b3fb
List URL/path options in news
2020-01-07 10:57:34 +05:30
Tzu-ping Chung
32ecd727d5
Rename custom option class for future expansion
2020-01-07 10:50:53 +05:30
Chris Hunt
838d64d865
Extract platform list into separate function
...
Simplifies get_supported without changing any behavior.
2020-01-06 22:28:55 -05:00
Chris Hunt
927ea8be29
Replace AppVeyor with Azure in CI docs
2020-01-06 19:33:49 -05:00
Chris Hunt
24a9d77e41
Move AppVeyor tests to Azure Pipelines
...
This will allow us to have CI running concurrently on multiple PRs,
since we get 30 parallel jobs on Azure Pipelines but only 1 on AppVeyor.
We have parameterized --use-venv since AppVeyor was using it, but Azure
Pipelines was previously not.
2020-01-06 19:32:05 -05:00
Chris Hunt
893faa9e44
Replace get_abbr_impl with interpreter_name
...
This reduces the amount of code we have to manage.
interpreter_name is calculated differently, defaulting to the
long name of the interpreter rather than "cp", but that is more
conformant.
2020-01-06 18:27:51 -05:00
Chris Hunt
4b5614c9e2
Replace get_impl_ver with interpreter_version
2020-01-06 18:27:27 -05:00
Christopher Hunt
902ee9bb34
Merge pull request #7559 from chrahunt/maint/use-packaging-tags-update-vendored
...
Update vendored library: packaging
2020-01-07 06:03:14 +08:00
Chris Hunt
44b664fd7c
Add news
2020-01-06 14:05:08 -05:00
Chris Hunt
c750c1d82a
Update packaging to 20.0
2020-01-06 14:04:07 -05:00
Chris Hunt
8460394c47
Update packaging version and include py.typed
...
Since the new packaging has types, it includes a py.typed. No harm in
including this in our package, and it may facilitate debug tool usage on
an installed pip by signaling that pip._vendor.packaging is
type-annotated.
2020-01-06 14:03:34 -05:00
Pradyun Gedam
5e1455561e
Move should_build filtering to wheel and install commands ( #7527 )
2020-01-06 14:25:40 +00:00
Pradyun Gedam
d9d801f818
Drop no-suffix checks for pip-from-PATH
2020-01-06 19:29:56 +05:30
Stéphane Bidoul (ACSONE)
5aa3b3d2f0
Remove unused build() argument
2020-01-05 23:52:42 +01:00
Stéphane Bidoul (ACSONE)
66e010980a
Remove WheelBuilder
...
build is now a function
2020-01-05 23:52:42 +01:00
Stéphane Bidoul (ACSONE)
f04e6ab7b5
Split should_build test
...
Separately test should_build_for_wheel_command
and should_buid_for_install_command.
The tests are simpler and this open the door
for reasoning about both functions independently.
2020-01-05 23:52:42 +01:00
Stéphane Bidoul (ACSONE)
9729273ca8
Make should_build and should_cache "private"
2020-01-05 23:52:42 +01:00
Stéphane Bidoul (ACSONE)
c0aca12123
Clarify should_cache a bit
2020-01-05 23:52:42 +01:00
Stéphane Bidoul (ACSONE)
68179ea0de
Add .trivial newsfile
2020-01-05 23:52:41 +01:00
Stéphane Bidoul (ACSONE)
25521f29b5
should_build always returns a boolean
2020-01-05 23:52:41 +01:00
Stéphane Bidoul (ACSONE)
6e7d0e5a05
_collect_buildset becomes _get_cache_dir
...
The only purpose of _collect_buildset is now
to compute the cache directory to use
for a given requirements. This is better
computed one by one in the build loop.
2020-01-05 23:52:41 +01:00
Stéphane Bidoul (ACSONE)
870106b9bb
Simplify _collect_buildset
...
Since filtering of what to build has been
done beforehand, there is no need to filter
again here anymore.
2020-01-05 23:52:41 +01:00
Stéphane Bidoul (ACSONE)
212ee12474
Filter requirements to build beforehand in install command
...
One more step so build() becomes only concerned with building.
2020-01-05 23:52:41 +01:00
Stéphane Bidoul (ACSONE)
8ca8e9bf61
Extend should_build scope wrt legacy requirements
...
We don't build legacy requirements
when wheel is not installed because
we'll fallback to a legacy install in such case.
2020-01-05 23:52:40 +01:00
Stéphane Bidoul (ACSONE)
3ae13f7d28
Move is_wheel_installed to utils
2020-01-05 23:52:40 +01:00
Stéphane Bidoul (ACSONE)
e45005f4bb
Filter requirements to build beforehand in wheel command
...
One more step so build() becomes only concerned with building.
2020-01-05 23:52:40 +01:00
Stéphane Bidoul (ACSONE)
3de4765ec7
Add should_build function for wheel and install commands
2020-01-05 23:52:40 +01:00
Stéphane Bidoul (ACSONE)
4bdca1a09a
Remove now useless build_wheels function
2020-01-05 23:52:40 +01:00
Stéphane Bidoul (ACSONE)
10ff58d7be
Simplify install by calling build once
...
We filter what to build beforehand so we
can call build once. We then filter failures
to detect PEP 517 failures.
2020-01-05 23:52:38 +01:00
Stéphane Bidoul (ACSONE)
8601bb5d06
Make build_wheels return all failures
...
Check for PEP 517 build failures by
filtering failures.
2020-01-05 23:52:03 +01:00
Stéphane Bidoul (ACSONE)
8784fb419a
Make build_wheels return successes too
...
In preparation for moving the unpacking
out of WheelBuilder.build
2020-01-05 18:47:52 +01:00
Christopher Hunt
b7ed044525
Merge pull request #7539 from chrahunt/refactor/get-dist-from-zip
...
Use wheelfile-based pkg_resources.Distribution for metadata
2020-01-06 01:24:13 +08:00
Chris Hunt
a94fb53dad
Don't unpack wheel files after building for install
...
Actual installation has been using the wheel file directly for some
time. The last piece that required an unpacked wheel was metadata. Now
that it uses the wheel file directly, we can remove the unpacking after
build.
2020-01-05 10:57:15 -05:00
Chris Hunt
33043ba22f
Use pkg_resources.Distribution derived from wheel directly
...
We now extract all metadata files from the wheel directly into memory
and make them available to the wrapping pkg_resources.Distribution via
the DictMetadata introduced earlier.
2020-01-05 10:57:14 -05:00
Chris Hunt
ed65393840
Extract reading wheel file from wheel_metadata into separate function
2020-01-04 20:50:17 -05:00
Chris Hunt
ae34781826
Parameterize wheel file path for metadata extraction
2020-01-04 20:50:17 -05:00
Chris Hunt
20706eb93f
Add DictMetadata for adapting zip data to Distribution
...
pkg_resources.Distribution classes delegate to the IMetadataProvider
implementation provided at construction. This is the one we'll use for
adapting a ZipFile to pkg_resources.DistInfoDistribution.
2020-01-04 20:49:41 -05:00