Группа :: Development/Python3
Пакет: python3-module-pytest-examples
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name pytest-examples
%define mod_name pytest_examples
%def_with check
Name: python3-module-%pypi_name
Version: 0.0.10
Release: alt1
Summary: Pytest plugin for testing examples in docstrings and markdown files
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/pytest-examples/
Vcs: https://github.com/pydantic/pytest-examples
BuildArch: noarch
Source0: %name-%version.tar
Source1: %pyproject_deps_config_name
%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
%if_with check
%pyproject_builddeps_metadata
%pyproject_builddeps_check
BuildRequires: python3-module-black
BuildRequires: python3-module-pytest
BuildRequires: python3-module-ruff
%endif
%description
Pytest plugin for testing Python code examples in docstrings
and markdown files.
pytest-examples can:
* lint code examples using ruff and black
* run code examples
* run code examples and check print statements are inlined correctly
in the code
It can also update code examples in place to format them and insert
or update print statements.
%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%if_with check
cat requirements/{pyproject,testing}.txt > requirements.txt
%pyproject_deps_resync_check_pipreqfile requirements.txt
%endif
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -vra
%files
%doc LICENSE README.md
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Полный changelog можно просмотреть здесь
%define pypi_name pytest-examples
%define mod_name pytest_examples
%def_with check
Name: python3-module-%pypi_name
Version: 0.0.10
Release: alt1
Summary: Pytest plugin for testing examples in docstrings and markdown files
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/pytest-examples/
Vcs: https://github.com/pydantic/pytest-examples
BuildArch: noarch
Source0: %name-%version.tar
Source1: %pyproject_deps_config_name
%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
%if_with check
%pyproject_builddeps_metadata
%pyproject_builddeps_check
BuildRequires: python3-module-black
BuildRequires: python3-module-pytest
BuildRequires: python3-module-ruff
%endif
%description
Pytest plugin for testing Python code examples in docstrings
and markdown files.
pytest-examples can:
* lint code examples using ruff and black
* run code examples
* run code examples and check print statements are inlined correctly
in the code
It can also update code examples in place to format them and insert
or update print statements.
%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%if_with check
cat requirements/{pyproject,testing}.txt > requirements.txt
%pyproject_deps_resync_check_pipreqfile requirements.txt
%endif
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -vra
%files
%doc LICENSE README.md
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Полный changelog можно просмотреть здесь