Skip to content

Commit 5d56f24

Browse files
committed
Merge branch 'main' into issue3428
2 parents 8d5633b + 525037e commit 5d56f24

File tree

791 files changed

+57562
-67717
lines changed

Some content is hidden

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

791 files changed

+57562
-67717
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[bumpversion]
2-
current_version = 65.6.3
2+
current_version = 80.9.0
33
commit = True
44
tag = True
55

6-
[bumpversion:file:setup.cfg]
6+
[bumpversion:file:pyproject.toml]

.coveragerc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,26 @@
22
omit =
33
# leading `*/` for pytest-dev/pytest-cov#456
44
*/.tox/*
5-
*/pep517-build-env-*
5+
6+
# local
7+
*/_vendor/*
8+
*/tools/*
9+
*/setuptools/_distutils/*
10+
# See #4588 for integration tests coverage
11+
*/setuptools/tests/integration/*
12+
*/setuptools/tests/test_integration.py
13+
14+
disable_warnings =
15+
couldnt-parse
616

717
# local
818
*/_validate_pyproject/* # generated code, tested in `validate-pyproject`
919

1020
[report]
1121
show_missing = True
22+
exclude_also =
23+
# Exclude common false positives per
24+
# https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion
25+
# Ref jaraco/skeleton#97 and jaraco/skeleton#135
26+
class .*\bProtocol\):
27+
if TYPE_CHECKING:

.flake8

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

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,25 @@ body:
4545
- type: input
4646
attributes:
4747
label: setuptools version
48-
placeholder: For example, setuptools===60.4.2
48+
placeholder: For example, setuptools==69.1.0
49+
description: >-
50+
Please also test with the **latest version** of `setuptools`.
51+
52+
Typically, this involves modifying `requires` in `[build-system]` of
53+
[`pyproject.toml`](https://setuptools.pypa.io/en/latest/userguide/quickstart.html#basic-use),
54+
not just updating `setuptools` using `pip`.
4955
validations:
5056
required: true
5157
- type: input
5258
attributes:
5359
label: Python version
5460
placeholder: For example, Python 3.10
61+
description: >-
62+
Please ensure you are using a [supported version of Python](https://devguide.python.org/versions/#supported-versions).
63+
64+
Setuptools does not support versions that have reached [`end-of-life`](https://devguide.python.org/versions/#unsupported-versions).
65+
66+
Support for versions of Python under development (i.e. without a stable release) is experimental.
5567
validations:
5668
required: true
5769
- type: input
@@ -95,8 +107,13 @@ body:
95107
label: How to Reproduce
96108
description: >-
97109
Describe the steps to reproduce this bug.
110+
111+
Please try to create a [minimal reproducer](https://stackoverflow.com/help/minimal-reproducible-example),
112+
and avoid things like "see the steps in the CI logs".
98113
placeholder: |
99-
1. Integrate setuptools via '...'
114+
1. Clone a simplified example: `git clone ...`
115+
2. Create a virtual environment for isolation with `...`
116+
2. Build the project with setuptools via '...'
100117
2. Then run '...'
101118
3. An error occurs.
102119
validations:
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
name: 📇 Distutils Deprecation Report
3+
description: >-
4+
Report a use-case affected by the deprecation of distutils
5+
labels:
6+
- distutils deprecation
7+
- Needs Triage
8+
projects:
9+
- pypa/6
10+
body:
11+
- type: markdown
12+
attributes:
13+
value: >
14+
So you've encountered an issue with the deprecation of distutils.
15+
16+
First, sorry for the inconvenience while we work to untangle the
17+
legacy which is setuptools/distutils. Our goal is to ensure that
18+
the vast majority of use cases are satisfied prior to removing
19+
the legacy support.
20+
21+
Please check the
22+
[existing reports](https://github.com/pypa/setuptools/issues?q=label%3A%22distutils+deprecation%22+)
23+
to see if the affecting condition has been reported previously.
24+
25+
- type: markdown
26+
attributes:
27+
value: >-
28+
**Environment**
29+
- type: input
30+
attributes:
31+
label: setuptools version
32+
placeholder: For example, setuptools==69.1.0
33+
description: >-
34+
Please also test with the **latest version** of `setuptools`.
35+
36+
Typically, this involves modifying `requires` in `[build-system]` of
37+
[`pyproject.toml`](https://setuptools.pypa.io/en/latest/userguide/quickstart.html#basic-use),
38+
not just updating `setuptools` using `pip`.
39+
validations:
40+
required: true
41+
- type: input
42+
attributes:
43+
label: Python version
44+
placeholder: For example, Python 3.10
45+
description: >-
46+
Please ensure you are using a [supported version of Python](https://devguide.python.org/versions/#supported-versions).
47+
48+
Setuptools does not support versions that have reached [`end-of-life`](https://devguide.python.org/versions/#unsupported-versions).
49+
50+
Support for versions of Python under development (i.e. without a stable release) is experimental.
51+
validations:
52+
required: true
53+
- type: input
54+
attributes:
55+
label: OS
56+
placeholder: For example, Gentoo Linux, RHEL 8, Arch Linux, macOS etc.
57+
validations:
58+
required: true
59+
- type: textarea
60+
attributes:
61+
label: Additional environment information
62+
description: >-
63+
Feel free to add more information about your environment here.
64+
placeholder: >-
65+
This is only happening when I run setuptools on my fridge's patched firmware 🤯
66+
67+
- type: textarea
68+
attributes:
69+
label: Description
70+
description: >-
71+
A clear and concise description of the circumstances leading to the warning.
72+
validations:
73+
required: true
74+
75+
- type: textarea
76+
attributes:
77+
label: How to Reproduce
78+
description: >-
79+
Describe the steps to reproduce the warning.
80+
81+
Please try to create a [minimal reproducer](https://stackoverflow.com/help/minimal-reproducible-example),
82+
and avoid things like "see the steps in the CI logs".
83+
placeholder: |
84+
1. Clone a simplified example: `git clone ...`
85+
2. Create a virtual environment for isolation with `...`
86+
2. Build the project with setuptools via '...'
87+
2. Then run '...'
88+
3. An error occurs.
89+
validations:
90+
required: true
91+
92+
- type: textarea
93+
attributes:
94+
label: Other detail
95+
description: >-
96+
Paste the output of the steps above, including the commands
97+
themselves and setuptools' output/traceback etc.
98+
value: |
99+
```console
100+
101+
```
102+
103+
...

.github/dependabot.yml

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

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Closes <!-- issue number here -->
99

1010
### Pull Request Checklist
1111
- [ ] Changes have tests
12-
- [ ] News fragment added in [`changelog.d/`].
12+
- [ ] News fragment added in [`newsfragments/`].
1313
_(See [documentation][PR docs] for details)_
1414

1515

16-
[`changelog.d/`]: https://github.com/pypa/setuptools/tree/master/changelog.d
16+
[`newsfragments/`]: https://github.com/pypa/setuptools/tree/main/newsfragments
1717
[PR docs]:
1818
https://setuptools.pypa.io/en/latest/development/developer-guide.html#making-a-pull-request

.github/workflows/ci-sage.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ on:
4343
workflow_dispatch:
4444
# Allow to run manually
4545

46+
permissions:
47+
contents: read
48+
4649
env:
4750
# Ubuntu packages to install so that the project's "setup.py sdist" can succeed
4851
DIST_PREREQ: python3
@@ -55,7 +58,7 @@ jobs:
5558
runs-on: ubuntu-latest
5659
steps:
5760
- name: Check out ${{ env.SPKG }}
58-
uses: actions/checkout@v2
61+
uses: actions/checkout@v4
5962
with:
6063
path: build/pkgs/${{ env.SPKG }}/src
6164
- name: Install prerequisites
@@ -67,30 +70,24 @@ jobs:
6770
run: |
6871
(cd build/pkgs/${{ env.SPKG }}/src && python3 -m build --sdist) \
6972
&& mkdir -p upstream && cp build/pkgs/${{ env.SPKG }}/src/dist/*.tar.gz upstream/${{ env.SPKG }}-git.tar.gz \
70-
&& echo "sage-package create ${{ env.SPKG }} --version git --tarball ${{ env.SPKG }}-git.tar.gz --type=standard" > upstream/update-pkgs.sh \
73+
&& 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 \
7174
&& if [ -n "${{ env.REMOVE_PATCHES }}" ]; then echo "(cd ../build/pkgs/${{ env.SPKG }}/patches && rm -f ${{ env.REMOVE_PATCHES }}; :)" >> upstream/update-pkgs.sh; fi \
7275
&& ls -l upstream/
73-
- uses: actions/upload-artifact@v2
76+
- uses: actions/upload-artifact@v3
7477
with:
7578
path: upstream
7679
name: upstream
7780

7881
linux:
7982
# https://github.com/sagemath/sage/blob/develop/.github/workflows/docker.yml
80-
# Use branch of ticket https://trac.sagemath.org/ticket/33288
81-
uses: sagemath/sagetrac-mirror/.github/workflows/docker.yml@u/mkoeppe/setuptools_ci_target
83+
uses: sagemath/sage/.github/workflows/docker.yml@develop
8284
with:
8385
# Sage distribution packages to build
8486
targets: setuptools pyzmq
8587
# Standard setting: Test the current beta release of Sage:
8688
sage_repo: sagemath/sage
8789
sage_ref: develop
8890
upstream_artifact: upstream
89-
sage_trac_git: https://github.com/sagemath/sagetrac-mirror.git
90-
# Test with the branch from https://trac.sagemath.org/ticket/33288
91-
# This may provide hotfixes for the CI that have not been merged into
92-
# the sage develop branch yet.
93-
sage_trac_ticket: 33288
9491
# We prefix the image name with the SPKG name ("setuptools-") to avoid the error
9592
# 'Package "sage-docker-..." is already associated with another repository.'
9693
docker_push_repository: ghcr.io/${{ github.repository }}/setuptools-

0 commit comments

Comments
 (0)