[arch-commits] Commit in python-rencode/repos (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 18:06:06 UTC 2021
Date: Wednesday, December 1, 2021 @ 18:06:06
Author: foutrelis
Revision: 1060636
archrelease: copy trunk to community-staging-x86_64
Added:
python-rencode/repos/community-staging-x86_64/
python-rencode/repos/community-staging-x86_64/PKGBUILD
(from rev 1060635, python-rencode/trunk/PKGBUILD)
python-rencode/repos/community-staging-x86_64/remove-wheel.patch
(from rev 1060635, python-rencode/trunk/remove-wheel.patch)
--------------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
remove-wheel.patch | 20 ++++++++++++++++++++
2 files changed, 58 insertions(+)
Copied: python-rencode/repos/community-staging-x86_64/PKGBUILD (from rev 1060635, python-rencode/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-12-01 18:06:06 UTC (rev 1060636)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-rencode
+pkgver=1.0.6
+pkgrel=6
+pkgdesc="A Module similar to bencode from the BitTorrent project"
+url="https://github.com/aresch/rencode"
+license=('GPL')
+arch=('x86_64')
+depends=('python')
+makedepends=('cython' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/aresch/rencode/archive/v$pkgver.tar.gz"
+ remove-wheel.patch)
+sha512sums=('f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f'
+ '3062866d4fc890a2df8c8c261a5f67604c9fca67afb5526a24b599332d65ab093253e67c3a117a118f85144e3e32caf939c307f32668795f2eb7a7087572c1a8')
+
+prepare() {
+ cd "$srcdir"/rencode-$pkgver
+ patch -Np1 -i ../remove-wheel.patch
+}
+
+build() {
+ cd "$srcdir"/rencode-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/rencode-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10" py.test
+}
+
+package() {
+ cd rencode-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
Copied: python-rencode/repos/community-staging-x86_64/remove-wheel.patch (from rev 1060635, python-rencode/trunk/remove-wheel.patch)
===================================================================
--- community-staging-x86_64/remove-wheel.patch (rev 0)
+++ community-staging-x86_64/remove-wheel.patch 2021-12-01 18:06:06 UTC (rev 1060636)
@@ -0,0 +1,20 @@
+From 16e61e1ff4294bddb7c881536d3d454355c78969 Mon Sep 17 00:00:00 2001
+From: Louis Sautier <sautier.louis at gmail.com>
+Date: Sun, 8 Aug 2021 23:38:04 +0200
+Subject: [PATCH] Remove unnecessary wheel dependency (#30)
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 023df09..6445c0a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -92,5 +92,5 @@ def _unavailable(self, exc):
+ url="https://github.com/aresch/rencode",
+ cmdclass={'build_ext': optional_build_ext},
+ ext_modules=ext_modules,
+- setup_requires=['setuptools', 'wheel'],
++ setup_requires=['setuptools'],
+ )
More information about the arch-commits
mailing list