14
0

Accepting request 781429 from home:mcalabkova:branches:devel:languages:python

- Update to version 0.2
  * remove py34 support
  * drop py35, add py38
  * few docs and test fixes
- Launch tests using multibuild

OBS-URL: https://build.opensuse.org/request/show/781429
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-entrypoint2?expand=0&rev=17
This commit is contained in:
Tomáš Chvátal
2020-03-04 10:51:54 +00:00
committed by Git OBS Bridge
parent a769fd0800
commit 8b239073e0
5 changed files with 46 additions and 8 deletions

View File

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