Group :: Development/Python3
RPM: python3-module-od
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname od
%def_with check
Name: python3-module-%oname
Version: 2.0.2
Release: alt1
Summary: Shorthand syntax for building OrderedDicts
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/od
# Source-url: https://pypi.io/packages/source/o/%oname/%oname-%version.tar.gz
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(repeated_test)
BuildRequires: python3(tox)
%endif
%description
Shorthand syntax for building OrderedDicts.
%prep
%setup
%build
%python3_build
%install
%python3_install
rm -f %buildroot%python3_sitelibdir/test_od.py
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
python -m unittest -v
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr --develop
%files
%doc *.rst
%python3_sitelibdir/%oname.py
%python3_sitelibdir/__pycache__/%oname.*
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Full changelog you can see here
%define oname od
%def_with check
Name: python3-module-%oname
Version: 2.0.2
Release: alt1
Summary: Shorthand syntax for building OrderedDicts
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/od
# Source-url: https://pypi.io/packages/source/o/%oname/%oname-%version.tar.gz
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(repeated_test)
BuildRequires: python3(tox)
%endif
%description
Shorthand syntax for building OrderedDicts.
%prep
%setup
%build
%python3_build
%install
%python3_install
rm -f %buildroot%python3_sitelibdir/test_od.py
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
python -m unittest -v
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr --develop
%files
%doc *.rst
%python3_sitelibdir/%oname.py
%python3_sitelibdir/__pycache__/%oname.*
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Full changelog you can see here