Skip to content

Commit f432346

Browse files
authored
Develop (#157)
* Hotfix/conditional deps (#154) * hotfix: conditional requirement for python<3.9 * conditional depedency added * bump version * silly mistake not calling get on the env vars * update changelog
1 parent 0e7f374 commit f432346

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,7 @@
312312
## Version 4.0.3
313313

314314
- hotfix of conditional dependency
315+
316+
## Version 4.0.4
317+
318+
- hotfix of calling get on env vars

mmpm/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
major = 4
33
minor = 0
4-
patch = 3
4+
patch = 4
55

66
version = f"{major}.{minor}.{patch}"

mmpm/api/endpoints/ep_mmpm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def upgrade() -> Response:
4545
Returns:
4646
Response: A Flask Response object indicating success or failure of the upgrade operation.
4747
"""
48-
if self.env.MMPM_IS_DOCKER_IMAGE:
48+
if self.env.MMPM_IS_DOCKER_IMAGE.get():
4949
self.failure("MMPM is a Docker image. MMPM must be upgraded using the Docker CLI.")
5050
if mmpm.utils.upgrade():
5151
return self.success("Upgrade MMPM")

mmpm/subcommands/_sub_cmd_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def exec(self, args, extra):
114114
if not self.database.is_initialized():
115115
self.database.load()
116116

117-
if self.env.MMPM_IS_DOCKER_IMAGE:
117+
if self.env.MMPM_IS_DOCKER_IMAGE.get():
118118
logger.error("MMPM is a Docker image. Unable to interact with MMPM UI from CLI.")
119119
return
120120

mmpm/subcommands/_sub_cmd_upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def exec(self, args, extra):
7979
upgradable["MagicMirror"] = upgradable["MagicMirror"] and self.magicmirror.upgrade()
8080

8181
if upgradable["mmpm"]:
82-
if self.env.MMPM_IS_DOCKER_IMAGE:
82+
if self.env.MMPM_IS_DOCKER_IMAGE.get():
8383
logger.warning("Cannot perform self-upgrade because MMPM is a Docker image. Stop MMPM and run `docker pull karsten13/mmpm:latest`")
8484
else:
8585
upgradable["mmpm"] = utils.upgrade()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mmpm"
3-
version = "4.0.3"
3+
version = "4.0.4"
44
description = "MMPM, the MagicMirror Package Manager CLI simplifies the installation, removal, and general maintenance of MagicMirror packages"
55
authors = [
66
{ name = "Brandon Marlowe", email = "bpmarlowe-software@protonmail.com" },

0 commit comments

Comments
 (0)