Commit c1cbcee6 authored by Johan Gudmundsson's avatar Johan Gudmundsson
Browse files

chore: rework versioning design

parent deecef28
Loading
Loading
Loading
Loading

VERSION

0 → 100644
+0 −0

Empty file added.

+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import sphinx_rtd_theme
version = ''
if 'READTHEDOCS' not in os.environ:
    # if developing locally, use pyro.__version__ as version
    from borch.version import __version__ as borch_version
    from borch import __version__ as borch_version
    version = str(borch_version)

# release version
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@ enabled = true
# dev_template = "{tag}+{sha}"
# template = "{tag}+{sha}"

[tool.setuptools.package-data]
# include VERSION file to a package
my_module = ["VERSION"]

[project]
name = "borch"
dynamic = ["version"]
+3 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ Examples:
    ...     optimizer.step(model.parameters())
    ...     optimizer.zero_grad()
"""
from pathlib import Path

from borch import distributions, infer, metrics, nn, posterior
from borch.graph import Graph, as_tensor
@@ -74,3 +75,5 @@ from borch.module import (
from borch.optimizer_collection import OptimizersCollection
from borch.random_variable import RandomVariable, RVPair, validate_args
from borch.transform import Transform

__version__ = Path(__file__).parent.joinpath("VERSION").read_text()