Skip to content

Commit

Permalink
make version dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Mar 22, 2023
1 parent 5ea6fa3 commit c88ac48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions funlib/persistence/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from .arrays import Array, open_ds, prepare_ds # noqa

__version__ = "0.1.0"
__version_info__ = tuple(int(i) for i in __version__.split("."))
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ requires = ["setuptools", "wheel"]
[project]
name = "funlib.persistence"
description = "Interfaces for data (arrays and graphs) and storage formats (databases and file formats)"
version = "0.1"
license = {text = "MIT"}
readme = "README.md"
authors = [
{name = "William Patton", email = "[email protected]"},
{name = "Jan Funke", email = "[email protected]"},
]
dynamic = ['version']

requires-python = ">=3.7"
classifiers = [
Expand All @@ -28,6 +28,9 @@ dependencies = [
'h5py',
]

[tool.setuptools.dynamic]
version = {attr = "funlib.persistence.__version__"}

[project.optional-dependencies]
dev = [
'coverage>=5.0.3',
Expand Down

0 comments on commit c88ac48

Please sign in to comment.