diff --git a/bokeh-pr10987-python312-configparser.patch b/bokeh-pr10987-python312-configparser.patch new file mode 100644 index 0000000..43a4737 --- /dev/null +++ b/bokeh-pr10987-python312-configparser.patch @@ -0,0 +1,52 @@ +From 865c54896e6158c1195e5ec8352f300cbf10920f Mon Sep 17 00:00:00 2001 +From: Bryan Van de Ven +Date: Tue, 2 Mar 2021 21:53:55 -0800 +Subject: [PATCH] Bryanv/2 3 1 forwardports (#10987) + +* Add missing comma in example code (#10973) + +* update to versioneer 0.19 (#10969) + +* update to versioneer 0.19 + +* unused loop var + +* Add note re. Chrome/MacOS bug (#10964) + +* Add note re. Chrome/MacOS bug + +* Make wording consistent with preceding paragraph + +* Link to GH issue + +* Add information about Bokeh channel for installation (#10953) + +* Add info about Bokeh channel on Anaconda + +* Add info on new releases + +Co-authored-by: Timo Cornelius Metzger +--- + bokeh/_version.py | 65 ++--- + bokeh/models/widgets/inputs.py | 8 + + .../source/docs/first_steps/first_steps_9.rst | 2 +- + .../source/docs/first_steps/installation.rst | 8 + + versioneer.py | 234 ++++++++++-------- + 5 files changed, 188 insertions(+), 129 deletions(-) + +diff --git a/versioneer.py b/versioneer.py +index 60e4efb714f..eaf1aba67bd 100644 +--- a/versioneer.py ++++ b/versioneer.py +@@ -337,9 +331,9 @@ def get_config_from_root(root): + # configparser.NoOptionError (if it lacks "VCS="). See the docstring at + # the top of versioneer.py for instructions on writing your setup.cfg . + setup_cfg = os.path.join(root, "setup.cfg") +- parser = configparser.SafeConfigParser() ++ parser = configparser.ConfigParser() + with open(setup_cfg, "r") as f: +- parser.readfp(f) ++ parser.read_file(f) + VCS = parser.get("versioneer", "VCS") # mandatory + + def get(parser, name): diff --git a/python-bokeh.spec b/python-bokeh.spec index c80d02b..0104f81 100644 --- a/python-bokeh.spec +++ b/python-bokeh.spec @@ -13,7 +13,7 @@ and data applications.} Name: python-%{pypi_name} Version: 2.3.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Interactive plots and applications in the browser from Python # License breakdown: licensecheck -r . | sed '/UNKNOWN/ d' | sort -t ':' -k 2 @@ -65,6 +65,9 @@ URL: https://github.com/bokeh/bokeh Source0: %pypi_source # Read package-lock.json and general list of bundled runtime libraries their versions Source1: parse-deps.py +# From https://github.com/bokeh/bokeh/commit/865c54896e6158c1195e5ec8352f300cbf10920f +# https://github.com/bokeh/bokeh/pull/10987 +Patch0: bokeh-pr10987-python312-configparser.patch BuildArch: noarch @@ -192,7 +195,7 @@ BuildRequires: %{py3_dist typing_extensions} >= 3.7.4 %description -n python3-%{pypi_name} %_description %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 rm -rf %{pypi_name}.egg-info %build @@ -219,6 +222,9 @@ rm -f %{buildroot}/%{python3_sitelib}/bokeh/server/static/.keep %{python3_sitelib}/%{pypi_name} %changelog +* Tue Jul 25 2023 Mamoru TASAKA - 2.3.0-10 +- Backport upstream patch for python 3.12 SafeConfigParser removal + * Fri Jul 21 2023 Fedora Release Engineering - 2.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild