python-mkdocs-material/no-hatchling-requirements_txt.patch
Matej Cepl eeb193a825 - Add no-hatchling-requirements_txt.patch, which 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mkdocs-material?expand=0&rev=2
2023-03-28 08:43:01 +00:00

42 lines
909 B
Diff

---
pyproject.toml | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
--- 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.7"
classifiers = [
@@ -72,9 +83,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"]