Skip to content

Commit bcfeebe

Browse files
authored
Merge pull request #95 from chrishavlin/update_version_specification
set version dynamically in pyproject.toml
2 parents 16a2771 + 597b372 commit bcfeebe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "yt_xarray"
7-
version = "0.3.0"
87
authors = [
98
{ name="Chris Havlin", email="[email protected]" },
109
]
@@ -22,6 +21,7 @@ classifiers = [
2221
"Programming Language :: Python :: 3.11",
2322
]
2423
dependencies=['yt>=4.2.0', 'h5py>=3.4.0', 'pooch>=1.5.1', 'xarray']
24+
dynamic = ["version"]
2525

2626
[project.urls]
2727
"Homepage" = "https://github.com/data-exp-lab/yt_xarray"
@@ -40,3 +40,6 @@ target-version = ['py310']
4040
profile = "black"
4141
combine_as_imports = true
4242
skip = ["venv", "benchmarks"]
43+
44+
[tool.setuptools.dynamic]
45+
version = {attr = "yt_xarray.__version__"}

yt_xarray/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
__author__ = """Chris Havlin"""
44
__email__ = "[email protected]"
5-
__version__ = "0.3.0"
5+
__version__ = "0.3.0.dev"
66

77

88
# import the xarray accessor so it is registered with xarray

0 commit comments

Comments
 (0)