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
25 changes: 4 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,31 +53,14 @@ jobs:
exit 1
fi

echo "Updating version to: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

# Check that required files exist
if [[ ! -f pyproject.toml ]]; then
echo "Error: pyproject.toml not found"
exit 1
fi

if [[ ! -f src/pn5180_tagomatic/__init__.py ]]; then
echo "Error: src/pn5180_tagomatic/__init__.py not found"
exit 1
fi

# Update pyproject.toml
sed -i "s/^version = .*/version = \"$VERSION\"/" pyproject.toml

# Update __init__.py
sed -i "s/^__version__ = .*/__version__ = \"$VERSION\"/" src/pn5180_tagomatic/__init__.py

# Verify changes
echo "pyproject.toml version:"
grep "^version = " pyproject.toml
echo "__init__.py version:"
grep "^__version__ = " src/pn5180_tagomatic/__init__.py

# Updating links.
BASE_URL="https://github.com/bofh69/PN5180-tagomatic/tree/$VERSION"
sed -i "s#](\\([^h#]\\)#$BASE_URL/\\1#" README.md

- name: Install build dependencies
run: |
Expand Down
5 changes: 3 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

include README.md
include LICENSE
include REUSE.toml
include pyproject.toml
recursive-include src *.py
recursive-include sketch *.ino *.md *.jpg
recursive-include tests *.py
recursive-include sketch *.md *.jpg
recursive-include LICENSES *.txt
include .reuse/dep5
36 changes: 31 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ version = "0.1.0"
description = "USB based RFID reader with Python interface"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPL-3.0-or-later"}
license = "GPL-3.0-or-later"
license-files = [
"LICENSE",
"LICENSES/*",
"REUSE.toml",
]
authors = [
{name = "PN5180-tagomatic contributors"}
{name = "Sebastian Andersson"}
]
keywords = ["rfid", "pn5180", "usb", "reader", "raspberry-pi-pico"]
keywords = ["rfid", "pn5180", "reader"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
Expand All @@ -37,11 +42,12 @@ dependencies = [

[project.optional-dependencies]
dev = [
"black>=23.0.0",
"bumpver>=2025.1131",
"mypy>=1.0.0",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
"black>=23.0.0",
"types-pyserial>=3.5.0",
]

Expand Down Expand Up @@ -102,3 +108,23 @@ addopts = [
"--cov-report=html",
"--cov-report=xml",
]

[tool.bumpver]
current_version = "0.1.0"
version_pattern = "MAJOR.MINOR.PATCH[-PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
tag_scope = "default"
pre_commit_hook = ""
post_commit_hook = ""
commit = true
tag = true
push = false

[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{pep440_version}"',
]
"src/pn5180_tagomatic/__init__.py" = [
'__version__ = "{pep440_version}"',
]
18 changes: 0 additions & 18 deletions src/pn5180_tagomatic/README.md

This file was deleted.