SHA256
14
0
forked from pool/python-rt
Files
python-rt/python-rt.spec
Sebastian Wagner e4be26498d - update to version 3.0.0
- The following is a major release of the `rt` library.
  - There is support for the REST API version 1 as well as version 2.
  - Please note that this release contains breaking changes and requires adaptations to existing code, even if you are sticking to version 1 of the API.
  - These changes were necessary in order to properly support both API versions.
 - Added
  - RT REST2 support was added and is mostly on par with the REST1 support (differences are a result of the REST2 API implementation differences in RT).
  - REST2 is a modern API based on JSON exchanges and thus the complex parsing of responses and request construction are no longer needed.
 - Changes
  - Existing exception classes were renamed to adhere to the naming convention (https://peps.python.org/pep-0008/#exception-names).
   - In case you do catch specific `rt` exceptions, a simple search/replace will do, see the changelog page in the documentation for details.
  - Importing the `rt` class changed in order to better accommodate the new `rest2` implementation.
   - Where one use to be able to import `rt` using:
     `from rt import Rt`
     you now have to use the following syntax:
     `from rt.rest1 import Rt`
  - Importing the `rt` module does no longer import all exceptions but only the core `RtError` exception.
  - If you require other exceptions, please import them from `rt.exceptions`.
  - Use pytest instead of nose.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=23
2022-05-22 10:19:54 +00:00

57 lines
1.7 KiB
RPMSpec

#
# spec file for package python-rt
#
# Copyright (c) 2022 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/
#
# Tests require internet connection
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-rt
Version: 3.0.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://files.pythonhosted.org/packages/source/r/rt/rt-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-requests
Requires: python-six
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}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc AUTHORS CHANGELOG.md README.rst
%license LICENSE
%{python_sitelib}/*
%changelog