Skip to content

Commit a3899ec

Browse files
authored
Merge branch 'main' into add-gh-flags
2 parents 15271e1 + f874c28 commit a3899ec

6 files changed

Lines changed: 43 additions & 37 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
# Temporarily remove 3.13 pending:
15-
# https://github.com/pytest-dev/pyfakefs/issues/1017
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
14+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1715

1816
steps:
1917
- uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Changelog
2+
3+
## 1.2.1
4+
5+
- Fix `python3 -m blurb`.
6+
- Undocument removed `blurb split`.
7+
8+
## 1.2.0
9+
10+
- Replace spaces with underscores in news directory.
11+
- Drop support for Python 3.7.
12+
- Remove `blurb split` command.
13+
- Replace `gh-issue-NNNN:` with `gh-NNNN:` in the output.
14+
- Accept GitHub issues numbered only 32426 or above.
15+
- Improve error checking when parsing a Blurb.
16+
- Loosen README check for CPython forks.
17+
- Move code from `python/core-workflow` to own `python/blurb` repo.
18+
- Deploy to PyPI via Trusted Publishers.
19+
20+
## 1.1.0
21+
22+
- Support GitHub Issues in addition to b.p.o (bugs.python.org).
23+
If `gh-issue` is in the metadata, then the filename will contain
24+
`gh-issue-<number>` instead of `bpo-`.
25+
26+
## 1.0.7
27+
28+
- When word wrapping, don't break on long words or hyphens.
29+
- Use the `-f` flag when adding **blurb** files to a Git
30+
commit. This forces them to be added, even when the files
31+
might normally be ignored based on a `.gitignore` directive.
32+
- Explicitly support the `-help` command-line option.
33+
- Fix Travis CI integration.

README.md

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -228,39 +228,12 @@ the right thing. If `NEWS` entries were already written to the
228228
final version directory, you'd have to move those around as
229229
part of the cherry-picking process.
230230

231-
## Changelog
232-
233-
### 1.2.0
234-
235-
- Replace spaces with underscores in news directory.
236-
- Drop support for Python 3.7.
237-
- Remove `blurb split` command.
238-
- Replace `gh-issue-NNNN:` with `gh-NNNN:` in the output.
239-
- Accept GitHub issues numbered only 32426 or above.
240-
- Improve error checking when parsing a Blurb.
241-
- Loosen README check for CPython forks.
242-
- Move code from `python/core-workflow` to own `python/blurb` repo.
243-
- Deploy to PyPI via Trusted Publishers.
244-
- Add the `-i/--issue` and `-s/--section` options to the `add` command.
245-
This lets you pre-fill the `gh-issue` and `section` fields.
246-
in the template.
247-
248-
### 1.1.0
249-
250-
- Support GitHub Issues in addition to b.p.o (bugs.python.org).
251-
If "gh-issue" is in the metadata, then the filename will contain
252-
"gh-issue-<number>" instead of "bpo-".
253-
254-
### 1.0.7
255-
256-
- When word wrapping, don't break on long words or hyphens.
257-
- Use the `-f` flag when adding **blurb** files to a Git
258-
commit. This forces them to be added, even when the files
259-
might normally be ignored based on a `.gitignore` directive.
260-
- Explicitly support the `-help` command-line option.
261-
- Fix Travis CI integration.
262231

263232
## Copyright
264233

265234
**blurb** is Copyright 2015-2018 by Larry Hastings.
266235
Licensed to the PSF under a contributor agreement.
236+
237+
## Changelog
238+
239+
See [CHANGELOG.md](CHANGELOG.md).

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ optional-dependencies.tests = [
3535
"pytest",
3636
"pytest-cov",
3737
]
38-
urls.Changelog = "https://github.com/python/blurb/blob/main/README.md#changelog"
38+
urls.Changelog = "https://github.com/python/blurb/blob/main/CHANGELOG.md"
3939
urls.Homepage = "https://github.com/python/blurb"
4040
urls.Source = "https://github.com/python/blurb"
4141
scripts.blurb = "blurb.blurb:main"

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__':

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ commands =
1919
{posargs}
2020
blurb test
2121
blurb help
22+
{envpython} -I -m blurb test
23+
{envpython} -I -m blurb help

0 commit comments

Comments
 (0)