Skip to content

Commit 6d9c7b7

Browse files
cdce8pbluetech
andauthored
Move metadata to pyproject + drop Python 3.7 (#53)
Co-authored-by: Ran Benita <[email protected]>
1 parent 812066c commit 6d9c7b7

File tree

6 files changed

+47
-51
lines changed

6 files changed

+47
-51
lines changed

.github/workflows/test.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ permissions: {}
1616

1717
jobs:
1818
lint:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-latest
2020
timeout-minutes: 10
2121
permissions:
2222
contents: read
2323

2424
steps:
2525
- uses: actions/checkout@v4
2626

27-
- uses: actions/setup-python@v4
27+
- uses: actions/setup-python@v5
2828
with:
2929
python-version: 3.11
3030

@@ -37,7 +37,7 @@ jobs:
3737
run: tox -e lint
3838

3939
test:
40-
runs-on: ubuntu-20.04
40+
runs-on: ubuntu-latest
4141
timeout-minutes: 10
4242
permissions:
4343
contents: read
@@ -46,19 +46,18 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
python: [
49-
"3.7.1",
50-
"3.7",
5149
"3.8",
5250
"3.9",
5351
"3.10",
5452
"3.11",
5553
"3.12",
54+
"3.13",
5655
]
5756

5857
steps:
5958
- uses: actions/checkout@v4
6059

61-
- uses: actions/setup-python@v4
60+
- uses: actions/setup-python@v5
6261
with:
6362
python-version: ${{ matrix.python }}
6463
allow-prereleases: true

MANIFEST.in

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
include LICENSE
1+
# files necessary for testing sdist
2+
graft tests
3+
include tox.ini
4+
5+
global-exclude *.py[cod]
6+
global-exclude .DS_Store

pyproject.toml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools>=75.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "mypy_extensions"
7+
version = "1.0.0-dev"
8+
description = "Type system extensions for programs checked with the mypy type checker."
9+
readme = "README.md"
10+
authors = [
11+
{name = "The mypy developers", email = "[email protected]"}
12+
]
13+
license = {text = "MIT"}
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Environment :: Console",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
"Topic :: Software Development",
27+
]
28+
requires-python = ">=3.8"
29+
30+
[project.urls]
31+
Homepage = "https://github.com/python/mypy_extensions"
32+
33+
[tool.setuptools]
34+
py-modules = ["mypy_extensions"]

setup.cfg

-2
This file was deleted.

setup.py

-40
This file was deleted.

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
2-
minversion = 2.9.1
2+
minversion = 4.4.4
33
skip_missing_interpreters = true
4-
envlist = py37, py38, py39, py310, py311, py312
4+
envlist = py38, py39, py310, py311, py312, py313
55

66
[testenv]
77
description = run the test driver with {basepython}

0 commit comments

Comments
 (0)