Skip to content

Commit

Permalink
Merge pull request #48 from scikit-hep/feature-version-update
Browse files Browse the repository at this point in the history
Update version and .gitignore
  • Loading branch information
aryan26roy authored Nov 5, 2024
2 parents daa35d0 + bfaeb94 commit 9a0371c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ venv.bak/
# mypy
.mypy_cache/
/formulate/version.py

# DS_STORE
**/.DS_Store

# Versioning
**/_version.py
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "formulate"
Expand Down Expand Up @@ -54,8 +54,10 @@ Homepage = "https://github.com/Scikit-HEP/formulate"
"Bug Tracker" = "https://github.com/Scikit-HEP/formulate/issues"
Discussions = "https://github.com/Scikit-HEP/formulate/discussions"
Changelog = "https://github.com/Scikit-HEP/formulate/releases"

[tool.hatch]
version.path = "src/formulate/__init__.py"
version.source = "vcs"
build.hooks.vcs.version-file = "src/formulate/_version.py"
envs.default.dependencies = [
"pytest",
"pytest-cov",
Expand Down
8 changes: 6 additions & 2 deletions src/formulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@

from . import toast

__version__ = "1.0.0rc1"
from ._version import __version__

__all__ = ("__version__",)
# print("======================")
# print(__version__.__repr__())
# print("======================")

# __all__ = ("__version__",)



Expand Down

0 comments on commit 9a0371c

Please sign in to comment.