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

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

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

%define _unpackaged_files_terminate_build 1
%define oname dirty-validators

%def_with check

Name: python3-module-%oname
Version: 0.5.4
Release: alt1
Summary: Validate library for python 3
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/dirty-validators/

# https://github.com/alfred82santa/dirty-validators.git

Source0: %name-%version.tar
BuildArch: noarch

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3(dirty_models)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
BuildRequires: python3(nose2)
%endif

# PEP503 normalized name

%py3_provides %oname

%description
Agnostic validators for python 3.

Features:

* Python 3 package.
* Easy to create a validator.
* Chained validations.
* Conditional validations.
* Specific error control messages.
* Dirty model integration
* No database dependent.

%prep
%setup

%build
%python3_build

%install
%python3_install

%check
cat > tox.ini <<'EOF'
[testenv]
usedevelop=True
commands =
   nose2 -v
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
# requires aiounittest, nose2 doesn't support skip on module level
rm tests/dirty_validators/tests_async_complex.py
tox.py3 --sitepackages --console-scripts -vvr -s false

%files
%doc *.rst
%python3_sitelibdir/dirty_validators/
%python3_sitelibdir/dirty_validators-%version-py%_python3_version.egg-info/

%changelog

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

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