Репозиторий Sisyphus
Последнее обновление: 23 февраля 2018 | Пакетов: 18213 | Посещений: 11018131
en ru br
Репозитории ALT
S:4.3.6-alt2.git20171213.1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-pebble

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oname pebble

%def_with python3

Name: python-module-%oname
Version: 4.3.6
Release: alt2.git20171213.1
Summary: Threading and multiprocessing eye-candy
License: LGPLv3
Group: Development/Python
BuildArch: noarch
Url: https://pypi.python.org/pypi/Pebble/

# https://github.com/noxdafox/pebble.git

Source: %name-%version.tar

BuildRequires: python-devel python-module-setuptools
BuildRequires: python-module-futures
BuildRequires: python-module-pytest
BuildRequires: /proc
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools
BuildRequires: python3-module-pytest
%endif

%py_provides %oname
%py_requires multiprocessing concurrent.futures

%description
Pebble provides a neat API to manage threads and processes within an
application.

%if_with python3
%package -n python3-module-%oname
Summary: Threading and multiprocessing eye-candy
Group: Development/Python3
%py3_provides %oname
%py3_requires multiprocessing

%description -n python3-module-%oname
Pebble provides a neat API to manage threads and processes within an
application.
%endif

%prep
%setup

%if_with python3
rm -rf ../python3
cp -a . ../python3

pushd ../python3
#fix python version for python3 tests
grep -q 'python -m pytest' ./test/run-tests.sh && \
sed -i 's/python -m pytest/python3 -m pytest/' ./test/run-tests.sh
popd
%endif

%build
%python_build_debug

%if_with python3
pushd ../python3
%python3_build_debug
popd
%endif

%install
%python_install

%if_with python3
pushd ../python3
%python3_install
popd
%endif

%check
./test/run-tests.sh

%if_with python3
pushd ../python3
./test/run-tests.sh
popd
%endif

%files
%doc *.rst doc/*.rst
%python_sitelibdir/*

%if_with python3
%files -n python3-module-%oname
%doc *.rst doc/*.rst
%python3_sitelibdir/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin