Skip to content

Commit

Permalink
ZO-942: Configure 'setuptools' and 'pytest' via pyproject.toml
Browse files Browse the repository at this point in the history
Note that the `setup.cfg` remains in place for now in order to
keep the i18n settings.

See https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
  • Loading branch information
witsch committed Aug 18, 2023
1 parent 9783f66 commit 068eb70
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 78 deletions.
41 changes: 41 additions & 0 deletions application/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "briefkasten"
version = "0.3.13dev"
maintainers = [{name = 'Tom Lazar', email = '[email protected]'}]
description = "a reasonably secure web application for submitting content anonymously"
dependencies = [
"Pyramid <2.1",
"pyramid_chameleon",
"click",
"colander",
"diazo",
"humanfriendly",
"itsdangerous",
"jinja2",
"python-gnupg",
"repoze.xmliter",
"Paste",
"watchdog",
"PyYAML",
]

[project.entry-points."paste.app_factory"]
main = "briefkasten:main"

[project.scripts]
debug = "briefkasten.commands:debug"
worker = "briefkasten.commands:worker"
janitor = "briefkasten.commands:janitor"

[project.entry-points.pytest11]
briefkasten = "briefkasten.testing"

[tool.setuptools]
packages = ["briefkasten"]

[tool.pytest.ini_options]
addopts = "--strict-config --strict-markers --cov=briefkasten --cov-report=term --cov-report=html --doctest-modules"
12 changes: 0 additions & 12 deletions application/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
[tool:pytest]
addopts =
--strict
--cov=briefkasten
--cov-report=term
--cov-report=html
--doctest-modules
omit = briefkasten/testing.py

[aliases]
dev = develop easy_install briefkasten[development]

[compile_catalog]
directory = briefkasten/locale
domain = briefkasten
Expand Down
66 changes: 0 additions & 66 deletions application/setup.py

This file was deleted.

0 comments on commit 068eb70

Please sign in to comment.