-
-
Notifications
You must be signed in to change notification settings - Fork 170
TST,CI: Add workflow to check sdist. #670
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
|
This recipe behaves as expected (i.e. fails) locally, but something wonky is going on with the actions (not sure why they're not running). Anyways - I just noticed that there already exists a |
|
I have to run to a meeting so I won't have a chance to look at this in the next hour - feel free to close/work elsewhere, otherwise I'll pick this up in the afternoon! |
Sure!
In the actions tab you can see it's unhappy about some syntax https://github.com/numpy/numpydoc/actions/runs/19871137814 |
* replace relpath in example_module tst fixture. * Update __main__ rel to install path. * Update importlib.resources.path incantation to a pattern that works on 3.12 and 3.14. * Use cwd instead of requests.root_dir
|
Okay I think this is ready for review. It turned out to be more involved than I'd expected, sorry about the noise. The main issue was that some of the tests implicitly depended on being run from within the source tree. I tried to fix this with a minimal set of changes in 6298e1d, using My original plan was to simply add the "build from sdist and test" workflow, but it turns out that even with the |
| (tmp_path / file).touch() | ||
| else: | ||
| expected_dir = request.config.rootdir | ||
| expected_dir = Path.cwd() |
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.
Note: this change is necessary to accommodate the running of tests from a different location, as there is then a difference between the root_dir reported by the request fixture and the location where the tests are being run.
|
A final thought: ultimately I think switching to |
I thought In any case things here are green so I think we're good to go! |
Yeah this is what I was thinking; I'm suspecting (though not positive) that it would eliminate the need for this bespoke-out-of-source-tree CI recipe. |
Expect this initial commit to fail - verifying that the tests work as expected.