Skip to content
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

Remove Packaging Dependency #181

Merged
merged 1 commit into from
May 10, 2021
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
16 changes: 14 additions & 2 deletions jupyterlab_server/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
from jupyter_packaging import get_version_info
"""
store the current version info of the server.

"""
import re

__version__ = '2.5.0'
version_info = get_version_info(__version__)

# Build up version_info tuple for backwards compatibility
pattern = r'(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)'
match = re.match(pattern, __version__)
parts = [int(match[part]) for part in ['major', 'minor', 'patch']]
if match['rest']:
parts.append(match['rest'])
version_info = tuple(parts)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["jupyter_packaging~=0.9", "jupyter_server"]
requires = ["jupyter_packaging~=0.9,<2", "jupyter_server"]
build-backend = "setuptools.build_meta"

[tool.check-manifest]
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ install_requires =
jinja2>=2.10
json5
jsonschema>=3.0.1
jupyter_packaging~=0.9,<2
packaging
requests
jupyter_server~=1.4


[options.extras_require]
test = codecov; ipykernel; pytest>=5.3.2; pytest-cov; jupyter_server[test]; openapi_core; pytest-console-scripts; strict-rfc3339; ruamel.yaml; wheel
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

[options.packages.find]
exclude = ['docs*']