Skip to content

Commit

Permalink
wip - fix build and switch to versioningit
Browse files Browse the repository at this point in the history
  • Loading branch information
IAlibay authored and richardjgowers committed Oct 27, 2023
1 parent 3fe9bdf commit 3b5d25c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2,359 deletions.
20 changes: 19 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Minimum requirements for the build system to execute
requires = [
"cython>=0.28,<3.0",
"setuptools",
"setuptools>=61.2",
"versioningit",
"wheel",
# below matches MDA
"numpy==1.22.3; python_version=='3.9' and platform_python_implementation != 'PyPy'",
Expand All @@ -11,3 +12,20 @@ requires = [
"numpy==1.26.0; python_version=='3.12' and platform_python_implementation != 'PyPy'",
"numpy<2.0; python_version>='3.13'",
]
build-backend = "setuptools.build_meta"


[tool.versioningit]
default-version = "1+unknown"


[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"


[tool.versioningit.vcs]
method = "git"
match = ["*"]
default-tag = "0.0.0"
5 changes: 2 additions & 3 deletions pytng/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@

__all__ = ['TNGFileIterator', 'TNGCurrentIntegratorStep']

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
from importlib.metadata import version
__version__ = version("pytng")
Loading

0 comments on commit 3b5d25c

Please sign in to comment.