File tree Expand file tree Collapse file tree 4 files changed +20
-22
lines changed Expand file tree Collapse file tree 4 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 12
12
matrix :
13
13
os : [ubuntu-latest, macos-latest, windows-latest]
14
14
python-version : [ '3.5', '3.6', '3.7', '3.8' ]
15
- exclude :
16
- - os : windows-latest
17
- python-version : ' 3.5'
18
- - os : windows-latest
19
- python-version : ' 3.6'
20
15
steps :
21
16
- name : Checkout
22
17
uses : actions/checkout@v1
Original file line number Diff line number Diff line change @@ -14,13 +14,7 @@ To install the latest release locally, make sure you have
14
14
15
15
$ pip install jupyter_server
16
16
17
- Jupyter Server currently supports the following Python versions:
18
-
19
- Platform | Python
20
- --- | ---
21
- Linux | >=3.5
22
- OSX | >=3.5
23
- Windows | >=3.7
17
+ Jupyter Server currently supports Python>=3.5 on Linux, OSX and Windows.
24
18
25
19
### Versioning and Branches
26
20
Original file line number Diff line number Diff line change 1
1
"""The Jupyter Server"""
2
2
3
3
import os
4
+ import sys
5
+ import subprocess
4
6
5
7
DEFAULT_STATIC_FILES_PATH = os .path .join (os .path .dirname (__file__ ), "static" )
6
8
DEFAULT_TEMPLATE_PATH_LIST = [
11
13
del os
12
14
13
15
from ._version import version_info , __version__
16
+
17
+
18
+ def _cleanup ():
19
+ pass
20
+
21
+
22
+ # patch subprocess on Windows for python<3.7
23
+ # see https://bugs.python.org/issue37380
24
+ # the fix for python3.7: https://github.com/python/cpython/pull/15706/files
25
+ if sys .platform == 'win32' :
26
+ if sys .version_info < (3 , 7 ):
27
+ subprocess ._cleanup = _cleanup
28
+ subprocess ._active = None
Original file line number Diff line number Diff line change 19
19
name = "jupyter_server"
20
20
21
21
# Minimal Python version sanity check
22
- if sys .platform == 'win32' :
23
- if sys .version_info < (3 ,7 ):
24
- error = "ERROR: %s requires Python version 3.7 or above." % name
25
- print (error , file = sys .stderr )
26
- sys .exit (1 )
27
- else :
28
- if sys .version_info < (3 ,5 ):
29
- error = "ERROR: %s requires Python version 3.5 or above." % name
30
- print (error , file = sys .stderr )
31
- sys .exit (1 )
22
+ if sys .version_info < (3 ,5 ):
23
+ error = "ERROR: %s requires Python version 3.5 or above." % name
24
+ print (error , file = sys .stderr )
25
+ sys .exit (1 )
32
26
33
27
# At least we're on the python version we need, move on.
34
28
You can’t perform that action at this time.
0 commit comments