mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
feat: implement dynamic versioning using setuptools_scm
This commit is contained in:
parent
209adecb19
commit
e5631e9de3
2 changed files with 10 additions and 3 deletions
|
@ -1 +1,6 @@
|
||||||
__version__ = "0.54.9-dev+0000000"
|
from setuptools_scm import get_version
|
||||||
|
|
||||||
|
try:
|
||||||
|
__version__ = get_version(root='..', relative_to=__file__)
|
||||||
|
except Exception:
|
||||||
|
__version__ = "0.0.0"
|
||||||
|
|
|
@ -30,7 +30,6 @@ Homepage = "https://github.com/paul-gauthier/aider"
|
||||||
aider = "aider.main:main"
|
aider = "aider.main:main"
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.setuptools.dynamic]
|
||||||
version = { attr = "aider.__init__.__version__" }
|
|
||||||
dependencies = { file = "requirements.txt" }
|
dependencies = { file = "requirements.txt" }
|
||||||
|
|
||||||
[tool.setuptools.dynamic.optional-dependencies]
|
[tool.setuptools.dynamic.optional-dependencies]
|
||||||
|
@ -63,5 +62,8 @@ include = ["aider*", "aider.website"]
|
||||||
]
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=68"]
|
requires = ["setuptools>=68", "setuptools_scm[toml]>=6.2"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[tool.setuptools_scm]
|
||||||
|
write_to = "aider/__version__.py"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue