forked from pool/python-PyGithub
Accepting request 517114 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/517114 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyGithub?expand=0&rev=7
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:72aee507625e8ce6e3bef825e2ba543d0a2a20cb5ba5edfbe6436fc6eadfcef8
|
|
||||||
size 2577534
|
|
3
PyGithub-1.35.tar.gz
Normal file
3
PyGithub-1.35.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fea1c5adedb0b2c641422efa7d22ad1af1b538a499faf25da14c0bb57e2cfefe
|
||||||
|
size 2625163
|
@@ -1,6 +1,6 @@
|
|||||||
--- a/github/tests/AllTests.py
|
--- github/tests/AllTests.py 2017-07-10 13:18:40.000000000 +0200
|
||||||
+++ b/github/tests/AllTests.py
|
+++ github/tests/AllTests.py 2017-08-15 21:19:28.243948366 +0200
|
||||||
@@ -84,7 +84,6 @@ from Issue133 import *
|
@@ -90,7 +90,6 @@
|
||||||
from Issue134 import *
|
from Issue134 import *
|
||||||
from Issue139 import *
|
from Issue139 import *
|
||||||
from Issue140 import *
|
from Issue140 import *
|
||||||
@@ -8,38 +8,3 @@
|
|||||||
from Issue158 import *
|
from Issue158 import *
|
||||||
from Issue174 import *
|
from Issue174 import *
|
||||||
from Issue214 import *
|
from Issue214 import *
|
||||||
--- a/github/tests/Issue142.py
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,32 +0,0 @@
|
|
||||||
-# -*- coding: utf-8 -*-
|
|
||||||
-
|
|
||||||
-# ########################## Copyrights and license ############################
|
|
||||||
-# #
|
|
||||||
-# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
|
||||||
-# #
|
|
||||||
-# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
|
||||||
-# #
|
|
||||||
-# PyGithub is free software: you can redistribute it and/or modify it under #
|
|
||||||
-# the terms of the GNU Lesser General Public License as published by the Free #
|
|
||||||
-# Software Foundation, either version 3 of the License, or (at your option) #
|
|
||||||
-# any later version. #
|
|
||||||
-# #
|
|
||||||
-# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
|
||||||
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
|
||||||
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
|
||||||
-# details. #
|
|
||||||
-# #
|
|
||||||
-# You should have received a copy of the GNU Lesser General Public License #
|
|
||||||
-# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
|
||||||
-# #
|
|
||||||
-# ##############################################################################
|
|
||||||
-
|
|
||||||
-import unittest
|
|
||||||
-import github
|
|
||||||
-
|
|
||||||
-
|
|
||||||
-class Issue142(unittest.TestCase): # https://github.com/jacquev6/PyGithub/issues/142
|
|
||||||
- def testDecodeJson(self):
|
|
||||||
- # This test has to hit GitHub for real, because the record-replay framework looses types
|
|
||||||
- # and python3 does not behave like python2 for strings and bytes
|
|
||||||
- self.assertEqual(github.Github().get_rate_limit().rate.limit, 60)
|
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 15 18:52:21 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
- convert to singlespec
|
||||||
|
- update to 1.35
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon May 11 15:48:45 UTC 2015 - benoit.monin@gmx.fr
|
Mon May 11 15:48:45 UTC 2015 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-PyGithub
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-PyGithub
|
||||||
Version: 1.25.2
|
Version: 1.35
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Use the full Github API v3
|
Summary: Use the full Github API v3
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://jacquev6.github.com/PyGithub
|
Url: http://pygithub.github.io/PyGithub/v1/index.html
|
||||||
Source: http://pypi.python.org/packages/source/P/PyGithub/PyGithub-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/P/PyGithub/PyGithub-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE speilicke@suse.com -- Remove tests that need network access during build
|
# PATCH-FIX-OPENSUSE sebix+novell.com@sebix.at -- Remove test that needs network access
|
||||||
Patch0: PyGithub-drop-network-tests.patch
|
Patch0: PyGithub-drop-network-tests.patch
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
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
|
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
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PyGithub is a Python (2 and 3) library to use the Github API v3. With it, you
|
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
|
%prep
|
||||||
%setup -q -n PyGithub-%{version}
|
%setup -q -n PyGithub-%{version}
|
||||||
%patch0 -p1
|
%patch0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
rm -r %{buildroot}%{python_sitelib}/github/tests # Don't ship testsuite
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/github/tests/}
|
||||||
|
%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python setup.py -q test
|
%{python_exec setup.py test}
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license COPYING COPYING.LESSER
|
||||||
%doc README.rst COPYING COPYING.LESSER
|
%doc README.md
|
||||||
%{python_sitelib}/github
|
%{python_sitelib}/*
|
||||||
%{python_sitelib}/PyGithub-%{version}-py%{py_ver}.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user