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

Felix Yan felixonmars at archlinux.org
Sun Oct 25 10:27:31 UTC 2020


    Date: Sunday, October 25, 2020 @ 10:27:31
  Author: felixonmars
Revision: 732341

upgpkg: python-tldextract 3.0.2-1

Modified:
  python-tldextract/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-25 10:27:26 UTC (rev 732340)
+++ PKGBUILD	2020-10-25 10:27:31 UTC (rev 732341)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-tldextract
-pkgver=3.0.1
+pkgver=3.0.2
 pkgrel=1
 pkgdesc="Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List"
 arch=('any')
@@ -11,7 +11,7 @@
 makedepends=('python-setuptools-scm' 'python-pip')
 checkdepends=('python-pytest' 'python-pytest-mock' 'python-pytest-pylint' 'python-responses')
 source=("https://pypi.io/packages/source/t/tldextract/tldextract-$pkgver.tar.gz")
-sha512sums=('1179a6110c30afbcb6540e24007382821ab18b78a5f2a26d3211838dece9ea2b6fe607ae9a5800974bd1be50babe4c0cec5850066f9b92e166024bd430e41bfb')
+sha512sums=('bd874250557b7d41f59e1ba89ada2f496b695e9b4fe572bc30e0557cbf627875fc3a5a9b799666a075b9f952963d0ec594d9d8283083c7a89ed632f00c188750')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
@@ -22,7 +22,8 @@
 
 check() {
   cd tldextract-$pkgver
-  python -m pytest --ignore build
+  # tldextract/_version.py is generated by setuptools-scm, and will fail pylint here.
+  python -m pytest --ignore build --ignore tldextract/_version.py
 }
 
 package() {
@@ -30,9 +31,6 @@
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  # use the snapshot version, because generating a new one requires Internet access and root permission
-  ln -s .tld_set_snapshot "$pkgdir"/usr/lib/python3.8/site-packages/tldextract/.tld_set
 }
 
 # vim:set sw=2 et:



More information about the arch-commits mailing list