[arch-commits] Commit in python-atomicwrites/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:20:56 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:20:56
  Author: foutrelis
Revision: 1058072

archrelease: copy trunk to community-staging-any

Added:
  python-atomicwrites/repos/community-staging-any/
  python-atomicwrites/repos/community-staging-any/PKGBUILD
    (from rev 1058070, python-atomicwrites/trunk/PKGBUILD)

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

Copied: python-atomicwrites/repos/community-staging-any/PKGBUILD (from rev 1058070, python-atomicwrites/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:20:56 UTC (rev 1058072)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+_name=atomicwrites
+pkgbase=python-atomicwrites
+pkgname=('python-atomicwrites' 'python2-atomicwrites')
+pkgver=1.4.0
+pkgrel=4
+pkgdesc="Atomic file writes on POSIX"
+arch=('any')
+url="https://github.com/untitaker/python-atomicwrites"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('493fd15174880917650643db1fe85e2703add730189c23fcff11ceb87175f546b9251050ade506d0b48300e0f2a39ee5a4dcd4da8cb3e27680fd05553d6662cb')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+  pytest2 -v
+}
+
+package_python-atomicwrites() {
+  depends=('python')
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  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 "${_name}-${pkgver}"
+  python2 setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  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