commit 8676ad5f25b5a8b92fe6e572dead44dbf0f15f80a023d133dccdd928b0641a9a Author: Markéta Machová Date: Thu Nov 19 12:08:19 2020 +0000 Accepting request 849196 from home:jayvdb:py-submit Dependency of many fedora packages Depends on https://build.opensuse.org/request/show/849193 OBS-URL: https://build.opensuse.org/request/show/849196 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-fedora?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/python-fedora-1.1.0.tar.gz b/python-fedora-1.1.0.tar.gz new file mode 100644 index 0000000..8d4d3b9 --- /dev/null +++ b/python-fedora-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8cca046074001cedec0f7af5f80b288ff588c596fa1d4ff983251984e9b4fcaa +size 121243 diff --git a/python-python-fedora.changes b/python-python-fedora.changes new file mode 100644 index 0000000..73a267d --- /dev/null +++ b/python-python-fedora.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Nov 17 03:25:50 PM UTC 2020 - John Vandenberg + +- Initial spec for v1.1.0 diff --git a/python-python-fedora.spec b/python-python-fedora.spec new file mode 100644 index 0000000..9026eb9 --- /dev/null +++ b/python-python-fedora.spec @@ -0,0 +1,92 @@ +# +# spec file for package python-python-fedora +# +# Copyright (c) 2020 SUSE LLC +# +# 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-%{**}} +%define skip_python2 1 +Name: python-python-fedora +Version: 1.1.0 +Release: 0 +Summary: Python modules for interacting with Fedora Services +License: LGPL-2.1-or-later +URL: https://github.com/fedora-infra/python-fedora +Source: https://files.pythonhosted.org/packages/source/p/python-fedora/python-fedora-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-beautifulsoup4 +Requires: python-kitchen +Requires: python-lockfile +Requires: python-munch +Requires: python-openidc-client +Requires: python-requests +Requires: python-six >= 1.4.0 +Suggests: python-Beaker +Suggests: python-Flask +Suggests: python-Flask_WTF +Suggests: python-Paste +Suggests: python-python-openid-cla +Suggests: python-python-openid-teams +Suggests: python-python3-openid +Suggests: python-repoze.who +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Beaker} +BuildRequires: %{python_module Flask-WTF} +BuildRequires: %{python_module Flask} +BuildRequires: %{python_module Paste} +BuildRequires: %{python_module beautifulsoup4} +BuildRequires: %{python_module kitchen} +BuildRequires: %{python_module lockfile} +BuildRequires: %{python_module munch} +BuildRequires: %{python_module openidc-client} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module python-openid-cla} +BuildRequires: %{python_module python-openid-teams} +BuildRequires: %{python_module python3-openid} +BuildRequires: %{python_module repoze.who} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module six >= 1.4.0} +# /SECTION +%python_subpackages + +%description +Python modules for interacting with Fedora Services. + +%prep +%setup -q -n python-fedora-%{version} +sed -i '1{/#!/d}' fedora/client/*.py + +%build +%python_build + +%install +%python_install +%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%check +# test_openidbaseclient.py depends on nose +%pytest --ignore tests/functional/test_openidbaseclient.py + +%files %{python_files} +%doc AUTHORS NEWS README.rst +%license COPYING +%{python_sitelib}/* + +%changelog