Skip to content

Commit ea5b10d

Browse files
committed
Use CMake project version to add version to compiled extension
1 parent ee25b37 commit ea5b10d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/pyfastani/__init__.py

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

1313
__author__ = "Martin Larralde <martin.larralde@embl.de>"
1414
__license__ = "MIT"
15-
__version__ = "0.6.0"
15+
__version__ = _fastani.__version__
1616

1717
__doc__ = _fastani.__doc__
1818
__all__ = [

src/pyfastani/_fastani.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ cdef extern from *:
105105
const size_t _MAX_KMER_SIZE
106106

107107
MAX_KMER_SIZE = _MAX_KMER_SIZE
108+
__version__ = PROJECT_VERSION
108109

109110
# --- Patch for PyPy 3.9 -----------------------------------------------------
110111

0 commit comments

Comments
 (0)