public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python3-openid] epel10: Update to 3.0.9
@ 2026-10-30 21:38 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-30 21:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python3-openid
Branch : epel10
Commit : 0ea6d114f2f32d7e8a7ba36134f9539bf64525b8
Author : Jakub Dorňák <jdornak@redhat.com>
Date   : 2015-11-19T12:18:49+01:00
Stats  : +67/-6 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python3-openid/c/0ea6d114f2f32d7e8a7ba36134f9539bf64525b8?branch=epel10

Log:
Update to 3.0.9

---
diff --git a/.gitignore b/.gitignore
index 6539daf..54e255d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /python3-openid-3.0.2.tar.gz
 /python3-openid-3.0.5.tar.gz
 /python3-openid-3.0.6.tar.gz
+/python3-openid-3.0.9.tar.gz

diff --git a/python3-openid-test-django.patch b/python3-openid-test-django.patch
new file mode 100644
index 0000000..182d9dd
--- /dev/null
+++ b/python3-openid-test-django.patch
@@ -0,0 +1,53 @@
+commit b45cda31ea71c0e22e09cf7e1d42ee51f309d1c5
+Author: Jakub Dorňák <jdornak@redhat.com>
+Date:   Thu Nov 19 10:58:21 2015 +0100
+
+    django.test.simple has been removed
+    
+    The tests for django didn't work for Django >= 1.6.
+    Now, it doesn't work for Django < 1.7.
+    I haven't managed to make the tests run with Django 1.6.x.
+    I could keep compatibility with Django 1.5.x,
+    but it does not seem to be reasonable.
+---
+ admin/runtests | 20 ++++++++++++++------
+ 1 file changed, 14 insertions(+), 6 deletions(-)
+
+diff --git a/admin/runtests b/admin/runtests
+index 1343ea1..9c3c506 100755
+--- a/admin/runtests
++++ b/admin/runtests
+@@ -171,19 +171,27 @@ def django_tests():
+ 
+     _import_djopenid()
+ 
+-    try:
+-        import django.test.simple
+-    except ImportError as e:
+-        raise unittest.SkipTest("django.test.simple not found; "
++    import django
++
++    if django.VERSION < (1, 7):
++        raise unittest.SkipTest("django >= 1.7 not found; "
+                                 "django examples not tested.")
++
++    from django.conf import settings
++    from django.test.utils import get_runner
++
++    django.setup()
++
++    test_runner = get_runner(settings)()
++
+     import djopenid.server.models, djopenid.consumer.models
+     print ("Testing Django examples:")
+ 
+     # These tests do get put in to a pyunit test suite, so we could run them
+     # with the other pyunit tests, but django also establishes a test database
+     # for them, so we let it do that thing instead.
+-    return django.test.simple.run_tests([djopenid.server.models,
+-                                         djopenid.consumer.models])
++    return test_runner.run_tests(["djopenid.server.models",
++                                  "djopenid.consumer.models"])
+ 
+ try:
+     bool

diff --git a/python3-openid.spec b/python3-openid.spec
index 8292f09..0c23089 100644
--- a/python3-openid.spec
+++ b/python3-openid.spec
@@ -1,17 +1,18 @@
 Name:           python3-openid
-Version:        3.0.6
+Version:        3.0.9
 Release:        1%{?dist}
 Summary:        Python 3 port of the python-openid library
 Group:          Development/Libraries
 License:        ASL 2.0
 URL:            https://github.com/necaris/python3-openid
 Source0:        https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
-Patch0:         python3-openid-shebang.patch
-Patch1:         python3-openid-HTMLParseError.patch
+Patch0:         python3-openid-test-django.patch
 
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
+BuildRequires:  python3-django
+BuildRequires:  python3-psycopg2
 BuildRequires:  python3-setuptools
 BuildRequires:  python3-defusedxml
 
@@ -24,8 +25,11 @@ including cleanups and updates to the code in general.
 
 %prep
 %setup -q
-%patch0 -p 1
-%patch1 -p 1
+%patch0 -p1
+
+# replace env python shebangs with env python3
+egrep -rl '^#!/usr/bin/env python$' | xargs \
+sed -i -r '1 s|^#!/usr/bin/env python$|#!/usr/bin/env python3|g'
 
 
 %build
@@ -77,6 +81,9 @@ LC_ALL=en_US.UTF-8 %{__python3} admin/runtests
 
 
 %changelog
+* Thu Nov 19 2015 Jakub Dorňák <jdornak@redhat.com> - 3.0.9-1
+- Update to version 3.0.9
+
 * Fri Nov 13 2015 Jakub Dorňák <jdornak@redhat.com> - 3.0.6-1
 - Update to version 3.0.6
 

diff --git a/sources b/sources
index 8cdcff0..d630d2f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-20f8024d333857eb4a3882528757f82f  python3-openid-3.0.6.tar.gz
+b7e8fdd6dbc97e98dc9e746f2fa5b5a9  python3-openid-3.0.9.tar.gz

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-30 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 21:38 [rpms/python3-openid] epel10: Update to 3.0.9 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox