Репозиторий Sisyphus
Последнее обновление: 22 сентября 2019 | Пакетов: 17472 | Посещений: 15143230
en ru br
Репозитории ALT
S:0.7.1-alt2
5.1: 0.5.12-alt1
www.altlinux.org/Changes

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

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

%define version 0.7.1
%define release alt2
%setup_python_module Epsilon

%def_with python3

%define oname Epsilon
Name: %packagename
Version: %version
Release: %release
BuildArch: noarch

Summary: A set of utility modules used by Divmod projects
License: MIT
Group: Development/Python
Url: https://pypi.python.org/pypi/Epsilon/

Source: http://divmod.org/trac/attachment/wiki/SoftwareReleases/%oname-%version.tar.gz
Patch1: %oname-0.7.0-alt-python3.patch
Patch2: %oname-%version-alt-python3-compat.patch

BuildRequires: python-module-pycrypto python-module-setuptools python-module-wx
BuildRequires: python-modules-json
BuildRequires: python-module-twisted-core-test
%if_with python3
BuildPreReq: rpm-build-python3
BuildRequires: python3-module-cryptography python3-module-zope
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-twisted-core-test
%endif

%description
A small utility package that depends on tools too recent for Twisted
(like datetime in python2.4) but performs generic enough functions that
it can be used in projects that don't want to share Divmod's other
projects' large footprint.

Currently included:

   * A powerful date/time formatting and import/export class
   (ExtimeDotTime), for exchanging date and time information between
   all Python's various ways to interpret objects as times or time
   deltas.
   * Tools for managing concurrent asynchronous processes within Twisted.
   * A metaclass which helps you define classes with explicit states.
   * A featureful Version class.
   * A formal system for application of monkey-patches.

%package -n python3-module-%oname
Summary: A set of utility modules used by Divmod projects
Group: Development/Python3

%description -n python3-module-%oname
A small utility package that depends on tools too recent for Twisted
(like datetime in python2.4) but performs generic enough functions that
it can be used in projects that don't want to share Divmod's other
projects' large footprint.

Currently included:

   * A powerful date/time formatting and import/export class
   (ExtimeDotTime), for exchanging date and time information between
   all Python's various ways to interpret objects as times or time
   deltas.
   * Tools for managing concurrent asynchronous processes within Twisted.
   * A metaclass which helps you define classes with explicit states.
   * A featureful Version class.
   * A formal system for application of monkey-patches.

%prep
%setup -n %oname-%version

%patch1 -p2
%patch2 -p2

%if_with python3
cp -fR . ../python3
find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' +
%endif

%build
%python_build

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

%install
%python_install

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

%check
py.test ||:

%if_with python3
pushd ../python3
py.test3 ||:
popd
%endif

%files
%python_sitelibdir/Epsilon-*.egg-info
%python_sitelibdir/epsilon
%doc *.txt LICENSE README

%exclude %_bindir/certcreate
%exclude %_bindir/benchmark

%if_with python3
%files -n python3-module-%oname
%python3_sitelibdir/Epsilon-*.egg-info
%python3_sitelibdir/epsilon
%doc *.txt LICENSE README
%endif

%changelog

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

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