From f5b1c9a76d049d56140c2d6b352ad1144aa6af14cb0aa1ab7496af4124344609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 14 May 2019 21:16:14 +0000 Subject: [PATCH 1/2] Accepting request 702990 from home:gary_smith:branches:devel:languages:python - Update to 1.43.7: * Exclude tests from PyPI distribution (#1031) (78d283b9) * Add codecov badge (#1090) (4c0b54c0) - Update to 1.43.6: * New features o Add support for Python 3.7 (#1028) (6faa00ac) o Adding HTTP retry functionality via urllib3 (#1002) (5ae7af55) o Add new dismiss() method on PullRequestReview (#1053) (8ef71b1b) o Add since and before to get_notifications (#1074) (7ee6c417) o Add url parameter to include anonymous contributors in get_contributors (#1075) (293846be) o Provide option to extend expiration of jwt token (#1068) (86a9d8e9) * Bug Fixes & Improvements o Fix the default parameter for PullRequest.create_review (#1058) (118def30) o Fix get_access_token (#1042) (6a89eb64) o Fix Organization.add_to_members role passing (#1039) (480f91cf) * Deprecation o Remove Status API (6efd6318) OBS-URL: https://build.opensuse.org/request/show/702990 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=20 --- PyGithub-1.43.5.tar.gz | 3 --- fix-httpretty-dep.patch | 12 ++++++++++++ python-PyGithub.changes | 21 +++++++++++++++++++++ python-PyGithub.spec | 12 +++++++----- v1.43.7.tar.gz | 3 +++ 5 files changed, 43 insertions(+), 8 deletions(-) delete mode 100644 PyGithub-1.43.5.tar.gz create mode 100644 fix-httpretty-dep.patch create mode 100644 v1.43.7.tar.gz diff --git a/PyGithub-1.43.5.tar.gz b/PyGithub-1.43.5.tar.gz deleted file mode 100644 index 9fb064c..0000000 --- a/PyGithub-1.43.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:263102b43a83e2943900c1313109db7a00b3b78aeeae2c9137ba694982864872 -size 2885333 diff --git a/fix-httpretty-dep.patch b/fix-httpretty-dep.patch new file mode 100644 index 0000000..8ce2d8d --- /dev/null +++ b/fix-httpretty-dep.patch @@ -0,0 +1,12 @@ +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 f7274c6..f660dc7 100644 --- a/python-PyGithub.changes +++ b/python-PyGithub.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Tue May 14 19:43:19 UTC 2019 - Gary Smith + +- Update to 1.43.7: + * Exclude tests from PyPI distribution (#1031) (78d283b9) + * Add codecov badge (#1090) (4c0b54c0) +- Update to 1.43.6: + * New features + o Add support for Python 3.7 (#1028) (6faa00ac) + o Adding HTTP retry functionality via urllib3 (#1002) (5ae7af55) + o Add new dismiss() method on PullRequestReview (#1053) (8ef71b1b) + o Add since and before to get_notifications (#1074) (7ee6c417) + o Add url parameter to include anonymous contributors in get_contributors (#1075) (293846be) + o Provide option to extend expiration of jwt token (#1068) (86a9d8e9) + * Bug Fixes & Improvements + o Fix the default parameter for PullRequest.create_review (#1058) (118def30) + o Fix get_access_token (#1042) (6a89eb64) + o Fix Organization.add_to_members role passing (#1039) (480f91cf) + * Deprecation + o Remove Status API (6efd6318) + ------------------------------------------------------------------- Wed Mar 6 08:55:14 UTC 2019 - Tomáš Chvátal diff --git a/python-PyGithub.spec b/python-PyGithub.spec index 258602a..31a46dd 100644 --- a/python-PyGithub.spec +++ b/python-PyGithub.spec @@ -18,17 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyGithub -Version: 1.43.5 +Version: 1.43.7 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://files.pythonhosted.org/packages/source/P/PyGithub/PyGithub-%{version}.tar.gz +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 requests >= 2.14.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -47,18 +49,18 @@ etc.) can be managed with this. %prep %setup -q -n PyGithub-%{version} -%patch0 +%autopatch -p1 %build %python_build %install %python_install -%python_expand rm -r %{buildroot}%{$python_sitelib}/github/tests/ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +# When python3 support was added, none of the tests were made python3-compliant +python setup.py test %files %{python_files} %license COPYING COPYING.LESSER diff --git a/v1.43.7.tar.gz b/v1.43.7.tar.gz new file mode 100644 index 0000000..c480123 --- /dev/null +++ b/v1.43.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bddf346e3db6423f20ad2cc54b5e96f8039e79afdd320e21210e0e985851942 +size 2832588 From 88348e84173acf150462e3bcc574ad005fd9959a37f2a63cba42cab652c77fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 14 May 2019 21:59:37 +0000 Subject: [PATCH 2/2] - Add patch fix-httpretty-dep.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=21 --- python-PyGithub.changes | 1 + 1 file changed, 1 insertion(+) diff --git a/python-PyGithub.changes b/python-PyGithub.changes index f660dc7..158f919 100644 --- a/python-PyGithub.changes +++ b/python-PyGithub.changes @@ -18,6 +18,7 @@ Tue May 14 19:43:19 UTC 2019 - Gary Smith o Fix Organization.add_to_members role passing (#1039) (480f91cf) * Deprecation o Remove Status API (6efd6318) +- Add patch fix-httpretty-dep.patch ------------------------------------------------------------------- Wed Mar 6 08:55:14 UTC 2019 - Tomáš Chvátal