Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move metadata to pyproject + drop Python 3.7 #53

Merged
merged 5 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ permissions: {}

jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -37,7 +37,7 @@ jobs:
run: tox -e lint

test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
Expand All @@ -46,19 +46,18 @@ jobs:
fail-fast: false
matrix:
python: [
"3.7.1",
"3.7",
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
Expand Down
7 changes: 6 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
include LICENSE
# files necessary for testing sdist
graft tests
include tox.ini

global-exclude *.py[cod]
global-exclude .DS_Store
34 changes: 34 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[build-system]
requires = ["setuptools>=75.0"]
build-backend = "setuptools.build_meta"

[project]
name = "mypy_extensions"
version = "1.0.0-dev"
description = "Type system extensions for programs checked with the mypy type checker."
readme = "README.md"
authors = [
{name = "The mypy developers", email = "jukka.lehtosalo@iki.fi"}
]
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development",
]
requires-python = ">=3.9"

[project.urls]
Homepage = "https://github.com/python/mypy_extensions"

[tool.setuptools]
py-modules = ["mypy_extensions"]
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

40 changes: 0 additions & 40 deletions setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 2.9.1
minversion = 4.4.4
skip_missing_interpreters = true
envlist = py37, py38, py39, py310, py311, py312
envlist = py38, py39, py310, py311, py312, py313

[testenv]
description = run the test driver with {basepython}
Expand Down
Loading