This commit is contained in:
Emma Nora Theuer 2025-02-27 13:50:58 +01:00
parent cac1159220
commit 8425da806b
Signed by: emma
GPG key ID: 9565B852BFB0E11E
2 changed files with 3 additions and 36 deletions

View file

@ -1,10 +1,4 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "wallman"
version = "1.5.2.7"
version = "1.5.2.8"
authors = [
{name = "Emma Nora Theuer", email = "wallman@entheuer.de"},
]
@ -12,31 +6,3 @@ description = "A simple program to set dynamic wallpapers on standalone X11 Wind
readme = "README.md"
requires-python = ">=3.11"
keywords = ["Desktop", "Wallpapers"]
license = {text = "MIT"}
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX :: GNU Hurd",
"Operating System :: POSIX :: BSD",
]
dependencies = [
"APScheduler",
"pillow",
"pystray",
'importlib-metadata; python_version<"3.10"',
]
[tool.setuptools.packages.find]
where = ["."]
include = ["wallman*"]
exclude = ["icons*", "packaging*", "DefaultFallbackWallpaper.jpg"]
[project.urls]
Homepage = "https://git.entheuer.de/emma/Wallman"
Issues = "https://git.entheuer.de/emma/Wallman/issues"
[project.scripts]
wallman = "wallman.main:main"

View file

@ -28,7 +28,7 @@ class _Config:
if not valid_changing_times:
logger.critical("The amount of provided changing times does not match the amount of wallpapers per set, or the dictionary has not been found in the config file.")
print("CRITICAL: The amount of provided changing times does not match the amount of wallpapers per set, or the dictionary has not been found in the config file.")
self.config_total_changing_times: int = len(self.config_changing_times)
raise ConfigError
# Wallpaper sets
valid_wallpaper_amount: bool = self._check_wallpaper_amount()
if not valid_wallpaper_amount:
@ -173,6 +173,7 @@ class _Config:
def _initialize_changing_times(self) -> bool:
try:
self.config_changing_times: Dict[str, str] = self.config_file["changing_times"]
self.config_total_changing_times: int = len(self.config_changing_times)
logger.debug(f"Changing times are {self.config_changing_times}")
except KeyError:
logger.critical("No dictionary called changing_times has been found in the config file.")