-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
121 lines (104 loc) · 2.45 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
[build-system]
requires = [
"setuptools >= 61.0",
"scmver[toml] >= 1.7",
]
build-backend = "setuptools.build_meta"
[project]
name = "scmver"
description = "A package version manager based on SCM tags"
readme = "README.rst"
authors = [
{name = "Akinori Hattori", email = "hattya@gmail.com"},
]
license = {text = "MIT"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Software Distribution",
"Topic :: Utilities",
]
requires-python = ">= 3.9"
dynamic = [
"version",
]
[project.scripts]
scmver = "scmver.cli:run"
[project.entry-points."distutils.setup_keywords"]
scmver = "scmver.setuptools:scmver"
[project.entry-points."scmver.parse"]
".bzr" = "scmver.bazaar:parse"
"_darcs" = "scmver.darcs:parse"
".fslckout" = "scmver.fossil:parse"
"_FOSSIL_" = "scmver.fossil:parse"
".git" = "scmver.git:parse"
".hg" = "scmver.mercurial:parse"
".hg_archival.txt" = "scmver.mercurial:parse"
".svn" = "scmver.subversion:parse"
[project.entry-points."setuptools.finalize_distribution_options"]
scmver = "scmver.setuptools:finalize_version"
[project.optional-dependencies]
cli = [
"click",
]
toml = [
"tomli; python_version < '3.11'",
]
[project.urls]
Homepage = "https://github.com/hattya/scmver"
[tool.setuptools]
include-package-data = false
packages = [
"scmver",
]
[tool.setuptools.package-data]
scmver = [
"py.typed",
]
[tool.scmver]
spec = "micro"
write-to = "scmver/__version__.py"
fallback = {attr = "scmver:__version__"}
[tool.coverage.run]
branch = true
omit = [
"*/__main__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"except ImportError:",
]
[tool.mypy]
implicit_reexport = true
strict = true
[tool.ruff]
line-length = 160
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"UP",
"B0",
"C4",
]
ignore = [
"E74",
]
[tool.ruff.lint.per-file-ignores]
"scmver/__init__.py" = [
"F403",
]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true