File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 2
2
store the current version info of the server.
3
3
4
4
"""
5
- from jupyter_packaging import get_version_info
5
+ import re
6
6
7
7
# Version string must appear intact for tbump versioning
8
8
__version__ = '1.7.0.dev0'
9
- version_info = get_version_info (__version__ )
9
+
10
+ # Build up version_info tuple for backwards compatibility
11
+ pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
12
+ match = re .match (pattern , __version__ )
13
+ parts = [int (match [part ]) for part in ['major' , 'minor' , 'patch' ]]
14
+ if match ['rest' ]:
15
+ parts .append (match ['rest' ])
16
+ version_info = tuple (parts )
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" jupyter_packaging~=0.9" ]
2
+ requires = [" jupyter_packaging~=0.9,<2 " ]
3
3
build-backend = " jupyter_packaging.build_api"
4
4
5
5
[tool .jupyter-packaging .builder ]
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ install_requires =
35
35
traitlets>=4.2.1
36
36
jupyter_core>=4.6.0
37
37
jupyter_client>=6.1.1
38
- jupyter_packaging~=0.9
39
38
nbformat
40
39
nbconvert
41
40
Send2Trash
You can’t perform that action at this time.
0 commit comments