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

Antonio Rojas arojas at gemini.archlinux.org
Wed Dec 15 11:49:25 UTC 2021


    Date: Wednesday, December 15, 2021 @ 11:49:24
  Author: arojas
Revision: 1072976

Drop python2

Modified:
  python-atomicwrites/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-15 11:46:17 UTC (rev 1072975)
+++ PKGBUILD	2021-12-15 11:49:24 UTC (rev 1072976)
@@ -2,15 +2,15 @@
 # Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
 
 _name=atomicwrites
-pkgbase=python-atomicwrites
-pkgname=('python-atomicwrites' 'python2-atomicwrites')
+pkgname=python-atomicwrites
 pkgver=1.4.0
-pkgrel=6
+pkgrel=7
 pkgdesc="Atomic file writes on POSIX"
 arch=('any')
 url="https://github.com/untitaker/python-atomicwrites"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 checkdepends=('python-pytest')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
 sha512sums=('493fd15174880917650643db1fe85e2703add730189c23fcff11ceb87175f546b9251050ade506d0b48300e0f2a39ee5a4dcd4da8cb3e27680fd05553d6662cb')
@@ -18,7 +18,6 @@
 build() {
   cd "${_name}-${pkgver}"
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
@@ -27,8 +26,7 @@
   pytest -v
 }
 
-package_python-atomicwrites() {
-  depends=('python')
+package() {
   cd "${_name}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
@@ -37,14 +35,3 @@
   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