-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
141 lines (122 loc) · 2.87 KB
/
pyproject.toml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "chronovoyage"
dynamic = ["version"]
description = 'Simple database migration framework.'
readme = {"file" = "README.md", "content-type" = "text/markdown"}
requires-python = ">=3.8"
license = { file = "LICENSE.txt" }
authors = [
{ name = "Noritaka IZUMI", email = "[email protected]" },
]
keywords = ["database", "migration"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Topic :: Database",
]
dependencies = [
"click",
"python-dotenv",
"typing-extensions",
"pyyaml",
]
[project.optional-dependencies]
mariadb = [
"mariadb",
]
[project.urls]
Documentation = "https://chronovoyagemigration.net/"
Issues = "https://github.com/fairy-select/chronovoyage/issues"
Source = "https://github.com/fairy-select/chronovoyage"
[project.scripts]
chronovoyage = "chronovoyage.cli:chronovoyage"
[tool.hatch.version]
path = "src/chronovoyage/__about__.py"
[tool.hatch.envs.default]
# include all features here.
features = [
"mariadb",
]
[tool.hatch.envs.mariadb]
features = [
"mariadb",
]
[tool.hatch.envs.types]
features = []
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/chronovoyage tests}"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
"pytest-mock",
"poethepoet",
]
[tool.hatch.envs.hatch-test]
features = [
"mariadb",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.coverage.run]
source_pkgs = ["chronovoyage", "tests"]
branch = true
parallel = true
omit = [
"src/chronovoyage/__about__.py",
]
[tool.coverage.paths]
chronovoyage = ["src/chronovoyage", "*/chronovoyage/src/chronovoyage"]
tests = ["tests", "*/chronovoyage/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
omit = [
"tests/*",
]
[tool.mypy]
mypy_path = '$MYPY_CONFIG_FILE_DIR/src/chronovoyage'
[[tool.mypy.overrides]]
module = [
# src
"chronovoyage.*",
"mariadb",
# tests
"support.*",
"pytest",
"_pytest.fixtures",
"pytest_mock",
]
ignore_missing_imports = true
[tool.hatch.build.targets.sdist]
ignore-vcs = true
exclude = [
"/tests",
"/Writerside",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/chronovoyage",
]
[tool.poe.tasks]
lint = ["fmt", "types"]
fmt = "hatch fmt"
types = "hatch run types:check"