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 2) #889

Merged
merged 9 commits into from
Feb 27, 2024
Merged

Use pathlib (Part 2) #889

merged 9 commits into from
Feb 27, 2024

Conversation

jdknight
Copy link
Member

This is a continuation of effort done by #886. This completes the desired effort at utilizing the pathlib module for various path-related capabilities. This also has the bonus of removing all path-related warnings generated when using ruff (ideally, later to be used by default over other linters).

  • adjust mainline args to use pathlib
  • logger: manage tracefile using pathlib
  • util: update context-supported temp_dir to use pathlib
  • translator: adjust doc-path processing (internal links) to use pathlib
  • transmute: adjust sphinx-toolbox docname mocking to use pathlib
  • adjust search/index page processing to use pathlib
  • adjust asset processing to use pathlib
  • adjust configuration processing to use pathlib

Updating the working directory and output directory arguments to be
processed as Path types instead of strings.

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>
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>
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>
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>
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>
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>
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>
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>
Sphinx's `guess_mimetype` for v6.1.x series requires a string type
value (i.e. not a path-like object). Adding an explicit cast while we
still support this version.

Signed-off-by: James Knight <james.d.knight@live.com>
@jdknight jdknight merged commit 7106029 into main Feb 27, 2024
29 checks passed
@jdknight jdknight deleted the use-pathlib-part2 branch February 27, 2024 02:49
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.

1 participant