Skip to content

Commit

Permalink
build: Fetch build version from Git tag (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe authored Jun 24, 2024
1 parent 6072c6a commit 9b29ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
5 changes: 0 additions & 5 deletions haystack_experimental/version.py

This file was deleted.

10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling>=1.8.0"]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -71,7 +71,8 @@ sync = "./.github/utils/pydoc-markdown.sh"
delete-outdated = "python ./.github/utils/delete_outdated_docs.py {args}"

[tool.hatch.version]
path = "haystack_experimental/version.py"
source = "vcs"
tag-pattern = 'v(?P<version>.*)'

[tool.hatch.metadata]
allow-direct-references = true
Expand All @@ -88,10 +89,7 @@ quiet-level = 3
skip = "test/nodes/*,test/others/*,test/samples/*,e2e/*"

[tool.pylint]
ignore-paths = [
"haystack_experimental/__init__.py",
"haystack_experimental/version.py",
]
ignore-paths = ["haystack_experimental/__init__.py"]

[tool.pylint.'MESSAGES CONTROL']
max-line-length = 120
Expand Down

0 comments on commit 9b29ac4

Please sign in to comment.