Skip to content

Commit

Permalink
Removed >= operation in runtime and dev dependencies (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus authored Jul 14, 2023
1 parent 56da4d1 commit db0d9c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions oarepo_model_builder/builders/setup_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ def finish(self):

if "runtime-dependencies" in self.schema:
for dep, value in self.schema["runtime-dependencies"].items():
output.add_dependency(dep, ">=" + value)
if value[0] not in (">", "<", "="):
value = ">=" + value
output.add_dependency(dep, value)

if "dev-dependencies" in self.schema:
for dep, value in self.schema["dev-dependencies"].items():
if value[0] not in (">", "<", "="):
value = ">=" + value
output.add_dependency(
dep, ">=" + value, group="options.extras_require", section="devs"
dep, value, group="options.extras_require", section="devs"
)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-model-builder
version = 4.0.25
version = 4.0.26
description = A utility library that generates OARepo required data model files from a JSON specification file
authors = Miroslav Bauer <[email protected]>, Miroslav Simek <[email protected]>
readme = README.md
Expand Down

0 comments on commit db0d9c5

Please sign in to comment.