[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Sep 13 22:10:42 UTC 2018


    Date: Thursday, September 13, 2018 @ 22:10:42
  Author: felixonmars
Revision: 380669

addpkg: python-deprecated 1.2.3-1

Added:
  python-deprecated/
  python-deprecated/repos/
  python-deprecated/trunk/
  python-deprecated/trunk/PKGBUILD

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Added: python-deprecated/trunk/PKGBUILD
===================================================================
--- python-deprecated/trunk/PKGBUILD	                        (rev 0)
+++ python-deprecated/trunk/PKGBUILD	2018-09-13 22:10:42 UTC (rev 380669)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-deprecated
+pkgname=(python-deprecated python2-deprecated)
+pkgver=1.2.3
+pkgrel=1
+pkgdesc="Python @deprecated decorator to deprecate old python classes, functions or methods"
+url="https://github.com/tantale/deprecated"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-wrapt' 'python2-wrapt')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tantale/deprecated/archive/v$pkgver.tar.gz")
+sha512sums=('68e51cfeae07541299d50ae3430a63d361dc755bdbae0d430d948d23788ed972c3a80667bdec478536156fe2527df2b8b8474d0a997bef639be7fbb58c934f58')
+
+prepare() {
+  cp -a deprecated-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/deprecated-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/deprecated-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/deprecated-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/deprecated-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-deprecated() {
+  depends=('python-wrapt')
+
+  cd deprecated-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}
+
+package_python2-deprecated() {
+  depends=('python2-wrapt')
+
+  cd deprecated-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}


Property changes on: python-deprecated/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list