Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-api
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
Container registry
Model registry
Operate
Environments
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
Show more breadcrumbs
AURA
engine-api
Commits
9bf27b5b
Commit
9bf27b5b
authored
2 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Chore: Read plain VERSION file #81
parent
f2855a2e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
VERSION
+1
-0
1 addition, 0 deletions
VERSION
src/aura_engine_api/__init__.py
+0
-10
0 additions, 10 deletions
src/aura_engine_api/__init__.py
src/aura_engine_api/app.py
+7
-5
7 additions, 5 deletions
src/aura_engine_api/app.py
with
8 additions
and
15 deletions
VERSION
0 → 100644
+
1
−
0
View file @
9bf27b5b
1.0.0-alpha1-dev
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/aura_engine_api/__init__.py
+
0
−
10
View file @
9bf27b5b
# Meta
__author__
=
"
David Trattnig
"
__copyright__
=
"
Copyright 2017-2020, Aura Engine Team
"
__credits__
=
[]
__license__
=
"
GNU Affero General Public License (AGPL) Version 3
"
__version__
=
"
0.9.0
"
__version_info__
=
(
0
,
9
,
0
)
__maintainer__
=
"
David Trattnig
"
__email__
=
"
david.trattnig@subsquare.at
"
__status__
=
"
Development
"
This diff is collapsed.
Click to expand it.
src/aura_engine_api/app.py
+
7
−
5
View file @
9bf27b5b
...
...
@@ -19,9 +19,9 @@
import
atexit
import
sys
import
os
import
connexion
import
aura_engine_api
from
aura_engine_api.base.config
import
AuraConfig
from
aura_engine_api.base.logger
import
AuraLogger
from
aura_engine_api.base.node
import
NodeType
...
...
@@ -71,7 +71,6 @@ def after_request(response):
header
[
"
Access-Control-Allow-Origin
"
]
=
config
.
get
(
"
api_cors
"
)
return
response
def
startup
():
"""
Startup Server.
...
...
@@ -79,7 +78,6 @@ def startup():
port
=
config
.
get
(
"
api_port
"
)
api
.
run
(
port
=
port
)
def
shutdown
():
"""
Called when the application shuts down.
...
...
@@ -87,6 +85,10 @@ def shutdown():
if
sync_job
:
sync_job
.
exit
()
def
get_version
():
with
open
(
os
.
path
.
join
(
""
,
'
VERSION
'
))
as
version_file
:
return
version_file
.
read
().
strip
()
with
app
.
app_context
():
"""
...
...
@@ -119,7 +121,7 @@ with app.app_context():
federation
=
"
disabled
"
splash
=
(
"
\n\n
░E░N░G░I░N░E░░░A░P░I░ - v%s running as %s node - Federation %s.
\n\n
"
%
(
aura_engine_api
.
_
_version
__
,
type
,
federation
)
%
(
get
_version
()
,
type
,
federation
)
)
logger
.
info
(
splash
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment