Skip to content

Commit

Permalink
Merge pull request #1 from BojanSof/vcs-versioning
Browse files Browse the repository at this point in the history
VCS versioning
  • Loading branch information
BojanSof authored May 8, 2024
2 parents a06add7 + cbce695 commit 857f5fa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,7 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/

# Custom
src/pydevdtk/version.py
21 changes: 19 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = [
"hatchling",
"hatch-vcs"
]
[project]
name = "PyDevDTK"
version = "0.1.0"
authors = [
{ name="Bojan Sofronievski", email="[email protected]" },
]
Expand All @@ -15,6 +17,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dynamic = ["version"]
dependencies = [
"numpy>=1.23.3",
"matplotlib>=3.5.2"
Expand All @@ -24,6 +27,20 @@ dependencies = [
"Homepage" = "https://github.com/BojanSof/pydevdtk"
"Bug Tracker" = "https://github.com/BojanSof/pydevdtk/issues"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/pydevdtk/version.py"

[tool.hatch.version.raw-options]
version_scheme="no-guess-dev"

[tool.hatch.build]
artifacts = [
"src/pydevdtk/version.py",
]

[tool.black]
line-length = 79

Expand Down

0 comments on commit 857f5fa

Please sign in to comment.