Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37532371
en ru br
ALT Linux repositórios
S:0.3.0-alt1

Group :: Development/Python3
RPM: python3-module-shiftschema

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname shiftschema

%def_without check

Name: python3-module-%oname
Version: 0.3.0
Release: alt1
Summary: Python3 filtering and validation library
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/shiftschema/

# https://github.com/projectshift/shift-schema.git

Source: %name-%version.tar
Patch: %name-%version-alt.patch

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
# bad pattern in upstream for reading its own version (self-import)
BuildRequires: python3(bleach)
BuildRequires: python3(slugify)

%if_with check
BuildRequires: python3(flask_wtf)
BuildRequires: python3(nose)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif

%description
Filtering and validation library for Python3. Can filter and validate
data in model objects and simple dictionaries with flexible schemas.

Main idea: decouple filtering and validation rules from web forms into
flexible schemas, then reuse those schemas in forms as well as apis and
cli. Model validation and filtering rules should be part of the model
and your domain logic, not your views or forms logic.

%prep
%setup
%autopatch -p1

%build
%python3_build

%install
%python3_install

%check
cat > tox.ini <<'EOF'
[testenv]
commands =
   {envbindir}/nosetests -v {posargs:tests}
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr -s false --develop

%files
%doc README.md
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009