/
PROJECT.py
85 lines (68 loc) · 2.97 KB
/
PROJECT.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
from typing import *
from _aux__release_files import release_files_update
# =====================================================================================================================
VERSION = (0, 0, 3) # 1/deprecate _VERSION_TEMPLATE from PRJ object +2/place update_prj here in __main__ +3/separate finalize attrs
# =====================================================================================================================
class PROJECT:
# AUTHOR -----------------------------------------------
AUTHOR_NAME: str = "Andrei Starichenko"
AUTHOR_EMAIL: str = "centroid@mail.ru"
AUTHOR_HOMEPAGE: str = "https://github.com/centroid457/"
# PROJECT ----------------------------------------------
NAME_IMPORT: str = "private_values"
KEYWORDS: List[str] = [
"environs", "environment",
"private",
"rc", "ini", "csv"
"json"
]
CLASSIFIERS_TOPICS_ADD: List[str] = [
# "Topic :: Communications",
# "Topic :: Communications :: Email",
]
# README -----------------------------------------------
# add DOUBLE SPACE at the end of all lines! for correct representation in MD-viewers
DESCRIPTION_SHORT: str = "update values into class attrs from OsEnvironment or Ini/Json File"
DESCRIPTION_LONG: str = """
Designed to use private data like username/pwd kept secure in OsEnvironment or Ini/Json-File for your several home projects at ones.
And not open it in public.
**CAUTION:**
in requirements for other projects use fixed version! because it might be refactored so you would get exception soon.
"""
FEATURES: List[str] = [
# "feat1",
# ["feat2", "block1", "block2"],
["load values to instance attrs from",
"Environment",
"IniFile",
"JsonFile",
"CsvFile",
"direct text instead of file",
"direct dict instead of file",
],
["attr access",
"via any lettercase",
"by instance attr",
"like dict key on instance", ],
["work with dict", "apply", "update", "preupdate"],
"update_dict as cumulative result - useful in case of settings result",
]
# HISTORY -----------------------------------------------
VERSION: Tuple[int, int, int] = (0, 5, 9)
TODO: List[str] = [
"add Lock param after load?"
]
FIXME: List[str] = [
"..."
]
NEWS: List[str] = [
"[__INIT__.py] fix import",
"apply last pypi template",
]
# FINALIZE -----------------------------------------------
VERSION_STR: str = ".".join(map(str, VERSION))
NAME_INSTALL: str = NAME_IMPORT.replace("_", "-")
# =====================================================================================================================
if __name__ == '__main__':
release_files_update(PROJECT)
# =====================================================================================================================