From fd73ad4ebf46310cf4d9e72ffd1ef17b1084afdc73ccdae994cd234ab62b3ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 11 Aug 2018 10:21:49 +0000 Subject: [PATCH] - Use github tag to get the tarball with tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=7 --- 1.4.0.tar.gz | 3 +++ invocations-1.4.0.tar.gz | 3 --- python-invocations.changes | 1 + python-invocations.spec | 25 ++++++++++++++++--------- 4 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 1.4.0.tar.gz delete mode 100644 invocations-1.4.0.tar.gz diff --git a/1.4.0.tar.gz b/1.4.0.tar.gz new file mode 100644 index 0000000..5928815 --- /dev/null +++ b/1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88d0fc74691ddd51ed26b1d09fe6647349cfba423f2b16005259acc5c9caa99c +size 41092 diff --git a/invocations-1.4.0.tar.gz b/invocations-1.4.0.tar.gz deleted file mode 100644 index df2760c..0000000 --- a/invocations-1.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0b5e8c2a62b7b4267a31ff0c2ae4544fd97dcc70ac6081400f4fb530261a07c -size 27512 diff --git a/python-invocations.changes b/python-invocations.changes index e041173..32ebbe4 100644 --- a/python-invocations.changes +++ b/python-invocations.changes @@ -5,6 +5,7 @@ Sat Aug 11 10:01:08 UTC 2018 - tchvatal@suse.com * Various py3 fixes * pytest for testing - Use multibuild to run tests +- Use github tag to get the tarball with tests ------------------------------------------------------------------- Thu May 10 03:05:07 UTC 2018 - toddrme2178@gmail.com diff --git a/python-invocations.spec b/python-invocations.spec index b884eb0..d98ac0b 100644 --- a/python-invocations.spec +++ b/python-invocations.spec @@ -18,14 +18,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} -%bcond_with test %if "%{flavor}" == "test" %bcond_without test -%endif -%if %{with test} -Name: python-invocations-%{flavor} %else -Name: python-invocations +%bcond_with test %endif Version: 1.4.0 Release: 0 @@ -33,7 +29,7 @@ Summary: Reusable Invoke tasks 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 +Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -43,18 +39,27 @@ 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 +%if %{with test} +Name: python-invocations-%{flavor} +%else +Name: python-invocations +%endif %ifpython2 Requires: python-enum34 %endif -BuildRequires: python2-enum34 -BuildArch: noarch %if %{with test} BuildRequires: %{python_module blessings >= 1.6} +BuildRequires: %{python_module invocations = %{version}} BuildRequires: %{python_module invoke >= 1.0} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest-relaxed} +BuildRequires: %{python_module pytest} 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} +BuildRequires: python2-enum34 %endif %python_subpackages @@ -83,7 +88,9 @@ the Invoke project's communication channels for updates. Thanks! %if %{with test} %check -%python_exec setup.py test +%{python_expand export PYTHONPATH=%{$python_sitelib} +py.test-%{$python_bin_suffix} +} %endif %files %{python_files}