Skip to content

Commit

Permalink
Guard against breaking changes in dllist
Browse files Browse the repository at this point in the history
  • Loading branch information
WardBrian committed Jan 8, 2025
1 parent 28e4156 commit 59c46eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "tinystan"
readme = "README.md"
authors = [{ "name" = "Brian Ward", "email" = "[email protected]" }]
dependencies = ["numpy", "stanio~=0.5", "dllist"]
dependencies = ["numpy", "stanio~=0.5", "dllist<2"]
requires-python = ">=3.8"
license = { text = "BSD-3-Clause" }
classifiers = ["Programming Language :: Python :: 3", "Development Status :: 4 - Beta"]
Expand Down
20 changes: 8 additions & 12 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import tinystan

most_recent_release = 'v' + tinystan.__version__
most_recent_release = "v" + tinystan.__version__
version = os.getenv("TS_DOCS_VERSION", most_recent_release)
if version == "latest":
# don't display a version number for "latest" docs
Expand All @@ -44,17 +44,13 @@
"myst_parser",
]

myst_enable_extensions = [
"substitution"
]
myst_substitutions = {
"most_recent_release" : most_recent_release
}
myst_enable_extensions = ["substitution"]
myst_substitutions = {"most_recent_release": most_recent_release}

suppress_warnings = ["myst.xref_missing"] # Julia doc generates raw html links
suppress_warnings = ["myst.xref_missing"] # Julia doc generates raw html links

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "README.md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "README.md", "languages/_*"]


# -- Options for HTML output -------------------------------------------------
Expand Down Expand Up @@ -113,7 +109,7 @@
),
"numpy": ("https://numpy.org/doc/stable/", None),
"cmdstanpy": ("https://mc-stan.org/cmdstanpy/", None),
"bridgestan" : ("https://roualdes.github.io/bridgestan/latest/", None),
"bridgestan": ("https://roualdes.github.io/bridgestan/latest/", None),
}


Expand Down Expand Up @@ -160,7 +156,7 @@
)

# replaces the headers with more appropriate levels for embedding
for f in (pathlib.Path(__file__).parent / "languages" / "_r" ).iterdir():
for f in (pathlib.Path(__file__).parent / "languages" / "_r").iterdir():
text = f.read_text()
text = re.sub(r"(#+) ", r"##\1 ", text)
f.write_text(text)
Expand Down Expand Up @@ -199,7 +195,7 @@
)
with open("./languages/js.md", "w") as f:
f.write(ret.stdout)

except Exception as e:
# fail loudly in Github Actions
if RUNNING_IN_CI:
Expand Down

0 comments on commit 59c46eb

Please sign in to comment.