Группа :: Development/Python3
Пакет: python3-module-FormEncode
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name FormEncode
%def_with check
Name: python3-module-%pypi_name
Version: 2.0.1
Release: alt2
Epoch: 1
Summary: HTML form validation, generation, and convertion package for Python
License: MIT
Group: Development/Python3
URL: http://formencode.org
BuildArch: noarch
# git://github.com/formencode/formencode.git
Source0: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)
%if_with check
# install_requires=
BuildRequires: python3(six)
BuildRequires: python3(dns)
BuildRequires: python3(pytest)
BuildRequires: python3(pycountry)
%endif
# PyPI name
%py3_provides %pypi_name
%description
FormEncode validates and converts nested structures. It allows for
a declarative form of defining the validation, and decoupled processes
for filling and generating forms.
%prep
%setup
%autopatch -p1
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM.
if [ ! -d .git ]; then
git init
git config user.email author at example.com
git config user.name author
git add .
git commit -m 'release'
git tag '%version'
fi
%build
%pyproject_build
%install
%pyproject_install
# don't ship tests
rm -r %buildroot/%python3_sitelibdir/formencode/tests/
%check
%tox_create_default_config
%tox_check_pyproject
%files
%doc README.rst
%python3_sitelibdir/formencode/
%python3_sitelibdir/%pypi_name-%version.dist-info/
%changelog
…
Полный changelog можно просмотреть здесь
%define pypi_name FormEncode
%def_with check
Name: python3-module-%pypi_name
Version: 2.0.1
Release: alt2
Epoch: 1
Summary: HTML form validation, generation, and convertion package for Python
License: MIT
Group: Development/Python3
URL: http://formencode.org
BuildArch: noarch
# git://github.com/formencode/formencode.git
Source0: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)
%if_with check
# install_requires=
BuildRequires: python3(six)
BuildRequires: python3(dns)
BuildRequires: python3(pytest)
BuildRequires: python3(pycountry)
%endif
# PyPI name
%py3_provides %pypi_name
%description
FormEncode validates and converts nested structures. It allows for
a declarative form of defining the validation, and decoupled processes
for filling and generating forms.
%prep
%setup
%autopatch -p1
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM.
if [ ! -d .git ]; then
git init
git config user.email author at example.com
git config user.name author
git add .
git commit -m 'release'
git tag '%version'
fi
%build
%pyproject_build
%install
%pyproject_install
# don't ship tests
rm -r %buildroot/%python3_sitelibdir/formencode/tests/
%check
%tox_create_default_config
%tox_check_pyproject
%files
%doc README.rst
%python3_sitelibdir/formencode/
%python3_sitelibdir/%pypi_name-%version.dist-info/
%changelog
…
Полный changelog можно просмотреть здесь