Date: Friday, July 29, 2022 @ 22:32:30 Author: arojas Revision: 1259120
archrelease: copy trunk to community-any Added: python-httplib2/repos/community-any/PKGBUILD (from rev 1259119, python-httplib2/trunk/PKGBUILD) python-httplib2/repos/community-any/cert.patch (from rev 1259119, python-httplib2/trunk/cert.patch) Deleted: python-httplib2/repos/community-any/PKGBUILD python-httplib2/repos/community-any/cert.patch ------------+ PKGBUILD | 99 +++++++++++++++++++++++++++++------------------------------ cert.patch | 74 ++++++++++++++++++++++---------------------- 2 files changed, 87 insertions(+), 86 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-29 22:32:19 UTC (rev 1259119) +++ PKGBUILD 2022-07-29 22:32:30 UTC (rev 1259120) @@ -1,49 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Alexander Rødseth <rods...@gmail.com> -# Contributor: Jan de Groot <j...@archlinux.org> -# Contributor: Giorgio Lando <patroc...@gmail.com> -# Contributor: Nicolas Quienot <niQo@aur> -# Contributor: Jesse Young <jesse.yo...@gmail.com> -# Contributor: Anton Eliasson <de...@antoneliasson.se> - -pkgbase=python-httplib2 -pkgname=python-httplib2 -pkgver=0.20.3 -pkgrel=1 -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-mock' 'python-pytest-cov' 'python-pytest-forked' - 'python-pytest-timeout' 'python-pytest-xdist' 'python-pytest-randomly' - 'python-future' 'python-cryptography') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/httplib2/httplib2/archive/v$pkgver.tar.gz" - 'cert.patch') -sha512sums=('6fe6c57e8d58ee75d46dfcca6751f74c182947592ae727a07513abcb74542a187e4887eac6437f169ab2a7057ca3440e928c41d7b6e3031a08512aa4cd25e3ae' - '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 - PYTHONPATH=build/lib pytest -} - -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 1259119, python-httplib2/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-29 22:32:30 UTC (rev 1259120) @@ -0,0 +1,50 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Alexander Rødseth <rods...@gmail.com> +# Contributor: Jan de Groot <j...@archlinux.org> +# Contributor: Giorgio Lando <patroc...@gmail.com> +# Contributor: Nicolas Quienot <niQo@aur> +# Contributor: Jesse Young <jesse.yo...@gmail.com> +# Contributor: Anton Eliasson <de...@antoneliasson.se> + +pkgbase=python-httplib2 +pkgname=python-httplib2 +pkgver=0.20.4 +pkgrel=1 +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-mock' 'python-pytest-cov' 'python-pytest-forked' + 'python-pytest-timeout' 'python-pytest-xdist' 'python-pytest-randomly' + 'python-future' 'python-cryptography') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/httplib2/httplib2/archive/v$pkgver.tar.gz" + 'cert.patch') +sha512sums=('46396a9bb439e61939e481a2502567a6dc40686471267ea4c357f141ac138193107f90ac465db683e4ab71e5d92249b810657bff0cb74af7a37a9a23c8320741' + '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: Deleted: cert.patch =================================================================== --- cert.patch 2022-07-29 22:32:19 UTC (rev 1259119) +++ cert.patch 2022-07-29 22:32:30 UTC (rev 1259120) @@ -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/cert.patch (from rev 1259119, python-httplib2/trunk/cert.patch) =================================================================== --- cert.patch (rev 0) +++ cert.patch 2022-07-29 22:32:30 UTC (rev 1259120) @@ -0,0 +1,37 @@ +--- 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" +