forked from pool/python-rt
- Update to version v3.4.0:
- Added - Added functionality for some of the asset endpoints (get, create, edit, search, get history) - Added functionality for the get catalog endpoint - Update to version v3.3.9: - Fixes - In debug mode, where content may be dumped, said content may not decode correctly if it is not utf-8. Ignore errors as we don't care about that in debug mode anyways (fixes #113) - Update to version v3.3.8: - Added - Allow for specifying a custom RT JSON filter when querying for attachments for a ticket (#110). This solved the issue with not returning attachment IDs in case an attachment file name is empty as the default query explicitely excludes those. - Changes - Remove unused noqa directives - Do not use len() in asset when no comparison is being done - Add quotes to type expression in `typing.cast()` - Update to version v3.3.7: - Changes - Use RT v6 based docker image for tests - Fixes - Fix optional return types (#111) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=51
This commit is contained in:
66
python-rt.spec
Normal file
66
python-rt.spec
Normal file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# spec file for package python-rt
|
||||
#
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-rt
|
||||
Version: 3.4.0
|
||||
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://github.com/python-rt/python-rt/archive/refs/tags/v%{version}.tar.gz#/rt-%{version}.tar.gz
|
||||
Source1: setup.cfg
|
||||
BuildRequires: %{python_module base >= 3.9}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-httpx >= 0.28
|
||||
Requires: python-requests
|
||||
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 python-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
|
||||
Reference in New Issue
Block a user