Skip to content

Commit 148cace

Browse files
committed
Merge branch 'master' into distutils-import-hack
2 parents 6b70fb2 + 59e116c commit 148cace

39 files changed

+182
-1348
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 49.2.0
2+
current_version = 49.2.1
33
commit = True
44
tag = True
55

.github/ISSUE_TEMPLATE/blank.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/setuptools-warns-about-python-2-incompatibility.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/python-tests.yml

Lines changed: 38 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,54 @@ jobs:
2525
- 3.6
2626
- 3.5
2727
os:
28-
- ubuntu-latest
28+
- ubuntu-18.04
2929
- ubuntu-16.04
3030
- macOS-latest
3131
# - windows-2019
3232
# - windows-2016
3333
include:
34-
# Dev versions
35-
- { python-version: 3.9-dev, os: ubuntu-20.04 }
34+
# Pre-release versions (GH-shipped)
35+
- os: ubuntu-20.04
36+
python-version: 3.9.0-beta.4 - 3.9.0
37+
# Pre-release versions (deadsnakes)
38+
- os: ubuntu-20.04
39+
python-version: 3.9-beta
40+
# Dev versions (deadsnakes)
41+
- os: ubuntu-20.04
42+
python-version: 3.9-dev
43+
- os: ubuntu-20.04
44+
python-version: 3.8-dev
3645

3746
env:
3847
NETWORK_REQUIRED: 1
48+
PYTHON_VERSION: ${{ matrix.python-version }}
3949
TOX_PARALLEL_NO_SPINNER: 1
4050
TOXENV: python
51+
USE_DEADSNAKES: false
4152

4253
steps:
4354
- uses: actions/checkout@master
44-
- name: Set up Python ${{ matrix.python-version }} (deadsnakes)
55+
- name: Set flag to use deadsnakes
56+
if: >-
57+
endsWith(env.PYTHON_VERSION, '-beta') ||
58+
endsWith(env.PYTHON_VERSION, '-dev')
59+
run: |
60+
from __future__ import print_function
61+
python_version = '${{ env.PYTHON_VERSION }}'.replace('-beta', '')
62+
print('::set-env name=PYTHON_VERSION::{ver}'.format(ver=python_version))
63+
print('::set-env name=USE_DEADSNAKES::true')
64+
shell: python
65+
- name: Set up Python ${{ env.PYTHON_VERSION }} (deadsnakes)
4566
uses: deadsnakes/[email protected]
46-
if: endsWith(matrix.python-version, '-dev')
67+
if: fromJSON(env.USE_DEADSNAKES) && true || false
4768
with:
48-
python-version: ${{ matrix.python-version }}
49-
- name: Set up Python ${{ matrix.python-version }}
50-
uses: actions/[email protected]
51-
if: "!endsWith(matrix.python-version, '-dev')"
69+
python-version: ${{ env.PYTHON_VERSION }}
70+
- name: Set up Python ${{ env.PYTHON_VERSION }}
71+
uses: actions/[email protected]
72+
if: >-
73+
!fromJSON(env.USE_DEADSNAKES) && true || false
5274
with:
53-
python-version: ${{ matrix.python-version }}
75+
python-version: ${{ env.PYTHON_VERSION }}
5476
- name: Log Python version
5577
run: >-
5678
python --version
@@ -82,9 +104,9 @@ jobs:
82104
run: >-
83105
python -m pip freeze --all
84106
- name: Adjust TOXENV for PyPy
85-
if: startsWith(matrix.python-version, 'pypy')
107+
if: startsWith(env.PYTHON_VERSION, 'pypy')
86108
run: >-
87-
echo "::set-env name=TOXENV::${{ matrix.python-version }}"
109+
echo "::set-env name=TOXENV::${{ env.PYTHON_VERSION }}"
88110
- name: Log env vars
89111
run: >-
90112
env
@@ -100,10 +122,14 @@ jobs:
100122
python -m
101123
tox
102124
--parallel auto
125+
--parallel-live
103126
--notest
104127
--skip-missing-interpreters false
105128
- name: Test with tox
106129
run: >-
107130
python -m
108131
tox
109132
--parallel auto
133+
--parallel-live
134+
--
135+
-vvvvv

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
v49.2.1
2+
-------
3+
4+
* #2257: Fixed two flaws in distutils._msvccompiler.MSVCCompiler.spawn.
5+
6+
17
v49.2.0
28
-------
39

README.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.. image:: https://raw.githubusercontent.com/pypa/setuptools/master/docs/logo/banner%201%20line%20color.svg
2-
3-
41
.. image:: https://img.shields.io/pypi/v/setuptools.svg
52
:target: `PyPI link`_
63

@@ -27,7 +24,6 @@
2724
.. image:: https://tidelift.com/badges/github/pypa/setuptools?style=flat
2825
:target: https://tidelift.com/subscription/pkg/pypi-setuptools?utm_source=pypi-setuptools&utm_medium=readme
2926

30-
3127
See the `Installation Instructions
3228
<https://packaging.python.org/installing/>`_ in the Python Packaging
3329
User's Guide for instructions on installing, upgrading, and uninstalling
@@ -58,4 +54,4 @@ Code of Conduct
5854

5955
Everyone interacting in the setuptools project's codebases, issue trackers,
6056
chat rooms, and mailing lists is expected to follow the
61-
`PyPA Code of Conduct <https://www.pypa.io/en/latest/code-of-conduct/>`_.
57+
`PSF Code of Conduct <https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md>`_.

docs/distutils-legacy.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Porting from Distutils
2+
======================
3+
4+
Setuptools and the PyPA have a `stated goal <https://github.com/pypa/packaging-problems/issues/127>`_ to make Setuptools the reference API for distutils.
5+
6+
Since the 49.1.2 release, Setuptools includes a local, vendored copy of distutils (from late copies of CPython) that is disabled by default. To enable the use of this copy of distutils when invoking setuptools, set the enviroment variable:
7+
8+
SETUPTOOLS_USE_DISTUTILS=local
9+
10+
This behavior is planned to become the default.
11+
12+
Prefer Setuptools
13+
-----------------
14+
15+
As Distutils is deprecated, any usage of functions or objects from distutils is similarly discouraged, and Setuptools aims to replace or deprecate all such uses. This section describes the recommended replacements.
16+
17+
``distutils.core.setup`` → ``setuptools.setup``
18+
19+
``distutils.cmd.Command`` → ``setuptools.Command``
20+
21+
``distutils.log`` → (no replacement yet)
22+
23+
``distutils.version.*`` → ``packaging.version.*``
24+
25+
If a project relies on uses of ``distutils`` that do not have a suitable replacement above, please search the `Setuptools issue tracker <https://github.com/pypa/setuptools/issues/>`_ and file a request, describing the use-case so that Setuptools' maintainers can investigate. Please provide enough detail to help the maintainers understand how distutils is used, what value it provides, and why that behavior should be supported.

docs/index.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.. image:: https://raw.githubusercontent.com/pypa/setuptools/master/docs/logo/banner%201%20line%20color.svg
2-
3-
41
Documentation
52
=============
63

@@ -18,4 +15,5 @@ Documentation content:
1815
development
1916
roadmap
2017
Deprecated: Easy Install <easy_install>
18+
distutils-legacy
2119
history

docs/logo/README.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/logo/banner 1 line color.png

-23.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)