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 4 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
60 changes: 30 additions & 30 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 = "gram@orsinium.dev"
home-page = "https://github.com/life4/deal"
description-file = "README.md"
[project]
name = "deal"
authors = [{ name = "Gram", email = "gram@orsinium.dev" }]
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 @@ -22,18 +30,19 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
urls = { Documentation = "https://github.com/life4/deal" }

[tool.flit.metadata.requires-extra]
[project.optional-dependencies]
all = [
"astroid>=2.11.0", # for tyupe inference in linter
orsinium marked this conversation as resolved.
Show resolved Hide resolved
"deal-solver>=0.1.2", # for formal verification
orsinium marked this conversation as resolved.
Show resolved Hide resolved
"hypothesis", # for test generation
"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
"astroid>=3.1.0",
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
"typeguard>=3.0.0",
"vaa>=0.2.1",
]
integration = [ # integration tests
"astroid>=2.11.0",
integration = [
"astroid>=3.1.0",
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
Expand All @@ -59,21 +68,14 @@ lint = [
"mypy_test>=0.1.1",
"isort",
"unify",

# copy-pasted "all" extra
"deal-solver>=0.1.2",
"hypothesis",
"pygments",
"typeguard<4.0.0",
]
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.*",
]
docs = ["m2r2", "myst-parser", "sphinx>=4.5.0", "sphinx-rtd-theme==0.5.*"]
orsinium marked this conversation as resolved.
Show resolved Hide resolved

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

[tool.pytest.ini_options]
Expand Down Expand Up @@ -113,10 +115,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