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

prepare release 3.10.0.0 #805

Merged
merged 2 commits into from
May 1, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'to install the typing package.\n')
exit(1)

version = '3.7.4.3'
version = '3.10.0.0'
description = 'Type Hints for Python'
long_description = '''\
Typing -- Type Hints for Python
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py34, py35, py36
envlist = py27, py34

[testenv]
changedir = src
Expand Down
24 changes: 13 additions & 11 deletions typing_extensions/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@
'to install the typing package.\n')
exit(1)

version = '3.7.4.3'
version = '3.10.0.0'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's too early to also add to the classifiers list below this the following classifier: 'Programming Language :: Python :: 3.10', while you're at it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was thinking about that. Let me just run the test suite on current CPython master to be sure.

Copy link
Member

@Fidget-Spinner Fidget-Spinner May 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope I didn't do any double work here, but FWIW, the latest CPython master runs the tests with no errors on my machine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

description = 'Backported and Experimental Type Hints for Python 3.5+'
long_description = '''\
Typing Extensions -- Backported and Experimental Type Hints for Python

The ``typing`` module was added to the standard library in Python 3.5 on
a provisional basis and will no longer be provisional in Python 3.7. However,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off topic: I see #247 and python/cpython#16204 saying typing became implicitly non-provisional in 3.7 because no new features were added, but PEP 484 still says Status: | Provisional ? Maybe that PEP needs discussion/updating once Guido's back.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I opened python/peps#1942 to fix it.

this means users of Python 3.5 - 3.6 who are unable to upgrade will not be
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 Python 3.5 - 3.6 who are unable to upgrade will not be
able to take advantage of new types added to the ``typing`` module, such as
``typing.Text`` or ``typing.Coroutine``.
``typing.Protocol`` or ``typing.TypedDict``.

The ``typing_extensions`` module contains both backports of these changes
as well as experimental types that will eventually be added to the ``typing``
module, such as ``Protocol`` or ``TypedDict``.
The ``typing_extensions`` module contains backports of these changes.
Experimental types that will eventually be added to the ``typing``
module are also included in ``typing_extensions``, such as
``typing.ParamSpec`` and ``typing.TypeGuard``.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And also IntVar, which still doesn't have a PEP proposing it.


Users of other Python versions should continue to install and use
the ``typing`` module from PyPi instead of using this one unless specifically
Users of Python versions before 3.5 should install and use
the ``typing`` module from PyPI instead of using this one, unless specifically
writing code that must be compatible with multiple Python versions or requires
experimental types.
'''
Expand All @@ -43,6 +44,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development',
]

Expand All @@ -57,7 +59,7 @@
version=version,
description=description,
long_description=long_description,
author='Guido van Rossum, Jukka Lehtosalo, Lukasz Langa, Michael Lee',
author='Guido van Rossum, Jukka Lehtosalo, Łukasz Langa, Michael Lee',
author_email='[email protected]',
url='https://github.com/python/typing/blob/master/typing_extensions/README.rst',
license='PSF',
Expand Down