Skip to content

Commit 27227d6

Browse files
committed
Merge branch 'toolchain' into develop
2 parents 434f850 + 56685c4 commit 27227d6

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ New features
1414
:class:`icat.ingest.IngestReader` to make some prescribed values in
1515
the transformation to ICAT data file format configurable.
1616

17+
Bug fixes and minor changes
18+
---------------------------
19+
20+
+ `#162`_: Minor updates in the tool chain
21+
1722
.. _#160: https://github.com/icatproject/python-icat/issues/160
1823
.. _#161: https://github.com/icatproject/python-icat/pull/161
24+
.. _#162: https://github.com/icatproject/python-icat/pull/162
1925

2026

2127
.. _changes-1_4_0:

doc/src/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# full list see the documentation:
77
# http://www.sphinx-doc.org/en/master/config
88

9+
import os
910
from pathlib import Path
1011
import sys
1112

@@ -135,6 +136,15 @@ def make_meta_rst(last_release):
135136
#
136137
# html_theme_options = {}
137138

139+
# Define the canonical URL if you are using a custom domain on Read the Docs
140+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
141+
142+
# Tell Jinja2 templates the build is running on Read the Docs
143+
if os.environ.get("READTHEDOCS", "") == "True":
144+
if "html_context" not in globals():
145+
html_context = {}
146+
html_context["READTHEDOCS"] = True
147+
138148
# Add any paths that contain custom static files (such as style sheets) here,
139149
# relative to this directory. They are copied after the builtin static files,
140150
# so a file named "default.css" will overwrite the builtin "default.css".

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from setuptools import setup
1212
import setuptools.command.build_py
1313
import distutils.command.sdist
14+
import distutils.dist
1415
from distutils import log
1516
from pathlib import Path
1617
import string
@@ -33,6 +34,15 @@
3334
docstring = __doc__
3435

3536

37+
# Enforcing of PEP 625 has been added in setuptools 69.3.0. We don't
38+
# want this, we want to keep control on the name of the sdist
39+
# ourselves. Disable it.
40+
def _fixed_get_fullname(self):
41+
return "%s-%s" % (self.get_name(), self.get_version())
42+
43+
distutils.dist.DistributionMetadata.get_fullname = _fixed_get_fullname
44+
45+
3646
class meta(setuptools.Command):
3747

3848
description = "generate meta files"

0 commit comments

Comments
 (0)