commit 4e20fd0c615ccb2e9574b7ab40bbfb54ba35e4e06ebe1a60232e0425c3ba0422 Author: Tomáš Chvátal Date: Thu Feb 28 14:52:48 2019 +0000 Accepting request 680143 from home:mnhauke Initial package for pyhton-python-redmine OBS-URL: https://build.opensuse.org/request/show/680143 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-redmine?expand=0&rev=1 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-use-system-requests.patch b/python-python-redmine-use-system-requests.patch new file mode 100644 index 0000000..a527f7a --- /dev/null +++ b/python-python-redmine-use-system-requests.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index a4c6200..00d04a4 100644 +--- a/setup.py ++++ b/setup.py +@@ -42,7 +42,7 @@ setup( + long_description=open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read(), + keywords='redmine redmineup redminecrm redminelib easyredmine', + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', +- install_requires=['requests>=2.20.0'], ++ install_requires=['requests>=1.20.0'], + tests_require=tests_require, + cmdclass={'test': NoseTests}, + zip_safe=False, diff --git a/python-python-redmine.changes b/python-python-redmine.changes new file mode 100644 index 0000000..70b9e06 --- /dev/null +++ b/python-python-redmine.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +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..6fdd370 --- /dev/null +++ b/python-python-redmine.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-python-redmine +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-python-redmine +Version: 2.2.1 +Release: 0 +Summary: Python library for the Redmine RESTful API +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://python-redmine.com +Source: https://files.pythonhosted.org/packages/source/p/python-redmine/python-redmine-%{version}.tar.gz +Patch0: python-python-redmine-use-system-requests.patch +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-requests +BuildRequires: python-rpm-macros +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 +%setup -q -n python-redmine-%{version} +%patch0 -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand rm -rf %{buildroot}%{$python_sitelib}/redminelib/packages/ + +%check +%python_exec setup.py test + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.rst README.rst +%{python_sitelib}/* + +%changelog diff --git a/python-redmine-2.2.1.tar.gz b/python-redmine-2.2.1.tar.gz new file mode 100644 index 0000000..3da863b --- /dev/null +++ b/python-redmine-2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a0e2cc80eb0ef4204eb1106a95dde3f88c68b726ad9b2de3d20861885cf71c4 +size 64666