From 2b320319939b2e96d9b19641e3ee7656ce74e49f57c1d26c4ff099fe8c8c87d2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 25 Nov 2020 07:19:45 +0000 Subject: [PATCH] Accepting request 849090 from home:jayvdb:py-submit copr tools OBS-URL: https://build.opensuse.org/request/show/849090 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fedora-messaging?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + fedora_messaging-2.0.2.tar.gz | 3 + python-fedora-messaging.changes | 9 +++ python-fedora-messaging.spec | 101 ++++++++++++++++++++++++++++++++ 5 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 fedora_messaging-2.0.2.tar.gz create mode 100644 python-fedora-messaging.changes create mode 100644 python-fedora-messaging.spec 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/fedora_messaging-2.0.2.tar.gz b/fedora_messaging-2.0.2.tar.gz new file mode 100644 index 0000000..022f278 --- /dev/null +++ b/fedora_messaging-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7222d4b45407da4e2dd0e2bfea21acc7cdc11335172e59a96fe5ccff108eab29 +size 140824 diff --git a/python-fedora-messaging.changes b/python-fedora-messaging.changes new file mode 100644 index 0000000..a33cb58 --- /dev/null +++ b/python-fedora-messaging.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 17 11:59:41 UTC 2020 - John Vandenberg + +- Update to v2.0.2 + +------------------------------------------------------------------- +Fri Dec 27 11:45:26 AM UTC 2019 - John Vandenberg + +- Initial spec for v2.0.0 diff --git a/python-fedora-messaging.spec b/python-fedora-messaging.spec new file mode 100644 index 0000000..574c6db --- /dev/null +++ b/python-fedora-messaging.spec @@ -0,0 +1,101 @@ +# +# spec file for package python-fedora-messaging +# +# 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-%{**}} +Name: python-fedora-messaging +Version: 2.0.2 +Release: 0 +Summary: Python tools for Fedora's messaging infrastructure +License: GPL-2.0-or-later +Group: Development/Languages/Python +URL: https://github.com/fedora-infra/fedora-messaging +Source: https://files.pythonhosted.org/packages/source/f/fedora_messaging/fedora_messaging-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Twisted +Requires: python-blinker +Requires: python-click +Requires: python-crochet +Requires: python-jsonschema +Requires: python-pika >= 1.0.1 +Requires: python-pyOpenSSL +Requires: python-pytz +Requires: python-service_identity +Requires: python-six +Requires: python-toml +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module blinker} +BuildRequires: %{python_module click} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module crochet} +BuildRequires: %{python_module jsonschema} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pika >= 1.0.1} +BuildRequires: %{python_module pyOpenSSL} +BuildRequires: %{python_module pytest-twisted} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module service_identity} +BuildRequires: %{python_module six} +BuildRequires: %{python_module toml} +BuildRequires: %{python_module towncrier} +BuildRequires: %{python_module treq} +# /SECTION +%python_subpackages + +%description +A set of Python tools for using Fedora's messaging infrastructure. + +%prep +%setup -q -n fedora_messaging-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/fedora-messaging +%{python_expand rm -r %{buildroot}%{$python_sitelib}/fedora_messaging/tests/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%post +%python_install_alternative fedora-messaging + +%postun +%python_uninstall_alternative fedora-messaging + +%check +export PATH=$PATH:%{buildroot}%{_bindir} +export PYTHONDONTWRITEBYTECODE=1 +export LANG=en_US.UTF-8 +# test_consume_unexpected_crash or test_consume_successful_halt are intermittent +# and only relevant for improved handling of an unexpected failure/halt +%pytest -k 'not (test_consume_unexpected_crash or test_consume_successful_halt)' + +%files %{python_files} +%doc README.rst +%license LICENSE +%python_alternative %{_bindir}/fedora-messaging +%{python_sitelib}/* + +%changelog