SHA256
14
0
forked from pool/python-rt

- 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
This commit is contained in:
Sebastian Wagner
2022-05-22 10:19:54 +00:00
committed by Git OBS Bridge
parent a77646f38d
commit e4be26498d
4 changed files with 28 additions and 5 deletions

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Sun May 22 10:18:29 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Apr 9 07:30:39 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at> Sat Apr 9 07:30:39 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@@ -19,7 +19,7 @@
# Tests require internet connection # Tests require internet connection
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-rt Name: python-rt
Version: 2.2.2 Version: 3.0.0
Release: 0 Release: 0
Summary: Python interface to Request Tracker API Summary: Python interface to Request Tracker API
License: GPL-3.0-only License: GPL-3.0-only
@@ -49,7 +49,7 @@ Python implementation of Request Tracker (a ticketing system) REST API described
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%doc AUTHORS CHANGES README.rst %doc AUTHORS CHANGELOG.md README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/*

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:79e4f7a101e2ed1bd9dc851aafa3f388cb6abaf861e3c10f96382dbaed54949f
size 50635

3
rt-3.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:364049dabe0b457ce906694df3f3ab68570af69299d455b10fbee74c9e2eddc0
size 65949