From 8629e9877bef2802c138b82010ae5e432bc10596 Mon Sep 17 00:00:00 2001 From: li-miaomiao_zhr Date: Mon, 26 Jun 2023 15:27:56 +0800 Subject: [PATCH] add dependency of python-hatch-fancy-pypi-readme --- 0001-add-annotation.patch | 45 --------------------------------------- python-black.spec | 8 ++++--- 2 files changed, 5 insertions(+), 48 deletions(-) delete mode 100644 0001-add-annotation.patch diff --git a/0001-add-annotation.patch b/0001-add-annotation.patch deleted file mode 100644 index 2cd24fa..0000000 --- a/0001-add-annotation.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 48b4765d34428ae22f6a285d5d58a4730826a1bf Mon Sep 17 00:00:00 2001 -From: li-miaomiao_zhr -Date: Fri, 16 Jun 2023 15:17:13 +0800 -Subject: [PATCH] add annotation - ---- - pyproject.toml | 15 ++++++++------- - 1 file changed, 8 insertions(+), 7 deletions(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 435626a..8e76868 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -26,7 +26,8 @@ preview = true - # NOTE: You don't need this in your own Black configuration. - - [build-system] --requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"] -+#requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"] -+requires = ["hatchling>=1.8.0", "hatch-vcs"] - build-backend = "hatchling.build" - - [project] -@@ -93,12 +94,12 @@ blackd = "blackd:patched_main [d]" - Changelog = "https://github.com/psf/black/blob/main/CHANGES.md" - Homepage = "https://github.com/psf/black" - --[tool.hatch.metadata.hooks.fancy-pypi-readme] --content-type = "text/markdown" --fragments = [ -- { path = "README.md" }, -- { path = "CHANGES.md" }, --] -+#[tool.hatch.metadata.hooks.fancy-pypi-readme] -+#content-type = "text/markdown" -+#fragments = [ -+# { path = "README.md" }, -+# { path = "CHANGES.md" }, -+#] - - [tool.hatch.version] - source = "vcs" --- -2.39.1 - diff --git a/python-black.spec b/python-black.spec index bb4cc0b..7f6f084 100644 --- a/python-black.spec +++ b/python-black.spec @@ -1,6 +1,6 @@ Name: python-black Version: 23.3.0 -Release: 1 +Release: 2 Summary: The uncompromising code formatter License: MIT URL: https://github.com/psf/black @@ -15,10 +15,9 @@ BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm BuildRequires: python3-pip BuildRequires: python3-wheel -BuildRequires: python3-editables BuildRequires: python3-hatch-vcs BuildRequires: python3-hatchling -Patch0: 0001-add-annotation.patch +BuildRequires: python3-hatch-fancy-pypi-readme %global _description %{expand: Black is the uncompromising Python code formatter. By using it, you agree to @@ -65,5 +64,8 @@ done %{python3_sitelib}/blib2to3/* %changelog +* Mon Jun 26 2023 li-miaomiao_zhr - 23.3.0-2 +- add dependency of python-hatch-fancy-pypi-readme + * Wed Jun 7 2023 li-miaomiao_zhr - 23.3.0-1 - fix issue:add package python-black of version 23.3.0 to warehouse of src-openEuler