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

Antonio Rojas arojas at gemini.archlinux.org
Fri Mar 18 20:47:40 UTC 2022


    Date: Friday, March 18, 2022 @ 20:47:40
  Author: arojas
Revision: 1159134

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-18 20:47:30 UTC (rev 1159133)
+++ PKGBUILD	2022-03-18 20:47:40 UTC (rev 1159134)
@@ -1,37 +0,0 @@
-# Contributor: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=cloudscraper
-pkgname=python-cloudscraper
-pkgver=1.2.58
-pkgrel=4
-pkgdesc="Python module to bypass Cloudflare's anti-bot page"
-arch=('any')
-url="https://github.com/VeNoMouS/${_pkgname}"
-license=('MIT')
-depends=('python-pyparsing' 'python-requests' 'python-requests-toolbelt')
-optdepends=('python-js2py: alternative interpreter/solver'
-            'nodejs: alternative interpreter/solver')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-responses' 'python-js2py' 'nodejs')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('9fc3562818e58f98d4e3ca874de5ff24d072c554b5a627ce9e38d394bb209c7f')
-b2sums=('b3e002d559ebdbb07686d74fe9967776f832397758653c2d6fe8ba766239d5744608fe6f321a0284c1da02a1ddb8257d7ce1931bb5adf71096e4151dbb9cb2a2')
-
-build(){
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m pytest -k 'not test_getCookieString_challenge_js_challenge1_16_05_2020'
-}
-
-package() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-cloudscraper/repos/community-any/PKGBUILD (from rev 1159133, python-cloudscraper/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-18 20:47:40 UTC (rev 1159134)
@@ -0,0 +1,37 @@
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=cloudscraper
+pkgname=python-cloudscraper
+pkgver=1.2.60
+pkgrel=1
+pkgdesc="Python module to bypass Cloudflare's anti-bot page"
+arch=('any')
+url="https://github.com/VeNoMouS/${_pkgname}"
+license=('MIT')
+depends=('python-pyparsing' 'python-requests' 'python-requests-toolbelt')
+optdepends=('python-js2py: alternative interpreter/solver'
+            'nodejs: alternative interpreter/solver')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest' 'python-responses' 'python-js2py' 'nodejs')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('426bb95330817ed936129f004b3e5091567be011b08a675e6b37c0bdec43e4c6')
+b2sums=('d4c69189104a433c044de9f60ce4d15c82f65f4bbfab2350f0e4603703c080a9adb439a6634da94e511ba2e100543ed4a7c7aad2c5b83f061cb04e06d4e3c294')
+
+build(){
+  cd ${_pkgname}-${pkgver}
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+
+  python -m pytest -k 'not test_getCookieString_challenge_js_challenge1_16_05_2020'
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list