Group :: Development/Python3
RPM: python3-module-rebulk
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname rebulk
%def_with check
Name: python3-module-%oname
Version: 3.2.0
Release: alt1
Summary: Rebulk - define simple search patterns in bulk to perform advanced matching on any string
License: MIT
Group: Development/Python3
BuildArch: noarch
Url: https://pypi.org/project/rebulk/
# https://github.com/Toilal/rebulk.git
Source: %name-%version.tar
Patch: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif
%description
ReBulk is a python library that performs advanced searches in strings
that would be hard to implement using re module or String methods only.
It includes some features like Patterns, Match, Rule that allows developers
to build a custom and complex string matcher using a readable and extendable API.
%prep
%setup
%autopatch -p1
%build
%python3_build
%install
%python3_install
%check
cat > tox.ini <<'EOF'
[testenv]
usedevelop=True
commands =
{envbindir}/pytest {posargs:-vra}
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr -s false
%files
%doc *.md
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%exclude %python3_sitelibdir/*/test
%changelog
…
Todas as alterações você pod ver aqui
%define oname rebulk
%def_with check
Name: python3-module-%oname
Version: 3.2.0
Release: alt1
Summary: Rebulk - define simple search patterns in bulk to perform advanced matching on any string
License: MIT
Group: Development/Python3
BuildArch: noarch
Url: https://pypi.org/project/rebulk/
# https://github.com/Toilal/rebulk.git
Source: %name-%version.tar
Patch: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif
%description
ReBulk is a python library that performs advanced searches in strings
that would be hard to implement using re module or String methods only.
It includes some features like Patterns, Match, Rule that allows developers
to build a custom and complex string matcher using a readable and extendable API.
%prep
%setup
%autopatch -p1
%build
%python3_build
%install
%python3_install
%check
cat > tox.ini <<'EOF'
[testenv]
usedevelop=True
commands =
{envbindir}/pytest {posargs:-vra}
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr -s false
%files
%doc *.md
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%exclude %python3_sitelibdir/*/test
%changelog
…
Todas as alterações você pod ver aqui