-
Notifications
You must be signed in to change notification settings - Fork 10
Refactor installation to use pyproject.toml #53
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
Conversation
- Instead of dynamically generating the header stubs, include them in the repository. - Switch from lintball to pre-commit - Add contribution guidelines and notes.
e2659d9
to
7d5c414
Compare
@touilleMan I migrated the project to using Part of doing this meant getting rid of the custom setup.py which generated the header stubs. So instead, the stubs are now included in the repository. Since that is a lot of files, I have split the commits so it is easier to review: |
@elijahr have you documented the way those stubs have been generated ? I think I would be beneficial to have a README in the stubs directory do explain that (or even have a script to automate the re-generation, but I might be overkill). Also, I guess this doesn't fix the infamous #48 since autopxd still need the C compiler to do the preprocessing of C code, right ? |
Good point about adding a note about regenrating the stubs. I generated them with code from the old setup.py script, removed in this PR, but based on your suggestion I have created a regenerate_stubs.py script and added a section to the README about the stubs. See 4699a41. @touilleMan I don't think this fixes #48, no. |
pyproject.toml
Outdated
"Programming Language :: C", | ||
"Programming Language :: C++", | ||
] | ||
dependencies = ["Click", "pycparser", "setuptools", "wheel"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still depend on setuptools ?
I would say this is only the case since we use pkg_resources
, however it is considered is deprecated and importlib.resources
/importlib.metadata
is advised to be used instead.
(This PR is big enough, if you agree with this change we may want to open an issue for now, and solve it later in a separated PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was easy enough to do: ae0fe7a
lintball
topre-commit
.