File python-hatch-mkdocs.spec of Package python-hatch-mkdocs

#
# spec file for package python-hatch-mkdocs
#
# 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/
#


Name:           python-hatch-mkdocs
Version:        0.1.0
Release:        0
Summary:        Plugin for Hatch to infer env dependencies from mkdocsyml
License:        MIT
URL:            https://github.com/mkdocs/hatch-mkdocs
Source:         https://files.pythonhosted.org/packages/source/h/hatch-mkdocs/hatch_mkdocs-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module hatchling}
BuildRequires:  %{python_module pip}
# SECTION test requirements
BuildRequires:  %{python_module hatch >= 1.6.0}
BuildRequires:  %{python_module mkdocs-get-deps >= 0.2.0}
# /SECTION
BuildRequires:  fdupes
Requires:       python-hatch >= 1.6.0
Requires:       python-mkdocs-get-deps >= 0.2.0
BuildArch:      noarch
%python_subpackages

%description
# hatch-mkdocs

**[Hatch] plugin to integrate [MkDocs] and infer dependencies into an env**

This plugin populates [Hatch] environments with `dependencies` on the fly based on a [`mkdocs.yml`] file.

This is intended to effortlessly manage dependencies for a MkDocs site.


%prep
%autosetup -p1 -n hatch_mkdocs-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%{python_sitelib}/hatch_mkdocs
%{python_sitelib}/hatch_mkdocs-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by