commit d2efbdecc05143f1cb47ed579e9f8161482fdaf5f7d549207c48cb41706a425c Author: Todd R Date: Thu Nov 29 21:18:03 2018 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/github3.py-1.2.0.tar.gz b/github3.py-1.2.0.tar.gz new file mode 100644 index 0000000..88fcec8 --- /dev/null +++ b/github3.py-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35fea5bf3567a8e88d3660686d83f96ef164e698ce6fb30f9e2b0edded7357af +size 35254394 diff --git a/github3.py.changes b/github3.py.changes new file mode 100644 index 0000000..0a2ff88 --- /dev/null +++ b/github3.py.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Mar 5 20:42:44 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/github3.py.spec b/github3.py.spec new file mode 100644 index 0000000..9a7df90 --- /dev/null +++ b/github3.py.spec @@ -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 diff --git a/id_rsa.pub b/id_rsa.pub new file mode 100644 index 0000000..ead43fd --- /dev/null +++ b/id_rsa.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDQZaj18XhOCQs99DEnMkrdrJr633hiqxWNX5yt/rkuSKb45yt7sLo1lXvTkppbH4swHBbZW92uByNzvPEJfZUgLOtXOEENpnH3DHaRS2p+LQ+JRVNyXbveukRrleiizeMGaI00HQ92oGr6+Yqe6k2uGApF1Rqbi4BzkHy5//1zdIJm7vy28HlY0dNQcxxHBu1rSyQ+CJwgHfJOVYXGyecNEp+umSL8g6feur7M2aYyjP5Ga2e2nZXjPZQvtMFiU7TqgQXF6E1XGbUyA5Qulw+rCfFHXus/yaAKHdgJCRPj7BmKwJ0g3ZbREMDXPRDuwii5ispYZrVwFB9D60z71FR