14
0

- 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
This commit is contained in:
Tomáš Chvátal
2019-12-11 08:29:09 +00:00
committed by Git OBS Bridge
parent 5c2fc030df
commit 87083c150b
3 changed files with 29 additions and 4 deletions

18
no-hardcoded-dep.patch Normal file
View File

@@ -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__":

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 11 08:26:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to not pull in hardcoded dependencies:
* no-hardcoded-dep.patch
-------------------------------------------------------------------
Thu Nov 7 01:54:08 UTC 2019 - Steve Kowalik <steven.kowalik@suse.com>

View File

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