Skip to content

python-3.9 compatibility #808

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

Merged
merged 1 commit into from
Feb 15, 2020
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 winpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

__version__ = '2.2.20200202'
__version__ = '2.3.20200215'
__license__ = __doc__
__project_url__ = 'http://winpython.github.io/'
12 changes: 12 additions & 0 deletions winpython/data/packages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,9 @@ description=Jupyter terminal console
[jupyter_core]
description=Jupyter core package. A base package on which Jupyter projects rely.

[jupyter_panel_proxy]
description=Jupyter Server Proxy for Panel

[jupyterlab_pygments]
description=JupyterLab Pygments theme

Expand Down Expand Up @@ -1004,6 +1007,9 @@ description=McCabe checker, plugin for flake8
[mercantile]
description=Web mercator XYZ tile utilities

[mercurial]
description=a fast scalable distributed SCM (revision control, version control) system

[metakernel]
description=Metakernel for Jupyter

Expand Down Expand Up @@ -1976,6 +1982,9 @@ description=Geometric objects, predicates, and operations
[shiboken2]
description=Shiboken generates bindings for C++ libraries using CPython source code

[simpervisor]
description=Simple async process supervisor

[simplegeneric]
description=Simple generic functions (similar to Python's own len(), pickle.dump(), etc.)

Expand Down Expand Up @@ -2412,6 +2421,9 @@ description=N-D labeled arrays and datasets in Python
[yapf]
description=A formatter for Python code.

[yarl]
description=yet another URL library.

[zarr]
description=A minimal implementation of chunked, compressed, N-dimensional arrays for Python.

Expand Down
3 changes: 3 additions & 0 deletions winpython/disthelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import imp
from subprocess import Popen, PIPE
import warnings
from distutils.version import LooseVersion, StrictVersion

# ==============================================================================
# Module, scripts, programs
Expand Down Expand Up @@ -144,6 +145,8 @@ def get_msvc_version(python_version):
return '15.0'
elif python_version in ('3.7', '3.8'):
return '15.0'
elif StrictVersion(python_version) >= StrictVersion('3.9'):
return '15.0'
else:
raise RuntimeError(
"Unsupported Python version %s" % python_version
Expand Down
5 changes: 4 additions & 1 deletion winpython/py3compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@
from sys import maxsize
import io
import pickle
from collections import MutableMapping
try: # Python 3.8 and more
from collections.abc import MutableMapping
except ImportError:
from collections import MutableMapping
import _thread
import reprlib
# ==============================================================================
Expand Down