Skip to content

Commit

Permalink
meta: use setuptools_scm for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
i13e committed Dec 27, 2024
1 parent 1a64920 commit 22002e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions osmanthus/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from __future__ import annotations

from importlib.metadata import version

__version__ = version("osmanthus")
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[tool.setuptools.package-data]
osmanthus = ["performance.bin"]

[project]
name = "osmanthus"
version = "0.1.2"
dynamic = ["version"]
description = "An algorithmic chess engine, written in Python."
authors = [{name = "Ian Breckenridge"}]
readme = "README.md"
Expand Down Expand Up @@ -35,3 +35,5 @@ osmanthus-cli = "osmanthus.cli:main"
Repository = "https://github.com/i13e/osmanthus"
Documentation = "https://github.com/i13e/osmanthus/wiki"
Issues = "https://github.com/i13e/osmanthus/issues"

[tool.setuptools_scm]

0 comments on commit 22002e9

Please sign in to comment.