Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37699556
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-simplegeneric

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

%global modname simplegeneric

Name:           python3-module-%{modname}
Version:        0.8.1
Release:        alt3
Summary:        Simple generic functions (similar to Python's own len(), pickle.dump(), etc.)

Group:          Development/Python3
License:        Python or ZPLv2.1
URL:            http://cheeseshop.python.org/pypi/simplegeneric
Source0:        %{modname}-%{version}.zip

BuildArch:      noarch
BuildRequires:  unzip
BuildRequires:  rpm-build-python3
BuildRequires:  python-tools-2to3

%description
The simplegeneric module lets you define simple single-dispatch generic
functions, akin to Python's built-in generic functions like len(), iter() and
so on. However, instead of using specially-named methods, these generic
functions use simple lookup tables, akin to those used by e.g. pickle.dump()
and other generic functions found in the Python standard library.

%prep
%setup -n %{modname}-%{version}

   2to3 --write --nobackups .
   sed -i "s/file(/open(/g" setup.py
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%python3_build

%install
%python3_install

%check
PYTHONPATH=$(pwd) %{__python3} setup.py test

%files
%doc README.txt
%{python3_sitelibdir}/__pycache__/simplegeneric.cpython*
%{python3_sitelibdir}/simplegeneric.py*
%{python3_sitelibdir}/simplegeneric-%version-py%_python3_version.egg-info

%changelog

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

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