- Version update to 1.4:

* Various py3 fixes
  * pytest for testing
- Use multibuild to run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal 2018-08-11 10:02:12 +00:00 committed by Git OBS Bridge
parent 8b3112089e
commit aa187917f3
5 changed files with 47 additions and 22 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:085d03a47fc46bb6d626ff59ad3a4439a95c213f27e9d71fe59b8d658d897a42
size 23724

3
invocations-1.4.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Aug 11 10:01:08 UTC 2018 - tchvatal@suse.com
- Version update to 1.4:
* Various py3 fixes
* pytest for testing
- Use multibuild to run tests
-------------------------------------------------------------------
Thu May 10 03:05:07 UTC 2018 - toddrme2178@gmail.com

View File

@ -1,5 +1,5 @@
#
# spec file for package python-invocations
# spec file for package python
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
@ -13,38 +13,49 @@
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-invocations
Version: 0.20.0
%global flavor @BUILD_FLAVOR@%{nil}
%bcond_with test
%if "%{flavor}" == "test"
%bcond_without test
%endif
%if %{with test}
Name: python-requests-%{flavor}
%else
Name: python-requests
%endif
Version: 1.4.0
Release: 0
License: BSD-2-Clause
Summary: Reusable Invoke tasks
Url: http://pyinvoke.org
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://pyinvoke.org
Source: https://files.pythonhosted.org/packages/source/i/invocations/invocations-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blessings >= 1.6
Requires: python-invoke >= 1.0
Requires: python-releases >= 1.2
Requires: python-semantic_version >= 2.4
Requires: python-tabulate >= 0.7.5
Requires: python-tqdm >= 4.8.1
%ifpython2
Requires: python-enum34
%endif
BuildRequires: python2-enum34
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module blessings >= 1.6}
BuildRequires: %{python_module invoke >= 0.13}
BuildRequires: %{python_module invoke >= 1.0}
BuildRequires: %{python_module releases >= 1.2}
BuildRequires: %{python_module semantic_version >= 2.4}
BuildRequires: %{python_module tabulate >= 0.7.5}
BuildRequires: %{python_module tqdm >= 4.8.1}
%endif
BuildRequires: fdupes
Requires: python-blessings >= 1.6
Requires: python-invoke >= 0.13
Requires: python-releases >= 1.2
Requires: python-semantic_version >= 2.4
Requires: python-tabulate >= 0.7.5
Requires: python-tqdm >= 4.8.1
BuildArch: noarch
%python_subpackages
%description
@ -65,8 +76,10 @@ the Invoke project's communication channels for updates. Thanks!
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check
@ -74,9 +87,10 @@ the Invoke project's communication channels for updates. Thanks!
%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst
%license LICENSE
%if !%{with test}
%{python_sitelib}/*
%endif
%changelog