python3-attrs: update to 24.1.0, adopt.

This commit is contained in:
Gonzalo Tornaría 2024-08-03 19:38:29 -03:00 committed by Andrew J. Hesford
parent 00490e3e56
commit e8c9ff8305
2 changed files with 4 additions and 64 deletions

View File

@ -1,60 +0,0 @@
This useless dependency is only for distribution on PyPI.
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT
[build-system]
-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme>=23.2.0"]
+requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
@@ -77,46 +77,6 @@
[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)
-"""
-
-# Point sponsor image URLs to versions.
-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
-pattern = '\/latest\/_static/sponsors'
-replacement = '/$HFPR_VERSION/_static/sponsors'
-
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-markers", "--strict-config"]

View File

@ -1,19 +1,19 @@
# Template file for 'python3-attrs'
pkgname=python3-attrs
version=23.2.0
version=24.1.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools hatch-vcs"
hostmakedepends="python3-setuptools hatch-vcs hatch-fancy-pypi-readme"
depends="python3"
checkdepends="python3-pytest python3-zope.interface python3-six
python3-hypothesis"
short_desc="Attributes without boilerplate (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="MIT"
homepage="https://attrs.readthedocs.io/"
changelog="https://raw.githubusercontent.com/python-attrs/attrs/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz"
checksum=935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30
checksum=adbdec84af72d38be7628e353a09b6a6790d15cd71819f6e9d7b0faa8a125745
post_install() {
vlicense LICENSE