Skip to content

Commit 3425415

Browse files
committed
Decalre version in pyproject.toml only
1 parent 5dd4d37 commit 3425415

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

IsoSpecPy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .IsoSpecPy import *
2+
import importlib.metadata
23

3-
4-
__version__ = "2.2.3"
4+
__version__ = importlib.metadata.version("IsoSpecPy")
55

66
# Old, deprecated name, for compatibility with 1.9.X only
77
IsoLayered = IsoTotalProb

IsoSpecPy/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pathlib import Path
66

77
parser = argparse.ArgumentParser(description="IsoSpecPy: Python interface to IsoSpec++ library, a fast and memory-efficient library for computing isotopic distributions.")
8-
parser.add_argument('--version', '-v', action='version', version=f'%(prog)s {__version__}')
8+
parser.add_argument('--version', '-v', action='version', version=__version__)
99
parser.add_argument('--libpath', action='store_true',
1010
help='Print the path to the loaded C++ library and exit.')
1111
parser.add_argument('--include', action='store_true',

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ cmake.source-dir = "skbuild"
99
name = "IsoSpecPy"
1010
dependencies = ["cffi"]
1111
description = "IsoSpecPy is a Python library for computing isotopic distributions of molecules."
12-
version = "2.2.4"
12+
version = "2.3.0dev1"

0 commit comments

Comments
 (0)