File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 66# full list see the documentation:
77# http://www.sphinx-doc.org/en/master/config
88
9+ import os
910from pathlib import Path
1011import 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".
Original file line number Diff line number Diff line change 1111from setuptools import setup
1212import setuptools .command .build_py
1313import distutils .command .sdist
14+ import distutils .dist
1415from distutils import log
1516from pathlib import Path
1617import string
3334docstring = __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+
3646class meta (setuptools .Command ):
3747
3848 description = "generate meta files"
You can’t perform that action at this time.
0 commit comments