pyproject-tmpl 0.1.1.dev9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyproject-tmpl
|
|
3
|
+
Version: 0.1.1.dev9
|
|
4
|
+
Summary: template python project with necessary configurations
|
|
5
|
+
Author-email: xdewx <present150608@sina.com>
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Requires-Dist: alembic>=1.17.2
|
|
9
|
+
Requires-Dist: ipa-python-kit>=0.0.7
|
|
10
|
+
Requires-Dist: sqlmodel>=0.0.31
|
|
11
|
+
Requires-Dist: typer>=0.20.0
|
|
12
|
+
Requires-Dist: typing-extensions>=4.15.0
|
|
13
|
+
Provides-Extra: system
|
|
14
|
+
Requires-Dist: psutil>=7.2.1; extra == "system"
|
|
15
|
+
Provides-Extra: all
|
|
16
|
+
Requires-Dist: pyproject-tmpl[system]; extra == "all"
|
|
17
|
+
|
|
18
|
+
# pyproject-tmpl
|
|
19
|
+
|
|
20
|
+
## features
|
|
21
|
+
|
|
22
|
+
1. pytest
|
|
23
|
+
2. pre-commit
|
|
24
|
+
3. darker for code format
|
|
25
|
+
4. ruff for lint
|
|
26
|
+
5. commitlint for commit message format
|
|
27
|
+
6. typer for cli
|
|
28
|
+
7. sqlmodel for database ORM
|
|
29
|
+
8. alembic for database migration
|
|
30
|
+
|
|
31
|
+
## introduction
|
|
32
|
+
|
|
33
|
+
before development, must run `./scripts/setup`
|
|
34
|
+
|
|
35
|
+
### unit test
|
|
36
|
+
|
|
37
|
+
`uv run -m pytest`
|
|
38
|
+
|
|
39
|
+
### run cli
|
|
40
|
+
|
|
41
|
+
`uv run main.py --help`
|
|
42
|
+
|
|
43
|
+
### release sdk
|
|
44
|
+
|
|
45
|
+
1. `cp .pypirc.example .pypirc`
|
|
46
|
+
2. replace your token in `.pypirc`
|
|
47
|
+
3. `git tag vx.y.z`
|
|
48
|
+
4. `./scripts/publish`
|
|
49
|
+
|
|
50
|
+
### build executable file
|
|
51
|
+
|
|
52
|
+
`./scripts/build`
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sdk/__init__.py,sha256=QvQEKAZerZ0nbNw3e-nOKdxmUW9OGBqNH0Q6ZQcjLDo,214
|
|
2
|
+
sdk/_version.py,sha256=C3y0yGVVlkICz3ugEt-NE2ToJErMOKsQ8WdMasAIZjI,751
|
|
3
|
+
pyproject_tmpl-0.1.1.dev9.dist-info/METADATA,sha256=VkUFhGLfU_dLM0crt8uY4Q7DMjbwQ32aih0gi_Azy3A,1133
|
|
4
|
+
pyproject_tmpl-0.1.1.dev9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
pyproject_tmpl-0.1.1.dev9.dist-info/top_level.txt,sha256=JuXS55gRP3EzGKmJgbLfVfUolO3cM_u69k3qvutnBuw,4
|
|
6
|
+
pyproject_tmpl-0.1.1.dev9.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sdk
|
sdk/__init__.py
ADDED
sdk/_version.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = [
|
|
5
|
+
"__version__",
|
|
6
|
+
"__version_tuple__",
|
|
7
|
+
"version",
|
|
8
|
+
"version_tuple",
|
|
9
|
+
"__commit_id__",
|
|
10
|
+
"commit_id",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
TYPE_CHECKING = False
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from typing import Tuple
|
|
16
|
+
from typing import Union
|
|
17
|
+
|
|
18
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
19
|
+
COMMIT_ID = Union[str, None]
|
|
20
|
+
else:
|
|
21
|
+
VERSION_TUPLE = object
|
|
22
|
+
COMMIT_ID = object
|
|
23
|
+
|
|
24
|
+
version: str
|
|
25
|
+
__version__: str
|
|
26
|
+
__version_tuple__: VERSION_TUPLE
|
|
27
|
+
version_tuple: VERSION_TUPLE
|
|
28
|
+
commit_id: COMMIT_ID
|
|
29
|
+
__commit_id__: COMMIT_ID
|
|
30
|
+
|
|
31
|
+
__version__ = version = '0.1.1.dev9'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 1, 1, 'dev9')
|
|
33
|
+
|
|
34
|
+
__commit_id__ = commit_id = None
|