[bumpversion]
-current_version = 54.2.0
+current_version = 55.0.0
commit = True
tag = True
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- TIDELIFT_TOKEN: ${{ secrets.TIDELIFT_TOKEN }}
version: 2
python:
install:
- - requirements: docs/requirements.txt
+ - path: .
+ extra_requirements:
+ - docs
+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
-------
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
+++ /dev/null
-# 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
=src
packages = find_namespace:
- [options.packages.find_namespace]
+ [options.packages.find]
where = src
When you install the zipped distribution, ``timmins.foo`` would become
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
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'
'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
+++ /dev/null
-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
@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'
from distutils import log
import distutils.command.install_scripts as orig
+from distutils.errors import DistutilsModuleError
import os
import sys
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:
+++ /dev/null
-"""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()
twine>=3
path
jaraco.develop>=7.1
- jaraco.tidelift
passenv =
TWINE_PASSWORD
GITHUB_TOKEN
- TIDELIFT_TOKEN
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -m build
python -m twine upload dist/*
python -m jaraco.develop.create-github-release
- python -m jaraco.tidelift.publish-release-notes