Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to PyPI

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write # Required for OIDC trusted publishing
Comment thread
miso-belica marked this conversation as resolved.

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Install uv
uses: astral-sh/setup-uv@29b21a839666e60d6a2015b4010b35b7911d3590 # v7.6

- name: Set up Python
run: uv python install

- name: Build package
run: uv build

- name: Publish to PyPI using OIDC
run: uv publish --trusted-publishing automatic
40 changes: 40 additions & 0 deletions .github/workflows/update-man-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update man page

on:
workflow_dispatch:

jobs:
update-man-page:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Install help2man
run: sudo apt-get update && sudo apt-get install -y help2man

- name: Install uv
uses: astral-sh/setup-uv@29b21a839666e60d6a2015b4010b35b7911d3590 # v7.6

- name: Set up Python
run: uv python install

- name: Install package
run: uv pip install --system -e .

- name: Regenerate man page
run: help2man breadability --no-info --output=breadability.1

- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git diff --quiet -- breadability.1; then
echo "Man page already up to date"
else
git add breadability.1
git commit -m "Update man page"
git push
fi
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
.*
!.gitignore
!.travis.yml
!.github
!.github/**

.installed.cfg
bin
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Changelog for breadability
==========================

0.1.21 (August 9th 2026)
-------------------------
- Stop depending on the deprecated ``pkg_resources`` module for ``__version__``

0.1.20 (April 13th 2014)
-------------------------
- Don't include tests in sdist builds.
Expand Down
2 changes: 1 addition & 1 deletion breadability/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
unicode_literals
)

__version__ = "0.1.20"
__version__ = "0.1.21"
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
)
from setuptools import setup

VERSION = "0.1.20"
VERSION = "0.1.21"

VERSION_SUFFIX = "%d.%d" % sys.version_info[:2]
CURRENT_DIRECTORY = abspath(dirname(__file__))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


def test_version():
assert breadability.__version__ == "0.1.20"
assert breadability.__version__ == "0.1.21"