forked from pool/python-PyGithub
Accepting request 755746 from devel:languages:python
- Add patch to not pull in hardcoded dependencies: * no-hardcoded-dep.patch OBS-URL: https://build.opensuse.org/request/show/755746 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyGithub?expand=0&rev=13
This commit is contained in:
18
no-hardcoded-dep.patch
Normal file
18
no-hardcoded-dep.patch
Normal 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__":
|
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user