Skip to content

Commit

Permalink
fix version control
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-thompson committed Aug 14, 2024
1 parent 5c27fdd commit 49a9822
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__
*.pyc
/dist/
/.tox/
/.tox/
_version.py
14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
dynamic = ["version"]
name = "pong-arcade"
version = "{{VERSION_PLACEHOLDER}}"
description = "Pong written using pygame"
readme = "README.md"
requires-python = ">=3.7"
Expand Down Expand Up @@ -39,6 +43,8 @@ exclude = [
"src/pong_arcade/data/gfx/screenshot.png"
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "_version.py"

0 comments on commit 49a9822

Please sign in to comment.