[bumpversion]
-current_version = 59.8.0
+current_version = 60.0.0
commit = True
tag = True
${{ runner.os }},
${{ matrix.python }}
+ test_cygwin:
+ strategy:
+ matrix:
+ distutils:
+ - stdlib
+ - local
+ runs-on: windows-latest
+ env:
+ SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Cygwin with Python and tox
+ run: |
+ choco install git gcc-core python38-devel python38-pip --source cygwin
+ C:\\tools\\cygwin\\bin\\bash -l -x -c 'python3.8 -m pip install tox'
+ - name: Run tests
+ run: |
+ C:\\tools\\cygwin\\bin\\bash -l -x -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && tox -- --cov-report xml'
+
release:
needs: test
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
+v60.0.0
+-------
+
+
+Breaking Changes
+^^^^^^^^^^^^^^^^
+* #2896: Setuptools once again makes its local copy of distutils the default. To override, set SETUPTOOLS_USE_DISTUTILS=stdlib.
+
+
v59.8.0
-------
"""
Allow selection of distutils by environment variable.
"""
- which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'local')
return which == 'local'
pattern=r'pypa/distutils#(?P<distutils>\d+)',
url='{GH}/pypa/distutils/issues/{distutils}',
),
+ dict(
+ pattern=r'pypa/distutils@(?P<distutils_commit>[\da-f]+)',
+ url='{GH}/pypa/distutils/commit/{distutils_commit}',
+ ),
dict(
pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
[metadata]
name = setuptools
-version = 59.8.0
+version = 60.0.0
author = Python Packaging Authority
author_email = distutils-sig@python.org
description = Easily download, build, install, upgrade, and uninstall Python packages
_pth_contents = textwrap.dedent("""
import os
var = 'SETUPTOOLS_USE_DISTUTILS'
- enabled = os.environ.get(var, 'stdlib') == 'local'
+ enabled = os.environ.get(var, 'local') == 'local'
enabled and __import__('_distutils_hack').add_shim()
""").lstrip().replace('\n', '; ')