From 87083c150b2aa9539d176a589992fb334bb342832cfca4fd3753719d81f553ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 11 Dec 2019 08:29:09 +0000 Subject: [PATCH] - Add patch to not pull in hardcoded dependencies: * no-hardcoded-dep.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=27 --- no-hardcoded-dep.patch | 18 ++++++++++++++++++ python-PyGithub.changes | 6 ++++++ python-PyGithub.spec | 9 +++++---- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 no-hardcoded-dep.patch diff --git a/no-hardcoded-dep.patch b/no-hardcoded-dep.patch new file mode 100644 index 0000000..b258b74 --- /dev/null +++ b/no-hardcoded-dep.patch @@ -0,0 +1,18 @@ +Index: PyGithub-1.44.1/setup.py +=================================================================== +--- PyGithub-1.44.1.orig/setup.py ++++ PyGithub-1.44.1/setup.py +@@ -52,11 +52,11 @@ version = "1.44.1" + tests_require = [ + "cryptography", + "httpretty>=0.9.6", +- "parameterized==0.7.0", ++ "parameterized>=0.7.0", + ] + + if sys.version_info < (3, 3): +- tests_require.append("mock==3.0.5") ++ tests_require.append("mock>=3.0.5") + + + if __name__ == "__main__": diff --git a/python-PyGithub.changes b/python-PyGithub.changes index 5c78113..42894fc 100644 --- a/python-PyGithub.changes +++ b/python-PyGithub.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 11 08:26:43 UTC 2019 - Tomáš Chvátal + +- Add patch to not pull in hardcoded dependencies: + * no-hardcoded-dep.patch + ------------------------------------------------------------------- Thu Nov 7 01:54:08 UTC 2019 - Steve Kowalik diff --git a/python-PyGithub.spec b/python-PyGithub.spec index 6992ac4..cd3d303 100644 --- a/python-PyGithub.spec +++ b/python-PyGithub.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyGithub # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,11 +25,12 @@ 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 +Patch0: no-hardcoded-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 mock >= 3.0.5} +BuildRequires: %{python_module parameterized >= 0.7.0} BuildRequires: %{python_module requests >= 2.14.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -58,7 +59,7 @@ etc.) can be managed with this. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand $python setup.py test +%python_exec setup.py test %files %{python_files} %license COPYING COPYING.LESSER