commit | b5c0b6d66b3adba4dde3f4f4145ce83a70fd03f7 | [log] [tgz] |
---|---|---|
author | Antonio Valentino <antonio.valentino@tiscali.it> | Wed Dec 23 01:33:23 2020 +0100 |
committer | GitHub <noreply@github.com> | Tue Dec 22 16:33:23 2020 -0800 |
tree | 7d994e13a850303540c7724599496c4d92398eba | |
parent | 27147f87d77e7a1516842e0b4ed16eb6f08c1d5b [diff] |
Apply get_args fix from bpo-40398 to typing_extensions (#770) Applies the fix from https://bugs.python.org/issue40398 to typing_extensions: typing.get_args() now always returns an empty tuple for special generic aliases.
This GitHub repo is used for three separate things:
The issue tracker is used to discuss PEP-level type system issues. However, typing-sig is more appropriate these days.
A copy of the typing
module for older Python versions (2.7 and 3.4) is maintained here. Note that the canonical source lives upstream in the CPython repo.
The typing_extensions
module lives here.
src
subdirectory of this repo. The python2
subdirectory contains the Python 2 backport.Run tests under all supported versions. As of May 2019 this includes 2.7, 3.4, 3.5, 3.6, 3.7.
On macOS, you can use pyenv <https://github.com/pyenv/pyenv>
_ to manage multiple Python installations. Long story short:
xcode-select --install
brew install pyenv
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
pyenv install 3.5.3
pyenv install 3.4.6
pyenv global system 3.5.3 3.4.6
You can use tox
to automate running tests.
Update the version number in setup.py
.
Build the source and wheel distributions:
pip3 install -U setuptools wheel
pip2 install -U setuptools wheel
rm -rf dist/ build/
python3 setup.py sdist bdist_wheel
rm -rf build/
(Works around a Wheel bug <https://bitbucket.org/pypa/wheel/issues/147/bdist_wheel-should-start-by-cleaning-up>
_)python2 setup.py bdist_wheel
Install the built distributions locally and test (if you were using tox
, you already tested the source distribution).
Make sure twine is up to date, then run twine upload dist/*
.