Skip to content

Commit 52d7324

Browse files
authored
Merge pull request pypa#4369 from agronholm/vendored-wheel
Adopted the bdist_wheel command from "wheel"
2 parents c298fb8 + b832968 commit 52d7324

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2344
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ include
88
lib
99
distribute.egg-info
1010
setuptools.egg-info
11+
setuptools/tests/bdist_wheel_testdata/*/*.egg-info/
1112
.coverage
1213
.eggs
1314
.tox

conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def pytest_configure(config):
3939
'pkg_resources/_vendor',
4040
'setuptools/config/_validate_pyproject',
4141
'setuptools/modified.py',
42+
'setuptools/tests/bdist_wheel_testdata',
4243
]
4344

4445

docs/build_meta.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ being used to package your scripts and install from source). To use it with
6060
build-backend = "setuptools.build_meta"
6161

6262
``build_meta`` implements ``setuptools``' build system support.
63-
The ``setuptools`` package implements the ``build_sdist``
64-
command and the ``wheel`` package implements the ``build_wheel``
65-
command; the latter is a dependency of the former
66-
exposed via :pep:`517` hooks.
63+
The ``setuptools`` package implements the ``build_sdist`` and
64+
``build_wheel`` commands.
6765

6866
Use ``setuptools``' :ref:`declarative config <declarative config>` to
6967
specify the package information in ``setup.cfg``::

docs/userguide/quickstart.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ library will be used to actually do the packaging.
6060

6161
Historically this documentation has unnecessarily listed ``wheel``
6262
in the ``requires`` list, and many projects still do that. This is
63-
not recommended. The backend automatically adds ``wheel`` dependency
64-
when it is required, and listing it explicitly causes it to be
65-
unnecessarily required for source distribution builds.
63+
not recommended, as the backend no longer requires the ``wheel``
64+
package, and listing it explicitly causes it to be unnecessarily
65+
required for source distribution builds.
6666
You should only include ``wheel`` in ``requires`` if you need to explicitly
6767
access it during build time (e.g. if your project needs a ``setup.py``
6868
script that imports ``wheel``).

mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exclude = (?x)(
1414
| ^.+?/(_vendor|extern)/ # Vendored
1515
| ^setuptools/_distutils/ # Vendored
1616
| ^setuptools/config/_validate_pyproject/ # Auto-generated
17+
| ^setuptools/tests/bdist_wheel_testdata/ # Duplicate module name
1718
)
1819

1920
# Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,

newsfragments/1386.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adopted the ``bdist_wheel`` command from the ``wheel`` project -- by :user:`agronholm`

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ certs = []
9898
alias = "setuptools.command.alias:alias"
9999
bdist_egg = "setuptools.command.bdist_egg:bdist_egg"
100100
bdist_rpm = "setuptools.command.bdist_rpm:bdist_rpm"
101+
bdist_wheel = "setuptools.command.bdist_wheel:bdist_wheel"
101102
build = "setuptools.command.build:build"
102103
build_clib = "setuptools.command.build_clib:build_clib"
103104
build_ext = "setuptools.command.build_ext:build_ext"

setuptools/_vendor/vendored.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ zipp==3.7.0
99
tomli==2.0.1
1010
# required for jaraco.context on older Pythons
1111
backports.tarfile
12+
wheel==0.43.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2012 Daniel Holth <[email protected]> and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a
6+
copy of this software and associated documentation files (the "Software"),
7+
to deal in the Software without restriction, including without limitation
8+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
9+
and/or sell copies of the Software, and to permit persons to whom the
10+
Software is furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included
13+
in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)