Skip to content

Commit d5eeab1

Browse files
authored
Merge branch 'main' into ci-optional-3.13
2 parents 2c6b803 + db63d80 commit d5eeab1

File tree

16 files changed

+299
-100
lines changed

16 files changed

+299
-100
lines changed

.github/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot
5+
- pre-commit-ci

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
1719
- uses: actions/setup-python@v5
1820
with:
1921
python-version: "3.x"
20-
cache: pip
21-
- uses: pre-commit/[email protected]
22+
- uses: tox-dev/action-pre-commit-uv@v1

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
permissions:
1212
contents: read
1313

14+
env:
15+
FORCE_COLOR: 1
16+
1417
jobs:
1518
# Always build & lint package.
1619
build-package:
@@ -21,6 +24,7 @@ jobs:
2124
- uses: actions/checkout@v4
2225
with:
2326
fetch-depth: 0
27+
persist-credentials: false
2428

2529
- uses: hynek/build-and-inspect-python-package@v2
2630

.github/workflows/test.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
env:
69
FORCE_COLOR: 1
710

@@ -12,35 +15,33 @@ jobs:
1215
strategy:
1316
fail-fast: false
1417
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
18+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1619
experimental: [false]
1720
include:
18-
- python-version: "3.13"
21+
- python-version: "3.14"
1922
experimental: true
2023

2124
steps:
2225
- uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
2328

2429
- name: Set up Python ${{ matrix.python-version }}
2530
uses: actions/setup-python@v5
2631
with:
2732
python-version: ${{ matrix.python-version }}
2833
allow-prereleases: true
29-
cache: pip
3034

31-
- name: Install dependencies
32-
run: |
33-
python --version
34-
python -m pip install -U pip
35-
python -m pip install -U tox
35+
- name: Install uv
36+
uses: hynek/setup-cached-uv@v2
3637

3738
- name: Tox tests
3839
continue-on-error: ${{ matrix.experimental }}
3940
run: |
40-
tox -e py
41+
uvx --with tox-uv tox -e py
4142
4243
- name: Upload coverage
43-
uses: codecov/codecov-action@v4
44+
uses: codecov/codecov-action@v5
4445
with:
4546
flags: ${{ matrix.python-version }}
4647
name: Python ${{ matrix.python-version }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,6 @@ ENV/
9090

9191
# pytest
9292
.pytest_cache/
93+
94+
# hatch-vcs
95+
src/*/_version.py

.pre-commit-config.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v4.6.0
44
hooks:
5+
- id: check-added-large-files
56
- id: check-case-conflict
67
- id: check-merge-conflict
78
- id: check-toml
89
- id: check-yaml
910
- id: debug-statements
1011
- id: end-of-file-fixer
12+
- id: forbid-submodules
1113
- id: trailing-whitespace
1214

15+
- repo: https://github.com/python-jsonschema/check-jsonschema
16+
rev: 0.29.2
17+
hooks:
18+
- id: check-dependabot
19+
- id: check-github-workflows
20+
21+
- repo: https://github.com/rhysd/actionlint
22+
rev: v1.7.2
23+
hooks:
24+
- id: actionlint
25+
1326
- repo: https://github.com/tox-dev/pyproject-fmt
14-
rev: 1.7.0
27+
rev: 2.2.4
1528
hooks:
1629
- id: pyproject-fmt
17-
additional_dependencies: [tox]
1830

1931
- repo: https://github.com/abravalheri/validate-pyproject
20-
rev: v0.16
32+
rev: v0.20.2
2133
hooks:
2234
- id: validate-pyproject
2335

2436
- repo: https://github.com/tox-dev/tox-ini-fmt
25-
rev: 1.3.1
37+
rev: 1.4.1
2638
hooks:
2739
- id: tox-ini-fmt
2840

CHANGELOG.md

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

LICENSE.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
blurb version 1.0
21
Part of the blurb package.
32
Copyright 2015-2018 by Larry Hastings
43

README.md

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ and automatically uses the correct file paths.
2626
You can install **blurb** from PyPI using `pip`. Alternatively,
2727
simply add `blurb` to a directory on your path.
2828

29-
**blurb**'s only dependency is Python 3.8+.
30-
3129

3230
## Files used by blurb
3331

@@ -191,32 +189,6 @@ uses the name of the directory CPython is checked out to.
191189
version I'm releasing, and using this shortcut saves me some typing.)
192190

193191

194-
### blurb split
195-
196-
`blurb split` only needs to be run once per-branch, ever.
197-
It reads in `Misc/NEWS`
198-
and splits it into individual `.rst` files.
199-
The text files are stored as follows::
200-
201-
Misc/NEWS.d/<version>.rst
202-
203-
`<version>` is the version number of Python where the
204-
change was committed. Pre-release versions are denoted
205-
with an abbreviation: `a` for alphas, `b` for betas,
206-
and `rc` for release candidates.
207-
208-
The individual `<version>.rst` files actually (usually)
209-
contain multiple entries. Each entry is delimited by a
210-
single line containing `..` by itself.
211-
212-
The assumption is, at the point we convert over to *blurb*,
213-
we'll run `blurb split` on each active branch,
214-
remove `Misc/NEWS` from the repo entirely,
215-
never run `blurb split` ever again,
216-
and ride off into the sunset, confident that the world is now
217-
a better place.
218-
219-
220192

221193
## The "next" directory
222194

@@ -237,24 +209,11 @@ the right thing. If `NEWS` entries were already written to the
237209
final version directory, you'd have to move those around as
238210
part of the cherry-picking process.
239211

240-
## Changelog
241-
242-
### 1.1.0
243-
244-
- Support GitHub Issues in addition to b.p.o (bugs.python.org).
245-
If "gh-issue" is in the metadata, then the filename will contain
246-
"gh-issue-<number>" instead of "bpo-".
247-
248-
### 1.0.7
249-
250-
- When word wrapping, don't break on long words or hyphens.
251-
- Use the `-f` flag when adding **blurb** files to a Git
252-
commit. This forces them to be added, even when the files
253-
might normally be ignored based on a `.gitignore` directive.
254-
- Explicitly support the `-help` command-line option.
255-
- Fix Travis CI integration.
256-
257212
## Copyright
258213

259214
**blurb** is Copyright 2015-2018 by Larry Hastings.
260215
Licensed to the PSF under a contributor agreement.
216+
217+
## Changelog
218+
219+
See [CHANGELOG.md](CHANGELOG.md).

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Release Checklist
22

33
- [ ] check tests pass on [GitHub Actions](https://github.com/python/blurb/actions)
4-
[![GitHub Actions status](https://github.com/python/blurb/actions/workflows/main.yml/badge.svg)](https://github.com/python/blurb/actions/workflows/main.yml)
4+
[![GitHub Actions status](https://github.com/python/blurb/actions/workflows/test.yml/badge.svg)](https://github.com/python/blurb/actions/workflows/test.yml)
55

66
- [ ] Update [changelog](https://github.com/python/blurb/blob/main/CHANGELOG.md)
77

0 commit comments

Comments
 (0)