Skip to content

Commit

Permalink
Move metadata to pyproject + drop Python 3.7 (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Ran Benita <ran@unusedvar.com>
  • Loading branch information
cdce8p and bluetech authored Jan 21, 2025
1 parent 812066c commit 6d9c7b7
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 51 deletions.
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.8"

[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

0 comments on commit 6d9c7b7

Please sign in to comment.