Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
typing_extensions: Drop Python 2.7, modernize build (#931)
* Drop Python 2.7 support -- tests, linting * Adopt pyproject.toml and a build backend (flit) * Add Python 3.7+ types to README.rst
- Loading branch information
Showing
8 changed files
with
86 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
flake8; python_version >= '3.6' | ||
flake8-bugbear; python_version >= '3.6' | ||
flake8-pyi; python_version >= '3.6' | ||
pytest==4.6.11; python_version < '3.0' | ||
pytest; python_version >= '3.0' | ||
flake8 | ||
flake8-bugbear | ||
flake8-pyi | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Build system requirements. | ||
[build-system] | ||
requires = ["flit_core >=3.4,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
# Project metadata | ||
[project] | ||
name = "typing_extensions" | ||
version = "4.0.0-pre" | ||
description = "Backported and Experimental Type Hints for Python 3.6+" | ||
readme.text = """\ | ||
Typing Extensions -- Backported and Experimental Type Hints for Python | ||
The ``typing`` module was added to the standard library in Python 3.5, but | ||
many new features have been added to the module since then. | ||
This means users of older Python versions who are unable to upgrade will not be | ||
able to take advantage of new types added to the ``typing`` module, such as | ||
``typing.Protocol`` or ``typing.TypedDict``. | ||
The ``typing_extensions`` module contains backports of these changes. | ||
Experimental types that may eventually be added to the ``typing`` | ||
module are also included in ``typing_extensions``. | ||
""" | ||
readme.content-type = "text/x-rst" | ||
requires-python = ">=3.6" | ||
urls.Home = "https://github.com/python/typing/blob/master/typing_extensions/README.rst" | ||
license.file = "LICENSE" | ||
keywords = [ | ||
"annotations", | ||
"backport", | ||
"checker", | ||
"checking", | ||
"function", | ||
"hinting", | ||
"hints", | ||
"type", | ||
"typechecking", | ||
"typehinting", | ||
"typehints", | ||
"typing" | ||
] | ||
# Classifiers list: https://pypi.org/classifiers/ | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Python Software Foundation License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Software Development" | ||
] | ||
|
||
# Project metadata -- authors. Flit stores this as a list of dicts, so it can't | ||
# be inline above. | ||
[[project.authors]] | ||
name = "Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee" | ||
email = "levkivskyi@gmail.com" | ||
|
||
# This tells Flit that the module is stored in the src_py3 directory. | ||
[tool.flit.module] | ||
name = "src_py3/typing_extensions" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.