Skip to content

Commit

Permalink
update how we do versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
noahfranz13 committed Jul 7, 2023
1 parent f6f5425 commit 2bf41b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@
project = "hepfile"
copyright = "2021, Matt Bellis"
author = "Matt Bellis"
version = "0.2.0"
release = "0.2.0"

# version the docs correctly from the src/hepfile/_version.py file
__import__(project)
package = sys.modules[project]

version = package.__version__
release = package.__version__

# The master toctree document.
master_doc = 'index'
Expand Down
2 changes: 1 addition & 1 deletion src/hepfile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""
from __future__ import annotations

__version__ = "0.1.3"
from ._version import __version__

__all__ = ("__version__",)

Expand Down
5 changes: 5 additions & 0 deletions src/hepfile/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
Just define the package version in one place
"""

__version__ = "0.1.4"

0 comments on commit 2bf41b2

Please sign in to comment.