Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37562384
en ru br
ALT Linux repos
S:3.0.0-alt1

Group :: Development/Python
RPM: python-module-anytree

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define modname anytree
%def_disable check
# broken script
%def_disable tools

Name: python-module-%modname
Version: 3.0.0
Release: alt1

Summary: Python Tree Data Structure Library
Group: Development/Python
License: Apache-2.0
Url: https://pypi.org/project/%modname
# https://github.com/c0fec0de/anytree

Source: https://pypi.io/packages/source/a/%modname/%modname-%version.tar.gz

BuildArch: noarch

BuildRequires: python3-devel rpm-build-python3 python3-module-wheel
BuildRequires: python3-module-distribute python3-module-poetry

%description
Python module to manipulate tree data structures

%package -n python3-module-%modname
Summary: Python Tree Data Structure Library
Group: Development/Python3

%description -n python3-module-%modname
Python3 module to manipulate tree data structures

%if_enabled tools
%package -n %modname-tools
Summary: Tools for %name
Group: Development/Tools

%description -n %modname-tools
Tools for %name.
%endif

%prep
%setup -n %modname-%version

%build
%pyproject_build

%install
%pyproject_install

%if_disabled tools
rm -rf %buildroot%_bindir/ebt
%endif

%if_enabled check
%check
%pyproject_run_pytest
%endif

%files -n python3-module-%modname
%doc README.rst LICENSE
%python3_sitelibdir_noarch/%{modname}*/

%if_enabled tools
%files -n %modname-tools
%_bindir/ebt
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin