8000 Fix `blurb` import in the runpy interface · python/blurb@9baee80 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9baee80

Browse files
authored
Fix blurb import in the runpy 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
1 parent 0cc1c1a commit 9baee80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blurb/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
"""Run blurb using `python3 blurb/`."""
2-
import blurb
1+
"""Run blurb using ``python3 -m blurb``."""
2+
from blurb import blurb
33

44

55
if __name__ == '__main__':

0 commit comments

Comments
 (0)
0