Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pathlib (Part 1) #886

Merged
merged 3 commits into from
Feb 25, 2024
Merged

Use pathlib (Part 1) #886

merged 3 commits into from
Feb 25, 2024

Conversation

jdknight
Copy link
Member

This is part of an ongoing maintenance task to the implementation to use newer capabilities of Python that are supported on the oldest interpreter version this extension supports.

register message locale using pathlib

Updating the implementation to register this package's locale with
Sphinx to use pathlib instead of raw strings.

builder: manage a pathlib output directory

Updating the implementation to manage a builder member variable out_dir, which provides a path-like object instead of a string from Sphinx's outdir variable. This commit also adjusts the implementation that uses the output directory to take advantage of pathlib capabilities.

tests: use pathlib

Updating the testing implementation to use the pathlib module for all path-related operations.

Updating the implementation to register this package's locale with
Sphinx to use pathlib instead of raw strings.

This is part of an ongoing maintenance task to the implementation to use
newer capabilities of Python that are supported on the older interpreter
version this extension supports.

Signed-off-by: James Knight <james.d.knight@live.com>
Updating the implementation to manage a builder member variable
`out_dir`, which provides a path-like object instead of a string from
Sphinx's `outdir` variable. This commit also adjusts the implementation
that uses the output directory to take advantage of pathlib
capabilities.

This is part of an ongoing maintenance task to the implementation to use
newer capabilities of Python that are supported on the oldest interpreter
version this extension supports.

Signed-off-by: James Knight <james.d.knight@live.com>
Updating the testing implementation to use the pathlib module for all
path-related operations.

This is part of an ongoing maintenance task to the implementation to use
newer capabilities of Python that are supported on the oldest interpreter
version this extension supports.

Signed-off-by: James Knight <james.d.knight@live.com>
@jdknight jdknight merged commit 411aba6 into main Feb 25, 2024
29 checks passed
@jdknight jdknight deleted the use-pathlib-part1 branch February 25, 2024 23:11
@jdknight jdknight mentioned this pull request Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant