-
Notifications
You must be signed in to change notification settings - Fork 4
Add check for packaging information #23
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
@FoamyGuy this is the preventative fix for the issue you encountered! |
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.
while looking at #23 I realized that this is related to an issue I saw while building documentation: for RTD, I think that docs/requirements.txt
is used. However, this CI uses the top-level requirements.txt
only.
Here's the command used by RTD:
python -m pip install --exists-action=w --no-cache-dir -r docs/requirements.txt
For the purposes of jepler_udecimal I have listed sphinx-autoapi in optional-requirements.txt as well as docs/requirements.txt, but #23 will switch the "optional" deps to install only when pytest is used. This won't affect jepler_udecimal since it does happen to contain pytest tests.
In particular, this means that essentially all of the docs built during CI will be broken, because sphinxcontrib-jquery won't be installed...
another alternative is to drop doc building from github actions and widely enable this instead: Preview documentation from pull requests
I think the documentation preview is interesting but may take some time to implement since I think every library, as it's own project, would need this enabled, and make sure it's enabled for new projects too. @kattni, what are your thoughts? I think the intention for "optional dependencies" was for either opt-in behavior (e.g., using PIL on CPython/Blinka libraries) or things used in examples (e.g., something like a Python library for interacting with Discord). In this case, I think it's worth having an unconditional install of |
@jepler is this all set for review? Please let me know if I haven't addressed anything from your last comment! |
I think I need to explain again the problem I see: In practice, the But after the CI changes here, |
I actually noticed (and fixed) in #29 the fact that the pip installations here were entirely redundant, and confirmed it by checking the CI. They actually get installed beforehand via https://github.com/adafruit/actions-ci-circuitpython-libs/blob/820e76313197a5721a966d7bd3cfc70ad8156a61/install.sh#L23-L26 so that line would also be redundant now. I believe I understand what you're saying now, but I think this means nothing should break for now. Relatedly, it may be necessary to patch the libraries to add |
Changes made, I can bring up the patch idea this Monday at the weekly meeting! Pinging @kattni in advance in case we need to go that route. |
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.
thanks for clearing that up, I appreciate it.
Thanks for helping me out with this! |
Implements fix created by adafruit/actions-ci-circuitpython-libs#19