[arch-commits] Commit in python-cbor2/repos/community-x86_64 (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Thu Feb 3 20:51:09 UTC 2022
Date: Thursday, February 3, 2022 @ 20:51:09
Author: dvzrv
Revision: 1124932
archrelease: copy trunk to community-x86_64
Added:
python-cbor2/repos/community-x86_64/PKGBUILD
(from rev 1124931, python-cbor2/trunk/PKGBUILD)
Deleted:
python-cbor2/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 76 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 35 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-03 20:50:49 UTC (rev 1124931)
+++ PKGBUILD 2022-02-03 20:51:09 UTC (rev 1124932)
@@ -1,41 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=cbor2
-pkgname=python-cbor2
-pkgver=5.4.2
-pkgrel=3
-pkgdesc="Pure Python CBOR (de)serializer with extensive tag support"
-arch=('x86_64')
-url="https://github.com/agronholm/cbor2"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools-scm' 'python-toml')
-checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha256sums=('e283e70b55a049ff364cc5e648fde587e4d9b0e87e4b2664c69e639135e6b3b8')
-b2sums=('1ad8b7bf54343ad7e969c797a444653e9cf501139facb98f92727be4d31148acedff29885e99c1535a44bcc9add4e4a1890c8f4605c2b82c9975821ee029d7bb')
-
-prepare() {
- mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
- cd "$pkgname-$pkgver"
- # we do not care about coverage
- sed -e '/addopts/d' -i setup.cfg
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="build:${PYTHONPATH}"
- pytest -v
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --optimize=1 --root="${pkgdir}"
- install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
Copied: python-cbor2/repos/community-x86_64/PKGBUILD (from rev 1124931, python-cbor2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-03 20:51:09 UTC (rev 1124932)
@@ -0,0 +1,35 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cbor2
+pkgname=python-cbor2
+pkgver=5.4.2.post1
+pkgrel=1
+pkgdesc="Pure Python CBOR (de)serializer with extensive tag support"
+arch=(x86_64)
+url="https://github.com/agronholm/cbor2"
+license=(MIT)
+depends=(python)
+makedepends=(python-setuptools-scm python-toml)
+checkdepends=(python-pytest)
+options=(debug)
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('9cf21d59604b9529d7877c8e0342a2ebaae1a07fe8ff5683dc75fec15847c797')
+b2sums=('6d82ba6b99828615a3f93d8958f759fdc838a7c324ebbe82cda7d46ab8a450db95b626eac83df24d874725f99a141864d97e1077cdc9f2b177cc3d5019eab429')
+
+build() {
+ cd "${_name}-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "${_name}-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v -c /dev/null tests
+}
+
+package() {
+ cd "${_name}-$pkgver"
+ python setup.py install --optimize=1 --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list