diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/entrypoint2-0.0.6.tar.gz b/entrypoint2-0.0.6.tar.gz deleted file mode 100644 index e55965a..0000000 --- a/entrypoint2-0.0.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba72a243f2a45874ac6c762f1efa4999b75d4186e3ffed2d2ac6386709c3f8ee -size 16458 diff --git a/entrypoint2-0.2.tar.gz b/entrypoint2-0.2.tar.gz new file mode 100644 index 0000000..e32736c --- /dev/null +++ b/entrypoint2-0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a49b160c452914b830135201e6db466c6bb39759ccd0c301cbb7943ab57802fd +size 12459 diff --git a/python-entrypoint2.changes b/python-entrypoint2.changes index 5a5656b..be18058 100644 --- a/python-entrypoint2.changes +++ b/python-entrypoint2.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Mar 2 16:33:16 UTC 2020 - Marketa Calabkova + +- Update to version 0.2 + * remove py34 support + * drop py35, add py38 + * few docs and test fixes +- Launch tests using multibuild + ------------------------------------------------------------------- Fri Aug 10 13:52:40 UTC 2018 - tchvatal@suse.com diff --git a/python-entrypoint2.spec b/python-entrypoint2.spec index fbcb1c9..3b718e7 100644 --- a/python-entrypoint2.spec +++ b/python-entrypoint2.spec @@ -1,7 +1,7 @@ # # spec file for package python-entrypoint2 # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,24 +12,39 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif Name: python-entrypoint2 -Version: 0.0.6 +Version: 0.2 Release: 0 Summary: Command-line interface for python modules License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/ponty/entrypoint2 -Source: https://files.pythonhosted.org/packages/source/e/entrypoint2/entrypoint2-%{version}.tar.gz +Source: https://github.com/ponty/entrypoint2/archive/%{version}.tar.gz#/entrypoint2-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-decorator BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module EasyProcess} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module decorator} +BuildRequires: %{python_module entrypoint2 = %{version}} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module path.py} +%endif %python_subpackages %description @@ -41,16 +56,27 @@ off entrypoint. # argparse is py2.6 or older sed -i -e '/argparse/d' requirements.txt +%if !%{with test} %build %python_build +%endif +%if !%{with test} %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} +%check +%python_expand nosetests-%{$python_bin_suffix} +%endif + +%if !%{with test} %files %{python_files} %license LICENSE.txt %doc README.rst %{python_sitelib}/* +%endif %changelog