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
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ on:

jobs:
pypi_release:
name: Build with Poetry and Publish to PyPI
name: Build with UV and Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
uses: actions/setup-python@v5
- name: Install and configure Poetry
run: |
pip install poetry
poetry config pypi-token.pypi "${{ secrets.PYPI_TOKEN }}"
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
version: latest
enable-cache: true
- name: Build package
run: uv build
- name: Publish package
run: poetry publish --build
run: uv publish
10 changes: 7 additions & 3 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Ruff

on: [ push, pull_request ]
on: [push, pull_request]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
- uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v3
with:
version: latest
- run: ruff check
- run: ruff format --check
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install and set up Poetry
run: |
pip install poetry
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Install python dependencies
run: poetry install
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
version: latest
enable-cache: true
- name: Test with pytest
run: poetry run pytest --verbose
run: uv run pytest -v
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Python Base45

A Python module to encode/decode binary data using Base45 as described in [RFC 9285 ](https://www.rfc-editor.org/info/rfc9285).
A Python module to encode/decode binary data using Base45 as described in [RFC 9285](https://www.rfc-editor.org/info/rfc9285).
156 changes: 0 additions & 156 deletions poetry.lock

This file was deleted.

36 changes: 19 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
[tool.poetry]
[project]
name = "base45"
version = "0.5.0"
dynamic = ["version"]
description = "Base45 Encoder/Decoder"
authors = ["Jakob Schlyter <jakob@kirei.se>"]
authors = [
{ name = "Jakob Schlyter", email = "jakob@schlyter.se" }
]
license = "BSD-2-Clause"
repository = "https://github.com/kirei/python-base45"
readme = "README.md"
requires-python = ">=3.9"

[tool.poetry.dependencies]
python = "^3.8"

[tool.poetry.group.dev.dependencies]
ruff = "^0.4.2"
pytest = "^8.2.0"
isort = "^5.13.2"
pytest-isort = "^4.0.0"
[project.urls]
repository = "https://github.com/kirei/python-base45"

[tool.poetry.scripts]
[project.scripts]
base45 = "base45.cli:main"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"

[tool.hatch.version]
source = "uv-dynamic-versioning"

[tool.isort]
profile = "black"
[dependency-groups]
dev = [
"pytest>=8.4.2",
"ruff>=0.15.2",
]

[tool.ruff.lint]
select = [
Expand Down
Loading