14
0

Accepting request 517081 from home:sebix:branches:devel:languages:python

- convert to singlespec
- update to 1.35

OBS-URL: https://build.opensuse.org/request/show/517081
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyGithub?expand=0&rev=12
This commit is contained in:
Thomas Bechtold
2017-08-16 05:28:47 +00:00
committed by Git OBS Bridge
parent b863dbe046
commit 72f7c94c6d
5 changed files with 42 additions and 63 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyGithub
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,32 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{!?license: %global license %doc}
%bcond_without test
Name: python-PyGithub
Version: 1.25.2
Version: 1.35
Release: 0
Summary: Use the full Github API v3
License: LGPL-3.0+
License: LGPL-3.0
Group: Development/Languages/Python
Url: http://jacquev6.github.com/PyGithub
Source: http://pypi.python.org/packages/source/P/PyGithub/PyGithub-%{version}.tar.gz
# PATCH-FIX-OPENSUSE speilicke@suse.com -- Remove tests that need network access during build
Url: http://pygithub.github.io/PyGithub/v1/index.html
Source: https://files.pythonhosted.org/packages/source/P/PyGithub/PyGithub-%{version}.tar.gz
# PATCH-FIX-OPENSUSE sebix+novell.com@sebix.at -- Remove test that needs network access
Patch0: PyGithub-drop-network-tests.patch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test
BuildRequires: %{python_module PyJWT}
# /SECTION
Requires: python-PyJWT
Recommends: python-cryptography
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
PyGithub is a Python (2 and 3) library to use the Github API v3. With it, you
@@ -42,22 +50,22 @@ etc.) from Python scripts.
%prep
%setup -q -n PyGithub-%{version}
%patch0 -p1
%patch0
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}%{python_sitelib}/github/tests # Don't ship testsuite
%python_install
%{python_expand rm -r %{buildroot}%{$python_sitelib}/github/tests/}
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
%check
python setup.py -q test
%{python_exec setup.py test}
%files
%defattr(-,root,root,-)
%doc README.rst COPYING COPYING.LESSER
%{python_sitelib}/github
%{python_sitelib}/PyGithub-%{version}-py%{py_ver}.egg-info
%files %{python_files}
%license COPYING COPYING.LESSER
%doc README.md
%{python_sitelib}/*
%changelog