Skip to content

Commit

Permalink
Add version to the package (#124)
Browse files Browse the repository at this point in the history
* Add version to the package

* Play better with the configuration
  • Loading branch information
enolfc authored Aug 1, 2024
1 parent 323c75e commit f324c36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
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

0 comments on commit f324c36

Please sign in to comment.