diff --git a/CHANGES.md b/CHANGES.md index fda3abb..af1c101 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,15 @@ # Release Notes +## 0.11.1 + +This release brings two fixes for `science` on Windows: ++ Previously the default `science` cache location was + `%USERPROFILE%\AppData\Local\science\science\Cache`. The redundant `science` subdirectory is now + removed, resulting in a default of `%USERPROFILE%\AppData\Local\science\Cache`. ++ The intra-site links in the local docs served via `science doc open` now work. Previously they + mistakenly contained `\` in some URL path components causing deep links to return to the home + page. + ## 0.11.0 This release brings a new `science download` family of commands for downloading `ptex` binaries, diff --git a/docs/_ext/sphinx_science/directives.py b/docs/_ext/sphinx_science/directives.py index 0ce977c..0e75090 100644 --- a/docs/_ext/sphinx_science/directives.py +++ b/docs/_ext/sphinx_science/directives.py @@ -166,7 +166,7 @@ def run(self) -> list[nodes.Node]: self.options.pop("toctree_hidden") docnames = tuple( - str(doc.write(dest_dir).relative_to(app.srcdir).with_suffix("")) + doc.write(dest_dir).relative_to(app.srcdir).with_suffix("").as_posix() for doc in doc_gen_directive.enumerate_docs( DirectiveSpec( name=doc_gen_directive_name, diff --git a/docs/providers.md b/docs/providers.md index 50f921c..fa6a7fc 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -7,7 +7,7 @@ similar small set of configuration, and then injects the file in your configurat referencable by the interpreter `id` you supply in [command](science-model-command) `#{id}` substitutions. Additionally, interpreter providers can provide keyed access to important files and binaries within the distribution archives that you can reference via `{#id:}`. The -documentation for each interpreter provider will detail both the distibution archive file keys +documentation for each interpreter provider will detail both the distribution archive file keys supported and the configuration information required. (built-in-providers)= diff --git a/science/__init__.py b/science/__init__.py index b472794..28c292a 100644 --- a/science/__init__.py +++ b/science/__init__.py @@ -3,6 +3,6 @@ from packaging.version import Version -__version__ = "0.11.0" +__version__ = "0.11.1" VERSION = Version(__version__) diff --git a/science/context.py b/science/context.py index 430eaf9..e3d0505 100644 --- a/science/context.py +++ b/science/context.py @@ -26,7 +26,7 @@ def active_context_config(config_type: type[_T]) -> _T | None: @dataclass(frozen=True) class ScienceConfig(ContextConfig): - DEFAULT_CACHE_DIR = Path(user_cache_dir("science")) + DEFAULT_CACHE_DIR = Path(user_cache_dir("science", appauthor=False)) @classmethod def active(cls) -> ScienceConfig: diff --git a/uv.lock b/uv.lock index a3b8b1a..cce1f6d 100644 --- a/uv.lock +++ b/uv.lock @@ -517,7 +517,7 @@ wheels = [ [[package]] name = "science" -version = "0.11.0" +version = "0.11.1" source = { editable = "." } dependencies = [ { name = "appdirs" }, @@ -840,11 +840,11 @@ wheels = [ [[package]] name = "types-setuptools" -version = "75.6.0.20241223" +version = "75.8.0.20250110" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/53/48/a89068ef20e3bbb559457faf0fd3c18df6df5df73b4b48ebf466974e1f54/types_setuptools-75.6.0.20241223.tar.gz", hash = "sha256:d9478a985057ed48a994c707f548e55aababa85fe1c9b212f43ab5a1fffd3211", size = 48063 } +sdist = { url = "https://files.pythonhosted.org/packages/f7/42/5713e90d4f9683f2301d900f33e4fc2405ad8ac224dda30f6cb7f4cd215b/types_setuptools-75.8.0.20250110.tar.gz", hash = "sha256:96f7ec8bbd6e0a54ea180d66ad68ad7a1d7954e7281a710ea2de75e355545271", size = 48185 } wheels = [ - { url = "https://files.pythonhosted.org/packages/41/2f/051d5d23711209d4077d95c62fa8ef6119df7298635e3a929e50376219d1/types_setuptools-75.6.0.20241223-py3-none-any.whl", hash = "sha256:7cbfd3bf2944f88bbcdd321b86ddd878232a277be95d44c78a53585d78ebc2f6", size = 71377 }, + { url = "https://files.pythonhosted.org/packages/cf/a3/dbfd106751b11c728cec21cc62cbfe7ff7391b935c4b6e8f0bdc2e6fd541/types_setuptools-75.8.0.20250110-py3-none-any.whl", hash = "sha256:a9f12980bbf9bcdc23ecd80755789085bad6bfce4060c2275bc2b4ca9f2bc480", size = 71521 }, ] [[package]]