Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LSO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
LSO
Merge requests
!36
resolve some errors, and fix build-docs.sh
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
resolve some errors, and fix build-docs.sh
feature/update-build-docs
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
3
Merged
Karel van Klink
requested to merge
feature/update-build-docs
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
3
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
6ce83f8a
1 commit,
1 year ago
3 files
+
13
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
lso/routes/default.py
+
4
−
3
Options
@@ -2,12 +2,13 @@
For now only includes a single endpoint that responds with the current version of the API and LSO.
"""
import
pkg_resources
from
importlib
import
metadata
from
fastapi
import
APIRouter
from
pydantic
import
BaseModel
,
constr
API_VERSION
=
"
0.1
"
VERSION_STRING
=
constr
(
regex
=
r
"
\d+\.\d+
"
)
VERSION_STRING
=
constr
(
pattern
=
r
"
\d+\.\d+
"
)
router
=
APIRouter
()
@@ -25,4 +26,4 @@ def version() -> Version:
:return: Version object with both API and `goat-lso` versions numbers.
"""
return
Version
(
api
=
API_VERSION
,
module
=
pkg_resources
.
get_distribut
ion
(
"
goat-lso
"
)
.
version
)
return
Version
(
api
=
API_VERSION
,
module
=
metadata
.
vers
ion
(
"
goat-lso
"
))
Loading