[arch-commits] Commit in python-schema/repos/community-any (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Fri Dec 27 14:42:10 UTC 2019
Date: Friday, December 27, 2019 @ 14:42:10
Author: anthraxx
Revision: 543027
archrelease: copy trunk to community-any
Added:
python-schema/repos/community-any/PKGBUILD
(from rev 543026, python-schema/trunk/PKGBUILD)
Deleted:
python-schema/repos/community-any/PKGBUILD
----------+
PKGBUILD | 70 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 39 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-27 14:41:53 UTC (rev 543026)
+++ PKGBUILD 2019-12-27 14:42:10 UTC (rev 543027)
@@ -1,31 +0,0 @@
-# Maintainer: Florian Pritz <bluewind at xinu.at>
-
-_name=schema
-pkgname="python-$_name"
-pkgver=0.7.1
-pkgrel=3
-pkgdesc='Python module to validate and convert data structures.'
-arch=(any)
-url="https://github.com/keleshev/$_name"
-depends=(python python-contextlib2)
-makedepends=(python-setuptools)
-checkdepends=(python-mock python-pytest)
-license=(MIT)
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha256sums=('c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959')
-
-build() {
- cd "$srcdir/$_name-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$srcdir/$_name-$pkgver"
- python setup.py test
-}
-
-package() {
- cd "$srcdir/$_name-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- install -D -m644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
Copied: python-schema/repos/community-any/PKGBUILD (from rev 543026, python-schema/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-12-27 14:42:10 UTC (rev 543027)
@@ -0,0 +1,39 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+
+_name=schema
+pkgname="python-$_name"
+pkgver=0.7.1
+pkgrel=4
+pkgdesc='Python module to validate and convert data structures.'
+arch=(any)
+url="https://github.com/keleshev/$_name"
+depends=(python python-contextlib2)
+makedepends=(python-setuptools)
+checkdepends=(python-mock python-pytest)
+license=(MIT)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('c9dc8f4624e287c7d1435f8fd758f6a0aabbb7eff442db9192cd46f0e2b6d959')
+
+prepare() {
+ cd "$srcdir/$_name-$pkgver"
+ # accept arbitrary versions
+ sed 's|==|>=|g' -i requirements.txt
+}
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py test
+}
+
+package() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -D -m644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list