From 24639aeb959ba0ed514b6093941bc0d6d57178d5 Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Thu, 16 Nov 2023 16:05:37 +0800 Subject: [PATCH 1/2] Add python_requires Signed-off-by: zhang-liang-pengkun --- 0001-Add-python_requires.patch | 24 ++++++++++++++++++++++++ python-sphinx-theme-alabaster.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 0001-Add-python_requires.patch diff --git a/0001-Add-python_requires.patch b/0001-Add-python_requires.patch new file mode 100644 index 0000000..a9d5eac --- /dev/null +++ b/0001-Add-python_requires.patch @@ -0,0 +1,24 @@ +From b23b4dc9b23fe89e0f6594b503cf354f9aa07931 Mon Sep 17 00:00:00 2001 +From: Jeff Forcier +Date: Thu, 12 Jan 2023 22:11:45 -0500 +Subject: [PATCH] Add python_requires + +--- + setup.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/setup.py b/setup.py +index 9393391..6833b0e 100644 +--- a/setup.py ++++ b/setup.py +@@ -24,6 +24,7 @@ setup( + packages=["alabaster"], + include_package_data=True, + entry_points={"sphinx.html_themes": ["alabaster = alabaster"]}, ++ python_requires=">=3.6", + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", +-- +2.39.0.windows.2 + diff --git a/python-sphinx-theme-alabaster.spec b/python-sphinx-theme-alabaster.spec index 230a3fe..833e2e8 100644 --- a/python-sphinx-theme-alabaster.spec +++ b/python-sphinx-theme-alabaster.spec @@ -1,6 +1,6 @@ name: python-sphinx-theme-alabaster Version: 0.7.12 -Release: 6 +Release: 7 Summary: Configurable sidebar-enabled Sphinx theme License: BSD @@ -8,6 +8,7 @@ URL: https://pypi.python.org/pypi/alabaster Source0: https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f83c4d5463a7614cb1d078ad7ae890c9143edebbf072/alabaster-0.7.12.tar.gz Patch0001: update-LICENSE-newyear.patch Patch0002: Declare-support-for-Python-3_8+only.patch +Patch0003: 0001-Add-python_requires.patch BuildArch: noarch @@ -50,6 +51,9 @@ rm -rf alabaster.egg-info %changelog +* Thu Nov 16 2023 zhangliangpengkun - 0.7.12-7 +- Add python_requires + * Mon Jan 9 2023 zhangliangpengkun - 0.7.12-6 - Declare support for Python 3.8+ only -- Gitee From 1ae8317d2a7a301eb314aeb1d3c36295a2c0c2ef Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Thu, 23 Nov 2023 19:27:16 +0800 Subject: [PATCH 2/2] Nix setup.cfg Signed-off-by: zhang-liang-pengkun --- 0002-Nix-setup.cfg.patch | 30 ++++++++++++++++++++++++++++++ python-sphinx-theme-alabaster.spec | 6 +++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0002-Nix-setup.cfg.patch diff --git a/0002-Nix-setup.cfg.patch b/0002-Nix-setup.cfg.patch new file mode 100644 index 0000000..1a50ae4 --- /dev/null +++ b/0002-Nix-setup.cfg.patch @@ -0,0 +1,30 @@ +From c284cff00bfb15f6a912384dad75ad1146c8a186 Mon Sep 17 00:00:00 2001 +From: Jeff Forcier +Date: Thu, 12 Jan 2023 22:14:36 -0500 +Subject: [PATCH] Nix setup.cfg + +--- + setup.cfg => .flake8 | 6 ------ + 1 file changed, 6 deletions(-) + rename setup.cfg => .flake8 (53%) + +diff --git a/setup.cfg b/.flake8 +similarity index 53% +rename from setup.cfg +rename to .flake8 +index 04af7cb..fbcb0b2 100644 +--- a/setup.cfg ++++ b/.flake8 +@@ -1,9 +1,3 @@ +-[bdist_wheel] +-universal = 1 +- +-[metadata] +-license_file = LICENSE +- + [flake8] + ignore = E124,E125,E128,E261,E301,E302,E303 + max-line-length = 79 +-- +2.39.0.windows.2 + diff --git a/python-sphinx-theme-alabaster.spec b/python-sphinx-theme-alabaster.spec index 833e2e8..16ad980 100644 --- a/python-sphinx-theme-alabaster.spec +++ b/python-sphinx-theme-alabaster.spec @@ -1,6 +1,6 @@ name: python-sphinx-theme-alabaster Version: 0.7.12 -Release: 7 +Release: 8 Summary: Configurable sidebar-enabled Sphinx theme License: BSD @@ -9,6 +9,7 @@ Source0: https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f8 Patch0001: update-LICENSE-newyear.patch Patch0002: Declare-support-for-Python-3_8+only.patch Patch0003: 0001-Add-python_requires.patch +Patch0004: 0002-Nix-setup.cfg.patch BuildArch: noarch @@ -51,6 +52,9 @@ rm -rf alabaster.egg-info %changelog +* Thu Nov 23 2023 zhangliangpengkun - 0.7.12-8 +- Nix setup.cfg + * Thu Nov 16 2023 zhangliangpengkun - 0.7.12-7 - Add python_requires -- Gitee