[arch-commits] Commit in python-raven/repos/community-any (3 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Feb 1 19:35:41 UTC 2022


    Date: Tuesday, February 1, 2022 @ 19:35:41
  Author: felixonmars
Revision: 1122119

archrelease: copy trunk to community-any

Added:
  python-raven/repos/community-any/PKGBUILD
    (from rev 1122118, python-raven/trunk/PKGBUILD)
  python-raven/repos/community-any/system-ca-certificates.patch
    (from rev 1122118, python-raven/trunk/system-ca-certificates.patch)
Deleted:
  python-raven/repos/community-any/PKGBUILD

------------------------------+
 PKGBUILD                     |   98 +++++++++++++++++++++++------------------
 system-ca-certificates.patch |   15 ++++++
 2 files changed, 71 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-01 19:35:29 UTC (rev 1122118)
+++ PKGBUILD	2022-02-01 19:35:41 UTC (rev 1122119)
@@ -1,42 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Benjamin A. Shelton <zancarius at gmail.com>
-
-pkgname=python-raven
-pkgver=6.10.0
-pkgrel=9
-pkgdesc="Python client for Sentry"
-arch=('any')
-url="https://pypi.python.org/pypi/raven"
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-cov' 'python-bottle' 'python-celery' 'python-django'
-              'python-pycodestyle' 'python-mock' 'python-nose' 'python-pytz' 'python-exam'
-              'python-requests' 'python-tornado' 'python-paste' 'python-webob' 'python-webtest'
-              'python-anyjson' 'python-flask' 'python-blinker' 'python-logbook'
-              'python-pytest-django' 'python-flask-login' 'python-pytest-timeout' 'python-zconfig'
-              'python-pytest-xdist')
-optdepends=('python-setuptools: for "raven" script')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/raven-python/archive/$pkgver.tar.gz")
-sha512sums=('4e65c03b1c5d084588ef381223b06c7b2ded3239fb2f2da4b2694fcf897a590ba5b03ac421b6dd88e0ce408f2fafd605d92a2b544b4f975ece5510eb6010583b')
-
-build() {
-  cd "$srcdir"/raven-python-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack distribution check by installing it
-  # "-p no:logging": https://github.com/getsentry/raven-python/issues/1164
-
-  cd "$srcdir"/raven-python-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" \
-    py.test -p no:logging tests || echo "https://github.com/getsentry/raven-python/issues/1275"
-}
-
-package() {
-  cd "$srcdir"/raven-python-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-raven/repos/community-any/PKGBUILD (from rev 1122118, python-raven/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-01 19:35:41 UTC (rev 1122119)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Benjamin A. Shelton <zancarius at gmail.com>
+
+pkgname=python-raven
+pkgver=6.10.0
+pkgrel=10
+pkgdesc="Python client for Sentry"
+arch=('any')
+url="https://pypi.python.org/pypi/raven"
+license=('BSD')
+depends=('python' 'ca-certificates')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov' 'python-bottle' 'python-celery' 'python-django'
+              'python-pycodestyle' 'python-mock' 'python-nose' 'python-pytz' 'python-exam'
+              'python-requests' 'python-tornado' 'python-paste' 'python-webob' 'python-webtest'
+              'python-anyjson' 'python-flask' 'python-blinker' 'python-logbook'
+              'python-pytest-django' 'python-flask-login' 'python-pytest-timeout' 'python-zconfig'
+              'python-pytest-xdist')
+optdepends=('python-setuptools: for "raven" script')
+source=("https://github.com/getsentry/raven-python/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        system-ca-certificates.patch)
+sha512sums=('4e65c03b1c5d084588ef381223b06c7b2ded3239fb2f2da4b2694fcf897a590ba5b03ac421b6dd88e0ce408f2fafd605d92a2b544b4f975ece5510eb6010583b'
+            '540725fa9bd02b00a26795462787bc3d3965ced5d2383f2e90eb1b58e70f6c29f486c206b2ef725d99985238e25dde1c9b0da6e92d1446f3664a9d8f2d9ce1d7')
+
+prepare() {
+  patch -d raven-python-$pkgver -p1 < system-ca-certificates.patch
+  sed -i 's/get_marker/get_closest_marker/' raven-python-$pkgver/conftest.py
+}
+
+build() {
+  cd raven-python-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack distribution check by installing it
+  # "-p no:logging": https://github.com/getsentry/raven-python/issues/1164
+
+  cd raven-python-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  # https://github.com/getsentry/raven-python/issues/1275
+  # Doesn't work with tornado 5 and celery 5
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" \
+    py.test -p no:logging tests --ignore tests/contrib/django/tests.py \
+                                --ignore tests/contrib/tornado/tests.py \
+                                --deselect tests/contrib/django/test_resolver.py::test_newstyle_django20_urlconf \
+                                --deselect tests/contrib/flask/tests.py::FlaskTest::test_get \
+                                --deselect tests/transport/tornado/tests.py::TornadoTransportTests::test__sending_successfully_calls_success_callback \
+                                --deselect tests/transport/tornado/tests.py::TornadoTransportTests::test_send
+}
+
+package() {
+  cd raven-python-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: python-raven/repos/community-any/system-ca-certificates.patch (from rev 1122118, python-raven/trunk/system-ca-certificates.patch)
===================================================================
--- system-ca-certificates.patch	                        (rev 0)
+++ system-ca-certificates.patch	2022-02-01 19:35:41 UTC (rev 1122119)
@@ -0,0 +1,15 @@
+diff --git a/raven/conf/defaults.py b/raven/conf/defaults.py
+index 3505a098..0568fe0f 100644
+--- a/raven/conf/defaults.py
++++ b/raven/conf/defaults.py
+@@ -42,9 +42,4 @@ PROCESSORS = (
+     'raven.processors.SanitizePasswordsProcessor',
+ )
+ 
+-try:
+-    # Try for certifi first since they likely keep their bundle more up to date
+-    import certifi
+-    CA_BUNDLE = certifi.where()
+-except ImportError:
+-    CA_BUNDLE = os.path.join(ROOT, 'data', 'cacert.pem')
++CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt"



More information about the arch-commits mailing list