- 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
- Drop Python2 support
- Adjust Travis tests for Python3-only, and add v3.8
- Add inline typing
- Remove "debug_mode" parameter
- Add "logging" support (basically replacing "debug_mode" and the various "print"s)
- Fix "no-else-after-return" and "no-else-after-raise"
- Fix "startswitch" typos / bugs
- Removed deprecated "basic_auth" and "digest_auth" paramters. The same functionality is given by specifying the
"http_auth" with an instance of either object. This allows for more flexibility with various other alternative
authentication methods.
- update to version 1.0.13:
- Add deprecation warning for in the next major release unsupported parameters (basic_auth, digest_auth).
They are now replaced with http_auth.
- Fix problematic default method parameters ("{}" and "[]").
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=9
- Travis CI Docker tests
- RT 4.4 fixes
- Support multiline CF values in create_ticket and edit_ticket.
- Fix support for custom field names containing colons
- In search(), replace splitlines() with lines array split on \n.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=7