File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
- from jupyter_packaging import get_version_info
1
+ """
2
+ store the current version info of the server.
3
+
4
+ """
5
+ import re
6
+
2
7
__version__ = '2.5.0'
3
- version_info = get_version_info (__version__ )
8
+
9
+ # Build up version_info tuple for backwards compatibility
10
+ pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
11
+ match = re .match (pattern , __version__ )
12
+ parts = [int (match [part ]) for part in ['major' , 'minor' , 'patch' ]]
13
+ if match ['rest' ]:
14
+ parts .append (match ['rest' ])
15
+ version_info = tuple (parts )
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" jupyter_packaging~=0.9" , " jupyter_server" ]
2
+ requires = [" jupyter_packaging~=0.9,<2 " , " jupyter_server" ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[tool .check-manifest ]
Original file line number Diff line number Diff line change @@ -31,14 +31,13 @@ install_requires =
31
31
jinja2>=2.10
32
32
json5
33
33
jsonschema>=3.0.1
34
- jupyter_packaging~=0.9,<2
35
34
packaging
36
35
requests
37
36
jupyter_server~=1.4
38
37
39
38
40
39
[options.extras_require]
41
- test = codecov; ipykernel; pytest>=5.3.2; pytest-cov; jupyter_server[test]; openapi_core; pytest-console-scripts; strict-rfc3339; ruamel.yaml; wheel
40
+ test = codecov; ipykernel; pytest>=5.3.2; pytest-cov; jupyter_server[test]; openapi_core~=0.13.8 ; pytest-console-scripts; strict-rfc3339; ruamel.yaml; wheel
42
41
43
42
[options.packages.find]
44
43
exclude = [' docs*' ]
You can’t perform that action at this time.
0 commit comments