Skip to content
Open
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
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include src/FINALES2/VERSION
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# According to https://packaging.python.org/en/latest/tutorials/packaging-projects/
[metadata]
name = FINALES2
version = 1.1.0
version = file: src/FINALES2/VERSION
description = This package provides functionalities of the FINALES server.
long_description = file: README.md
license = MIT
Expand Down Expand Up @@ -30,6 +30,7 @@ install_requires =
sqlalchemy_utils
uvicorn
python_requires = >=3.9
include_package_data = True

[options.packages.find]
where = src
Expand Down
1 change: 1 addition & 0 deletions src/FINALES2/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.0
4 changes: 4 additions & 0 deletions src/FINALES2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pathlib import Path

with open(Path(__file__).parent/'VERSION') as f:
__version__ = f.readline().strip()
3 changes: 2 additions & 1 deletion src/FINALES2/cli/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from FINALES2.server.endpoints import operations_router
from FINALES2.user_management import user_manager
from FINALES2.user_management.classes_user_manager import User
from FINALES2 import __version__

from . import logger

Expand Down Expand Up @@ -39,7 +40,7 @@ def server_start(ip, port):
app = FastAPI(
title="FINALES2",
description="FINALES2 accepting requests, managing queues and serving queries",
version="0.0.1",
version=__version__,
)
app.include_router(router=user_manager.user_router)
app.include_router(router=operations_router)
Expand Down