Group :: Development/Python3
RPM: python3-module-shortuuid
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname shortuuid
%def_with check
Name: python3-module-%oname
Version: 1.0.8
Release: alt1
Summary: A generator library for concise, unambiguous and URL-safe UUIDs
License: BSD
Group: Development/Python3
Url: https://pypi.org/project/shortuuid/
# Source-url: https://github.com/skorokithakis/shortuuid.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildArch: noarch
%if_with check
BuildRequires: python3(tox)
%endif
%description
A library that generates short, pretty, unambiguous unique IDs by using
an extensive, case-sensitive alphabet and omitting similar-looking
letters and numbers.
%prep
%setup
%build
%python3_build
%install
%python3_install
# strip tests
rm %buildroot%python3_sitelibdir/%oname/tests.py
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
python %oname/tests.py
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr -s false --develop
%files
%doc README.md
%_bindir/%oname
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Todas as alterações você pod ver aqui
%define oname shortuuid
%def_with check
Name: python3-module-%oname
Version: 1.0.8
Release: alt1
Summary: A generator library for concise, unambiguous and URL-safe UUIDs
License: BSD
Group: Development/Python3
Url: https://pypi.org/project/shortuuid/
# Source-url: https://github.com/skorokithakis/shortuuid.git
Source: %name-%version.tar
BuildRequires(pre): rpm-build-python3
BuildArch: noarch
%if_with check
BuildRequires: python3(tox)
%endif
%description
A library that generates short, pretty, unambiguous unique IDs by using
an extensive, case-sensitive alphabet and omitting similar-looking
letters and numbers.
%prep
%setup
%build
%python3_build
%install
%python3_install
# strip tests
rm %buildroot%python3_sitelibdir/%oname/tests.py
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
python %oname/tests.py
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr -s false --develop
%files
%doc README.md
%_bindir/%oname
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Todas as alterações você pod ver aqui