Skip to content

Commit

Permalink
Revert to flat directory layout, use hatch build backend
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamPattinson committed Dec 3, 2024
1 parent 2270113 commit 8250f68
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/simplesimdb/__init__.py → simplesimdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from importlib.metadata import PackageNotFoundError, version

with suppress(PackageNotFoundError):
__version__ = version(__package__)
__version__ = version("simplesimdb")


class Repeater:
Expand Down
File renamed without changes.

0 comments on commit 8250f68

Please sign in to comment.