14
0
2025-10-01 08:47:45 +00:00
committed by Git OBS Bridge
commit 6d6e715aa5
8 changed files with 1368 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
_service Normal file
View File

@@ -0,0 +1,3 @@
<services>
<service name="download_files" mode="manual"/>
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1f84d21ec5fb730673c4259b2e0d39f8d32a3fef613e3a8e7094b012d43e790
size 4037822

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b01aa6d2731322438056f360f0e623d3faae981f8f2d8c68b1b973f4f2657870
size 4043097

View File

@@ -0,0 +1,52 @@
From 09647236257c0c6f9f645c7cd136f75403b24b82 Mon Sep 17 00:00:00 2001
From: Johannes Kastl <kastl@b1-systems.de>
Date: Tue, 12 Sep 2023 07:40:26 +0200
Subject: [PATCH] pyproject.toml: remove requirement for hatchling
Created my Matej Cepl!
---
pyproject.toml | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 99a8691ee..b861b4e90 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,12 +30,23 @@ build-backend = "hatchling.build"
name = "mkdocs-material"
dynamic = [
"version",
- "dependencies",
"license",
"description",
"authors",
"keywords"
]
+dependencies = [
+ "jinja2>=3.0",
+ "markdown>=3.2",
+ "mkdocs>=1.4.2",
+ "mkdocs-material-extensions>=1.1",
+ "pygments>=2.14",
+ "pymdown-extensions>=9.9.1",
+ "colorama>=0.4",
+ "regex>=2022.4.24",
+ "requests>=2.26"
+]
+
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
@@ -74,9 +85,6 @@ source = "nodejs"
[tool.hatch.metadata.hooks.nodejs]
fields = ["license", "description", "authors", "keywords", "urls"]
-[tool.hatch.metadata.hooks.requirements_txt]
-filename = "requirements.txt"
-
[tool.hatch.build.targets.wheel]
include = ["/material"]
--
2.42.0

File diff suppressed because it is too large Load Diff

101
python-mkdocs-material.spec Normal file
View File

@@ -0,0 +1,101 @@
#
# spec file for package python-mkdocs-material
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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-mkdocs-material
Version: 9.6.21
Release: 0
Summary: Material theme for mkdocs
License: MIT
URL: https://squidfunk.github.io/mkdocs-material/
Source: https://files.pythonhosted.org/packages/source/m/mkdocs_material/mkdocs_material-%{version}.tar.gz
# PATCH-FIX-OPENSUSE no-hatchling-requirements_txt.patch mcepl@suse.com
# Manually create project.dependencies in pyproject.toml instead of using
# hatch_requirements_txt module
# This is a brutal hack, but otherwise (see sr#1072844 for
# details) we need python-hatch_requirements_txt which pulls in
# excessive number of packages (starting with python-conincidence,
# python-whey, python-domdf-python-tools, and many others). Until
# we have these in openSUSE, we should stay with this
# hand-managed patch.
Patch0: no-hatchling-requirements_txt.patch
BuildRequires: %{python_module hatch_nodejs_version}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module trove-classifiers >= 2023.10.18}
# Requirements for core
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L21
BuildRequires: %{python_module Jinja2 >= 3.1}
BuildRequires: %{python_module Markdown >= 3.4}
BuildRequires: %{python_module click}
BuildRequires: %{python_module mkdocs >= 1.6 with %python-mkdocs < 2}
BuildRequires: %{python_module mkdocs-material-extensions >= 1.3}
BuildRequires: %{python_module pygments >= 2.16}
BuildRequires: %{python_module pymdown-extensions >= 10.3}
# Requirements for plugins
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L29
BuildRequires: %{python_module Babel >= 2.10}
BuildRequires: %{python_module backrefs >= 5.8}
BuildRequires: %{python_module colorama >= 0.4}
BuildRequires: %{python_module paginate >= 0.5}
BuildRequires: %{python_module requests >= 2.31}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# Requirements for core
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L21
Requires: python-Jinja2 >= 3.1
Requires: python-Markdown >= 3.4
Requires: python-click
Requires: python-mkdocs-material-extensions >= 1.1
Requires: python-pygments >= 2.16
Requires: python-pymdown-extensions >= 10.3
Requires: (python-mkdocs >= 1.6 with python-mkdocs < 2)
# Requirements for plugins
# https://github.com/squidfunk/mkdocs-material/blob/master/requirements.txt#L29
Requires: python-Babel >= 2.10
Requires: python-backrefs >= 5.8
Requires: python-colorama >= 0.4
Requires: python-paginate >= 0.5
Requires: python-requests >= 2.31
BuildArch: noarch
%python_subpackages
%description
Material theme for mkdocs
%prep
%autosetup -p1 -n mkdocs_material-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# no tests available upstream
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/material/
%{python_sitelib}/mkdocs_material-%{version}.dist-info/
%changelog