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

Group :: Development/Python3
RPM: python3-module-big-O

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name big-O
%define mod_name big_o

%def_with check

Name: python3-module-%pypi_name
Version: 0.11.0
Release: alt1
Summary: Empirical estimation of time complexity from execution time
License: BSD-3-Clause
Group: Development/Python3
Url: https://pypi.org/project/big-O
VCS: https://github.com/pberkes/big_O.git
BuildArch: noarch
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
Patch: %name-%version-alt.patch
%pyproject_runtimedeps_metadata
# mapping from PyPI name
Provides: python3-module-%{pep503_name %pypi_name} = %EVR
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
%if_with check
%pyproject_builddeps_metadata
# tests deps are installed directly by pip
BuildRequires: python3-module-pytest
# tests are packaged separately
BuildRequires: python3-module-numpy-testing
%endif

%description
%pypi_name is a Python module to estimate the time complexity of Python code
from its execution time. It can be used to analyze how functions scale with
inputs of increasing size.

%prep
%setup
%autopatch -p1
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata

%build
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -ra -Wignore big_o/test

%files
%doc README.rst
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/big_O-%version.dist-info/
%exclude %python3_sitelibdir/%mod_name/test/

%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