Files
Evection/pyproject.toml
ksmithandClaude Sonnet 5 cb5617edb8 Pin dependencies by hash and refuse to follow a rewritten release tag (S7)
pyproject.toml used broad version ranges with no lock file, so two
deployments of the same release could end up with different dependency
versions, and there was no check that a package actually matches what
was reviewed/tested — a compromised or substituted package on the index
could install silently.

requirements.txt and requirements-dev.txt (generated via `pip-compile
--generate-hashes`, see the new README section on regenerating them)
pin every dependency to an exact version with its hash. install.sh and
upgrade.sh now install from requirements.txt with --require-hashes,
then the app itself with --no-deps — a tampered or substituted package
fails the hash check instead of installing.

Both scripts also no longer `git fetch --tags --force`: a plain fetch
refuses to move a tag ref they already have onto a different commit,
so a rewritten/tampered release tag is reported and stops the
deploy/install instead of being silently followed into production.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 15:27:29 -06:00

60 lines
1.3 KiB
TOML

[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "evection"
version = "0.1.0"
description = "Self-hosted RSS/Atom feed reader, inspired by FreshRSS, built in Python/Django."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "AGPL-3.0-or-later" }
dependencies = [
"django>=5.0,<5.3",
"celery>=5.3,<6",
"redis>=5,<6",
"feedparser>=6.0,<7",
"requests>=2.31,<3",
"nh3>=0.2,<1",
"defusedxml>=0.7,<1",
"django-environ>=0.11,<1",
"django-htmx>=1.17,<2",
"psycopg[binary]>=3.1,<4",
"gunicorn>=21,<24",
"django-csp>=4.0,<5",
"whitenoise>=6.6,<7",
]
[project.optional-dependencies]
dev = [
"pytest>=8,<9",
"pytest-django>=4.8,<5",
"factory_boy>=3.3,<4",
"responses>=0.25,<1",
"freezegun>=1.4,<2",
"ruff>=0.4",
"black>=24",
"pip-tools>=7,<8",
]
[tool.setuptools]
py-modules = []
[tool.ruff]
line-length = 100
target-version = "py311"
exclude = [".venv", "migrations"]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.black]
line-length = 100
target-version = ["py311", "py312"]
extend-exclude = "migrations"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "config.settings.test"
python_files = ["test_*.py", "*_test.py", "tests.py"]
testpaths = ["apps"]