Skip to content

Commit 780aa14

Browse files
committed
Modernize packaging a bit
Adding pyproject.toml allows the package to be installed using PEP517 instead of legacy `setup.py install` method. At least pip says so in a warning when installing without the `wheel` package available. Change setup.py to setup.cfg (using a script[0]) because setup.py is out of fashion these days. Remove MANIFEST.ini since LICENSE is implied[1]. [0] https://github.com/gvalkov/setuptools-py2cfg [1] https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-license-files
1 parent b166486 commit 780aa14

File tree

4 files changed

+33
-42
lines changed

4 files changed

+33
-42
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1-
[bdist_wheel]
2-
universal=0
1+
[metadata]
2+
name = mypy_extensions
3+
version = 1.0.0-dev
4+
author = The mypy developers
5+
author_email = jukka.lehtosalo@iki.fi
6+
license = MIT License
7+
description = Type system extensions for programs checked with the mypy type checker.
8+
url = https://github.com/python/mypy_extensions
9+
long_description = Mypy Extensions
10+
===============
11+
12+
The "mypy_extensions" module defines extensions to the standard "typing" module
13+
that are supported by the mypy type checker and the mypyc compiler.
14+
15+
classifiers =
16+
Development Status :: 5 - Production/Stable
17+
Environment :: Console
18+
Intended Audience :: Developers
19+
License :: OSI Approved :: MIT License
20+
Programming Language :: Python :: 3
21+
Programming Language :: Python :: 3.7
22+
Programming Language :: Python :: 3.8
23+
Programming Language :: Python :: 3.9
24+
Programming Language :: Python :: 3.10
25+
Programming Language :: Python :: 3.11
26+
Topic :: Software Development
27+
28+
[options]
29+
py_modules = mypy_extensions
30+
python_requires = >=3.7

setup.py

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

0 commit comments

Comments
 (0)