From: JinWang An Date: Mon, 27 Mar 2023 08:02:40 +0000 (+0900) Subject: Imported Upstream version 60.0.0 X-Git-Tag: upstream/60.0.0^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd6d6ba1cc482cb52ecc7a479448e04c1d71272c;p=platform%2Fupstream%2Fpython-setuptools.git Imported Upstream version 60.0.0 --- diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 562bc7d..b458548 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 59.8.0 +current_version = 60.0.0 commit = True tag = True diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b546dc..5a01e9a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,6 +40,25 @@ jobs: ${{ 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/') diff --git a/CHANGES.rst b/CHANGES.rst index 0b018b2..3e65805 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +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 ------- diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py index f707416..ae97a0b 100644 --- a/_distutils_hack/__init__.py +++ b/_distutils_hack/__init__.py @@ -42,7 +42,7 @@ def enabled(): """ 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' diff --git a/docs/conf.py b/docs/conf.py index 3cc8e35..f6ccff0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -68,6 +68,10 @@ link_files = { pattern=r'pypa/distutils#(?P\d+)', url='{GH}/pypa/distutils/issues/{distutils}', ), + dict( + pattern=r'pypa/distutils@(?P[\da-f]+)', + url='{GH}/pypa/distutils/commit/{distutils_commit}', + ), dict( pattern=r'^(?m)((?Pv?\d+(\.\d+){1,2}))\n[-=]+\n', with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n', diff --git a/setup.cfg b/setup.cfg index 21bdf4a..6a67e79 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [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 diff --git a/setup.py b/setup.py index c6affe9..4cda3d3 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ class install_with_pth(install): _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', '; ')