Skip to content

Commit

Permalink
Make setup.py require the latest pinned version of HDMF (#1083)
Browse files Browse the repository at this point in the history
* Make setup require hdmf>=1.3.2

* Actually keep pinned version for hdmf from requirements.txt (use ==)
  • Loading branch information
rly authored Oct 7, 2019
1 parent 5c6c202 commit c6ec626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

schema_dir = 'nwb-schema/core'

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

print(reqs)

Expand Down

0 comments on commit c6ec626

Please sign in to comment.