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

Fix blurb import in the runpy interface #22

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Conversation

webknjaz
Copy link
Contributor

@webknjaz webknjaz commented Jul 16, 2024

When blurb was being restructured, the import paths moved to deeper levels of the project layout. It was updated in the console scripts so invoking just the blurb command worked but python -m blurb didn't. This resulted in breaking the MSI installer smoke testing workflow in CPython's CI [1].

Blurb's own CI never invokes said interface, so it had no chance of catching the regression.

This patch corrects the import and adds a smoke test-style invocation of the affected interface.

When `blurb` was being restructured, the import paths moved to deeper levels of the project layout. It was updated in the console scripts so invoking just the `blurb` command worked but `python -m blurb` didn't. This resulted in breaking the MSI installer smoke testing workflow in CPython's CI [[1]].

Blurb's own CI never invokes said interface, so it had no chance of catching the regression.

This patch corrects the import but does not make an attempt to improve testing.

[1]: python/cpython#121879
This just adds simple `python -m blurb` invocations, nothing fancy.
@hugovk hugovk added the bug Something isn't working label Jul 17, 2024
@hugovk hugovk merged commit b94ca99 into python:main Jul 17, 2024
13 checks passed
@hugovk
Copy link
Member

hugovk commented Jul 17, 2024

Thank you!

@zooba
Copy link
Member

zooba commented Jul 17, 2024

I need this fix to release 3.13.0b4 asap. Any chance of a quick push to PyPI? Or should I edit the release scripts to pin to the older version?

@webknjaz
Copy link
Contributor Author

I was hoping @hugovk would get to it yesterday, especially since publishing has been automated recently, so it should be a few button clicks mostly…

@zooba
Copy link
Member

zooba commented Jul 17, 2024

Looks like we're delaying the release by another day for other reasons, so slightly less of a hurry. But if it's not up by the time we restart builds I'll add a pin to 1.1.0 in the release scripts.

(edit: looks like 1.2.1 is in progress already, so I'm sure it's close)

@webknjaz
Copy link
Contributor Author

@zooba FYI, you should be able to cut a release yourself by simply publishing a v1.2.1 @ https://github.com/python/blurb/releases (assuming you have enough privileges) and then, it'll magically appear on PyPI. The TestPyPI release published by merging this PR succeeded, so the release pipeline is healthy: https://github.com/python/blurb/actions/runs/9970205160/job/27548697808 / https://test.pypi.org/project/blurb/1.2.1.dev11/.

@zooba
Copy link
Member

zooba commented Jul 17, 2024

I went looking to see if I could hit the button myself, but it looks like Hugo is already working on it through #23, so I'll leave it there for now.

@webknjaz
Copy link
Contributor Author

Sure, I figured. Just wanted to spell out how it works right now, just in case.

@hugovk
Copy link
Member

hugovk commented Jul 17, 2024

You should be able to release, instructions in https://github.com/python/blurb/blob/main/RELEASING.md

But I'll do it right away.

@hugovk
Copy link
Member

hugovk commented Jul 17, 2024

Blurb 1.2.1 released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants