[arch-commits] Commit in python-tldextract/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Sunday, October 25, 2020 @ 10:27:48
  Author: felixonmars
Revision: 732343

archrelease: copy trunk to community-any

Added:
  python-tldextract/repos/community-any/PKGBUILD
    (from rev 732342, python-tldextract/trunk/PKGBUILD)
Deleted:
  python-tldextract/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 36 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-25 10:27:41 UTC (rev 732342)
+++ PKGBUILD	2020-10-25 10:27:48 UTC (rev 732343)
@@ -1,38 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-tldextract
-pkgver=3.0.1
-pkgrel=1
-pkgdesc="Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List"
-arch=('any')
-url="https://github.com/john-kurkowski/tldextract"
-license=('BSD')
-depends=('python-idna' 'python-requests' 'python-requests-file' 'python-filelock')
-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')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd tldextract-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd tldextract-$pkgver
-  python -m pytest --ignore build
-}
-
-package() {
-  cd tldextract-$pkgver
-  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:

Copied: python-tldextract/repos/community-any/PKGBUILD (from rev 732342, python-tldextract/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-25 10:27:48 UTC (rev 732343)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tldextract
+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')
+url="https://github.com/john-kurkowski/tldextract"
+license=('BSD')
+depends=('python-idna' 'python-requests' 'python-requests-file' 'python-filelock')
+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=('bd874250557b7d41f59e1ba89ada2f496b695e9b4fe572bc30e0557cbf627875fc3a5a9b799666a075b9f952963d0ec594d9d8283083c7a89ed632f00c188750')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd tldextract-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd tldextract-$pkgver
+  # tldextract/_version.py is generated by setuptools-scm, and will fail pylint here.
+  python -m pytest --ignore build --ignore tldextract/_version.py
+}
+
+package() {
+  cd tldextract-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list