"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "doc/source/conf.py" between
scikit-image-0.18.1.tar.gz and scikit-image-0.18.3.tar.gz

About: scikit-image is a collection of algorithms for image processing in Python.

conf.py  (scikit-image-0.18.1):conf.py  (scikit-image-0.18.3)
skipping to change at line 75 skipping to change at line 75
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
# The suffix of source filenames. # The suffix of source filenames.
source_suffix = '.rst' source_suffix = '.rst'
# The encoding of source files. # The encoding of source files.
#source_encoding = 'utf-8-sig' #source_encoding = 'utf-8-sig'
# The master toctree document. # The master toctree document.
# Changes to `root_doc` in newest versions of Sphinx (we're still on v2)
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = 'skimage' project = 'skimage'
copyright = '2013, the scikit-image team' copyright = '2013, the scikit-image team'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
# built documents. # built documents.
# #
skipping to change at line 147 skipping to change at line 148
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from packaging.version import parse from packaging.version import parse
v = parse(release) v = parse(release)
if v.release is None: if v.release is None:
raise ValueError( raise ValueError(
'Ill-formed version: {!r}. Version should follow ' 'Ill-formed version: {!r}. Version should follow '
'PEP440'.format(version)) 'PEP440'.format(version))
if v.is_devrelease: if v.is_devrelease:
binder_branch = 'master' binder_branch = 'main'
else: else:
major, minor = v.release[:2] major, minor = v.release[:2]
binder_branch = 'v{}.{}.x'.format(major, minor) binder_branch = 'v{}.{}.x'.format(major, minor)
# set plotly renderer to capture _repr_html_ for sphinx-gallery # set plotly renderer to capture _repr_html_ for sphinx-gallery
import plotly.io as pio import plotly.io as pio
pio.renderers.default = 'sphinx_gallery' pio.renderers.default = 'sphinx_gallery'
sphinx_gallery_conf = { sphinx_gallery_conf = {
'doc_module': ('skimage',), 'doc_module': ('skimage',),
skipping to change at line 444 skipping to change at line 445
except: except:
linespec = "" linespec = ""
else: else:
stop_line = start_line + len(source) - 1 stop_line = start_line + len(source) - 1
linespec = f"#L{start_line}-L{stop_line}" linespec = f"#L{start_line}-L{stop_line}"
fn = relpath(fn, start=dirname(skimage.__file__)) fn = relpath(fn, start=dirname(skimage.__file__))
if 'dev' in skimage.__version__: if 'dev' in skimage.__version__:
return ("https://github.com/scikit-image/scikit-image/blob/" return ("https://github.com/scikit-image/scikit-image/blob/"
"master/skimage/%s%s" % (fn, linespec)) "main/skimage/%s%s" % (fn, linespec))
else: else:
return ("https://github.com/scikit-image/scikit-image/blob/" return ("https://github.com/scikit-image/scikit-image/blob/"
"v%s/skimage/%s%s" % (skimage.__version__, fn, linespec)) "v%s/skimage/%s%s" % (skimage.__version__, fn, linespec))
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)