Skip to content
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

Make sure build_sdist requires targets as it is needed for the artifact upload condition #169

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

astrofrog
Copy link
Contributor

@astrofrog astrofrog commented Nov 16, 2023

This fixes #167

The issue was that the artifact upload condition in the sdist job is:

      - uses: actions/upload-artifact@v3
        if: |
          needs.targets.outputs.upload_to_pypi == 'true' || inputs.upload_to_anaconda

but the sdist job didn't technically require targets so needs.targets.outputs.upload_to_pypi wasn't set correctly. I don't quite understand why this wasn't an issue before, maybe GitHub got more strict about this, or maybe it is a race condition.

This also explains why astropy nightlies were working fine - the anaconda upload condition is separate and doesn't rely on needs.targets.

@astrofrog astrofrog merged commit b0d0b1f into OpenAstronomy:main Nov 16, 2023
20 checks passed
@pllim
Copy link
Contributor

pllim commented Nov 16, 2023

Can we tag this in v1 so downstream can pick it up without having to make changes? Thanks!

@astrofrog
Copy link
Contributor Author

Done already!

@pllim
Copy link
Contributor

pllim commented Nov 16, 2023

Great. Thanks!

@ConorMacBride
Copy link
Member

Well spotted! The condition was only added in #162, so maybe there wasn't an astropy release since then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sdist not being uploaded along with the wheels.
3 participants