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

Add version to the package #124

Merged
merged 2 commits into from
Aug 1, 2024
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
7 changes: 7 additions & 0 deletions egi_notebooks_hub/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__all__ = ("__version__", "version_info")

from pbr.version import VersionInfo

_v = VersionInfo("egi_notebooks_hub").semantic_version()
__version__ = _v.release_string()
version_info = _v.version_tuple()
6 changes: 4 additions & 2 deletions egi_notebooks_hub/egiauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ def _validate_scope(self, proposal):
too long.
""",
)
# reasonable defaults for Check-in
manage_groups = True

@default("manage_groups")
def _manage_groups_default(self):
return True

async def jwt_authenticate(self, handler, data=None):
try:
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ jupyterhub-kubespawner>=6.1.0
xmltodict
fastapi
pydantic-settings
pbr