
This commit improves the application's robustness by enhancing data handling and adding error logging. Specifically, it: - Updates the project version to 1.0.4 in `pyproject.toml` and `setup.py`. - Removes redis from requirements.txt - Improves data parsing in `KeyService.parse_hash_data` to handle None values and simplify the logic. - Adds error logging to `KeyService.parse_hash_data` and `KeyService.process_list_values` to catch and log parsing errors. - Modifies `KeyService.process_list_values` to ensure the return value is always a list. - Adds try-except blocks in `get_keys` and `get_key_value` routes to handle potential exceptions during key processing and log warnings.
47 lines
1.4 KiB
TOML
47 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "firefly-viewer"
|
|
version = "1.0.4"
|
|
description = "A web-based viewer for Firefly databases"
|
|
readme = "README.md"
|
|
authors = [{ name = "IDSolutions", email = "info@innovativedevsolutions.org" }]
|
|
license = { file = "LICENSE" }
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Environment :: Web Environment",
|
|
"Framework :: Flask",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.13",
|
|
"Topic :: Database :: Front-Ends",
|
|
]
|
|
keywords = ["firefly", "database", "viewer", "web", "flask"]
|
|
dependencies = [
|
|
"Flask",
|
|
"redis",
|
|
"python-dotenv",
|
|
"ifireflylib",
|
|
"click",
|
|
"waitress",
|
|
]
|
|
requires-python = ">=3.13"
|
|
|
|
[project.urls]
|
|
Homepage = "https://gitea.innovativedevsolutions.org/IDSolutions/firefly-viewer"
|
|
Documentation = "https://gitea.innovativedevsolutions.org/IDSolutions/firefly-viewer#readme"
|
|
Repository = "https://gitea.innovativedevsolutions.org/IDSolutions/firefly-viewer.git"
|
|
"Bug Tracker" = "https://gitea.innovativedevsolutions.org/IDSolutions/firefly-viewer/issues"
|
|
|
|
[project.scripts]
|
|
firefly-viewer = "firefly.cli:main"
|
|
|
|
[tool.setuptools]
|
|
packages = ["firefly"]
|
|
|
|
[tool.setuptools.package-data]
|
|
firefly = ["templates/*"] |