SHA256
14
0
forked from pool/python-rt
Files
python-rt/python-rt.spec
Dirk Mueller 3422119958 - update to 3.1.3:
* Fix an issue where no e-mail was sent on ticket creation due
    to suggesting to use **Requestors** instead of **Requestor**
  * Revert breaking change for python3.8
    (collections.abc.AsyncIterator is not subscriptable).
  * In AsyncRt, instead of returning sequences, return
    AsyncIterators.
  * Replace *requests* with *httpx* for the REST2 part.
  * Add a new *AsyncRt* class which implements the RT REST2 API
    in asnyc.
  * Adapt tests to include thew new async parts of this library.
-  Update to version 3.0.4:

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=39
2023-12-08 16:09:30 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-rt
#
# Copyright (c) 2023 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/
#
Name: python-rt
Version: 3.1.3
Release: 0
Summary: Python interface to Request Tracker API
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/CZ-NIC/python-rt
Source: https://files.pythonhosted.org/packages/source/r/rt/rt-%{version}.tar.gz
Source1: setup.cfg
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-requests
Requires: python-requests-toolbelt
BuildArch: noarch
%python_subpackages
%description
Python implementation of Request Tracker (a ticketing system) REST API described here: https://rt-wiki.bestpractical.com/wiki/REST
%prep
%setup -q -n rt-%{version}
cp %{SOURCE1} setup.cfg
sed -i 's/^dynamic = \["version"]/version = "%{version}"/' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Tests require internet connection
%files %{python_files}
%doc AUTHORS CHANGELOG.md README.rst
%license LICENSE
%{python_sitelib}/rt-%{version}*-info*
%{python_sitelib}/rt/
%changelog