-
Notifications
You must be signed in to change notification settings - Fork 41
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
Build docs separate #122
Build docs separate #122
Conversation
raise ValueError('Usage: add_doc_to_wheel docs.zip snappy.whl') | ||
|
||
python = sys.executable | ||
tmp_dir = tempfile.mkdtemp() |
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.
with tempfile.TemporaryDirectory() as tmp_dir:
might be more pythonic. Not sure whether cleaning up the tmp directory at the end is a feature (making debugging easier) or bug.
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 intended to make debugging easier.
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: doc | ||
path: /__w/SnapPy/SnapPy/doc_src/_build/doc/* |
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 might be a mess to download all that stuff. Would it be hard to install zip in the container temporarily?
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.
The upload-artifact
action automatically puts the files in a single zipfile for easy download.
Build the wheels with no docs and later use a separate script to build the docs. For the actual release, another script would “manually” insert the docs into the various snappy wheels (which are just zip files) before uploading to PyPI.