Skip to content

Commit

Permalink
fix: support new core 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
akelch committed Sep 15, 2023
1 parent 6366d03 commit 3345d86
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

This file documents any relevant changes.
## [1.0.15] 2023-09-15
- chore: support viur core 3.5.0

## [1.0.14] 2023-09-15
- chore: update app_server to 0.9.6

Expand Down
17 changes: 12 additions & 5 deletions src/viur_cli/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,18 @@ def requirements_to_dict(requirements):
ret.update({package.lower():requirement.options})
return ret

core_requirements = os.path.join(site.getsitepackages()[0],"viur","requirements.txt")

if not os.path.exists(core_requirements):
echo_info("could now find core package, please update the core to validate the requirements.txt")
return []
sp = site.getsitepackages()[0]
core_requirements = None
for req in (
os.path.join(sp, "viur", "core", "requirements.txt"),
os.path.join(sp, "viur", "requirements.txt")
):
if os.path.exists(req):
core_requirements = req
break

if not core_requirements:
echo_error("could now find core package, please update the core to validate the requirements.txt")

core_requirements_obj = requirements_to_dict(parse_requirements(core_requirements, session=PipSession()))

Expand Down
2 changes: 1 addition & 1 deletion src/viur_cli/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.14"
__version__ = "1.0.15"

0 comments on commit 3345d86

Please sign in to comment.