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

MAINT: Use pathlib to manage paths #83

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

MridulS
Copy link

@MridulS MridulS commented Feb 18, 2024

This is still WIP and I'm still not a 100% sure if we should do this as it seems like setuptools Extension itself doesn't really support Path objects. The src paths needs to be strings https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#setuptools.Extension

@pllim
Copy link
Member

pllim commented Feb 27, 2024

I think doc warning is related: extension_helpers/_utils.py:docstring of extension_helpers._utils.write_if_different:1: WARNING: py:class reference target not found: PathLike

@@ -86,23 +87,24 @@ def write_if_different(filename, data):

Parameters
----------
filename : str
filename : str | PathLike
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this is the root of the doc fail, this needs to be a fully qualified thing like os.PathLike or whatever it is.

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

3 participants