From 304f341863d99887497e3020e6d091ef6a388fb0 Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Sun, 25 Aug 2024 12:22:28 +0200 Subject: [PATCH 1/3] Disable PEP 625 enforcing added in setuptools 69.3.0 --- setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup.py b/setup.py index adf1bbf..82a2471 100755 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ from setuptools import setup import setuptools.command.build_py import distutils.command.sdist +import distutils.dist from distutils import log from pathlib import Path import string @@ -33,6 +34,15 @@ docstring = __doc__ +# Enforcing of PEP 625 has been added in setuptools 69.3.0. We don't +# want this, we want to keep control on the name of the sdist +# ourselves. Disable it. +def _fixed_get_fullname(self): + return "%s-%s" % (self.get_name(), self.get_version()) + +distutils.dist.DistributionMetadata.get_fullname = _fixed_get_fullname + + class meta(setuptools.Command): description = "generate meta files" From 6f4c2c06c2b497e04eb63a4aa78dbf4a46a293ae Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Wed, 2 Oct 2024 21:02:43 +0200 Subject: [PATCH 2/3] doc config: set html_baseurl and html_context from environment variables --- doc/src/conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/src/conf.py b/doc/src/conf.py index bd8fdc6..317e88e 100644 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -6,6 +6,7 @@ # full list see the documentation: # http://www.sphinx-doc.org/en/master/config +import os from pathlib import Path import sys @@ -135,6 +136,15 @@ def make_meta_rst(last_release): # # html_theme_options = {} +# Define the canonical URL if you are using a custom domain on Read the Docs +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") + +# Tell Jinja2 templates the build is running on Read the Docs +if os.environ.get("READTHEDOCS", "") == "True": + if "html_context" not in globals(): + html_context = {} + html_context["READTHEDOCS"] = True + # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". From 56685c47aa76406e7815c0a72f549db63a69067b Mon Sep 17 00:00:00 2001 From: Rolf Krahl Date: Wed, 9 Oct 2024 14:13:18 +0200 Subject: [PATCH 3/3] Update changelog --- CHANGES.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 8f72b56..f7bed82 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,8 +14,14 @@ New features :class:`icat.ingest.IngestReader` to make some prescribed values in the transformation to ICAT data file format configurable. +Bug fixes and minor changes +--------------------------- + ++ `#162`_: Minor updates in the tool chain + .. _#160: https://github.com/icatproject/python-icat/issues/160 .. _#161: https://github.com/icatproject/python-icat/pull/161 +.. _#162: https://github.com/icatproject/python-icat/pull/162 .. _changes-1_4_0: