Skip to content

Commit

Permalink
Fix in setup_eb.py for dict type version specifying in fix_requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Aug 16, 2023
1 parent 164593d commit 43cdecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Change Log
======
* Fixed typo (trailing comma) in types/access_key.py in access_key_add WRT request.validated['user'].
* Added identifyingProperties with just uuid in schema/access_key.json.
* Fix in setup_eb.py to handle jsonschema in pyproject.toml like {extras = ..., version = ...}.

10.0.2
======
Expand Down
2 changes: 2 additions & 0 deletions setup_eb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@


def fix_requirement(requirement):
if isinstance(requirement, dict) and "version" in requirement:
requirement = requirement["version"]
m = _CARET_MATCH.match(requirement)
if m:
return ">=%s%s,<%s" % (m.group(1), m.group(2), int(m.group(1)) + 1)
Expand Down

0 comments on commit 43cdecf

Please sign in to comment.