14
0

- 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=25
This commit is contained in:
2019-11-07 02:54:18 +00:00
committed by Git OBS Bridge
parent 6425938274
commit 5c2fc030df
6 changed files with 19 additions and 31 deletions

View File

@@ -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 *

View File

@@ -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"
]
)

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Thu Nov 7 01:54:08 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <tchvatal@suse.com>

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c10809bcb2d256d592644f9f2aa3d4e0b4fca3865156ab06357c618b2b66a5c7
size 2842219

3
v1.44.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7df800e1a166eb9898c950d8e094b6540a88712f89e54ee46e66f9ee38587c90
size 2866013