Skip to content

Commit

Permalink
chore: bump dependencies; add github actions (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roguelazer authored May 18, 2024
1 parent 782a0de commit d412f4a
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 19 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Python Tests"
on:
pull_request:
push:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-tests.txt -e .
- name: Run pytest
run: py.test -vs tests/
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
NEXT
====
- Drop support ofr Python <3.6
- Switch to github actions for CI

0.3.5
=====
- Fix some unicode handling (including, hopefully, fixing non-ASCII subject lines for real)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
muttdown
========

[![Build Status](https://travis-ci.com/Roguelazer/muttdown.svg?branch=master)](https://travis-ci.com/Roguelazer/muttdown)
[![Build Status](https://github.com/Roguelazer/muttdown/actions/workflows/ci.yml/badge.svg)](https://github.com/Roguelazer/muttdown/actions/workflows/ci.yml)

`muttdown` is a sendmail-replacement designed for use with the [mutt][] email client which will transparently compile annotated `text/plain` mail into `text/html` using the [Markdown][] standard. It will recursively walk the MIME tree and compile any `text/plain` or `text/markdown` part which begins with the sigil "!m" into Markdown, which it will insert alongside the original in a multipart/alternative container.

Expand Down Expand Up @@ -60,7 +60,7 @@ Muttdown can also send its mail using the native `sendmail` if you have that set

Installation
------------
Install muttdown with `pip install muttdown` or by downloading this package and running `python setup.py install`. You will need the [PyYAML][] and [Python-Markdown][] libraries, as specified in `requirements.txt`. This should work with Python 2.7 or Python 3.5+.
Install muttdown with `pip install muttdown` or by downloading this package and running `python setup.py install`. You will need the [PyYAML][] and [Python-Markdown][] libraries, as specified in `requirements.txt`. This should work with Python 3.6+.

Usage
-----
Expand Down
6 changes: 3 additions & 3 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest==4.3.*
pytest-cov==2.6.*
pytest-mock==1.10.*
pytest==8.*
pytest-cov==5.*
pytest-mock==3.*
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[
'Markdown>=3.0',
'Markdown>=3.0,<4.0',
'PyYAML>=3.0',
'pynliner==0.8.0',
'six',
Expand All @@ -28,15 +28,17 @@
'muttdown = muttdown.main:main',
]
},
python_requires='>=3.6',
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Intended Audience :: End Users/Desktop",
"Operating System :: OS Independent",
"License :: OSI Approved :: ISC License (ISCL)",
Expand Down

0 comments on commit d412f4a

Please sign in to comment.