Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate project metadata to PEP 621 #132

Merged
merged 6 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ __pycache__/
dist/
/venvs/
/.venvs/
.venv
.venvs
venv/

# coverage
.coverage
Expand Down
46 changes: 28 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
[build-system]
requires = ["flit_core >=2,<4"]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"

[tool.flit.metadata]
module = "deal"
license = "MIT"
author = "Gram"
author-email = "[email protected]"
home-page = "https://github.com/life4/deal"
description-file = "README.md"
[project]
name = "deal"
authors = [{ name = "Gram", email = "[email protected]" }]
license = { text = "MIT" }
readme = "README.md"
dynamic = ["version", "description"]
requires-python = ">=3.8"
keywords = "deal,contracts,pre,post,invariant,decorators,validation,pythonic,functional"
requires = []
keywords = [
"deal",
"contracts",
"pre",
"post",
"invariant",
"decorators",
"validation",
"pythonic",
"functional",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
Expand All @@ -23,16 +31,20 @@ classifiers = [
"Topic :: Software Development :: Quality Assurance",
]

[tool.flit.metadata.requires-extra]
[project.urls]
Repository = "https://github.com/life4/deal"
Documentation = "https://deal.readthedocs.io/"

[project.optional-dependencies]
all = [
"astroid>=2.11.0", # for tyupe inference in linter
orsinium marked this conversation as resolved.
Show resolved Hide resolved
"astroid>=2.11.0", # for type inference in linter
"deal-solver>=0.1.2", # for formal verification
orsinium marked this conversation as resolved.
Show resolved Hide resolved
"hypothesis", # for test generation
"hypothesis", # for property based testing
"pygments", # for syntax highlighting in exceptions
"typeguard>=3.0.0", # for runtime type checking in tests
"vaa>=0.2.1", # for supporting schemes (like marshmallow) as validators
]
integration = [ # integration tests
integration = [ # for integration testing
"astroid>=2.11.0",
"deal-solver>=0.1.2",
"hypothesis",
Expand Down Expand Up @@ -70,10 +82,10 @@ docs = [
"m2r2", # markdown support in docstrings for sphinx
"myst-parser", # markdown support for dcs in sphinx
"sphinx==3.5.*", # documentation
"sphinx-rtd-theme==0.5.*",
"sphinx-rtd-theme==0.5.*", # theme for documentation
]

[tool.flit.entrypoints."flake8.extension"]
[project.entry-points."flake8.extension"]
DEL = "deal.linter:Checker"

[tool.pytest.ini_options]
Expand Down Expand Up @@ -113,10 +125,8 @@ show_error_codes = true

allow_redefinition = true
check_untyped_defs = true
# no_implicit_optional = true
strict_equality = true
warn_redundant_casts = true
# warn_unreachable = true
warn_unused_ignores = true

[[tool.mypy.overrides]]
Expand Down
Loading