diff --git a/pyproject.toml b/pyproject.toml index 4240d73..464f771 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,13 +30,16 @@ test = [ [build-system] requires = [ - "setuptools >= 65", - "setuptools-scm >= 8.0.0", + "hatchling", + "hatch-vcs", ] -build-backend = "setuptools.build_meta" +build-backend = "hatchling.build" -[tool.setuptools_scm] -version_file = "src/simplesimdb/_version.py" +[tool.hatch.build] +include = ["simplesimdb.py"] + +[tool.hatch.version] +source = "vcs" [tool.ruff.lint] select = [ diff --git a/src/simplesimdb/__init__.py b/simplesimdb.py similarity index 99% rename from src/simplesimdb/__init__.py rename to simplesimdb.py index 63b8f1d..bdf89c3 100644 --- a/src/simplesimdb/__init__.py +++ b/simplesimdb.py @@ -9,7 +9,7 @@ from importlib.metadata import PackageNotFoundError, version with suppress(PackageNotFoundError): - __version__ = version(__package__) + __version__ = version("simplesimdb") class Repeater: diff --git a/tests/test_simplesimdb.py b/test_simplesimdb.py similarity index 100% rename from tests/test_simplesimdb.py rename to test_simplesimdb.py