Date: Thursday, February 16, 2023 @ 08:14:30
  Author: grawlinson
Revision: 1400772

archrelease: copy trunk to community-any

Added:
  python-httplib2/repos/community-any/PKGBUILD
    (from rev 1400771, python-httplib2/trunk/PKGBUILD)
  python-httplib2/repos/community-any/use-system-certificates.patch
    (from rev 1400771, python-httplib2/trunk/use-system-certificates.patch)
Deleted:
  python-httplib2/repos/community-any/PKGBUILD
  python-httplib2/repos/community-any/cert.patch

-------------------------------+
 PKGBUILD                      |  144 +++++++++++++++++++++++-----------------
 cert.patch                    |   37 ----------
 use-system-certificates.patch |   37 ++++++++++
 3 files changed, 121 insertions(+), 97 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-02-16 08:13:36 UTC (rev 1400771)
+++ PKGBUILD    2023-02-16 08:14:30 UTC (rev 1400772)
@@ -1,60 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Alexander Rødseth <[email protected]>
-# Contributor: Jan de Groot <[email protected]>
-# Contributor: Giorgio Lando <[email protected]>
-# Contributor: Nicolas Quienot <niQo@aur>
-# Contributor: Jesse Young <[email protected]>
-# Contributor: Anton Eliasson <[email protected]>
-
-pkgbase=python-httplib2
-pkgname=python-httplib2
-pkgver=0.21.0
-pkgrel=2
-pkgdesc='Comprehensive HTTP client library, supporting many features'
-url='https://github.com/httplib2/httplib2'
-license=('MIT')
-arch=('any')
-depends=('python' 'ca-certificates')
-makedepends=('python-setuptools')
-checkdepends=(
-  'flake8'
-  'python-pytest-cov'
-  'python-pytest-forked'
-  'python-pytest-timeout'
-  'python-pytest-xdist'
-  'python-pytest-randomly'
-  'python-future'
-  'python-cryptography'
-  'python-six'
-)
-source=(
-  
"$pkgbase-$pkgver.tar.gz::https://github.com/httplib2/httplib2/archive/v$pkgver.tar.gz";
-  'cert.patch'
-)
-sha512sums=('8269014f05f5e4b668c7dea8ae708b27a60b4216d712a93ab58b74f399ab5bc0dcdcd8c1411ccff587c7bdb6bc20917451ad969e5bef2d5c5262327cabe17bbb'
-            
'503719fb07b9ff1f06f252b73804787759139098dba990a7dcd9e9b3602f7271d2251e703993636b249b3597c9a240c721c536a4fe31526ec4ba9441f6c8da56')
-
-prepare() {
-  cd httplib2-$pkgver
-  patch -p0 -i "$srcdir"/cert.patch
-  sed -i 's/==/>=/' requirements-test.txt
-}
-
-build() {
-  cd "$srcdir"/httplib2-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd httplib2-$pkgver
-  # test_client_cert_password_verified fails with cryptography 36 
https://github.com/httplib2/httplib2/issues/221
-  PYTHONPATH=build/lib pytest -k 'not test_client_cert_password_verified'
-}
-
-package() {
-  cd httplib2-$pkgver
-  python setup.py install -O1 --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-httplib2/repos/community-any/PKGBUILD (from rev 1400771, 
python-httplib2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-16 08:14:30 UTC (rev 1400772)
@@ -0,0 +1,84 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Alexander Rødseth <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+# Contributor: Giorgio Lando <[email protected]>
+# Contributor: Nicolas Quienot <niQo@aur>
+# Contributor: Jesse Young <[email protected]>
+# Contributor: Anton Eliasson <[email protected]>
+
+pkgname=python-httplib2
+pkgver=0.21.0
+pkgrel=3
+pkgdesc='Comprehensive HTTP client library, supporting many features'
+arch=('any')
+url='https://github.com/httplib2/httplib2'
+license=('MIT')
+depends=(
+  'ca-certificates'
+  'python'
+  'python-pyparsing'
+)
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-wheel'
+  'python-setuptools'
+)
+checkdepends=(
+  'flake8'
+  'python-pytest-cov'
+  'python-pytest-forked'
+  'python-pytest-timeout'
+  'python-pytest-xdist'
+  'python-pytest-randomly'
+  'python-future'
+  'python-cryptography'
+  'python-six'
+)
+_commit='3094c64ee75e13530c62217180bf2a983084257e'
+source=(
+  "$pkgname::git+$url#commit=$_commit"
+  'use-system-certificates.patch'
+)
+sha512sums=('SKIP'
+            
'cb767cf95177d5a3c40dce49db0759b75a4ef3b9182ee931370386d7f380586818d8d940119907fe7a6b85504377571eb52176dcacbb37197cc85a5ae48fc149')
+
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  patch -p1 -i "$srcdir/use-system-certificates.patch"
+
+  sed -e 's/==/>=/' -i requirements-test.txt
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+  # test_client_cert_password_verified fails with cryptography 36 
https://github.com/httplib2/httplib2/issues/221
+  PYTHONPATH=build/lib pytest -k 'not test_client_cert_password_verified'
+}
+
+package() {
+  cd "$pkgname"
+
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: cert.patch
===================================================================
--- cert.patch  2023-02-16 08:13:36 UTC (rev 1400771)
+++ cert.patch  2023-02-16 08:14:30 UTC (rev 1400772)
@@ -1,37 +0,0 @@
---- python2/httplib2/certs.py.orig     2018-11-15 20:09:04.605507207 +0800
-+++ python2/httplib2/certs.py  2018-11-15 20:10:35.122107327 +0800
-@@ -19,9 +19,7 @@
-     pass
- 
- 
--BUILTIN_CA_CERTS = os.path.join(
--    os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
--)
-+BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
- 
- 
- def where():
---- python3/httplib2/certs.py.orig     2018-11-15 20:09:15.708832692 +0800
-+++ python3/httplib2/certs.py  2018-11-15 20:11:16.888741464 +0800
-@@ -19,9 +19,7 @@
-     pass
- 
- 
--BUILTIN_CA_CERTS = os.path.join(
--    os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
--)
-+BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
- 
- 
- def where():
---- tests/test_cacerts_from_env.py.orig        2018-11-15 20:21:46.148162984 
+0800
-+++ tests/test_cacerts_from_env.py     2018-11-15 20:21:58.051484347 +0800
-@@ -6,7 +6,7 @@
- import httplib2
- 
- 
--CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), 
"cacerts.txt")
-+CA_CERTS_BUILTIN = "/etc/ssl/certs/ca-certificates.crt"
- CERTIFI_CERTS_FILE = "unittest_certifi_file"
- CUSTOM_CA_CERTS = "unittest_custom_ca_certs"
- 

Copied: python-httplib2/repos/community-any/use-system-certificates.patch (from 
rev 1400771, python-httplib2/trunk/use-system-certificates.patch)
===================================================================
--- use-system-certificates.patch                               (rev 0)
+++ use-system-certificates.patch       2023-02-16 08:14:30 UTC (rev 1400772)
@@ -0,0 +1,37 @@
+--- a/python2/httplib2/certs.py
++++ b/python2/httplib2/certs.py
+@@ -19,9 +19,7 @@
+     pass
+ 
+ 
+-BUILTIN_CA_CERTS = os.path.join(
+-    os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
+-)
++BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
+ 
+ 
+ def where():
+--- a/python3/httplib2/certs.py
++++ b/python3/httplib2/certs.py
+@@ -19,9 +19,7 @@
+     pass
+ 
+ 
+-BUILTIN_CA_CERTS = os.path.join(
+-    os.path.dirname(os.path.abspath(__file__)), "cacerts.txt"
+-)
++BUILTIN_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt"
+ 
+ 
+ def where():
+--- a/tests/test_cacerts_from_env.py
++++ b/tests/test_cacerts_from_env.py
+@@ -6,7 +6,7 @@
+ import httplib2
+ 
+ 
+-CA_CERTS_BUILTIN = os.path.join(os.path.dirname(httplib2.__file__), 
"cacerts.txt")
++CA_CERTS_BUILTIN = "/etc/ssl/certs/ca-certificates.crt"
+ CERTIFI_CERTS_FILE = "unittest_certifi_file"
+ CUSTOM_CA_CERTS = "unittest_custom_ca_certs"
+ 

Reply via email to