15
0

- Install license file

- Make sure we run unittests
- State out all the requirements from setup.py and friends
- Drop not really required devel dependency

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-amqpstorm?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2018-08-29 13:49:18 +00:00
committed by Git OBS Bridge
parent 686837f77d
commit 7823bf477e
3 changed files with 42 additions and 3 deletions

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014-2017 Erik Olof Gunnar Andersson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Aug 29 13:47:38 UTC 2018 - tchvatal@suse.com
- Install license file
- Make sure we run unittests
- State out all the requirements from setup.py and friends
- Drop not really required devel dependency
-------------------------------------------------------------------
Tue Aug 28 22:14:56 UTC 2018 - sean.marlow@suse.com

View File

@@ -26,12 +26,17 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/eandersson/amqpstorm
Source: https://files.pythonhosted.org/packages/source/A/AMQPStorm/AMQPStorm-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pamqp}
Source1: https://raw.githubusercontent.com/eandersson/amqpstorm/master/LICENSE
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose-timer}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pamqp >= 1.6.1}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pamqp
Requires: python-pamqp >= 1.6.1
Requires: python-requests
BuildArch: noarch
%python_subpackages
@@ -44,6 +49,7 @@ When using a SSL connection, TLSv1 or higher is required.
%prep
%setup -q -n AMQPStorm-%{version}
cp %{SOURCE1} .
%build
%python_build
@@ -53,7 +59,11 @@ When using a SSL connection, TLSv1 or higher is required.
%python_expand %fdupes %{buildroot}%{$python_sitelib}/amqpstorm
%python_expand %fdupes %{buildroot}%{$python_sitelib}/examples
%check
%python_expand nosetests-%{$python_bin_suffix} amqpstorm/tests/unit
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*