Skip to content

Commit

Permalink
MAINT: Use dynamic versions
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoZeke committed Feb 11, 2024
1 parent 3b0ad87 commit 94a1817
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,4 @@ cython_debug/
.pdm-python
/docs/source/CHANGELOG.md
/docs/html/
/asv_runner/_version.py
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Topic :: System :: Benchmark",
]
version = "0.1.0"
dependencies = [] # Make sure there"s nothing here
requires-python = ">=3.8"
readme = "README.md"
license = {text = "BSD-3-Clause"}
dynamic = ["version"]

[project.optional-dependencies]
docs = [
Expand Down Expand Up @@ -61,13 +61,15 @@ select = [
"I001", # isort
]

[tool.setuptools_scm]
write_to = "asv_runner/_version.py"

[tool.pdm.scripts]
lint = {composite = ["ruff --fix --unsafe-fixes asv_runner/", "ruff format asv_runner/"]}
mkdoc = {composite = ["sphinx-build -b html docs/source docs/build/html"]}

[tool.pdm.version]
source = "scm"
write_to = "asv_runner/_version.py"
write_template = "__version__ = '{}'"

[project.urls]
homepage = "https://asv.readthedocs.io/projects/asv-runner/en/latest/"
repository = "https://github.com/airspeed-velocity/asv_runner"
Expand Down

0 comments on commit 94a1817

Please sign in to comment.