14
0

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
This commit is contained in:
Tomáš Chvátal
2019-02-28 14:52:48 +00:00
committed by Git OBS Bridge
commit 4e20fd0c61
6 changed files with 142 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -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,

View File

@@ -0,0 +1,37 @@
-------------------------------------------------------------------
Thu Feb 28 14:20:48 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- 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

View File

@@ -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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6a0e2cc80eb0ef4204eb1106a95dde3f88c68b726ad9b2de3d20861885cf71c4
size 64666