Files
firefrost-services/services/modpack-version-checker/setup.py
Claude (Chronicler #83 - The Compiler) 3457b87aef fix(modpack-checker): Code review fixes — license, safety, and polish
Fixes 10 issues from full code review:
- License corrected from MIT to Commercial
- Deprecated datetime.utcnow() replaced with timezone-aware alternative
- PHP array bounds checks added for all platform API responses
- Modrinth file detection now derives project slug instead of using MC version
- validate_api_key() no longer swallows network errors
- HTTP timeouts added to all external API calls in PHP
- Empty API key rejection added to CLI
- Corrupted config now warns on stderr instead of failing silently
- Error response format made consistent across controller
- Docs updated with correct repo URL and clearer CurseForge ID instructions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 13:37:26 -05:00

62 lines
1.9 KiB
Python

"""Package setup for Modpack Version Checker."""
from pathlib import Path
from setuptools import find_packages, setup
long_description = (Path(__file__).parent / "docs" / "README.md").read_text(
encoding="utf-8"
)
setup(
name="modpack-version-checker",
version="1.0.0",
author="Firefrost Gaming",
author_email="support@firefrostgaming.com",
description="Monitor CurseForge modpack versions and get notified of updates",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://firefrostgaming.com",
license="Commercial",
packages=find_packages(where="src"),
package_dir={"": "src"},
python_requires=">=3.9",
install_requires=[
"requests>=2.28.0",
"click>=8.1.0",
"rich>=13.0.0",
"pydantic>=2.0.0",
"sqlalchemy>=2.0.0",
],
extras_require={
"scheduler": ["apscheduler>=3.10.0"],
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-mock>=3.10.0",
"responses>=0.23.0",
"black>=23.0.0",
],
},
entry_points={
"console_scripts": [
"modpack-checker=modpack_checker.cli:main",
],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: Other/Proprietary License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Games/Entertainment",
"Topic :: System :: Monitoring",
],
keywords="minecraft modpack curseforge version checker monitor",
)