mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14:37 +03:00
setuptools_scm configuration on pyproject.toml
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
@@ -1,9 +1,14 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.3.3"]
|
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.4"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tools.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
local_scheme = "no-local-version"
|
local_scheme = "no-local-version"
|
||||||
|
write_to = "aqt/version.py"
|
||||||
|
write_to_template = """
|
||||||
|
__version__ = \"{version}\"
|
||||||
|
"""
|
||||||
|
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
|
||||||
|
|
||||||
[tool.check-manifest]
|
[tool.check-manifest]
|
||||||
ignore = ["aqt/version.py","azure-pipelines.yml", ".readthedocs.yml", "ci/*"]
|
ignore = ["aqt/version.py","azure-pipelines.yml", ".readthedocs.yml", "ci/*"]
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ install_requires =
|
|||||||
dataclasses;python_version<"3.7"
|
dataclasses;python_version<"3.7"
|
||||||
defusedxml
|
defusedxml
|
||||||
setup_requires =
|
setup_requires =
|
||||||
setuptools-scm[toml]>=6.0.1
|
setuptools-scm[toml]>=6.4
|
||||||
setuptools>=45.0
|
setuptools>=61
|
||||||
packages = aqt
|
packages = aqt
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
|
|||||||
9
setup.py
9
setup.py
@@ -2,11 +2,4 @@
|
|||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(setup_requires=["setuptools_scm"], use_scm_version=True)
|
||||||
use_scm_version={
|
|
||||||
"write_to": "aqt/version.py",
|
|
||||||
"write_to_template": '__version__ = "{version}"\n',
|
|
||||||
"tag_regex": r"^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$",
|
|
||||||
"local_scheme": "no-local-version",
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user