Initial commit
Some checks failed
CI / test (push) Failing after 1m20s
Lint / test (push) Failing after 28s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2026-01-02 09:59:52 +11:00
commit fe58397da7
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
17 changed files with 2547 additions and 0 deletions

29
pyproject.toml Normal file
View file

@ -0,0 +1,29 @@
[tool.poetry]
name = "cspresso"
version = "0.1.0"
description = "Crawl a website with a headless browser and generate a draft Content-Security-Policy (CSP)."
authors = ["Miguel Jacq <mig@mig5.net>"]
readme = "README.md"
packages = [{ include = "cspresso", from = "src" }]
license = "GPL-3.0-or-later"
repository = "https://git.mig5.net/mig5/cspresso"
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
playwright = "^1.50.0"
[tool.poetry.scripts]
cspresso = "cspresso.crawl:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pyproject-appimage]
script = "cspresso"
output = "CSPresso.AppImage"
[tool.poetry.dev-dependencies]
pytest = "^8"
pytest-cov = "^5"
pyproject-appimage = "^4.2"