Skip to content

Commit c6ec626

Browse files
authored
Make setup.py require the latest pinned version of HDMF (#1083)
* Make setup require hdmf>=1.3.2 * Actually keep pinned version for hdmf from requirements.txt (use ==)
1 parent 5c6c202 commit c6ec626

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313

1414
schema_dir = 'nwb-schema/core'
1515

16+
# copy requirements from requirements.txt, ignore all pinned version info, but keep pinned version for hdmf
1617
reqs_re = re.compile("[<=>]+")
1718
with open('requirements.txt', 'r') as fp:
18-
reqs = [reqs_re.split(x.strip())[0] for x in fp.readlines()]
19+
reqs = [reqs_re.split(x.strip())[0] if not x.startswith('hdmf') else x.strip() for x in fp.readlines()]
1920

2021
print(reqs)
2122

0 commit comments

Comments
 (0)