forked from pool/python-rt
- update to version v3.3.3: - Changes - Starting with version 0.28.0 of httpx, *verify* should be either a bool or an *SSL Context*. - update to version 3.3.2: - Fixes - Replace the removed httpx parameter of *proxies* by *proxy* (fixes #102) - Pin dependencies to supported relative upstream versions. - Remove the now obsolete *setup.py*. - update to version 3.3.1: - Fixes - Fix str(bytes) warning (*BytesWarning: str() on a bytes instance*) (#1074) - Changes - Set included files for ruff - Switch to hatchling - Set ignores for tests files - Ignore uv.lock - update to version 3.3.0: - Removed - Remove support for now EoL Python 3.8. - update to version 3.2.0: - Added - Added option for custom list of fields to be populated for search "query_format" param to avoid unnecessary round trips to get fields like Told, Starts, Resolved, etc by returning the required fields during search. (see #97 @nerdfirefighter) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=45
66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-rt
|
|
#
|
|
# Copyright (c) 2025 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.3.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://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
|