From a3c5c8d518d7d33a9c91eb0eda551030e4f13be15c19dbe6eb0d290858fdc3a8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 13 Jun 2025 10:47:04 +0000 Subject: [PATCH] - Add sle15_python_module_python to support newer python3 on Leap OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-redmine?expand=0&rev=20 --- .gitattributes | 23 +++++ .gitignore | 1 + python-python-redmine.changes | 179 ++++++++++++++++++++++++++++++++++ python-python-redmine.spec | 64 ++++++++++++ python-redmine-2.5.0.tar.gz | 3 + 5 files changed, 270 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-python-redmine.changes create mode 100644 python-python-redmine.spec create mode 100644 python-redmine-2.5.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-python-redmine.changes b/python-python-redmine.changes new file mode 100644 index 0000000..5b3afb1 --- /dev/null +++ b/python-python-redmine.changes @@ -0,0 +1,179 @@ +------------------------------------------------------------------- +Wed Jun 11 20:46:04 UTC 2025 - Lubos Kocman + +- Add sle15_python_module_python to support newer python3 on Leap + +------------------------------------------------------------------- +Sun Apr 7 19:14:48 UTC 2024 - Martin Hauke + +- Update to version 2.5.0 + Deprecations: + * Requests version required >= 2.31.0 + New Features: + * Pro Edition: RedmineUP Products plugin support + * Issue copying (see docs for details) + Improvements: + * dir(resource) and list(resource) now also show properties of + an object. + * Support for issues_assigned and issues_authored relations in + User object + * 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 + invoices and expenses relation attributes. + * PerformanceWarning will 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). + * Backwards Incompatible: User all operation 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. + Bugfixes: + * Tests were failing on Python 3.12 (Issue #332). + * Some closed Issues weren't converted to Resource objects + using redmine.search(). + * Pro Edition: RedmineUP Invoice resource order attribute was + returned as a dict instead of being converted to Resource + object. + * Pro Edition: RedmineUP CrmQuery resource deals and contacts + relation attributes didn't work. + * Pro Edition: RedmineUP DealStatus resource deals relation + attribute didn't work. + Documentation: + * Mentioned support for author_id in Issue's resource filter + operation. +- Drop not longer needed patches + * 328.patch + * support-python-312.patch + +------------------------------------------------------------------- +Mon Mar 4 02:06:37 UTC 2024 - Steve Kowalik + +- Switch to pyproject and autosetup macros. +- Add patch support-python-312.patch, support Python 3.12. + +------------------------------------------------------------------- +Tue Sep 26 18:54:59 UTC 2023 - Martin Hauke + +- Add 328.patch to workaround "API key leakage on exception" + described in boo#1215722 + https://github.com/maxtepkeev/python-redmine/issues/330 + https://github.com/maxtepkeev/python-redmine/pull/328 + +------------------------------------------------------------------- +Sat Jan 21 21:29:52 UTC 2023 - Martin Hauke + +- Update to version 2.4.0 + New Features: + * Timezone support. + Improvements: + * Added support for Python 3.10, 3.11 and latest PyPy + * Added support for `allowed_statuses` to ``include`` param and + on demand includes for Issue resource. + * Added support for `issue_custom_fields` to ``include`` + param and on demand includes for Project resource. + - Added support for `comments` and `attachments` to ``include`` + param and on demand includes for News resource. + * Added support for Project ``close()``, ``reopen()``, + ``archive()``, ``unarchive()`` operations. + * Added support for updating and deleting issue journals. + Backwards Incompatible Changes: + * Switched to pytest instead of nose as nose project is dead + * 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 `ResourceAttrError` for attributes that actually + exist, but their value is `None`. + * Project resource ``default_assignee`` attribute was returned + as a dict instead of being converted to Resource object. + * Project resource ``time_entry_activities`` attribute was + returned as a list instead of being converted to ResourceSet + object. + +------------------------------------------------------------------- +Tue Apr 12 08:29:30 UTC 2022 - Markéta Machová + +- do not take python2 into account, it is long dead... and drop mock requirement + +------------------------------------------------------------------- +Sun Aug 16 21:15:30 UTC 2020 - John Vandenberg + +- Replace nose with pytest + +------------------------------------------------------------------- +Wed Aug 5 09:33:59 UTC 2020 - Marketa Calabkova + +- Update to version 2.3.0 + * Support custom filename in ``redmine.upload()`` + * Support for ``get()`` and ``update()`` operations for ``/my/account`` endpoint which doesn't require admin + privileges by using ``me`` as an id, i.e. ``redmine.user.get('me')`` or ``redmine.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 supports ``columns`` keyword 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_response`` and ``ignore_response`` parameters 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) + * *Backwards Incompatible:* Requests version required >= 2.23.0 + * *Backwards Incompatible:* Removed Python 3.4 support as it's not supported by Requests anymore +- Drop apparently obsolete python-python-redmine-use-system-requests.patch + +------------------------------------------------------------------- +Mon Apr 20 10:04:26 UTC 2020 - Tomáš Chvátal + +- Fix the runtime dependencies +- Fix build without python2 + +------------------------------------------------------------------- +Thu Feb 28 14:20:48 UTC 2019 - Martin Hauke + +- Update to version 2.2.1 + Bugfixes: + * ProjectMembership resource ``group`` attribute was returned as + a dict instead of being converted to Resource object +- Update to version 2.2.0 + Improvements: + * ``PerformanceWarning`` will 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 + * - ``Redmine.session()`` doesn't restore previous engine if fails +- Update patch: + * python-python-redmine-use-system-requests.patch + +------------------------------------------------------------------- +Wed Apr 11 20:19:05 UTC 2018 - mardnh@gmx.de + +- Use %license for license install + +------------------------------------------------------------------- +Wed Apr 11 19:26:01 UTC 2018 - mardnh@gmx.de + +- Initial package, version 2.0.2 +- Add patch: + * python-python-redmine-use-system-requests.patch diff --git a/python-python-redmine.spec b/python-python-redmine.spec new file mode 100644 index 0000000..c41ec38 --- /dev/null +++ b/python-python-redmine.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-python-redmine +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-python-redmine +Version: 2.5.0 +Release: 0 +Summary: Python library for the Redmine RESTful API +License: Apache-2.0 +URL: https://python-redmine.com +Source: https://files.pythonhosted.org/packages/source/p/python-redmine/python-redmine-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.31.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.31.0 +BuildArch: noarch +%python_subpackages + +%description +Python Redmine is a library for communicating with a Redmine +project management application. Redmine exposes some of it's data +via REST API for which Python Redmine provides a simple but +powerful Pythonic API inspired by a well-known Django ORM. + +%prep +%autosetup -p1 -n python-redmine-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest -k "not (test_engine_init or test_session_key or test_session_requests)" + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.rst README.rst +%{python_sitelib}/redminelib +%{python_sitelib}/python_redmine-%{version}.dist-info + +%changelog diff --git a/python-redmine-2.5.0.tar.gz b/python-redmine-2.5.0.tar.gz new file mode 100644 index 0000000..3ea7397 --- /dev/null +++ b/python-redmine-2.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81bdc529aaf188658e2d07488096c795d03d4e256711bfa3fa3f17b1eecc471b +size 73643