Releases: maxtepkeev/python-redmine
v2.5.0
Deprecations:
- Requests version required >= 2.31.0
New Features:
- Pro Edition: RedmineUP Products plugin support
- Issue copying (see docs for details) (Issue #203)
Improvements:
- Migrated CI to GitHub Actions, also we now test not only on Linux, but on macOS and Windows as well
- dir(resource)and- list(resource)now also show properties of an object
- Support for issues_assignedandissues_authoredrelations in User object (Issue #317)
- Original filename will be used as a filename for all uploaded files if a path was provided and filename wasn't set
- Pro Edition: Added support for RedmineUP Contact avatar add/update operations (see docs for details)
- Pro Edition: Added support for RedmineUP DealCategory create(),update(),delete()operations (see docs for details)
- Pro Edition: RedmineUP CrmQuery resource now supports invoicesandexpensesrelation attributes
- PerformanceWarningwill be issued when Python-Redmine does some unnecessary redirects before the actual
 request is made
Changes:
- Backwards Incompatible: API key is now being sent in the X-Redmine-API-Key header instead of the key GET parameter which makes things more secure in case of a failed connection, but it might created issues for servers that don't do custom request header forwarding by default, so be sure to check your web server before upgrading (Issue #328 and Issue #330) (thanks to Tom Misilo and Ricardo Branco)
- Backwards Incompatible: User alloperation now really returns all users, i.e. not only active, but locked, registered and anonymous as well instead of only returning just active users in previous versions due to the respect to Redmine's standard behaviour (Issue #327)
Bugfixes:
- Tests were failing on Windows OS
- Tests were failing on Python 3.12 (Issue #332) (thanks to Michał Górny)
- Some closed Issues weren't converted to Resource objects using redmine.search()
- Pro Edition: RedmineUP Invoice resource orderattribute was returned as a dict instead of being converted to Resource object
- Pro Edition: RedmineUP CrmQuery resource dealsandcontactsrelation attributes didn't work
- Pro Edition: RedmineUP DealStatus resource dealsrelation attribute didn't work
Documentation:
- Mentioned support for author_idin Issue's resource filter operation
v2.4.0
Deprecations:
- Requests version required >= 2.28.2
- Removed Python 2.7, 3.5, 3.6 support as it's not supported by Requests anymore
- Removed support for python setup.py testas it became deprecated by setuptools
New Features:
- Pro Edition: RedmineUP Helpdesk plugin support (Issue #116)
- Pro Edition: RedmineUP Invoices plugin support (Issue #301)
- Timezone support (see docs for details) (Issue #271)
Improvements:
- Added support for Python 3.10, 3.11 and latest PyPy
- Added support for allowed_statusestoincludeparam and on demand includes for Issue resource (requires Redmine >= 5.0.0)
- Added support for issue_custom_fieldstoincludeparam and on demand includes for Project resource (requires Redmine >= 4.2.0)
- Added support for commentsandattachmentstoincludeparam and on demand includes for News resource (requires Redmine >= 4.1.0)
- Pro Edition: Added support for RedmineUP Contact projectstoincludeparam and on demand includes forall()andfilter()operations
- Pro Edition: Added support for RedmineUP Note create(),update(),delete()operations (see docs for details)
- Added support for Project close(),reopen(),archive(),unarchive()operations (see docs for details, requires Redmine >= 5.0.0)
- Added support for updating and deleting issue journals (see docs for details, requires Redmine >= 5.0.0)
Changes:
- Backwards Incompatible: Switched to pytest instead of nose as nose project is dead (Issue #312)
- Backwards Incompatible: Removed usage of distutils.LooseVersion internally since it became deprecated and caused warnings, because of that all version info internally is now being represented as tuples and not strings as before
Bugfixes:
- Stop raising ResourceAttrErrorfor attributes that actually exist, but their value isNone(Issue #261)
- Pro Edition: RedmineUP Deal resource related_contactsattribute was returned as a list instead of being converted to ResourceSet object
- Project resource default_assigneeattribute was returned as a dict instead of being converted to Resource object
- Project resource time_entry_activitiesattribute was returned as a list instead of being converted to ResourceSet object
Documentation:
v2.3.0
Improvements:
- Support custom filename in redmine.upload()
- Support for get()andupdate()operations for/my/accountendpoint which doesn't require admin privileges by usingmeas an id, i.e.redmine.user.get('me')orredmine.user.update('me', firstname='John')(requires Redmine >= 4.1.0)
- News create(),update(),delete()operations support (requires Redmine >= 4.1.0)
- ResourceSet's export()method now supportscolumnskeyword argument which can be either an iterable of column names, an "all" string which tells Python-Redmine to export all available columns, "all_gui" string for GUI like behaviour or iterable of elements with "all_gui" string and additional columns to export
- Added support for special characters in WikiPage titles (Issue #222) (thanks to Radek Czajka)
- Added return_responseandignore_responseparameters to engine which allow to skip response processing and speed up the create/update/delete operation in case response body isn't needed (see docs for details)
Changes:
- Backwards Incompatible: Requests version required >= 2.23.0
- Backwards Incompatible: Removed Python 3.4 support as it's not supported by Requests anymore
Bugfixes:
- User's send_informationfield wasn't sent correctly to Redmine so account information emails were never sent (Issue #227) (thanks to wodny)
- Project resource default_versionattribute was returned as a dict instead of being converted to Resource object
- Resource object was leaking memory during initialization (Issue #257) (thanks to yihli)
Documentation:
- Introduced detailed parameter list for redmine.session
- Mentioned support for adminin User's resource create/update
v2.2.1
Bugfixes:
- ProjectMembership resource groupattribute was returned as a dict instead of being converted to Resource object (Issue #220) (thanks to Samuel Harmer)
v2.2.0
Improvements:
- PerformanceWarningwill be issued when Python-Redmine does some unnecessary work under the hood to fix the clients code problems
Changes:
- Backwards Incompatible: Removed vendored Requests package and make it an external dependency as Requests did the same with it's own dependencies
- Backwards Incompatible: Removed Python 2.6 and 3.3 support as they're not supported by Requests anymore
Bugfixes:
- Redmine.upload()fails under certain circumstances when used with a file-like object and it contains unicode instead of bytes (Issue #216)
- Redmine.session()doesn't restore previous engine if fails (Issue #211) (thanks to Dmitry Logvinenko)
v2.1.1
- Fix PyPI package
v2.1.0
This release concentrates mostly on stability and adds small features here and there. Some of them are backwards incompatible and are marked as such. They shouldn't affect many users since most of them were used internally by Python-Redmine. A support for the Files API has been finally added, but please be sure to check it's documentation as the implementation on the Redmine side is horrible and there are things to keep in mind while working with Files API. Lastly, only until the end of May 2018 there is a chance to buy a Pro Edition for only 14.99$ instead of the usual 24.99$, this is your chance to get an edition with additional features for a good price and to support the further development of Python-Redmine, more info here.
New Features:
- Files API support (Issue #117)
Improvements:
- 
Backwards Incompatible: ResourceSet's filter()method became more advanced. It is now possible to filter on all available resource attributes, to follow resource relationships and apply lookups to the filters (see docs for details)
- 
ResourceManager class has been refactored: - manager_classattribute on the- Resourceclass can now be used to assign a separate- ResourceManagerto a resource, that allows outsourcing a resource specific functionality to a separate manager class (see- WikiPageManageras an example)
- Backwards Incompatible: request()method has been removed
- _construct_*_url(),- _prepare_*_request(),- _process_*_response()methods have been added for create, update and delete methods to allow a fine-grained control over these operations
 
- 
Ability to upload file-like objects (Issue #186) (thanks to hjpotter92) 
- 
Support for retrieving project's time entry activities (see docs for details) 
- 
Attachment update()operation support (requires Redmine >= 3.4.0)
- 
Resource.save()now accepts**attrsthat need to be changed/set and returnsselfinstead of a booleanTrue, which makes it chainable, so you can now do something likeproject.save(name='foo', description='bar').export('txt', '/home/foo')
- 
getoperation support for News, Query, Enumeration, IssueStatus, Tracker, CustomField, ContactTag, DealStatus, DealCategory and CRMQuery resources
- 
includeparam inget,allandfilteroperations now accepts lists and tuples instead of comma-separated string which is still accepted for backward compatibility reasons, i.e. one can useinclude=['foo', 'bar']instead ofinclude='foo,bar'
- 
It is now possible to use Noneand0in addition to''inassigned_to_idattribute in Issue resource if an assignee needs to be removed from an issue
Changes:
- Backwards Incompatible: Issue alloperation now really returns all issues, i.e. both open and closed, instead of only returning open issues in previous versions due to the respect to Redmine's standard behaviour
- Backwards Incompatible: Instead of only returning a token string, upload()method was modified to return a dict that contains all the data for an upload returned from Redmine, i.e. id and token for Redmine >= 3.4.0, token only for Redmine < 3.4.0. Also it is now possible to use this token and pass it using atokenkey instead of thepathkey with path to the file inuploadsparameter when doing an upload, this gives more control over the uploading process if needed
- Backwards Incompatible: Removed resource_pathsargument from Redmine object sinceResourceManagernow uses a special resource registry, to which, all resources that inherit from any Python-Redmine resource are being automatically added
- Backwards Incompatible: Removed container_manyin favor ofcontainer_filter,container_createandcontainer_updateattributes onResourceobject to allow more fine-grained resource setup
- Backwards Incompatible: return_rawparameter onengine.request()andengine.process_response()methods has been removed in favor ofreturn_raw_responseattribute on engine object
- Updated bundled requests library to v2.15.1
Bugfixes:
- Support 204 status code when deleting a resource (Issue #189) (thanks to dotSlashLu)
- Raise ValidationErrorinstead of not helpfulTypeErrorexception when trying to create a WikiPage resource that already exists (Issue #182)
- Enumeration, Version, Group and Notes custom_fieldsattribute was returned as a list of dicts instead of being converted toResourceSetobject
- Downloads were downloaded fully into memory instead of being streamed as needed
- ResourceRequirementsErrorexception was broken since v2.0.0
- RedmineUP CRM Contact and Deal resources export functionality didn't work
- RedmineUP CRM Contact and Deal resources sometimes weren't converted to Resource objects using Search API
Documentation:
- Mentioned support for generate_passwordandsend_informationin User's resource create/update methods,statusin User's resource update method,parent_idin Issue's filter method andincludein Issue's all method
v2.0.2
Bugfixes:
- Filter doesn't work when there are > 100 resources requested (Issue #175) (thanks to niwatolli3)
v2.0.1
- Fix PyPI package
v2.0.0
This version brings a lot of new features and changes, some of them are backward-incompatible, so please look carefully at the changelog below to find out what needs to be changed in your code to make it work with this version. Also Python-Redmine now comes in 2 editions: Standard and Pro, please have a look at this document for more details. Documentation was also significantly rewritten, so it is recommended to reread it even if you are an experienced Python-Redmine user.
New Features:
- RedmineUP Checklist plugin support
- Request Engines support. It is now possible to create engines to define how requests to Redmine are made, e.g. synchronous (one by one) or asynchronous using threads or processes etc.
- redmine.session()context manager which allows to temporary redefine engine's behaviour
- Search API support (Issue #138)
- Export functionality (Issue #58)
- REDMINE_USE_EXTERNAL_REQUESTS environmental variable for emergency cases which allows to use external requests instead of bundled one even if external requests version is lower than the bundled one
- Wrong HTTP protocol usage detector, e.g. one use HTTP when HTTPS should be used
Improvements:
- 
ResourceSet objects were completely rewritten: - ResourceSetobject that was already sliced now supports reslicing
- ResourceSetobject's- delete(),- update(),- filter()and- get()methods have been optimized for speed
- ResourceSetobject's- delete()and- update()methods now call the corresponding Resource's- pre_*()and- post_*()methods
- ResourceSetobject's- get()and- filter()methods now supports non-integer id's, e.g. WikiPage's title can now be used with it
- ValuesResourceSetclass has been removed
- ResourceSet.values()method now returns an iterable of dicts instead of- ValuesResourceSetobject
- ResourceSet.values_list()method has been added which returns an iterable of tuples with Resource values or single values if flattened, i.e.- flat=True
 
- 
New Resourceobject methods:- delete()deletes current resource from Redmine
- pre_delete()and- post_delete()can be used to execute tasks that should be done before/after deleting the resource through- delete()method
- bulk_decode(),- bulk_encode(),- decode()and- encode()which are used to translate attributes of the resource to/from Python/Redmine
 
- 
Attachment delete()method support (requires Redmine >= 3.3.0)
- 
RedmineUP CRM Note resource now provides typeattribute which shows text representation oftype_id
- 
RedmineUP CRM DealStatus resource now provides statusattribute which shows text representation ofstatus_type
- 
WikiPage resource now provides project_idattribute
- 
Unicode handling was significantly rewritten and shouldn't cause any more troubles 
- 
UnknownErrorexception now containsstatus_codeattribute which can be used to handle the exception instead of parsing code from exception's text
- 
Sync engine's speed improved to 8-12% depending on the amount of resources fetched 
Changes:
- Renamed package name from redminetoredminelib
- Resource class attributes that were previously tuples are now lists
- _Resourceclass renamed to- Resource
- Redmine.custom_resource_pathskeyword argument renamed to- resource_paths
- Redmine.download()method now returns a requests.Response object directly instead of- iter_content()method if a- savepathparam wasn't provided, this gives user even more control over response data
- Resource.refresh()now really refreshes itself instead of returning a new refreshed resource, to get the previous behaviour use- itselfparam, e.g.- Resource.refresh(itself=False)
- Removed Python 3.2 support
- Removed container_filter,container_createandcontainer_updateattributes onResourceobject in favor ofcontainer_manyattribute
- Removed Resource.translate_params()andResourceManager.prepare_params()in favor ofResource.bulk_decode()
- Removed is_unicode(),is_string()andto_string()fromredminelib.utilities
- Updated bundled requests library to v2.13.0
Bugfixes:
- Infinite loop when uploading zero-length files (Issue #152)
- Unsupported Redmine resource error while trying to use Python-Redmine without installation (Issue #156)
- It was impossible to set data,paramsandheadersviarequestskeyword argument on Redmine object
- Calling str()orrepr()on a Resource was giving incorrect results if exception raising was turned off for a resource
Documentation: