2025-03-10 20:52:11 +00:00
-------------------------------------------------------------------
Mon Mar 10 14:25:56 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.3.4
* Remove requirements section. this can be easily reviewed
in pyproject.toml
* Fix bad date comparison; fixes (#107)
- Use Python 3.11 on SLE-15 by default
2024-09-23 09:22:00 +00:00
-------------------------------------------------------------------
2025-01-07 10:39:35 +00:00
Tue Jan 7 10:32:07 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
- switch to github tarball, as there's no longer an sdist on pypi
- 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)
-------------------------------------------------------------------
2024-09-23 09:22:00 +00:00
Mon Sep 23 09:20:54 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.2.0:
* 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)
2024-03-14 08:56:39 +00:00
-------------------------------------------------------------------
Thu Mar 14 08:56:09 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.1.4:
* Add a workaround for a breaking change introduced in RT5.0.5
which returns undefined pages variable for non-superusers
2023-12-08 16:09:30 +00:00
-------------------------------------------------------------------
Fri Dec 8 16:08:22 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 3.1.3:
* Fix an issue where no e-mail was sent on ticket creation due
to suggesting to use **Requestors** instead of **Requestor**
* Revert breaking change for python3.8
(collections.abc.AsyncIterator is not subscriptable).
* In AsyncRt, instead of returning sequences, return
AsyncIterators.
* Replace *requests* with *httpx* for the REST2 part.
* Add a new *AsyncRt* class which implements the RT REST2 API
in asnyc.
* Adapt tests to include thew new async parts of this library.
2023-08-11 07:53:33 +00:00
-------------------------------------------------------------------
Fri Aug 11 07:39:10 UTC 2023 - Sebastian Wagner <sebix@sebix.at>
- update to version 3.0.7:
- Fix sorting when using search() method (#90)
2023-07-18 19:01:51 +00:00
-------------------------------------------------------------------
Tue Jul 18 18:39:29 UTC 2023 - Antonio Teixeira <antonio.teixeira@suse.com>
- Update to version 3.0.6:
* Added support for specifying custom fields on user creation/edit (#82).
* Fixed bug in rest1 (#86).
2022-12-03 08:22:51 +00:00
-------------------------------------------------------------------
Sat Dec 3 00:27:47 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
2023-12-08 16:09:30 +00:00
- Update to version 3.0.4:
2022-12-03 08:22:51 +00:00
* Workaround for parsing issues with tickets with only 1 attachment (#80), due to probably an upstream bug.
2022-07-11 09:42:03 +00:00
-------------------------------------------------------------------
Fri Jul 8 09:36:12 UTC 2022 - Duarte Pousa <pousaduarte@gmail.com>
- fix regression in version 3.0.3:
- Temporary revert to setup.cfg from 3.0.2, due to: https://github.com/pypa/setuptools/issues/3269
## [v3.0.3], 2022-06-16
### Changes
- Move package metadata and configuration from setup.cfg to pyproject.toml.
## [v3.0.2], 2022-06-12
### Fixes
- Fix edit_user() response handling in case a user_id name (str) was passed instead of a number.
## [v3.0.1], 2022-05-26
### Fixes
- Make sure to include _hyperlinks in history items
- On edit ticket, raise exception if user/queue does not exist
### Added
- Add helper method for deleting tickets
- Add tests
## [v3.0.0], 2022-05-17
- 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.
## [v2.2.2], 2022-04-08
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
- Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.
## [v2.2.1], 2021-11-26
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.
## [v2.2.0], 2021-11-15
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).
## [v2.1.1], 2021-03-23
- Fix support for custom field values containing newlines in API responses (#10, #11)
(the previous change in v1.0.11 fixed API requests) (#64)
## [v2.1.0], 2021-02-25
- Add the possibility to provide cookies as dict to authenticate (#60)
- Add 'Referer' header for CSRF check when cookies are used for authentication (#60)
- Add IS and IS NOT operators to search (#57)
## [v2.0.1], 2020-08-07
- Fix UnicodeDecodeError in logging code for non-text attachments (#50, #51)
- Documentation: Add a search example (#49)
- edit_ticket: Handle possible empty responses: When a ticket is not modified, at least with RT 4.x, an empty
response could be returned. Gracefully handle that as success. (#47, #48)
## [v2.0.0], 2020-02-11
- 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" parameters. 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.
## [v1.0.13], 2020-02-06
- 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 "[]").
## [v1.0.12], 2019-10-25
- 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
.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result
## [v1.0.11], 2018-07-16
- Added parameter to set the content type in reply() and comment() (#12).
- Added parameter Format to search() (#17).
- Tests: Update to new demo instance, fixing tests.
- Tests: Disable tests in Travis, the existing test instance closed the REST interface (#28).
- Fix support for custom field names containing colons (#37).
- Fix support for custom field values containing newlines (#11).
## [v1.0.10], 2017-02-22
- PEP8 fixes
- update .travis.yml to update python interpreter list and some other small changes
- prefer format over % (PEP 3101)
- Add patch from https://gitlab.labs.nic.cz/labs/python-rt/issues/9
"Support CF search where special chars or spaces in CF names"
- Implement a fix for the issue suggested in
https://gitlab.labs.nic.cz/labs/python-rt/issues/10 (can't create ticket
with multi-line message)
- Implement fix for https://gitlab.labs.nic.cz/labs/python-rt/issues/7
"returned types inconsistent in get_ticket"
Add splitting for Cc and AdminCc
## [v1.0.9], 2016-06-22
- added ability to steal, untake, and explicitly take tickets
- fixed create_ticket return value when provided an invalid custom field
## [v1.0.8], 2014-05-29
- added ability to search all queues
- added RtError super class
- fixed compatibility issues with Python 2.6
## [v1.0.7], 2013-10-01
- unit tests
- own exceptions
- added create_user, create_queue, edit_user, edit_queue methods
- added edit_link (replaces buggy edit_ticket_links)
- added get_attachments, get_short_history methods
- support merge_ticket in RT4
- custom query to search method
- strict binary handling with attachments
## [v1.0.6], 2013-09-05
- added support for HTTP basic and digest authentication
- specification of errors to different exceptions
## [v1.0.5], 2013-04-26
- fixed decoding of utf-8 only when needed
- updated search function to support various
lookup operators and sorting
## [v1.0.4], 2013-03-21
- default queue added to init parameters
## [v1.0.3], 2013-03-06
- python-requests 1.x compatible
## [v1.0.2], 2013-02-18
- HTTP proxy support
- Support for multilinks in get_links
## [v1.0.1], 2013-01-10
- Updated docstrings
- Added Sphinx documentation
## [v1.0.0], 2012-08-03
- Initial release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=27
2022-06-21 08:49:09 +00:00
-------------------------------------------------------------------
Tue Jun 21 08:49:07 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
2022-06-21 08:51:04 +00:00
- update to version 3.0.3:
## [v3.0.3], 2022-06-16
### Changes
- Move package metadata and configuration from setup.cfg to pyproject.toml.
## [v3.0.2], 2022-06-12
### Fixes
- Fix edit_user() response handling in case a user_id name (str) was passed instead of a number.
## [v3.0.1], 2022-05-26
### Fixes
- Make sure to include _hyperlinks in history items
- On edit ticket, raise exception if user/queue does not exist
### Added
- Add helper method for deleting tickets
- Add tests
## [v3.0.0], 2022-05-17
- 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.
## [v2.2.2], 2022-04-08
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
- Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.
## [v2.2.1], 2021-11-26
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.
## [v2.2.0], 2021-11-15
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).
## [v2.1.1], 2021-03-23
- Fix support for custom field values containing newlines in API responses (#10, #11)
(the previous change in v1.0.11 fixed API requests) (#64)
## [v2.1.0], 2021-02-25
- Add the possibility to provide cookies as dict to authenticate (#60)
- Add 'Referer' header for CSRF check when cookies are used for authentication (#60)
- Add IS and IS NOT operators to search (#57)
## [v2.0.1], 2020-08-07
- Fix UnicodeDecodeError in logging code for non-text attachments (#50, #51)
- Documentation: Add a search example (#49)
- edit_ticket: Handle possible empty responses: When a ticket is not modified, at least with RT 4.x, an empty
response could be returned. Gracefully handle that as success. (#47, #48)
## [v2.0.0], 2020-02-11
- 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" parameters. 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.
## [v1.0.13], 2020-02-06
- 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 "[]").
## [v1.0.12], 2019-10-25
- 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
.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result
## [v1.0.11], 2018-07-16
- Added parameter to set the content type in reply() and comment() (#12).
- Added parameter Format to search() (#17).
- Tests: Update to new demo instance, fixing tests.
- Tests: Disable tests in Travis, the existing test instance closed the REST interface (#28).
- Fix support for custom field names containing colons (#37).
- Fix support for custom field values containing newlines (#11).
## [v1.0.10], 2017-02-22
- PEP8 fixes
- update .travis.yml to update python interpreter list and some other small changes
- prefer format over % (PEP 3101)
- Add patch from https://gitlab.labs.nic.cz/labs/python-rt/issues/9
"Support CF search where special chars or spaces in CF names"
- Implement a fix for the issue suggested in
https://gitlab.labs.nic.cz/labs/python-rt/issues/10 (can't create ticket
with multi-line message)
- Implement fix for https://gitlab.labs.nic.cz/labs/python-rt/issues/7
"returned types inconsistent in get_ticket"
Add splitting for Cc and AdminCc
## [v1.0.9], 2016-06-22
- added ability to steal, untake, and explicitly take tickets
- fixed create_ticket return value when provided an invalid custom field
## [v1.0.8], 2014-05-29
- added ability to search all queues
- added RtError super class
- fixed compatibility issues with Python 2.6
## [v1.0.7], 2013-10-01
- unit tests
- own exceptions
- added create_user, create_queue, edit_user, edit_queue methods
- added edit_link (replaces buggy edit_ticket_links)
- added get_attachments, get_short_history methods
- support merge_ticket in RT4
- custom query to search method
- strict binary handling with attachments
## [v1.0.6], 2013-09-05
- added support for HTTP basic and digest authentication
- specification of errors to different exceptions
## [v1.0.5], 2013-04-26
- fixed decoding of utf-8 only when needed
- updated search function to support various
lookup operators and sorting
## [v1.0.4], 2013-03-21
- default queue added to init parameters
## [v1.0.3], 2013-03-06
- python-requests 1.x compatible
## [v1.0.2], 2013-02-18
- HTTP proxy support
- Support for multilinks in get_links
## [v1.0.1], 2013-01-10
- Updated docstrings
- Added Sphinx documentation
## [v1.0.0], 2012-08-03
- Initial release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=27
2022-06-21 08:49:09 +00:00
- Move package metadata and configuration from setup.cfg to pyproject.toml.
2023-08-11 07:53:33 +00:00
- update to version 3.0.2:
## [v3.0.3], 2022-06-16
### Changes
- Move package metadata and configuration from setup.cfg to pyproject.toml.
## [v3.0.2], 2022-06-12
### Fixes
- Fix edit_user() response handling in case a user_id name (str) was passed instead of a number.
## [v3.0.1], 2022-05-26
### Fixes
- Make sure to include _hyperlinks in history items
- On edit ticket, raise exception if user/queue does not exist
### Added
- Add helper method for deleting tickets
- Add tests
## [v3.0.0], 2022-05-17
- 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.
## [v2.2.2], 2022-04-08
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
- Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.
## [v2.2.1], 2021-11-26
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.
## [v2.2.0], 2021-11-15
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).
## [v2.1.1], 2021-03-23
- Fix support for custom field values containing newlines in API responses (#10, #11)
(the previous change in v1.0.11 fixed API requests) (#64)
## [v2.1.0], 2021-02-25
- Add the possibility to provide cookies as dict to authenticate (#60)
- Add 'Referer' header for CSRF check when cookies are used for authentication (#60)
- Add IS and IS NOT operators to search (#57)
## [v2.0.1], 2020-08-07
- Fix UnicodeDecodeError in logging code for non-text attachments (#50, #51)
- Documentation: Add a search example (#49)
- edit_ticket: Handle possible empty responses: When a ticket is not modified, at least with RT 4.x, an empty
response could be returned. Gracefully handle that as success. (#47, #48)
## [v2.0.0], 2020-02-11
- 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" parameters. 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.
## [v1.0.13], 2020-02-06
- 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 "[]").
## [v1.0.12], 2019-10-25
- 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
.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result
## [v1.0.11], 2018-07-16
- Added parameter to set the content type in reply() and comment() (#12).
- Added parameter Format to search() (#17).
- Tests: Update to new demo instance, fixing tests.
- Tests: Disable tests in Travis, the existing test instance closed the REST interface (#28).
- Fix support for custom field names containing colons (#37).
- Fix support for custom field values containing newlines (#11).
## [v1.0.10], 2017-02-22
- PEP8 fixes
- update .travis.yml to update python interpreter list and some other small changes
- prefer format over % (PEP 3101)
- Add patch from https://gitlab.labs.nic.cz/labs/python-rt/issues/9
"Support CF search where special chars or spaces in CF names"
- Implement a fix for the issue suggested in
https://gitlab.labs.nic.cz/labs/python-rt/issues/10 (can't create ticket
with multi-line message)
- Implement fix for https://gitlab.labs.nic.cz/labs/python-rt/issues/7
"returned types inconsistent in get_ticket"
Add splitting for Cc and AdminCc
## [v1.0.9], 2016-06-22
- added ability to steal, untake, and explicitly take tickets
- fixed create_ticket return value when provided an invalid custom field
## [v1.0.8], 2014-05-29
- added ability to search all queues
- added RtError super class
- fixed compatibility issues with Python 2.6
## [v1.0.7], 2013-10-01
- unit tests
- own exceptions
- added create_user, create_queue, edit_user, edit_queue methods
- added edit_link (replaces buggy edit_ticket_links)
- added get_attachments, get_short_history methods
- support merge_ticket in RT4
- custom query to search method
- strict binary handling with attachments
## [v1.0.6], 2013-09-05
- added support for HTTP basic and digest authentication
- specification of errors to different exceptions
## [v1.0.5], 2013-04-26
- fixed decoding of utf-8 only when needed
- updated search function to support various
lookup operators and sorting
## [v1.0.4], 2013-03-21
- default queue added to init parameters
## [v1.0.3], 2013-03-06
- python-requests 1.x compatible
## [v1.0.2], 2013-02-18
- HTTP proxy support
- Support for multilinks in get_links
## [v1.0.1], 2013-01-10
- Updated docstrings
- Added Sphinx documentation
## [v1.0.0], 2012-08-03
- Initial release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=27
2022-06-21 08:49:09 +00:00
- Fix edit_user() response handling in case a user_id name (str) was passed instead of a number.
## [v3.0.1], 2022-05-26
### Fixes
- Make sure to include _hyperlinks in history items
- On edit ticket, raise exception if user/queue does not exist
### Added
- Add helper method for deleting tickets
- Add tests
## [v3.0.0], 2022-05-17
- 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.
## [v2.2.2], 2022-04-08
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
- Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.
## [v2.2.1], 2021-11-26
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.
## [v2.2.0], 2021-11-15
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).
## [v2.1.1], 2021-03-23
- Fix support for custom field values containing newlines in API responses (#10, #11)
(the previous change in v1.0.11 fixed API requests) (#64)
## [v2.1.0], 2021-02-25
- Add the possibility to provide cookies as dict to authenticate (#60)
- Add 'Referer' header for CSRF check when cookies are used for authentication (#60)
- Add IS and IS NOT operators to search (#57)
## [v2.0.1], 2020-08-07
- Fix UnicodeDecodeError in logging code for non-text attachments (#50, #51)
- Documentation: Add a search example (#49)
- edit_ticket: Handle possible empty responses: When a ticket is not modified, at least with RT 4.x, an empty
response could be returned. Gracefully handle that as success. (#47, #48)
## [v2.0.0], 2020-02-11
- 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" parameters. 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.
## [v1.0.13], 2020-02-06
- 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 "[]").
## [v1.0.12], 2019-10-25
- 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
.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result
## [v1.0.11], 2018-07-16
- Added parameter to set the content type in reply() and comment() (#12).
- Added parameter Format to search() (#17).
- Tests: Update to new demo instance, fixing tests.
- Tests: Disable tests in Travis, the existing test instance closed the REST interface (#28).
- Fix support for custom field names containing colons (#37).
- Fix support for custom field values containing newlines (#11).
## [v1.0.10], 2017-02-22
- PEP8 fixes
- update .travis.yml to update python interpreter list and some other small changes
- prefer format over % (PEP 3101)
- Add patch from https://gitlab.labs.nic.cz/labs/python-rt/issues/9
"Support CF search where special chars or spaces in CF names"
- Implement a fix for the issue suggested in
https://gitlab.labs.nic.cz/labs/python-rt/issues/10 (can't create ticket
with multi-line message)
- Implement fix for https://gitlab.labs.nic.cz/labs/python-rt/issues/7
"returned types inconsistent in get_ticket"
Add splitting for Cc and AdminCc
## [v1.0.9], 2016-06-22
- added ability to steal, untake, and explicitly take tickets
- fixed create_ticket return value when provided an invalid custom field
## [v1.0.8], 2014-05-29
- added ability to search all queues
- added RtError super class
- fixed compatibility issues with Python 2.6
## [v1.0.7], 2013-10-01
- unit tests
- own exceptions
- added create_user, create_queue, edit_user, edit_queue methods
- added edit_link (replaces buggy edit_ticket_links)
- added get_attachments, get_short_history methods
- support merge_ticket in RT4
- custom query to search method
- strict binary handling with attachments
## [v1.0.6], 2013-09-05
- added support for HTTP basic and digest authentication
- specification of errors to different exceptions
## [v1.0.5], 2013-04-26
- fixed decoding of utf-8 only when needed
- updated search function to support various
lookup operators and sorting
## [v1.0.4], 2013-03-21
- default queue added to init parameters
## [v1.0.3], 2013-03-06
- python-requests 1.x compatible
## [v1.0.2], 2013-02-18
- HTTP proxy support
- Support for multilinks in get_links
## [v1.0.1], 2013-01-10
- Updated docstrings
- Added Sphinx documentation
## [v1.0.0], 2012-08-03
- Initial release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=24
2022-05-27 06:53:44 +00:00
-------------------------------------------------------------------
Fri May 27 06:53:41 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
2022-05-27 06:56:38 +00:00
- update to version 3.0.1:
- Fixes
- Make sure to include _hyperlinks in history items
- On edit ticket, raise exception if user/queue does not exist
- Added
- Add helper method for deleting tickets
- Add tests
## [v3.0.1], 2022-05-26
### Fixes
- Make sure to include _hyperlinks in history items
- On edit ticket, raise exception if user/queue does not exist
### Added
- Add helper method for deleting tickets
- Add tests
## [v3.0.0], 2022-05-17
- 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.
## [v2.2.2], 2022-04-08
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
- Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.
## [v2.2.1], 2021-11-26
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.
## [v2.2.0], 2021-11-15
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).
## [v2.1.1], 2021-03-23
- Fix support for custom field values containing newlines in API responses (#10, #11)
(the previous change in v1.0.11 fixed API requests) (#64)
## [v2.1.0], 2021-02-25
- Add the possibility to provide cookies as dict to authenticate (#60)
- Add 'Referer' header for CSRF check when cookies are used for authentication (#60)
- Add IS and IS NOT operators to search (#57)
## [v2.0.1], 2020-08-07
- Fix UnicodeDecodeError in logging code for non-text attachments (#50, #51)
- Documentation: Add a search example (#49)
- edit_ticket: Handle possible empty responses: When a ticket is not modified, at least with RT 4.x, an empty
response could be returned. Gracefully handle that as success. (#47, #48)
## [v2.0.0], 2020-02-11
- 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" parameters. 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.
## [v1.0.13], 2020-02-06
- 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 "[]").
## [v1.0.12], 2019-10-25
- 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
.
- Add debug_mode flag for response logging
- Add platform independent url joining / Allow testing on Windows
- Add numerical_id to get_ticket result
## [v1.0.11], 2018-07-16
- Added parameter to set the content type in reply() and comment() (#12).
- Added parameter Format to search() (#17).
- Tests: Update to new demo instance, fixing tests.
- Tests: Disable tests in Travis, the existing test instance closed the REST interface (#28).
- Fix support for custom field names containing colons (#37).
- Fix support for custom field values containing newlines (#11).
## [v1.0.10], 2017-02-22
- PEP8 fixes
- update .travis.yml to update python interpreter list and some other small changes
- prefer format over % (PEP 3101)
- Add patch from https://gitlab.labs.nic.cz/labs/python-rt/issues/9
"Support CF search where special chars or spaces in CF names"
- Implement a fix for the issue suggested in
https://gitlab.labs.nic.cz/labs/python-rt/issues/10 (can't create ticket
with multi-line message)
- Implement fix for https://gitlab.labs.nic.cz/labs/python-rt/issues/7
"returned types inconsistent in get_ticket"
Add splitting for Cc and AdminCc
## [v1.0.9], 2016-06-22
- added ability to steal, untake, and explicitly take tickets
- fixed create_ticket return value when provided an invalid custom field
## [v1.0.8], 2014-05-29
- added ability to search all queues
- added RtError super class
- fixed compatibility issues with Python 2.6
## [v1.0.7], 2013-10-01
- unit tests
- own exceptions
- added create_user, create_queue, edit_user, edit_queue methods
- added edit_link (replaces buggy edit_ticket_links)
- added get_attachments, get_short_history methods
- support merge_ticket in RT4
- custom query to search method
- strict binary handling with attachments
## [v1.0.6], 2013-09-05
- added support for HTTP basic and digest authentication
- specification of errors to different exceptions
## [v1.0.5], 2013-04-26
- fixed decoding of utf-8 only when needed
- updated search function to support various
lookup operators and sorting
## [v1.0.4], 2013-03-21
- default queue added to init parameters
## [v1.0.3], 2013-03-06
- python-requests 1.x compatible
## [v1.0.2], 2013-02-18
- HTTP proxy support
- Support for multilinks in get_links
## [v1.0.1], 2013-01-10
- Updated docstrings
- Added Sphinx documentation
## [v1.0.0], 2012-08-03
- Initial release
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rt?expand=0&rev=24
2022-05-27 06:53:44 +00:00
2022-05-22 10:19:54 +00:00
-------------------------------------------------------------------
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.
2022-04-09 07:30:58 +00:00
-------------------------------------------------------------------
Sat Apr 9 07:30:39 UTC 2022 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 2.2.2:
- Fix bug in the get_ticket would omit certain fields in case they were empty instead of returning an empty list as was the previous behavior (#70).
- Add tests for verifying correct return result for AdminCc, Cc and Requestor fields.
2021-11-27 10:11:46 +00:00
-------------------------------------------------------------------
Sat Nov 27 10:11:12 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 2.2.1:
- Fix bug in get_attachment_content which was a workaround for a bug in RT <=4.2 (trailing new-lines) but which was fixed in RT >=4.2. This made tests fail and return falsely stripped attachment content.
2021-11-15 20:54:04 +00:00
-------------------------------------------------------------------
Mon Nov 15 20:53:35 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 2.2.0:
- Search has a parameter fields that can be used to return only particular fields for tickets. In some cases I noticed it will improve the speed of the query completion if you only need specific fields (#65 by @kimmoal).
2021-04-12 15:25:47 +00:00
-------------------------------------------------------------------
Thu Apr 8 11:38:15 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 2.1.1:
- Fix support for custom field values containing newlines in API responses (#10, #11)
(the previous change in v1.0.11 fixed API requests) (#64)
2021-02-25 19:44:40 +00:00
-------------------------------------------------------------------
Thu Feb 25 19:44:00 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Update to version 2.1.0:
- Add the possibility to provide cookies as dict to authenticate (#60)
- Add IS and IS NOT operators to search (#57)
2020-08-16 15:54:58 +00:00
-------------------------------------------------------------------
Sun Aug 16 15:54:38 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- Remove Requires for nose, not used.
2020-08-08 12:20:21 +00:00
-------------------------------------------------------------------
Sat Aug 8 12:16:55 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 2.0.1:
- Documentation: add search example
- edit_ticket: handle empty responses
- fix UnicodeDecodeError in logging code for non-text attachments
2020-03-15 10:45:20 +00:00
-------------------------------------------------------------------
Sun Mar 15 10:43:52 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 2.0.0:
- 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 "[]").
2019-11-26 14:37:12 +00:00
-------------------------------------------------------------------
Tue Nov 26 14:36:32 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 1.0.12:
- 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
2018-12-04 14:01:08 +00:00
-------------------------------------------------------------------
Tue Dec 4 12:53:59 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
2018-07-29 17:35:00 +00:00
-------------------------------------------------------------------
Sun Jul 29 17:34:16 UTC 2018 - sebix+novell.com@sebix.at
- update to version 1.0.11:
- Added parameter to set the content type in reply() and comment() (#12).
- Added parameter Format to search() (#17).
- Tests: Update to new demo instance, fixing tests.
2018-03-12 21:31:09 +00:00
-------------------------------------------------------------------
Mon Mar 12 19:42:10 UTC 2018 - sebix+novell.com@sebix.at
- initial package for version 1.0.10