- before_request guard: visitors browse + explore; writes need PHYSCOM_ADMIN_TOKEN login - SameSite=Lax/HttpOnly cookies, persisted secret key, debug off unless FLASK_DEBUG=1 - non-root gunicorn container with healthcheck; physcom demo --if-empty on first start - landing page Top Concepts, write controls hidden from visitors - CI workflow, pyproject metadata, compose Ollama parity, README rewrite - tests/test_web_access.py: access control + GET smoke test of every page Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1018 B
TOML
48 lines
1018 B
TOML
[build-system]
|
|
requires = ["setuptools>=68.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "physcom"
|
|
version = "0.1.0"
|
|
description = "Physical Combinatorics — innovation via attribute mixing"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
authors = [{ name = "Andrew Simonson", email = "asimonson1125@gmail.com" }]
|
|
classifiers = [
|
|
"Programming Language :: Python :: 3",
|
|
"Framework :: Flask",
|
|
"Topic :: Scientific/Engineering :: Physics",
|
|
]
|
|
dependencies = [
|
|
"click>=8.1",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0",
|
|
]
|
|
web = [
|
|
"flask>=3.0",
|
|
"gunicorn>=22.0",
|
|
]
|
|
gemini = [
|
|
"google-genai>=1.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Repository = "https://git.asimonson.com/andrew/physicalCombinatorics"
|
|
|
|
[project.scripts]
|
|
physcom = "physcom.cli:main"
|
|
physcom-web = "physcom_web.app:run"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.setuptools.package-data]
|
|
physcom_web = ["templates/**/*.html", "static/**/*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|