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
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install poetry
run: python3 -m pip install --user poetry==1.8.3
- uses: astral-sh/setup-uv@v5
- name: Build wheel
run: poetry build
run: uv build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
21 changes: 10 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Test
# to that pull-request
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
cancel-in-progress: true

on:
push:
Expand All @@ -28,16 +28,15 @@ jobs:
- version: "3.10"
- version: "3.11"
- version: "3.12"
- version: '3.13.0-alpha - 3.13' # SemVer's version range syntax
- version: "3.13"
- version: '3.14.0-alpha - 3.14' # SemVer's version range syntax
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python.version }}
uses: actions/setup-python@v5.2.0
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python.version }}
- run: |
python3 -m pip install --user -r requirements-poetry.txt
sudo apt-get update && sudo apt-get -y install openssl
poetry install -n
poetry run poe lint
poetry run poe test
python-version: ${{ matrix.python-version }}
- name: Run lint
run: uv run poe lint
- name: Run test
run: uv run poe test
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Siemens AG, 2024
Copyright (c) Siemens AG, 2024-2025

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ Generate x509 SMIME signed emails with ease!
## Development

The code is formatted with **ruff** and checked with various linters.
To run the whole linting and formatting process, run `poetry run poe all`.
To run the whole linting and formatting process, run `uv run poe all`.

## License

Code and documentation copyright 2024 Siemens AG.
Code and documentation copyright 2024-2025 Siemens AG.

See [LICENSE.md](LICENSE.md).
607 changes: 0 additions & 607 deletions poetry.lock

This file was deleted.

37 changes: 21 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
[tool.poetry]
[project]
name = "smime-email"
version = "1.0.1"
description = "A Python library to generate a signed email"
authors = ["Siemens"]
authors = [{ name = "Siemens" }]
requires-python = "~=3.10"
readme = "README.md"
license = "MIT"
packages = [{include = "smime_email"}]
dependencies = ["cryptography>=43.0.1,<45.0.0"]

[tool.poetry.dependencies]
python = "^3.10"
cryptography = ">=43.0.1,<45.0.0"
[dependency-groups]
dev = [
"poethepoet>=0.29.0,<0.30",
"pytest>=8.3.3,<9",
"mypy>=1.11.2,<2",
"pytest-deadfixtures>=2.2.1,<3",
"coverage>=7.6.1,<8",
"pytest-cov>=5.0.0",
"ruff>=0.6.9",
]

[tool.poetry.group.dev.dependencies]
poethepoet = "^0.29.0"
pytest = "^8.3.3"
mypy = "^1.11.2"
pytest-deadfixtures = "^2.2.1"
coverage = "^7.6.1"
pytest-cov = "^5.0.0"
ruff = "^0.6.8"
[tool.hatch.build.targets.sdist]
include = ["smime_email"]

[tool.hatch.build.targets.wheel]
include = ["smime_email"]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pytest.ini_options]
addopts = "--cov smime_email --cov-report term --cov-report html --cov-report xml --junitxml junit.xml"
Expand Down
1 change: 0 additions & 1 deletion requirements-poetry.txt

This file was deleted.

486 changes: 486 additions & 0 deletions uv.lock

Large diffs are not rendered by default.