Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 88C48781AF8 for <~alpine/aports@lists.alpinelinux.org>; Tue, 9 Feb 2021 15:24:18 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpwn.com; s=key1; t=1612884257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qRy96pQH8AAvYOfBfaxuEYezrKQTLDI+BVEW849Armg=; b=TzwZjxYZGNPX+9nKeejiRRg549wVjR8gULKaEYuTcNHkimiK2dnuwnDla1QENiwrRsQwS+ dP2sXUxzYKe9oxkBhfu9G6sNpQv5Fd5EOzK0UA4ceTWbJawR97KhqHFoXWytIen97vwVDK 8i9OU/Ha4Ax84U9iKMe+uC/GPBar5yiT0ISQzj2CS+ROY0+NKdw+9+NrHbIuZrBb955PkX xnTrr6wtEDB70MGJsOO7cbP4imHPVchPlCBvZrCmDYT9ssEgb+N6U7YtTpj+kHVOuk6oDZ 79ThzjuXD8hnfLMY4elzpfPnaQxYPqx2Ndt8+tPjsMi3MMa9AcFULpNO8/P+nQ== From: Drew DeVault To: ~alpine/aports@lists.alpinelinux.org Cc: Drew DeVault Subject: [PATCH v2] community/py3-importlib-resources: remove downstream patch Date: Tue, 9 Feb 2021 10:24:15 -0500 Message-Id: <20210209152415.8470-1-sir@cmpwn.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: sir@cmpwn.com Found a way to work around this issue. --- Sorry, forgot to remove a file. .../0001-setup.cfg-remove-scm-nonsense.patch | 43 ------------------- community/py3-importlib-resources/APKBUILD | 13 +++--- 2 files changed, 6 insertions(+), 50 deletions(-) delete mode 100644 community/py3-importlib-resources/0001-setup.cfg-remove-scm-nonsense.patch diff --git a/community/py3-importlib-resources/0001-setup.cfg-remove-scm-nonsense.patch b/community/py3-importlib-resources/0001-setup.cfg-remove-scm-nonsense.patch deleted file mode 100644 index 97c2bf800d..0000000000 --- a/community/py3-importlib-resources/0001-setup.cfg-remove-scm-nonsense.patch +++ /dev/null @@ -1,43 +0,0 @@ -From a0ee588b62cca56c756fa90d0c04a15b12d59e9a Mon Sep 17 00:00:00 2001 -From: Drew DeVault -Date: Mon, 8 Feb 2021 20:40:32 -0500 -Subject: [PATCH] setup.cfg: remove scm nonsense - ---- - pyproject.toml | 4 +--- - setup.cfg | 1 - - 2 files changed, 1 insertion(+), 4 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index b6ebc0b..8ca88ac 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -1,12 +1,10 @@ - [build-system] --requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.1"] -+requires = ["setuptools>=42", "wheel"]>=3.4.1"] - build-backend = "setuptools.build_meta" - - [tool.black] - skip-string-normalization = true - --[tool.setuptools_scm] -- - [pytest.enabler.black] - addopts = "--black" - -diff --git a/setup.cfg b/setup.cfg -index 7d9424d..2c336ea 100644 ---- a/setup.cfg -+++ b/setup.cfg -@@ -23,7 +23,6 @@ include_package_data = true - python_requires = >=3.6 - install_requires = - zipp >= 0.4; python_version < '3.8' --setup_requires = setuptools_scm[toml] >= 3.4.1 - - [options.packages.find] - exclude = --- -2.30.1 - diff --git a/community/py3-importlib-resources/APKBUILD b/community/py3-importlib-resources/APKBUILD index 24fd28112a..2b56796b7d 100644 --- a/community/py3-importlib-resources/APKBUILD +++ b/community/py3-importlib-resources/APKBUILD @@ -2,7 +2,7 @@ pkgname=py3-importlib-resources _pyname=importlib_resources pkgver=5.1.0 -pkgrel=0 +pkgrel=1 pkgdesc="Read resources from Python packages" url="https://github.com/python/importlib_resources" arch="noarch" @@ -10,23 +10,22 @@ license="Apache-2.0" depends="py3-zipp" makedepends="py3-setuptools py3-setuptools_scm" _pypiprefix="${_pyname%${_pyname#?}}" -source=" - $pkgname-$pkgver.tar.gz::https://github.com/python/$_pyname/archive/v$pkgver.tar.gz - 0001-setup.cfg-remove-scm-nonsense.patch -" +source="$pkgname-$pkgver.tar.gz::https://github.com/python/$_pyname/archive/v$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver build() { + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python3 setup.py build } check() { + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python3 setup.py check } package() { + export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="80974b77c74b38c886389253b8794721ee7b32a96e0e2dea623e6146ef33cb15445a3644e7736cad1b5031fc99c69e0506c769ffb9bbb1c85cf0bec979d795f4 py3-importlib-resources-5.1.0.tar.gz -f552ac6809f111024572778aac728c6dd725f33bf432575ea2e8114fd0f69ecee35cd0b5fe586dae96248d81a85dfda43631f1617156dc16377cdb8a843ea944 0001-setup.cfg-remove-scm-nonsense.patch" +sha512sums="80974b77c74b38c886389253b8794721ee7b32a96e0e2dea623e6146ef33cb15445a3644e7736cad1b5031fc99c69e0506c769ffb9bbb1c85cf0bec979d795f4 py3-importlib-resources-5.1.0.tar.gz" -- 2.30.1