2023-10-09 19:29:22 +00:00
|
|
|
diff --git a/pyproject.toml b/pyproject.toml
|
2024-04-21 15:54:59 +00:00
|
|
|
index 1c72fc2..ae45740 100644
|
2023-10-09 19:29:22 +00:00
|
|
|
--- a/pyproject.toml
|
|
|
|
+++ b/pyproject.toml
|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
[build-system]
|
2024-04-21 15:54:59 +00:00
|
|
|
-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=23.2.0"]
|
2023-10-09 19:29:22 +00:00
|
|
|
+requires = ["hatchling"]
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
|
|
@@ -26,7 +26,8 @@ classifiers = [
|
2024-04-21 15:54:59 +00:00
|
|
|
"Typing :: Typed",
|
2023-10-09 19:29:22 +00:00
|
|
|
]
|
|
|
|
dependencies = ["importlib_metadata;python_version<'3.8'"]
|
|
|
|
-dynamic = ["version", "readme"]
|
|
|
|
+dynamic = ["readme"]
|
|
|
|
+version = "@version@"
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
2024-04-21 15:54:59 +00:00
|
|
|
tests-mypy = [
|
|
|
|
@@ -70,54 +71,9 @@ Funding = "https://github.com/sponsors/hynek"
|
2023-10-09 19:29:22 +00:00
|
|
|
Tidelift = "https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi"
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
-[tool.hatch.version]
|
|
|
|
-source = "vcs"
|
|
|
|
-raw-options = { local_scheme = "no-local-version" }
|
|
|
|
-
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
packages = ["src/attr", "src/attrs"]
|
|
|
|
|
|
|
|
-[tool.hatch.metadata.hooks.fancy-pypi-readme]
|
|
|
|
-content-type = "text/markdown"
|
|
|
|
-
|
|
|
|
-# PyPI doesn't support the <picture> tag.
|
|
|
|
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
-text = """<p align="center">
|
|
|
|
- <a href="https://www.attrs.org/">
|
|
|
|
- <img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" />
|
|
|
|
- </a>
|
|
|
|
-</p>
|
|
|
|
-"""
|
|
|
|
-
|
|
|
|
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
-path = "README.md"
|
|
|
|
-start-after = "<!-- teaser-begin -->"
|
|
|
|
-
|
|
|
|
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
-text = """
|
|
|
|
-
|
|
|
|
-## Release Information
|
|
|
|
-
|
|
|
|
-"""
|
|
|
|
-
|
|
|
|
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
-path = "CHANGELOG.md"
|
|
|
|
-pattern = "\n(###.+?\n)## "
|
|
|
|
-
|
|
|
|
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
|
|
-text = """
|
|
|
|
-
|
|
|
|
----
|
|
|
|
-
|
|
|
|
-[Full changelog](https://www.attrs.org/en/stable/changelog.html)
|
|
|
|
-"""
|
|
|
|
-
|
2024-04-21 15:54:59 +00:00
|
|
|
-# Point sponsor image URLs to versions.
|
|
|
|
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
|
|
|
|
-pattern = '\/latest\/_static/sponsors'
|
|
|
|
-replacement = '/$HFPR_VERSION/_static/sponsors'
|
|
|
|
-
|
2023-10-09 19:29:22 +00:00
|
|
|
-
|
2024-04-21 15:54:59 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
addopts = ["-ra", "--strict-markers", "--strict-config"]
|
|
|
|
xfail_strict = true
|