Compare commits

..

No commits in common. "1aa4455de0c2b6e40365da2b6ce41feed84839c9" and "9c6ae12284c62c7525ecf737b2cabe6cc30913bf" have entirely different histories.

4 changed files with 8 additions and 39 deletions

View file

@ -1,20 +0,0 @@
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: based-alpine
steps:
- uses: actions/checkout@v4
- name: setup cache
id: uv-cache
uses: https://git.ficd.sh/ficd/uv-cache@v1
- name: build
run: |
uv sync
uv build
- name: publish
run: |
uv publish --token ${{ secrets.PYPI_TOKEN }}

View file

@ -11,11 +11,10 @@
# Author: Daniel Fichtinger
# License: ISC
import argparse
import re
import sys
import textwrap
from importlib.metadata import version
import sys
import re
import argparse
def main() -> None:
@ -88,19 +87,12 @@ def main() -> None:
description="Heuristic formatter for plain text email. Preserves markup, signoffs, and signature blocks.",
epilog="""
Author : Daniel Fichtinger
Repository: https://git.ficd.sh/ficd/mailfmt
Repository: https://git.sr.ht/~ficd/mailfmt
License : ISC
Contact : daniel@ficd.sh
Contact : daniel@ficd.ca
""",
formatter_class=argparse.RawDescriptionHelpFormatter,
)
parser.add_argument(
"-v",
"--version",
required=False,
help="Print version info and exit.",
action="store_true",
)
parser.add_argument(
"-w",
"--width",
@ -170,9 +162,6 @@ Contact : daniel@ficd.sh
help="Output file. (default: %(default)s)",
)
args = parser.parse_args()
if args.version:
print(version("mailfmt"))
exit(0)
width = args.width
should_check_signoff = args.no_signoff
should_check_signature = args.no_signature

View file

@ -1,10 +1,10 @@
[project]
name = "mailfmt"
version = "1.0.4"
version = "1.0.3"
description = "Heuristic plain text email formatter."
readme = "README.md"
authors = [
{ name = "Daniel Fichtinger", email = "daniel@ficd.sh" }
{ name = "Daniel Fichtinger", email = "daniel@ficd.ca" }
]
requires-python = ">=3.11"
dependencies = []

2
uv.lock generated
View file

@ -4,5 +4,5 @@ requires-python = ">=3.11"
[[package]]
name = "mailfmt"
version = "1.0.3"
version = "1.0.1"
source = { editable = "." }