forked from pool/python-bashate
Accepting request 1277214 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277214 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bashate?expand=0&rev=21
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 13 16:19:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 27 22:06:14 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bashate
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -28,16 +28,18 @@ URL: https://pypi.org/project/bashate/
|
||||
Source: https://files.pythonhosted.org/packages/source/b/bashate/bashate-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Babel >= 0.9.6}
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module testtools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# OpenStack package: stestr is only available for primary python3, only test on this flavor
|
||||
BuildRequires: python3-stestr
|
||||
Requires: python-Babel >= 0.9.6
|
||||
Requires: python-pbr
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-argparse
|
||||
@@ -60,16 +62,16 @@ and will continue to evolve over time.
|
||||
%setup -q -n bashate-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/bashate
|
||||
%{python_expand #
|
||||
rm -rf %{buildroot}%{$python_sitelib}/bashate/tests
|
||||
sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/bashate/bashate.py
|
||||
}
|
||||
%python_compileall
|
||||
%{python_compileall}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -85,6 +87,7 @@ python3 -m stestr.cli run
|
||||
%license LICENSE
|
||||
%doc AUTHORS README.rst ChangeLog
|
||||
%python_alternative %{_bindir}/bashate
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/bashate
|
||||
%{python_sitelib}/bashate-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user