Skip to content

Commit 7d797ba

Browse files
authored
Use Semantic Versioning for typing_extensions (#907)
Bump version to 4.0.0-pre
1 parent 6eebf9f commit 7d797ba

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Code in this repository should follow CPython's style guidelines and
22
contributors need to sign the PSF Contributor Agreement.
33

4-
# typing_extensions
4+
# typing\_extensions
55

66
The `typing_extensions` module provides a way to access new features from the standard
77
library `typing` module in older versions of Python. For example, Python 3.10 adds
@@ -18,19 +18,13 @@ standard library, so that users can experiment with them before they are added t
1818
standard library. Such features should ideally already be specified in a PEP or draft
1919
PEP.
2020

21-
`typing_extensions` still supports all Python versions supported by `typing`, down to
22-
Python 2.7 and 3.4. However, it is OK to omit support for Python versions that have
23-
reached end of life if doing so is too difficult or otherwise does not make sense. For
24-
example, `typing_extensions.AsyncGenerator` only exists on Python 3.6 and higher,
25-
because async generators were added to the language in 3.6.
21+
`typing_extensions` supports Python versions 3.6 an up.
2622

2723
# Versioning scheme
2824

29-
The version number of `typing_extensions` indicates the version of the standard library `typing`
30-
module that is reflected in the backport. For example, `typing_extensions` version
31-
3.10.0.0 includes features from the Python 3.10.0 standard library's `typing` module. A
32-
new release that doesn't include any new standard library features would be called
33-
3.10.0.1.
25+
Starting with version 4.0.0, `typing_extensions` uses
26+
[Semantic Versioning](https://semver.org/). The major version is incremented for all
27+
backwards-incompatible changes.
3428

3529
# Workflow for PyPI releases
3630

typing_extensions/CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Changes in version 4.0.0
2+
3+
Starting with version 4.0.0, typing_extensions uses Semantic Versioning.
4+
See the README for more information.

typing_extensions/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
include LICENSE README.rst
1+
include CHANGELOG LICENSE README.rst
22
include src_py3/typing_extensions.py
33
include src_py3/test_typing_extensions.py

typing_extensions/README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ the ``typing`` module from PyPi instead of using this one unless
1919
specifically writing code that must be compatible with multiple Python
2020
versions or requires experimental types.
2121

22+
Starting with version 4.0.0, ``typing_extensions`` uses
23+
`Semantic Versioning <https://semver.org/>`_. The
24+
major version is incremented for all backwards-incompatible changes, including
25+
dropping support for older Python versions. Therefore, it's safe to depend
26+
on ``typing_extensions`` like this: ``typing_extensions >=x.y, <(x+1)``,
27+
where ``x.y`` is the first version that includes all features you need.
28+
2229
Included items
2330
==============
2431

typing_extensions/setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[metadata]
2+
version = 4.0.0-pre
23
license-file = LICENSE
34

45
[options]

typing_extensions/setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
'to install typing_extensions.\n')
1010
exit(1)
1111

12-
version = '3.10.0.2'
1312
description = 'Backported and Experimental Type Hints for Python 3.6+'
1413
long_description = '''\
1514
Typing Extensions -- Backported and Experimental Type Hints for Python
@@ -40,7 +39,6 @@
4039
]
4140

4241
setup(name='typing_extensions',
43-
version=version,
4442
description=description,
4543
long_description=long_description,
4644
author='Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee',

0 commit comments

Comments
 (0)