From 0a93e023fb02d84f1f0e104ef7cb856f3812aff6 Mon Sep 17 00:00:00 2001 From: Andy Foston Date: Mon, 23 Dec 2024 14:56:55 +0000 Subject: [PATCH 1/4] Stop using deprecated SafeConfigParser --- versioneer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioneer.py b/versioneer.py index a287060..fcd62f7 100644 --- a/versioneer.py +++ b/versioneer.py @@ -339,7 +339,7 @@ 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) VCS = parser.get("versioneer", "VCS") # mandatory From 0e08dfb33aead253d1827db94b28cceb908d2035 Mon Sep 17 00:00:00 2001 From: Andy Foston Date: Mon, 23 Dec 2024 15:23:41 +0000 Subject: [PATCH 2/4] Fix Sphinx doc generation for Python 3.11 --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 0746768..da00b41 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -121,7 +121,7 @@ # Output file base name for HTML help builder. htmlhelp_basename = 'ssh-pythondoc' -intersphinx_mapping = {'https://docs.python.org/': None} +intersphinx_mapping = {'python': ('https://docs.python.org/', None)} autoclass_content = "both" # A list of files that should not be packed into the epub file. From 535671bb80933851c5852cf98edbcf6b5f2afe61 Mon Sep 17 00:00:00 2001 From: Andy Foston Date: Mon, 23 Dec 2024 15:50:18 +0000 Subject: [PATCH 3/4] Add test workflow for Python 3.12 --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 515f5db..466fa0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -145,6 +145,7 @@ workflows: - "3.8" - "3.9" - "3.11" + - "3.12" filters: tags: ignore: /.*/ From e55369e733bd51e1ca5b3c8eae5456d762d3e963 Mon Sep 17 00:00:00 2001 From: Andy Foston Date: Mon, 23 Dec 2024 15:55:47 +0000 Subject: [PATCH 4/4] Replace deprecated readfp with read_file --- versioneer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versioneer.py b/versioneer.py index fcd62f7..eafcdac 100644 --- a/versioneer.py +++ b/versioneer.py @@ -341,7 +341,7 @@ def get_config_from_root(root): setup_cfg = os.path.join(root, "setup.cfg") 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):