main/py3-flit-core: upgrade to 3.11.0

This commit is contained in:
Fabricio Silva 2025-02-24 14:11:03 +00:00 committed by Kevin Daudt
parent d94a58aa34
commit 469b5f3d7f
2 changed files with 21 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py3-flit-core
pkgver=3.9.0
pkgrel=1
pkgver=3.11.0
pkgrel=0
pkgdesc="simple packaging tool for simple packages (core)"
url="https://flit.readthedocs.io/"
arch="noarch"
@ -9,7 +9,8 @@ license="BSD-3-Clause"
makedepends="py3-installer"
checkdepends="py3-pytest py3-testpath"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/f/flit/flit-$pkgver.tar.gz"
source="https://files.pythonhosted.org/packages/source/f/flit/flit-$pkgver.tar.gz
vendor-licenses.patch"
builddir="$srcdir/flit-$pkgver/flit_core"
options="!check" # py3-testpath depends on this
@ -29,11 +30,9 @@ check() {
package() {
python3 -m installer -d "$pkgdir" \
dist/flit_core-$pkgver-py3-none-any.whl
# remove installed tests
rm -r "$pkgdir"/usr/lib/python3*/site-packages/flit_core/tests
}
sha512sums="
3cbca4530fe463e27fb43130e0d00681e63434bdd552bd61b4a2f3b7967729d9d9a49c69b1a2380ed99bcca1e66a38e592f41cbe38a471d3e7297ab00cdabc29 flit-3.9.0.tar.gz
704774ab9b8154056a82f59814c2589ad4b3c8593a8e0de75eae99b1517211790604988efaf4f32e5f49fd472ec00efe8269b72524f285a647f4b8126699a4b7 flit-3.11.0.tar.gz
37f5382e565752e27fe27fb60c73dafe2ecae02a74fd3a48846885542e7209a2ee73c9a522e6cf9e494f7be7f50831b24218f0d4572242d722b74907657797ec vendor-licenses.patch
"

View File

@ -0,0 +1,15 @@
Upstream: no
Reason: we delete the vendor folder but the missing license breaks the build
https://github.com/pypa/flit/tree/main/flit_core/flit_core/vendor
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -13,7 +13,7 @@ dependencies = []
requires-python = '>=3.6'
readme = "README.rst"
license = "BSD-3-Clause"
-license-files = ["LICENSE*", "flit_core/vendor/**/LICENSE*"]
+license-files = ["LICENSE*"]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]