Skip to content

Commit

Permalink
Merge branch 'main' into use-actual-booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Jun 17, 2024
2 parents 3a43a52 + 8aa9855 commit 7946ef5
Show file tree
Hide file tree
Showing 85 changed files with 2,805 additions and 277 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ include
lib
distribute.egg-info
setuptools.egg-info
setuptools/tests/bdist_wheel_testdata/*/*.egg-info/
.coverage
.eggs
.tox
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def pytest_configure(config):
'pkg_resources/_vendor',
'setuptools/config/_validate_pyproject',
'setuptools/modified.py',
'setuptools/tests/bdist_wheel_testdata',
]


Expand Down
6 changes: 2 additions & 4 deletions docs/build_meta.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ being used to package your scripts and install from source). To use it with
build-backend = "setuptools.build_meta"

``build_meta`` implements ``setuptools``' build system support.
The ``setuptools`` package implements the ``build_sdist``
command and the ``wheel`` package implements the ``build_wheel``
command; the latter is a dependency of the former
exposed via :pep:`517` hooks.
The ``setuptools`` package implements the ``build_sdist`` and
``build_wheel`` commands.

Use ``setuptools``' :ref:`declarative config <declarative config>` to
specify the package information in ``setup.cfg``::
Expand Down
6 changes: 3 additions & 3 deletions docs/userguide/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ library will be used to actually do the packaging.

Historically this documentation has unnecessarily listed ``wheel``
in the ``requires`` list, and many projects still do that. This is
not recommended. The backend automatically adds ``wheel`` dependency
when it is required, and listing it explicitly causes it to be
unnecessarily required for source distribution builds.
not recommended, as the backend no longer requires the ``wheel``
package, and listing it explicitly causes it to be unnecessarily
required for source distribution builds.
You should only include ``wheel`` in ``requires`` if you need to explicitly
access it during build time (e.g. if your project needs a ``setup.py``
script that imports ``wheel``).
Expand Down
3 changes: 2 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ explicit_package_bases = True
exclude = (?x)(
^build/
| ^.tox/
| ^.egg/
| ^.eggs/
| ^pkg_resources/tests/data/my-test-package-source/setup.py$ # Duplicate module name
| ^.+?/(_vendor|extern)/ # Vendored
| ^setuptools/_distutils/ # Vendored
| ^setuptools/config/_validate_pyproject/ # Auto-generated
| ^setuptools/tests/bdist_wheel_testdata/ # Duplicate module name
)

# Ignoring attr-defined because setuptools wraps a lot of distutils classes, adding new attributes,
Expand Down
1 change: 1 addition & 0 deletions newsfragments/1386.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adopted the ``bdist_wheel`` command from the ``wheel`` project -- by :user:`agronholm`
4 changes: 4 additions & 0 deletions newsfragments/4246.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Improve error message when ``pkg_resources.ZipProvider`` tries to extract resources with a missing Egg -- by :user:`Avasam`

Added variables and parameter type annotations to ``pkg_resources`` to be nearly on par with typeshed.\* -- by :user:`Avasam`
\* Excluding ``TypeVar`` and ``overload``. Return types are currently inferred.
1 change: 1 addition & 0 deletions newsfragments/4382.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prevent a ``TypeError: 'NoneType' object is not callable`` when ``shutil_rmtree`` is called without an ``onexc`` parameter on Python<=3.11 -- by :user:`Avasam`
1 change: 1 addition & 0 deletions newsfragments/4403.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace use of mktemp with can_symlink from the stdlib test suite.
2 changes: 2 additions & 0 deletions newsfragments/4405.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Improvement for ``attr:`` directives in configuration to handle
more edge cases related to complex ``package_dir``.
1 change: 1 addition & 0 deletions newsfragments/4411.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix accidental implicit string concatenation.
Loading

0 comments on commit 7946ef5

Please sign in to comment.