[arch-commits] Commit in python-atomicwrites/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Aug 28 10:30:38 UTC 2018


    Date: Tuesday, August 28, 2018 @ 10:30:38
  Author: dvzrv
Revision: 374996

upgpkg: python-atomicwrites 1.2.0-1

Upgrading to 1.2.0. Switching to pypi for src. Removing copying of sources and building/testing in the same directory for py2/py3.

Modified:
  python-atomicwrites/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++------------------------
 1 file changed, 15 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-28 10:07:17 UTC (rev 374995)
+++ PKGBUILD	2018-08-28 10:30:38 UTC (rev 374996)
@@ -1,11 +1,12 @@
-# Maintainer: David Runge <eolianoe At GoogleMAIL DoT com>
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
 # Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
 
-_name=python-atomicwrites
+_name=atomicwrites
 pkgbase=python-atomicwrites
 pkgname=('python-atomicwrites' 'python2-atomicwrites')
-pkgver=1.1.5
-pkgrel=5
+pkgver=1.2.0
+pkgrel=1
 pkgdesc="Atomic file writes on POSIX"
 arch=('any')
 url="https://github.com/untitaker/python-atomicwrites"
@@ -12,51 +13,41 @@
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-pytest' 'python2-pytest')
-source=(${pkgbase}-${pkgver}.tar.gz::"https://github.com/untitaker/${pkgbase}/archive/${pkgver}.tar.gz")
-sha512sums=('8fba7bf6270c2a5d2925c14c4620e3b391fe333617ee3ddee5d3559d39ad9cbdd61fafc715bb9c1802b35079c18ae1a8330c29c24a9c980886b4a73660d3941a')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('9873ca2887b3f32564b29aeb29b56df061d9610ccef5ee6efe037e41b255317b420058ff0a2753271334215ce53c537821ef63612afa4a62cd9d5162cd2003c9')
 
-prepare() {
-  cp -a "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
-}
-
 build() {
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${_name}-${pkgver}"
   python setup.py build
-  cd ../"${pkgname[1]}-${pkgver}"
   python2 setup.py build
 }
 
 check() {
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${_name}-${pkgver}"
   export PYTHONPATH=build:${PYTHONPATH}
   py.test
-
-  cd ../"${pkgname[1]}-${pkgver}"
-  export PYTHONPATH=build:${PYTHONPATH}
   py.test2
 }
 
 package_python-atomicwrites() {
   depends=('python')
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${_name}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
-  install -vDm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm644 {README,CONTRIBUTING}.rst
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
 package_python2-atomicwrites() {
   depends=('python2')
-  cd "${pkgname[1]}-${pkgver}"
+  cd "${_name}-${pkgver}"
   python2 setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
-  install -vDm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
-    -vDm644 {README,CONTRIBUTING}.rst
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 



More information about the arch-commits mailing list