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

Felix Yan felixonmars at archlinux.org
Thu Apr 30 19:48:58 UTC 2020


    Date: Thursday, April 30, 2020 @ 19:48:58
  Author: felixonmars
Revision: 623371

upgpkg: python-email-validator 1.1.0-1

Modified:
  python-email-validator/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-30 19:47:03 UTC (rev 623370)
+++ PKGBUILD	2020-04-30 19:48:58 UTC (rev 623371)
@@ -2,7 +2,7 @@
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 
 pkgname=python-email-validator
-pkgver=1.0.5
+pkgver=1.1.0
 pkgrel=1
 pkgdesc="A robust email syntax and deliverability validation library for Python 2.x/3.x."
 arch=('any')
@@ -10,23 +10,22 @@
 license=('custom:CC0')
 depends=('python-dnspython' 'python-idna')
 makedepends=('python-setuptools')
+checkdepends=('python-pytest')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/JoshData/python-email-validator/archive/v$pkgver.tar.gz")
-sha512sums=('e9dd0ee8dfc603e40591eb8cd4e58c32331c1b9450feb4ae0ff27e1d655d0abb2c8a46b7d0cb43d7e037964f0c120dbad6bf32a60dfe297fb552058733ffd173')
+sha512sums=('9eb3636298dcfc71aa2dada3e10044966181d1a6e5f7cd397a3143c82a855760cf69b129b573f01d75702b96f78da9a9799350bdf6eb8f12cfd7daa013e71604')
 
 build() {
-  cd "$srcdir"/python-email-validator-$pkgver
+  cd python-email-validator-$pkgver
   python setup.py build
 }
 
 check() {
-  export LC_CTYPE=en_US.UTF-8
-
-  cd "$srcdir"/python-email-validator-$pkgver
-  python email_validator/__init__.py --tests < test_pass.txt
+  cd python-email-validator-$pkgver
+  python -m pytest
 }
 
 package() {
-  cd "$srcdir"/python-email-validator-$pkgver
+  cd python-email-validator-$pkgver
   python setup.py install --root="$pkgdir/" --optimize=1
   install -Dm644 "LICENSE" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list