Skip to content

Commit

Permalink
Added versioneer, moved template to location where non-editable insta…
Browse files Browse the repository at this point in the history
…ll works
  • Loading branch information
charles-turner-1 committed Jan 9, 2025
1 parent d354d09 commit 9bc81f3
Show file tree
Hide file tree
Showing 8 changed files with 2,409 additions and 132 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/access_py_telemetry/_version.py export-subst
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
"versioneer[toml]",
"versioneer[toml]==0.29",
]

[project]
Expand Down
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from setuptools import setup

import versioneer

setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
)
3 changes: 3 additions & 0 deletions src/access_py_telemetry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ def load_ipython_extension(ipython: InteractiveShell) -> None:
ip = get_ipython() # type: ignore
if ip:
load_ipython_extension(ip)

from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 9bc81f3

Please sign in to comment.