GH-49234: [CI][Python] Nightly sdist job fails due to missing update_stub_docstrings.py file#49235
Conversation
|
|
|
@github-actions crossbow submit python-sdist |
|
Revision: 99a02bf Submitted crossbow builds: ursacomputing/crossbow @ actions-21c987b612
|
raulcd
left a comment
There was a problem hiding this comment.
I am wondering whether this should be part of the sdist (and wheel) or not. From what I understand this is currently executed as part of our sdist generation to update the stub docstrings so it is indeed required. A different question is whether this can be done before creating the sdist as a separate step.
I am in the mind that we should merge this, as it is indeed required now, but we should open an issue to explore whether this could be decoupled from the wheels/sdist as seems unnecessary to be delivered to end users. @rok @pitrou what do you think?
Well, the script is needed to generate the sdist, but why is it necessary inside the sdist? raul note: Sorry I edited your message, I thought I clicked quote message. I've copied the old message again |
If you try to build from the generated sdist it fails because it executes when building PyArrow, not on sdist generation: |
Ah, ok. Then the question boils down to: would some people like to get the docstrings from the sdist, or not? |
|
We caught the issue here, which I suppose we have a reason to test? |
99a02bf to
0a716fe
Compare
|
@github-actions crossbow submit python-sdist |
|
Revision: 0a716fe Submitted crossbow builds: ursacomputing/crossbow @ actions-0607f841f4
|
|
ping @raulcd |
raulcd
left a comment
There was a problem hiding this comment.
I do agree, this seems reasonable to be added given how we are currently doing it. We can discuss later on whether we want to do this differently.
|
Shall I open a followup issue for the discussion? |
Sure, probably a possible improvement pointing out that we are currently copying it and whether this is something that we want to do differently so the script doesn't have to be added to the wheels / sdist for future reference. Thanks @rok for all the work you've been doing around type hints!! |
|
Followup issue #49273 |
Rationale for this change
Nightly sdist job fails due to missing update_stub_docstrings.py file
What changes are included in this PR?
Add update_stub_docstrings.py to MANIFEST.in
Are these changes tested?
We should test with crossbow
Are there any user-facing changes?
No.