Backport upstream patch for python 3.12 SafeConfigParser removal
This commit is contained in:
parent
0fede97dd6
commit
4772082664
2 changed files with 60 additions and 2 deletions
52
bokeh-pr10987-python312-configparser.patch
Normal file
52
bokeh-pr10987-python312-configparser.patch
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
From 865c54896e6158c1195e5ec8352f300cbf10920f Mon Sep 17 00:00:00 2001
|
||||
From: Bryan Van de Ven <bryan@bokeh.org>
|
||||
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 <ticon@gmx.net>
|
||||
---
|
||||
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):
|
||||
Loading…
Add table
Add a link
Reference in a new issue