Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:openSUSE:Factory:rpmlint:tests
python-pytest-examples
python-pytest-examples.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pytest-examples.spec of Package python-pytest-examples
# # spec file for package python-pytest-examples # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?sle15_python_module_pythons} Name: python-pytest-examples Version: 0.0.13 Release: 0 Summary: Pytest plugin for testing examples in docstrings and markdown files License: MIT URL: https://github.com/pydantic/pytest-examples # sdist without tests Source: https://files.pythonhosted.org/packages/source/p/pytest-examples/pytest_examples-%{version}.tar.gz BuildRequires: %{python_module black} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module ruff} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-black Requires: python-pytest Requires: python-ruff BuildArch: noarch %python_subpackages %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 %autosetup -p1 -n pytest_examples-%{version} %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} %{python_sitelib}/pytest_examples %{python_sitelib}/pytest_examples-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor