Группа :: Development/Python3
Пакет: python3-module-iso8601
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%global pypi_name iso8601
%def_with check
Name: python3-module-%pypi_name
Version: 0.1.16
Release: alt1
Summary: Simple module to parse ISO 8601 dates
Group: Development/Python3
License: MIT
Url: https://pypi.org/project/iso8601/
Source0: %name-%version.tar
BuildRequires: rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox_console_scripts)
%endif
BuildArch: noarch
%description
This module parses the most common forms of ISO 8601 date strings (e.g.
2007-01-14T20:34:22+00:00) into datetime objects.
%prep
%setup
%build
%python3_build
%install
%python3_install
# don't ship tests
rm %buildroot%python3_sitelibdir/%pypi_name/test_iso8601.py
rm %buildroot%python3_sitelibdir/%pypi_name/__pycache__/test_iso8601.cpython*
%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr -s false
%files
%doc LICENSE README.rst
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%pypi_name-%version-py%_python3_version.egg-info/
%changelog
…
Полный changelog можно просмотреть здесь
%global pypi_name iso8601
%def_with check
Name: python3-module-%pypi_name
Version: 0.1.16
Release: alt1
Summary: Simple module to parse ISO 8601 dates
Group: Development/Python3
License: MIT
Url: https://pypi.org/project/iso8601/
Source0: %name-%version.tar
BuildRequires: rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox_console_scripts)
%endif
BuildArch: noarch
%description
This module parses the most common forms of ISO 8601 date strings (e.g.
2007-01-14T20:34:22+00:00) into datetime objects.
%prep
%setup
%build
%python3_build
%install
%python3_install
# don't ship tests
rm %buildroot%python3_sitelibdir/%pypi_name/test_iso8601.py
rm %buildroot%python3_sitelibdir/%pypi_name/__pycache__/test_iso8601.cpython*
%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr -s false
%files
%doc LICENSE README.rst
%python3_sitelibdir/%pypi_name/
%python3_sitelibdir/%pypi_name-%version-py%_python3_version.egg-info/
%changelog
…
Полный changelog можно просмотреть здесь