forked from dbca-wa/ibms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update settings to automatically infer project version.
- Loading branch information
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
import os | ||
from pathlib import Path | ||
import sys | ||
import tomli | ||
|
||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) | ||
BASE_DIR = str(Path(__file__).resolve().parents[1]) | ||
|
@@ -80,7 +81,8 @@ | |
] | ||
SITE_TITLE = 'Integrated Business Management System' | ||
SITE_ACRONYM = 'IBMS' | ||
APPLICATION_VERSION_NO = '2.8.1' | ||
project = tomli.load(open(os.path.join(BASE_DIR, "pyproject.toml"), "rb")) | ||
APPLICATION_VERSION_NO = project["tool"]["poetry"]["version"] | ||
MANAGERS = ( | ||
('Zen Wee', '[email protected]', '9219 9928'), | ||
('Graham Holmes', '[email protected]', '9881 9212'), | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters