diff --git a/pyinstaller.spec b/pyinstaller.spec index 78dd3a4..48316f6 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -22,9 +22,13 @@ excluded_modules = [ "bz2", "ftplib", "lzma", + "mypy", # wrongly included dev-dep + "rich", # wrongly included dev-dep (transitive dep of pip-audit) "setuptools", "smtplib", "statistics", + "toml", # wrongly included dev-dep (transitive dep of pip-audit) + "tomllib", "tracemalloc", "xml.sax", "xmlrpc" diff --git a/pyproject.toml b/pyproject.toml index 8b7b852..c0fce64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,8 +92,13 @@ generate-schemas = "python scripts/generate_schemas.py" compile.cmd = "python -O -m PyInstaller pyinstaller.spec --clean" compile.env = {PYTHONHASHSEED = "1", SOURCE_DATE_EPOCH = "0"} # https://pyinstaller.org/en/stable/advanced-topics.html#creating-a-reproducible-build +deps = "pdm list --fields name,version,groups" +"deps:tree" = "pdm list --tree" +"deps:runtime" = "pdm list --fields name,version,groups --include default" +"deps:runtime:tree" = "pdm list --tree --include default" + # format & lint -format = { composite = ["format:py", "format:yaml"] } +format = { composite = ["format:py", "format:yaml"] } "format:py" = { shell = "autopep8 --recursive --in-place scripts src tests --verbose && python scripts/post_autopep8.py scripts src tests" } "format:yaml" = "yamlfix scripts/ src/ tests/" @@ -104,10 +109,10 @@ lint = { composite = ["lint:ruff", "lint:mypy", "lint:pyright"] } "lint:fix" = {shell = "ruff check --preview --fix" } # tests -test = "python -m pytest --capture=tee-sys" -utest = "python -m pytest --capture=tee-sys -m 'not itest'" -itest = "python -m pytest --capture=tee-sys -m 'itest'" -"test:cov" = { composite = ["test --cov=src/kleinanzeigen_bot"] } +test = "python -m pytest --capture=tee-sys" +utest = "python -m pytest --capture=tee-sys -m 'not itest'" +itest = "python -m pytest --capture=tee-sys -m 'itest'" +"test:cov" = { composite = ["test --cov=src/kleinanzeigen_bot"] } "utest:cov" = { composite = ["utest --cov=src/kleinanzeigen_bot"] } "itest:cov" = { composite = ["itest --cov=src/kleinanzeigen_bot"] }