Skip to content
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
fix: move __version__ variable to be accesible from setup.py
  • Loading branch information
Angeluz-07 committed Apr 17, 2020
commit 8ef76a6ca1af6de1dcb97ca8a233384458353ee3
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ testpaths = tests
addopts = -p no:warnings

[semantic_release]
version_variable = time_tracker_api/__init__.py:__version__
version_variable = time_tracker_api/version.py:__version__
upload_to_pypi = false
remove_dist = false

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

def get_version() -> str:
version = {}
path_to_file_with_version = "time_tracker_api/__init__.py"
path_to_file_with_version = "time_tracker_api/version.py"
try:
with open(path_to_file_with_version) as fp:
exec(fp.read(), version)
Expand Down
1 change: 0 additions & 1 deletion time_tracker_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from flask import Flask

__version__ = '0.3.0'

flask_app: Flask = None

Expand Down
2 changes: 1 addition & 1 deletion time_tracker_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flask_restplus._http import HTTPStatus

from commons.data_access_layer.cosmos_db import CustomError
from time_tracker_api import __version__
from time_tracker_api.version import __version__

faker = Faker()

Expand Down
1 change: 1 addition & 0 deletions time_tracker_api/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.3.0'