From 7acc08eccf71afcaa0180468cec2370287e324a8 Mon Sep 17 00:00:00 2001 From: triallax Date: Sat, 29 Apr 2023 17:04:22 +0300 Subject: [PATCH] python3-attrs: update to 23.1.0. --- .../remove-hatch-fancy-pypi-readme-dep.diff | 64 +++++++++++++++++++ srcpkgs/python3-attrs/template | 8 +-- 2 files changed, 68 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/python3-attrs/patches/remove-hatch-fancy-pypi-readme-dep.diff diff --git a/srcpkgs/python3-attrs/patches/remove-hatch-fancy-pypi-readme-dep.diff b/srcpkgs/python3-attrs/patches/remove-hatch-fancy-pypi-readme-dep.diff new file mode 100644 index 000000000000..6133fece1187 --- /dev/null +++ b/srcpkgs/python3-attrs/patches/remove-hatch-fancy-pypi-readme-dep.diff @@ -0,0 +1,64 @@ +--- a/pyproject.toml 2023-04-16 13:22:15.000000000 +0300 ++++ b/pyproject.toml 2023-04-29 16:49:08.704873775 +0300 +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: MIT + + [build-system] +-requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"] ++requires = ["hatchling", "hatch-vcs"] + build-backend = "hatchling.build" + + +@@ -75,52 +75,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 tag. +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-text = """

+- +- attrs +- +-

+-""" +- +-[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] +-path = "README.md" +-start-after = "" +- +-[[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) +-""" +- +- +-# Make coverage play nicely with pytest-xdist. +-[tool.hatch.build.targets.wheel.hooks.autorun] +-dependencies = ["hatch-autorun"] +-code = """ +-import coverage +-coverage.process_startup() +-""" +-enable-by-default = false +- +- + [tool.pytest.ini_options] + addopts = ["-ra", "--strict-markers", "--strict-config"] + xfail_strict = true diff --git a/srcpkgs/python3-attrs/template b/srcpkgs/python3-attrs/template index 242c92649d92..492d33f8fe23 100644 --- a/srcpkgs/python3-attrs/template +++ b/srcpkgs/python3-attrs/template @@ -1,9 +1,9 @@ # Template file for 'python3-attrs' pkgname=python3-attrs -version=22.2.0 +version=23.1.0 revision=1 -build_style=python3-module -hostmakedepends="python3-setuptools" +build_style=python3-pep517 +hostmakedepends="python3-setuptools hatch-vcs" depends="python3" checkdepends="python3-pytest python3-zope.interface python3-six python3-hypothesis" @@ -13,7 +13,7 @@ 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=c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99 +checksum=6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015 post_install() { vlicense LICENSE