Skip to content

Commit a2bb1d4

Browse files
author
Bas van Beek
committed
BLD: Bump the minimum nano-utils verion
1 parent cbf2c8b commit a2bb1d4

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

assertionlib/__init__.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
"""AssertionLib."""
22

33
import os
4+
import sys
45
from nanoutils import VersionInfo
56

6-
from .__version__ import __version__
7+
from .__version__ import __version__ as __version__
8+
if sys.version_info >= (3, 7):
9+
version_info = VersionInfo.from_str(__version__)
10+
else:
11+
version_info = VersionInfo._make(int(i) for i in __version__.split(".") if i.isnumeric())
712

813
from .ndrepr import NDRepr, aNDRepr
914
from .manager import assertion, AssertionManager
@@ -12,9 +17,8 @@
1217

1318
_README = os.path.join(__path__[0], 'README.rst') # type: ignore
1419
__doc__ = load_readme(_README, encoding='utf-8')
15-
version_info = VersionInfo.from_str(__version__)
1620

17-
del _README, load_readme, os, VersionInfo
21+
del _README, load_readme, os, sys, VersionInfo
1822

1923
__author__ = "B. F. van Beek"
2024
__email__ = '[email protected]'

assertionlib/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""The AssertionLib version."""
22

3-
__version__ = '3.2.2'
3+
__version__ = '3.2.2.dev0'

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
],
9090
python_requires='>=3.6',
9191
install_requires=[
92-
'Nano-Utils>=0.4.1; python_version<"3.9"',
93-
'Nano-Utils>=1.1.2; python_version>="3.9"',
92+
'Nano-Utils>=0.4.1; python_version=="3.6"',
93+
'Nano-Utils>=2.3.1; python_version>="3.7"',
9494
],
9595
setup_requires=['pytest-runner'] + docs_require,
9696
tests_require=tests_require,

0 commit comments

Comments
 (0)