Skip to content

Commit 72cac69

Browse files
authored
Merge branch 'main' into pkg_resoruces-typign-fixes-for-annotations
2 parents 3ad4b1c + a3d0be5 commit 72cac69

File tree

263 files changed

+10837
-2492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+10837
-2492
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 = 69.1.1
2+
current_version = 69.5.1
33
commit = True
44
tag = True
55

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
omit =
33
# leading `*/` for pytest-dev/pytest-cov#456
44
*/.tox/*
5+
6+
# local
7+
*/_vendor/*
8+
*/tools/*
9+
*/setuptools/_distutils/*
10+
511
disable_warnings =
612
couldnt-parse
713

.github/workflows/ci-sage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
&& echo "sage-package create ${{ env.SPKG }} --pypi --source normal --type standard; sage-package create ${{ env.SPKG }} --version git --tarball ${{ env.SPKG }}-git.tar.gz --type=standard" > upstream/update-pkgs.sh \
7474
&& if [ -n "${{ env.REMOVE_PATCHES }}" ]; then echo "(cd ../build/pkgs/${{ env.SPKG }}/patches && rm -f ${{ env.REMOVE_PATCHES }}; :)" >> upstream/update-pkgs.sh; fi \
7575
&& ls -l upstream/
76-
- uses: actions/upload-artifact@v2
76+
- uses: actions/upload-artifact@v3
7777
with:
7878
path: upstream
7979
name: upstream

.github/workflows/main.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on:
44
merge_group:
55
push:
66
branches-ignore:
7-
# disabled for jaraco/skeleton#103
8-
# - gh-readonly-queue/** # Temporary merge queue-related GH-made branches
7+
# temporary GH branches relating to merge queues (jaraco/skeleton#93)
8+
- gh-readonly-queue/**
9+
tags:
10+
# required if branches-ignore is supplied (jaraco/skeleton#103)
11+
- '**'
912
pull_request:
1013
workflow_dispatch:
1114

@@ -36,10 +39,10 @@ env:
3639
jobs:
3740
test:
3841
strategy:
42+
# https://blog.jaraco.com/efficient-use-of-ci-resources/
3943
matrix:
4044
python:
4145
- "3.8"
42-
- "3.11"
4346
- "3.12"
4447
platform:
4548
- ubuntu-latest
@@ -50,6 +53,8 @@ jobs:
5053
platform: ubuntu-latest
5154
- python: "3.10"
5255
platform: ubuntu-latest
56+
- python: "3.11"
57+
platform: ubuntu-latest
5358
- python: pypy3.10
5459
platform: ubuntu-latest
5560
distutils: stdlib
@@ -65,11 +70,11 @@ jobs:
6570
- uses: actions/checkout@v4
6671
- name: Setup Python
6772
id: python-install
68-
uses: actions/setup-python@v4
73+
uses: actions/setup-python@v5
6974
with:
7075
python-version: ${{ matrix.python }}
7176
allow-prereleases: true
72-
- uses: actions/cache@v3
77+
- uses: actions/cache@v4
7378
id: cache
7479
with:
7580
path: setuptools/tests/config/downloads/*.cfg
@@ -100,14 +105,15 @@ jobs:
100105
run: pipx run coverage xml --ignore-errors
101106
- name: Publish coverage
102107
if: hashFiles('coverage.xml') != '' # Rudimentary `file.exists()`
103-
uses: codecov/codecov-action@v3
108+
uses: codecov/codecov-action@v4
104109
with:
105110
flags: >- # Mark which lines are covered by which envs
106111
CI-GHA,
107112
${{ github.job }},
108113
OS-${{ runner.os }},
109114
VM-${{ matrix.platform }},
110115
Py-${{ steps.python-install.outputs.python-version }}
116+
token: ${{ secrets.CODECOV_TOKEN }}
111117

112118
collateral:
113119
strategy:
@@ -122,7 +128,7 @@ jobs:
122128
with:
123129
fetch-depth: 0
124130
- name: Setup Python
125-
uses: actions/setup-python@v4
131+
uses: actions/setup-python@v5
126132
with:
127133
python-version: 3.x
128134
- name: Install tox
@@ -158,9 +164,9 @@ jobs:
158164
runs-on: ${{ matrix.platform }}
159165
timeout-minutes: 75
160166
steps:
161-
- uses: actions/checkout@v3
167+
- uses: actions/checkout@v4
162168
- name: Install Cygwin with Python
163-
uses: cygwin/cygwin-install-action@v2
169+
uses: cygwin/cygwin-install-action@v4
164170
with:
165171
platform: x86_64
166172
packages: >-
@@ -171,7 +177,7 @@ jobs:
171177
git,
172178
- name: Record the currently selected Python version
173179
id: python-install
174-
# NOTE: This roughly emulates what `actions/setup-python@v4` provides
180+
# NOTE: This roughly emulates what `actions/setup-python` provides
175181
# NOTE: except the action gets the version from the installation path
176182
# NOTE: on disk and we get it from runtime.
177183
run: |
@@ -190,7 +196,7 @@ jobs:
190196
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}
191197
- name: Publish coverage
192198
if: hashFiles('coverage.xml') != '' # Rudimentary `file.exists()`
193-
uses: codecov/codecov-action@v3
199+
uses: codecov/codecov-action@v4
194200
with:
195201
files: >-
196202
${{ github.workspace }}\coverage.xml
@@ -200,6 +206,7 @@ jobs:
200206
OS-${{ runner.os }},
201207
VM-${{ matrix.platform }},
202208
Py-${{ steps.python-install.outputs.python-version }}
209+
token: ${{ secrets.CODECOV_TOKEN }}
203210

204211
integration-test:
205212
needs: test
@@ -214,13 +221,13 @@ jobs:
214221
runs-on: ubuntu-latest
215222
timeout-minutes: 75
216223
steps:
217-
- uses: actions/checkout@v3
224+
- uses: actions/checkout@v4
218225
- name: Install OS-level dependencies
219226
run: |
220227
sudo apt-get update
221228
sudo apt-get install build-essential gfortran libopenblas-dev libyaml-dev
222229
- name: Setup Python
223-
uses: actions/setup-python@v4
230+
uses: actions/setup-python@v5
224231
with:
225232
# Use a release that is not very new but still have a long life:
226233
python-version: "3.10"
@@ -241,7 +248,7 @@ jobs:
241248
steps:
242249
- uses: actions/checkout@v4
243250
- name: Setup Python
244-
uses: actions/setup-python@v4
251+
uses: actions/setup-python@v5
245252
with:
246253
python-version: 3.x
247254
- name: Install tox

.readthedocs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ build:
1010
os: ubuntu-lts-latest
1111
tools:
1212
python: latest
13+
# post-checkout job to ensure the clone isn't shallow jaraco/skeleton#114
14+
jobs:
15+
post_checkout:
16+
- git fetch --unshallow || true

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ include MANIFEST.in
1313
include LICENSE
1414
include launcher.c
1515
include msvc-build-launcher.cmd
16+
include mypy.ini
1617
include pytest.ini
1718
include tox.ini
1819
include setuptools/tests/config/setupcfg_examples.txt

NEWS.rst

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,86 @@
1+
v69.5.1
2+
=======
3+
4+
No significant changes.
5+
6+
7+
v69.5.0
8+
=======
9+
10+
Features
11+
--------
12+
13+
- Refresh unpinned vendored dependencies. (#4253)
14+
- Updated vendored packaging to version 24.0. (#4301)
15+
16+
17+
v69.4.2
18+
=======
19+
20+
Bugfixes
21+
--------
22+
23+
- Merged bugfix for pypa/distutils#246.
24+
25+
26+
v69.4.1
27+
=======
28+
29+
No significant changes.
30+
31+
32+
v69.4.0
33+
=======
34+
35+
Features
36+
--------
37+
38+
- Merged with pypa/distutils@55982565e, including interoperability improvements for rfc822_escape (pypa/distutils#213), dynamic resolution of config_h_filename for Python 3.13 compatibility (pypa/distutils#219), added support for the z/OS compiler (pypa/distutils#216), modernized compiler options in unixcompiler (pypa/distutils#214), fixed accumulating flags bug after compile/link (pypa/distutils#207), fixed enconding warnings (pypa/distutils#236), and general quality improvements (pypa/distutils#234). (#4298)
39+
40+
41+
v69.3.1
42+
=======
43+
44+
Bugfixes
45+
--------
46+
47+
- Remove attempt to canonicalize the version. It's already canonical enough. (#4302)
48+
49+
50+
v69.3.0
51+
=======
52+
53+
Features
54+
--------
55+
56+
- Support PEP 625 by canonicalizing package name and version in filenames. (#3593)
57+
58+
59+
v69.2.0
60+
=======
61+
62+
Features
63+
--------
64+
65+
- Explicitly use ``encoding="locale"`` for ``.pth`` files whenever possible,
66+
to reduce ``EncodingWarnings``.
67+
This avoid errors with UTF-8 (see discussion in python/cpython#77102). (#4265)
68+
69+
70+
Bugfixes
71+
--------
72+
73+
- Clarify some `pkg_resources` methods return `bytes`, not `str`. Also return an empty `bytes` in ``EmptyProvider._get`` -- by :user:`Avasam` (#4243)
74+
- Return an empty `list` by default in ``pkg_resources.ResourceManager.cleanup_resources`` -- by :user:`Avasam` (#4244)
75+
- Made ``pkg_resoursces.NullProvider``'s ``has_metadata`` and ``metadata_isdir`` methods return actual booleans like all other Providers. -- by :user:`Avasam` (#4254)
76+
77+
78+
Misc
79+
----
80+
81+
- #4237, #4238, #4241, #4260, #4261, #4263
82+
83+
184
v69.1.1
285
=======
386

conftest.py

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def pytest_addoption(parser):
2424
def pytest_configure(config):
2525
config.addinivalue_line("markers", "integration: integration tests")
2626
config.addinivalue_line("markers", "uses_network: tests may try to download files")
27+
_IntegrationTestSpeedups.disable_plugins_already_run(config)
2728

2829

2930
collect_ignore = [
@@ -47,9 +48,25 @@ def pytest_configure(config):
4748

4849
@pytest.fixture(autouse=True)
4950
def _skip_integration(request):
50-
running_integration_tests = request.config.getoption("--integration")
51-
is_integration_test = request.node.get_closest_marker("integration")
52-
if running_integration_tests and not is_integration_test:
53-
pytest.skip("running integration tests only")
54-
if not running_integration_tests and is_integration_test:
55-
pytest.skip("skipping integration tests")
51+
_IntegrationTestSpeedups.conditional_skip(request)
52+
53+
54+
class _IntegrationTestSpeedups:
55+
"""Speed-up integration tests by only running what does not run in other tests."""
56+
57+
RUNS_ON_NORMAL_TESTS = ("checkdocks", "cov", "mypy", "perf", "ruff")
58+
59+
@classmethod
60+
def disable_plugins_already_run(cls, config):
61+
if config.getoption("--integration"):
62+
for plugin in cls.RUNS_ON_NORMAL_TESTS: # no need to run again
63+
config.pluginmanager.set_blocked(plugin)
64+
65+
@staticmethod
66+
def conditional_skip(request):
67+
running_integration_tests = request.config.getoption("--integration")
68+
is_integration_test = request.node.get_closest_marker("integration")
69+
if running_integration_tests and not is_integration_test:
70+
pytest.skip("running integration tests only")
71+
if not running_integration_tests and is_integration_test:
72+
pytest.skip("skipping integration tests")

docs/deprecated/distutils/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ directories.
10211021

10221022
Files in *src* that begin with :file:`.nfs` are skipped (more information on
10231023
these files is available in answer D2 of the `NFS FAQ page
1024-
<http://nfs.sourceforge.net/#section_d>`_).
1024+
<https://nfs.sourceforge.net/#section_d>`_).
10251025

10261026
.. versionchanged:: 3.3.1
10271027
NFS files are ignored.

docs/deprecated/distutils/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,4 @@ loads its values::
335335
.. % \section{Putting it all together}
336336
337337
338-
.. _docutils: http://docutils.sourceforge.net
338+
.. _docutils: https://docutils.sourceforge.io

0 commit comments

Comments
 (0)