Last active
November 13, 2021 02:44
-
-
Save kylemanna/8b71c1050888e681efdd579e852e9976 to your computer and use it in GitHub Desktop.
Arch User Repository AUR Update for python-logfury
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 94f64148ce295a4ba7b96e539f8f82798697fa71 Mon Sep 17 00:00:00 2001 | |
From: Kyle Manna <[email protected]> | |
Date: Fri, 12 Nov 2021 20:03:13 -0600 | |
Subject: [PATCH] release: python-logfury: v1.0.1 | |
* Follow upstream. | |
* Use new git repo, old URL redirects. | |
* Use PyPI so pkg metadata is included. | |
* Update license file. | |
* Add test checks. | |
--- | |
.SRCINFO | 16 ++++++++-------- | |
PKGBUILD | 33 +++++++++++++++++++++------------ | |
2 files changed, 29 insertions(+), 20 deletions(-) | |
diff --git a/.SRCINFO b/.SRCINFO | |
index 944ee12..945bc15 100644 | |
--- a/.SRCINFO | |
+++ b/.SRCINFO | |
@@ -1,16 +1,16 @@ | |
pkgbase = python-logfury | |
pkgdesc = Responsible, low-boilerplate logging of method calls for python libraries | |
- pkgver = 0.1.2 | |
- pkgrel = 2 | |
- url = https://github.com/ppolewicz/logfury | |
+ pkgver = 1.0.1 | |
+ pkgrel = 1 | |
+ url = https://github.com/reef-technologies/logfury | |
arch = any | |
license = BSD | |
makedepends = python-setuptools | |
+ makedepends = python-pip | |
+ makedepends = python-nox | |
+ makedepends = python-coverage | |
depends = python | |
- depends = python-funcsigs | |
- depends = python-six>=1.10 | |
- source = logfury-0.1.2.tar.gz::https://github.com/ppolewicz/logfury/archive/0.1.2.tar.gz | |
- sha512sums = 626965bbb8bdebcd7f71fa141de24c7f725933a32f0a00c8799d9778fb41913666c2ef0c71660bf6d00b160b9e34baff682520f4c3570fb0e347f070f010172c | |
+ source = logfury-1.0.1.tar.gz::https://files.pythonhosted.org/packages/source/l/logfury/logfury-1.0.1.tar.gz | |
+ sha512sums = e62ba75293f93bfe2ea8dfaa20a478d8977800546e55bf511f409f5d89727c505297dbd84adbef1c47f8916b7551801fe4bbb3ae8dd22c6613b8942f25e80e9a | |
pkgname = python-logfury | |
- | |
diff --git a/PKGBUILD b/PKGBUILD | |
index cec4563..9729616 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,27 +1,36 @@ | |
# Maintainer: Yaron de Leeuw < me at jarondl dot net > | |
pkgname=python-logfury | |
-pkgver=0.1.2 | |
-pkgrel=2 | |
+_name=${pkgname#python-} | |
+pkgver=1.0.1 | |
+pkgrel=1 | |
pkgdesc="Responsible, low-boilerplate logging of method calls for python libraries" | |
arch=('any') | |
-url="https://github.com/ppolewicz/logfury" | |
+url="https://github.com/reef-technologies/logfury" | |
license=('BSD') | |
-depends=('python' 'python-funcsigs' 'python-six>=1.10') | |
-makedepends=('python-setuptools') | |
-source=("logfury-${pkgver}.tar.gz::https://github.com/ppolewicz/logfury/archive/${pkgver}.tar.gz") | |
-sha512sums=('626965bbb8bdebcd7f71fa141de24c7f725933a32f0a00c8799d9778fb41913666c2ef0c71660bf6d00b160b9e34baff682520f4c3570fb0e347f070f010172c') | |
+depends=('python') | |
+makedepends=('python-setuptools' 'python-pip' 'python-nox' 'python-coverage') | |
+ | |
+# https://wiki.archlinux.org/title/Python_package_guidelines#Source | |
+# Update to PyPI package due to following warning: | |
+# > Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other | |
+# > sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the | |
+# > necessary metadata and will not work. | |
+source=("logfury-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") | |
+sha512sums=('e62ba75293f93bfe2ea8dfaa20a478d8977800546e55bf511f409f5d89727c505297dbd84adbef1c47f8916b7551801fe4bbb3ae8dd22c6613b8942f25e80e9a') | |
build() { | |
- cd "$srcdir/logfury-$pkgver" | |
+ cd "$srcdir/$_name-$pkgver" | |
python setup.py build | |
} | |
- | |
package() { | |
- cd "$srcdir/logfury-$pkgver" | |
+ cd "$srcdir/$_name-$pkgver" | |
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build | |
- install -D LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" | |
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" | |
} | |
- | |
+check() { | |
+ cd "$srcdir/$_name-$pkgver" | |
+ nox -vs test | |
+} | |
-- | |
2.33.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment