Accepting request 652725 from home:TheBlackCat:branches:devel:languages:python:misc

Python wrapper for the GitHub API

OBS-URL: https://build.opensuse.org/request/show/652725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-github3.py?expand=0&rev=1
This commit is contained in:
Todd R 2018-11-29 21:18:03 +00:00 committed by Git OBS Bridge
commit d2efbdecc0
6 changed files with 109 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
github3.py-1.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35fea5bf3567a8e88d3660686d83f96ef164e698ce6fb30f9e2b0edded7357af
size 35254394

4
github3.py.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Mar 5 20:42:44 UTC 2018 - toddrme2178@gmail.com
- Initial version

77
github3.py.spec Normal file
View File

@ -0,0 +1,77 @@
#
# spec file for package github3.py
#
# Copyright (c) 2018 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-github3.py
Version: 1.2.0
Release: 0
Summary: Python wrapper for the GitHub API
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github3.readthedocs.io
Source0: https://files.pythonhosted.org/packages/source/g/github3.py/github3.py-%{version}.tar.gz
Source20: https://raw.githubusercontent.com/sigmavirus24/github3.py/%{version}/tests/id_rsa.pub
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jwcrypto >= 0.5.0
Requires: python-python-dateutil >= 2.6.0
Requires: python-requests >= 2.18
Requires: python-uritemplate >= 3.0.0
Recommends: python-ndg-httpsclient
Recommends: python-pyOpenSSL
Recommends: python-pyasn1
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module betamax >= 0.8.0}
BuildRequires: %{python_module betamax-matchers >= 0.1.0}
BuildRequires: %{python_module jwcrypto >= 0.5.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest > 2.3.5}
BuildRequires: %{python_module python-dateutil >= 2.6.0}
BuildRequires: %{python_module requests >= 2.18}
BuildRequires: %{python_module uritemplate >= 3.0.0}
# /SECTION
%python_subpackages
%description
Github3.py is wrapper for v3 of the GitHub API written in python.
%prep
%setup -q -n github3.py-%{version}
cp %{SOURCE20} tests/
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
py.test-%{$python_bin_suffix}
}
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%{python_sitelib}/*
%changelog

1
id_rsa.pub Normal file
View File

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDQZaj18XhOCQs99DEnMkrdrJr633hiqxWNX5yt/rkuSKb45yt7sLo1lXvTkppbH4swHBbZW92uByNzvPEJfZUgLOtXOEENpnH3DHaRS2p+LQ+JRVNyXbveukRrleiizeMGaI00HQ92oGr6+Yqe6k2uGApF1Rqbi4BzkHy5//1zdIJm7vy28HlY0dNQcxxHBu1rSyQ+CJwgHfJOVYXGyecNEp+umSL8g6feur7M2aYyjP5Ga2e2nZXjPZQvtMFiU7TqgQXF6E1XGbUyA5Qulw+rCfFHXus/yaAKHdgJCRPj7BmKwJ0g3ZbREMDXPRDuwii5ispYZrVwFB9D60z71FR