diff --git a/PyGithub-drop-network-tests.patch b/PyGithub-drop-network-tests.patch deleted file mode 100644 index ac2d219..0000000 --- a/PyGithub-drop-network-tests.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- github/tests/AllTests.py 2017-07-10 13:18:40.000000000 +0200 -+++ github/tests/AllTests.py 2017-08-15 21:19:28.243948366 +0200 -@@ -90,7 +90,6 @@ - from Issue134 import * - from Issue139 import * - from Issue140 import * --from Issue142 import * - from Issue158 import * - from Issue174 import * - from Issue214 import * diff --git a/fix-httpretty-dep.patch b/fix-httpretty-dep.patch deleted file mode 100644 index 8ce2d8d..0000000 --- a/fix-httpretty-dep.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: PyGithub-1.43.7/setup.py -=================================================================== ---- PyGithub-1.43.7.orig/setup.py -+++ PyGithub-1.43.7/setup.py -@@ -109,6 +109,6 @@ if __name__ == "__main__": - }, - tests_require=[ - "cryptography", -- "httpretty==0.9.6" -+ "httpretty>=0.9.6" - ] - ) diff --git a/python-PyGithub.changes b/python-PyGithub.changes index dd6cb0a..5c78113 100644 --- a/python-PyGithub.changes +++ b/python-PyGithub.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Thu Nov 7 01:54:08 UTC 2019 - Steve Kowalik + +- Update to 1.44.1: + * Too many changes to enumerate. +- Drop PyGithub-drop-network-tests.patch, the test in question no longer + requires network access. +- Drop fix-httpretty-dep.patch, the httpretty requirement has been relaxed + upstream. +- Use %python_expand to run the test suite, it works fine on Python 3 now. +- Add mock and parameterized to BuildRequires, the test suite requires them. + ------------------------------------------------------------------- Tue Sep 24 09:30:42 UTC 2019 - Tomáš Chvátal diff --git a/python-PyGithub.spec b/python-PyGithub.spec index acb38c6..6992ac4 100644 --- a/python-PyGithub.spec +++ b/python-PyGithub.spec @@ -18,19 +18,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyGithub -Version: 1.43.8 +Version: 1.44.1 Release: 0 Summary: Python library to use the GitHub API v3 License: LGPL-3.0-or-later Group: Development/Languages/Python URL: https://github.com/PyGithub/PyGithub Source: https://github.com/PyGithub/PyGithub/archive/v%{version}.tar.gz -# PATCH-FIX-OPENSUSE sebix+novell.com@sebix.at -- Remove test that needs network access -Patch0: PyGithub-drop-network-tests.patch -Patch1: fix-httpretty-dep.patch BuildRequires: %{python_module Deprecated} BuildRequires: %{python_module PyJWT} BuildRequires: %{python_module httpretty >= 0.9.6} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module parameterized == 0.7.0} BuildRequires: %{python_module requests >= 2.14.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -59,8 +58,7 @@ etc.) can be managed with this. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# When python3 support was added, none of the tests were made python3-compliant -python setup.py test +%python_expand $python setup.py test %files %{python_files} %license COPYING COPYING.LESSER diff --git a/v1.43.8.tar.gz b/v1.43.8.tar.gz deleted file mode 100644 index 2535941..0000000 --- a/v1.43.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c10809bcb2d256d592644f9f2aa3d4e0b4fca3865156ab06357c618b2b66a5c7 -size 2842219 diff --git a/v1.44.1.tar.gz b/v1.44.1.tar.gz new file mode 100644 index 0000000..4e46139 --- /dev/null +++ b/v1.44.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7df800e1a166eb9898c950d8e094b6540a88712f89e54ee46e66f9ee38587c90 +size 2866013