Skip to content

Commit 332837b

Browse files
committed
python-3.9 compatibility
solves #807
1 parent 9ba51e3 commit 332837b

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '2.2.20200202'
31+
__version__ = '2.3.20200215'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

winpython/data/packages.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,9 @@ description=Jupyter terminal console
857857
[jupyter_core]
858858
description=Jupyter core package. A base package on which Jupyter projects rely.
859859
860+
[jupyter_panel_proxy]
861+
description=Jupyter Server Proxy for Panel
862+
860863
[jupyterlab_pygments]
861864
description=JupyterLab Pygments theme
862865
@@ -1004,6 +1007,9 @@ description=McCabe checker, plugin for flake8
10041007
[mercantile]
10051008
description=Web mercator XYZ tile utilities
10061009

1010+
[mercurial]
1011+
description=a fast scalable distributed SCM (revision control, version control) system
1012+
10071013
[metakernel]
10081014
description=Metakernel for Jupyter
10091015

@@ -1976,6 +1982,9 @@ description=Geometric objects, predicates, and operations
19761982
[shiboken2]
19771983
description=Shiboken generates bindings for C++ libraries using CPython source code
19781984
1985+
[simpervisor]
1986+
description=Simple async process supervisor
1987+
19791988
[simplegeneric]
19801989
description=Simple generic functions (similar to Python's own len(), pickle.dump(), etc.)
19811990

@@ -2412,6 +2421,9 @@ description=N-D labeled arrays and datasets in Python
24122421
[yapf]
24132422
description=A formatter for Python code.
24142423
2424+
[yarl]
2425+
description=yet another URL library.
2426+
24152427
[zarr]
24162428
description=A minimal implementation of chunked, compressed, N-dimensional arrays for Python.
24172429

winpython/disthelpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import imp
2828
from subprocess import Popen, PIPE
2929
import warnings
30+
from distutils.version import LooseVersion, StrictVersion
3031

3132
# ==============================================================================
3233
# Module, scripts, programs
@@ -144,6 +145,8 @@ def get_msvc_version(python_version):
144145
return '15.0'
145146
elif python_version in ('3.7', '3.8'):
146147
return '15.0'
148+
elif StrictVersion(python_version) >= StrictVersion('3.9'):
149+
return '15.0'
147150
else:
148151
raise RuntimeError(
149152
"Unsupported Python version %s" % python_version

winpython/py3compat.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@
7676
from sys import maxsize
7777
import io
7878
import pickle
79-
from collections import MutableMapping
79+
try: # Python 3.8 and more
80+
from collections.abc import MutableMapping
81+
except ImportError:
82+
from collections import MutableMapping
8083
import _thread
8184
import reprlib
8285
# ==============================================================================

0 commit comments

Comments
 (0)