Imported Upstream version 55.0.0 upstream/55.0.0
authorJinWang An <jinwang.an@samsung.com>
Mon, 27 Mar 2023 08:02:33 +0000 (17:02 +0900)
committerJinWang An <jinwang.an@samsung.com>
Mon, 27 Mar 2023 08:02:33 +0000 (17:02 +0900)
14 files changed:
.bumpversion.cfg
.github/workflows/main.yml
.readthedocs.yml
CHANGES.rst
_distutils_hack/__init__.py
docs/requirements.txt [deleted file]
docs/userguide/package_discovery.rst
setup.cfg
setuptools/command/__init__.py
setuptools/command/bdist_wininst.py [deleted file]
setuptools/command/easy_install.py
setuptools/command/install_scripts.py
setuptools/tests/test_bdist_deprecations.py [deleted file]
tox.ini

index fdde71809e045051389755301590c6ad50ba7c29..7fe611a698da7b1380b57a091036eef29866c713 100644 (file)
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 54.2.0
+current_version = 55.0.0
 commit = True
 tag = True
 
index f544814cf84c68e8c0c7c50e0b2c751a5ae1bc25..37d65f33d08d4e1dafc8f14db10a008b65b3dbd8 100644 (file)
@@ -40,4 +40,3 @@ jobs:
         env:
           TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-          TIDELIFT_TOKEN: ${{ secrets.TIDELIFT_TOKEN }}
index 850d79c4a18baa2309372d11a4013e14ddc131cc..cc698548db4fa194439c2da704e1d4c342ef4200 100644 (file)
@@ -1,4 +1,6 @@
 version: 2
 python:
   install:
-  - requirements: docs/requirements.txt
+  - path: .
+    extra_requirements:
+      - docs
index dca490b75b0029214a6a9f34d3588909c8d0a50c..d073fa8ef3f8b9f5fca717b7b27767f5e612d6dd 100644 (file)
@@ -1,3 +1,12 @@
+v55.0.0
+-------
+
+
+Breaking Changes
+^^^^^^^^^^^^^^^^
+* #2566: Remove the deprecated ``bdist_wininst`` command. Binary packages should be built as wheels instead. -- by :user:`hroncok`
+
+
 v54.2.0
 -------
 
index c31edfed172fa86bc0a6b4248776393ba8fcc502..47ce24944bc0ddbdc6d872e0fa536ed94415dde0 100644 (file)
@@ -8,6 +8,11 @@ import warnings
 is_pypy = '__pypy__' in sys.builtin_module_names
 
 
+warnings.filterwarnings('ignore',
+                        '.+ distutils .+ deprecated',
+                        DeprecationWarning)
+
+
 def warn_distutils_present():
     if 'distutils' not in sys.modules:
         return
diff --git a/docs/requirements.txt b/docs/requirements.txt
deleted file mode 100644 (file)
index 0292759..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# keep these in sync with setup.cfg
-sphinx
-jaraco.packaging>=6.1
-rst.linker>=1.9
-pygments-github-lexers==0.0.5
-sphinx-inline-tabs
-
-setuptools>=34
index 842ade828d47b8cc3a5b9e21761d8c4c77cee30d..0a8070ae438dd770117279fa24bc93e60cdef801 100644 (file)
@@ -156,7 +156,7 @@ to use ``find_namespace:``:
         =src
     packages = find_namespace:
 
-    [options.packages.find_namespace]
+    [options.packages.find]
     where = src
 
 When you install the zipped distribution, ``timmins.foo`` would become
index 1b0e618807245ea9d5d4eb4ed0415d29cda2069f..6bb6508f8bf16b84e67496c9b7646f3dfbdeb43e 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,7 +2,7 @@
 license_files =
        LICENSE
 name = setuptools
-version = 54.2.0
+version = 55.0.0
 author = Python Packaging Authority
 author_email = distutils-sig@python.org
 description = Easily download, build, install, upgrade, and uninstall Python packages
@@ -67,15 +67,14 @@ testing =
        jaraco.path>=3.2.0
 
 docs =
-       # Keep these in sync with docs/requirements.txt
        # upstream
        sphinx
        jaraco.packaging >= 8.2
        rst.linker >= 1.9
-       sphinx-inline-tabs
 
        # local
        pygments-github-lexers==0.0.5
+       sphinx-inline-tabs
 
 ssl =
        wincertstore==0.2; sys_platform=='win32'
index 743f5588faf3ad79850df7bd196749e7a6c03f93..570e69576e9d6d53b9dfaa04c5a6bcefde8fd609 100644 (file)
@@ -2,7 +2,7 @@ __all__ = [
     'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop',
     'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts',
     'sdist', 'setopt', 'test', 'install_egg_info', 'install_scripts',
-    'bdist_wininst', 'upload_docs', 'build_clib', 'dist_info',
+    'upload_docs', 'build_clib', 'dist_info',
 ]
 
 from distutils.command.bdist import bdist
diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py
deleted file mode 100644 (file)
index ff4b634..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-import distutils.command.bdist_wininst as orig
-import warnings
-
-from setuptools import SetuptoolsDeprecationWarning
-
-
-class bdist_wininst(orig.bdist_wininst):
-    def reinitialize_command(self, command, reinit_subcommands=0):
-        """
-        Supplement reinitialize_command to work around
-        http://bugs.python.org/issue20819
-        """
-        cmd = self.distribution.reinitialize_command(
-            command, reinit_subcommands)
-        if command in ('install', 'install_lib'):
-            cmd.install_lib = None
-        return cmd
-
-    def run(self):
-        warnings.warn(
-            "bdist_wininst is deprecated and will be removed in a future "
-            "version. Use bdist_wheel (wheel packages) instead.",
-            SetuptoolsDeprecationWarning
-        )
-
-        self._is_running = True
-        try:
-            orig.bdist_wininst.run(self)
-        finally:
-            self._is_running = False
index 0917804f41268a3ee6d227f0b7387ef1bf26480e..45adb6a1eaf5f0b323523a6389fbaf400662229a 100644 (file)
@@ -2193,7 +2193,7 @@ class WindowsScriptWriter(ScriptWriter):
     @classmethod
     def _adjust_header(cls, type_, orig_header):
         """
-        Make sure 'pythonw' is used for gui and and 'python' is used for
+        Make sure 'pythonw' is used for gui and 'python' is used for
         console (regardless of what sys.executable is).
         """
         pattern = 'pythonw.exe'
index 8c9a15e2bbda0ecb1442d1792627b695509e3330..9cd8eb06277f449599a7b4babe74e1adab33bdc2 100644 (file)
@@ -1,5 +1,6 @@
 from distutils import log
 import distutils.command.install_scripts as orig
+from distutils.errors import DistutilsModuleError
 import os
 import sys
 
@@ -35,7 +36,7 @@ class install_scripts(orig.install_scripts):
         try:
             bw_cmd = self.get_finalized_command("bdist_wininst")
             is_wininst = getattr(bw_cmd, '_is_running', False)
-        except ImportError:
+        except (ImportError, DistutilsModuleError):
             is_wininst = False
         writer = ei.ScriptWriter
         if is_wininst:
diff --git a/setuptools/tests/test_bdist_deprecations.py b/setuptools/tests/test_bdist_deprecations.py
deleted file mode 100644 (file)
index 704164a..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-"""develop tests
-"""
-import mock
-
-import pytest
-
-from setuptools.dist import Distribution
-from setuptools import SetuptoolsDeprecationWarning
-
-
-@mock.patch("distutils.command.bdist_wininst.bdist_wininst")
-def test_bdist_wininst_warning(distutils_cmd):
-    dist = Distribution(dict(
-        script_name='setup.py',
-        script_args=['bdist_wininst'],
-        name='foo',
-        py_modules=['hi'],
-    ))
-    dist.parse_command_line()
-    with pytest.warns(SetuptoolsDeprecationWarning):
-        dist.run_commands()
-
-    distutils_cmd.run.assert_called_once()
diff --git a/tox.ini b/tox.ini
index aea213c4ecdaa56201fe5a504cd83b836d096357..04e77ed52736898fbdf61cbe5cf2d9ee84ba875f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -56,11 +56,9 @@ deps =
        twine>=3
        path
        jaraco.develop>=7.1
-       jaraco.tidelift
 passenv =
        TWINE_PASSWORD
        GITHUB_TOKEN
-       TIDELIFT_TOKEN
 setenv =
        TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
 commands =
@@ -71,4 +69,3 @@ commands =
        python -m build
        python -m twine upload dist/*
        python -m jaraco.develop.create-github-release
-       python -m jaraco.tidelift.publish-release-notes