Skip to content

Commit 4dafbfb

Browse files
committed
prepare release
1 parent 48d36e6 commit 4dafbfb

File tree

4 files changed

+69
-11
lines changed

4 files changed

+69
-11
lines changed

.github/workflows/release.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: Build & upload PyPI package
3+
4+
on:
5+
release:
6+
types:
7+
- published
8+
workflow_dispatch:
9+
10+
jobs:
11+
tests:
12+
uses: "./.github/workflows/tests.yaml"
13+
14+
# Always build & lint package.
15+
build-package:
16+
name: Build & verify package
17+
needs:
18+
- tests
19+
runs-on: ubuntu-latest
20+
permissions:
21+
attestations: write
22+
id-token: write
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
persist-credentials: false
29+
30+
- uses: hynek/build-and-inspect-python-package@v2
31+
with:
32+
attest-build-provenance-github: 'true'
33+
34+
# Upload to real PyPI on GitHub Releases.
35+
release-pypi:
36+
name: Publish released package to pypi.org
37+
environment: release-pypi
38+
if: github.event.action == 'published'
39+
runs-on: ubuntu-latest
40+
needs:
41+
- build-package
42+
permissions:
43+
id-token: write
44+
45+
steps:
46+
- name: Download packages built by build-and-inspect-python-package
47+
uses: actions/download-artifact@v4
48+
with:
49+
name: Packages
50+
path: dist
51+
52+
- name: Upload package to PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+

.github/workflows/tests.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11

2-
name: Build and test
2+
name: Test and Check
33

4-
on: [push]
4+
on:
5+
push:
6+
branches:
7+
- main
8+
workflow_call:
9+
workflow_dispatch:
510

611
jobs:
712
test-and-check:
@@ -15,7 +20,7 @@ jobs:
1520
env:
1621
PRIMARY_PYTHON: ${{ matrix.python-version }}
1722
steps:
18-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
1924
- name: Install uv
2025
uses: astral-sh/setup-uv@v6
2126
with:

CHANGES.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
History
33
=======
44

5-
2.0.0 (unreleased)
6-
------------------
5+
2.0.0b1 (2025-07-15)
6+
--------------------
77

8-
- Add support for Plone 6.1.x. Drop support for Plone 5.2.x.
9-
Update Makefile and dependencies and use uv.
8+
- Add support for Plone 6.1.x.
9+
Drop support for Plone 5.2.x.
10+
Update Makefile and dependencies, use uv and trusted publishing.
11+
Use Ruff, drop Black.
1012
[jensens]
1113

1214
- Package: PEP420 style [jensens]

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "collective.bbcodesnippets"
3-
version = "2.0.0a1.dev0"
3+
version = "2.0.0b1.dev0"
44
description = "BBCode Snippet Support for Plone"
55
keywords = ["bbcode", "plone"]
66
readme = "README.rst"
@@ -59,9 +59,6 @@ testpaths = [
5959
[tool.isort]
6060
profile = "plone"
6161

62-
# [tool.black]
63-
# include = "src"
64-
6562
[tool.codespell]
6663
ignore-words-list = "discreet,"
6764
skip = './venv/*'

0 commit comments

Comments
 (0)