Skip to content

Commit a5c13d5

Browse files
committed
updated to auto set __version__ for module
1 parent 584473e commit a5c13d5

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ncca-ngl"
3-
version = "0.1.3"
3+
version = "0.1.5"
44
description = "A Python version of the NGL graphics library."
55
authors = [{ name = "Jon Macey", email = "jmacey@bournemouth.ac.uk" }]
66
requires-python = ">=3.13"

src/ncca/ngl/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# generate auto __version__
2+
from importlib.metadata import PackageNotFoundError, version
3+
4+
try:
5+
__version__ = version("ncca-ngl")
6+
except PackageNotFoundError:
7+
__version__ = "0.0.0"
8+
19
from .abstract_vao import AbstractVAO, VertexData
210
from .base_mesh import BaseMesh, Face
311
from .bbox import BBox

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)