8000 Revert "Update project metadata for PEP 639 (#18821)" (#19052) · python/mypy@501a07b · GitHub
[go: up one dir, main page]

Skip to content

Commit 501a07b

Browse files
authored
Revert "Update project metadata for PEP 639 (#18821)" (#19052)
This reverts commit 836019a. Sadly, upgrading setuptools can cause some issues downstream. This is the case with Dropbox's internal codebase. Let's wait a bit longer before upgrading requirements and pyproject.toml file.
1 parent 79ff4ff commit 501a07b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
echo debug build; python -c 'import sysconfig; print(bool(sysconfig.get_config_var("Py_DEBUG")))'
168168
echo os.cpu_count; python -c 'import os; print(os.cpu_count())'
169169
echo os.sched_getaffinity; python -c 'import os; print(len(getattr(os, "sched_getaffinity", lambda *args: [])(0)))'
170-
pip install tox==4.21.2
170+
pip install setuptools==75.1.0 tox==4.21.2
171171
172172
- name: Compiled with mypyc
173173
if: ${{ matrix.test_mypyc }}
@@ -230,7 +230,7 @@ jobs:
230230
default: 3.11.1
231231
command: python -c "import platform; print(f'{platform.architecture()=} {platform.machine()=}');"
232232
- name: Install tox
233-
run: pip install tox==4.21.2
233+
run: pip install setuptools==75.1.0 tox==4.21.2
234234
- name: Setup tox environment
235235
run: tox run -e py --notest
236236
- name: Test

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [
33
# NOTE: this needs to be kept in sync with mypy-requirements.txt
44
# and build-requirements.txt, because those are both needed for
55
# self-typechecking :/
6-
"setuptools >= 77.0.3",
6+
"setuptools >= 75.1.0",
77
# the following is from mypy-requirements.txt/setup.py
88
"typing_extensions>=4.6.0",
99
"mypy_extensions>=1.0.0",
@@ -30,12 +30,12 @@ features such as type inference, gradual typing, generics and union
3030
types.
3131
""", content-type = "text/x-rst"}
3232
authors = [{name = "Jukka Lehtosalo", email = "jukka.lehtosalo@iki.fi"}]
33-
license = "MIT"
34-
license-files = ["LICENSE", "mypy/typeshed/LICENSE"]
33+
license = {text = "MIT"}
3534
classifiers = [
3635
"Development Status :: 5 - Production/Stable",
3736
"Environment :: Console",
3837
"Intended Audience :: Developers",
38+
"License :: OSI Approved :: MIT License",
3939
"Programming Language :: Python :: 3",
4040
"Programming Language :: Python :: 3.9",
4141
"Programming Language :: Python :: 3.10",

test-requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ psutil>=4.0
1010
pytest>=8.1.0
1111
pytest-xdist>=1.34.0
1212
pytest-cov>=2.10.0
13-
setuptools>=77.0.3
13+
setuptools>=75.1.0
1414
tomli>=1.1.0 # needed even on py311+ so the self check passes with --python-version 3.9
1515
pre_commit>=3.5.0

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ virtualenv==20.29.1
6363
# via pre-commit
6464

6565
# The following packages are considered to be unsafe in a requirements file:
66-
setuptools==77.0.3
66+
setuptools==75.8.0
6767
# via -r test-requirements.in

0 commit comments

Comments
 (0)
0