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

Felix Yan felixonmars at archlinux.org
Mon Mar 16 12:31:04 UTC 2020


    Date: Monday, March 16, 2020 @ 12:31:03
  Author: felixonmars
Revision: 599704

upgpkg: python-watchdog 0.10.2-2: remove python2 sibling

Modified:
  python-watchdog/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++-----------------------
 1 file changed, 8 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 12:30:18 UTC (rev 599703)
+++ PKGBUILD	2020-03-16 12:31:03 UTC (rev 599704)
@@ -1,47 +1,32 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Francois Boulogne <fboulogne at april dot org>
 
-pkgbase=python-watchdog
-pkgname=('python-watchdog' 'python2-watchdog')
+pkgname=python-watchdog
 pkgver=0.10.2
-pkgrel=1
-pkgdesc="Python API and shell utilities to monitor file system events."
+pkgrel=2
+pkgdesc="Python API and shell utilities to monitor file system events"
 arch=('any')
 url="https://pypi.python.org/pypi/watchdog"
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pathtools' 'python2-pathtools'
-             'python-yaml' 'python2-yaml' 'python-argh' 'python2-argh')
-checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-pytest-timeout'
-              'python2-pytest-timeout' 'python-pytest-runner' 'python2-pytest-runner')
-source=($pkgbase-$pkgver.tar.gz::https://github.com/gorakhargosh/watchdog/archive/v$pkgver.tar.gz)
+depends=('python-pathtools' 'python-yaml' 'python-argh')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov' 'python-pytest-timeout' 'python-pytest-runner')
+source=($pkgname-$pkgver.tar.gz::https://github.com/gorakhargosh/watchdog/archive/v$pkgver.tar.gz)
 sha512sums=('3563a9686ce304350f33bbf4b16933cd0db5d6ab17676dfcc779b86cf9ddd06c42462ec40ad5c046cf4aa4b603aa477865de45daef05f9c6af3a441bcab16dbb')
 
 build() {
   cd watchdog-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd watchdog-$pkgver
   python setup.py pytest
-  python2 setup.py pytest
 }
 
-package_python-watchdog() {
-  depends=('python-pathtools' 'python-yaml' 'python-argh')
-
+package() {
   cd watchdog-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-watchdog() {
-  depends=('python2-pathtools' 'python2-yaml' 'python2-argh')
-
-  cd watchdog-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  mv "$pkgdir"/usr/bin/watchmedo{,2}
-}
-
 # vim:ts=2:sw=2:et:



More information about the arch-commits mailing list