Skip to content

Commit

Permalink
bump dependencies, fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloDePieri committed Jul 10, 2024
1 parent c5dfa95 commit efa0623
Show file tree
Hide file tree
Showing 27 changed files with 1,088 additions and 858 deletions.
2 changes: 1 addition & 1 deletion .actrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-P ubuntu-latest=catthehacker/ubuntu:act-20.04
-P ubuntu-latest=catthehacker/ubuntu:act-latest
6 changes: 3 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
GMAIL_PASS: ${{ secrets.GMAIL_PASS }}
GMAIL_ADDR: ${{ secrets.GMAIL_ADDR }}
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
python_version: '3.7.10'
python_version: '>=3.8.1 <3.9.0'

steps:

- name: Checkout.
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ env.python_version }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
GMAIL_PASS: ${{ secrets.GMAIL_PASS }}
GMAIL_ADDR: ${{ secrets.GMAIL_ADDR }}
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
python_version: '3.7.10'
python_version: '>=3.8.1 <3.9.0'

steps:

- name: Checkout.
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ env.python_version }}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![PyPI](https://img.shields.io/pypi/v/pymailtm)](https://pypi.org/project/pymailtm/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pymailtm)](https://pypi.org/project/pymailtm/) [![CI Status](https://img.shields.io/github/workflow/status/CarloDePieri/pymailtm/prod?logo=github)](https://github.com/CarloDePieri/pymailtm/actions/workflows/prod.yml) [![Coverage Status](https://coveralls.io/repos/github/CarloDePieri/pymailtm/badge.svg?branch=master)](https://coveralls.io/github/CarloDePieri/pymailtm?branch=master) [![Maintenance](https://img.shields.io/maintenance/yes/2022)](https://github.com/CarloDePieri/pymailtm/)
[![PyPI](https://img.shields.io/pypi/v/pymailtm)](https://pypi.org/project/pymailtm/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pymailtm)](https://pypi.org/project/pymailtm/) [![CI Status](https://img.shields.io/github/actions/workflow/status/CarloDePieri/pymailtm/prod.yml?branch=master&logo=github)](https://github.com/CarloDePieri/pymailtm/actions/workflows/prod.yml) [![Coverage Status](https://coveralls.io/repos/github/CarloDePieri/pymailtm/badge.svg?branch=master)](https://coveralls.io/github/CarloDePieri/pymailtm?branch=master) [![Maintenance](https://img.shields.io/maintenance/yes/2024)](https://github.com/CarloDePieri/pymailtm/)

This is a command line interface and python web-api wrapper for [mail.tm](https://mail.tm).

Expand Down Expand Up @@ -77,7 +77,7 @@ cd pymailtm
inv install
```

This will try to create a virtualenv based on `python3.7` and install there all
This will try to create a virtualenv based on `python3.8` and install there all
project's dependencies. If a different python version is preferred, it can be
selected by specifying the `--python` (`-p`) flag like this:

Expand Down
1,879 changes: 1,051 additions & 828 deletions poetry.lock

Large diffs are not rendered by default.

33 changes: 19 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ classifiers = [
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Communications :: Email",
"Topic :: Communications :: Email :: Email Clients (MUA)",
"Topic :: Utilities"
Expand All @@ -37,25 +42,25 @@ classifiers = [
pymailtm = 'pymailtm.cli:init'

[tool.poetry.dependencies]
python = "^3.7"
requests = "^2.28.1"
python = ">=3.8.1,<3.13"
requests = "^2.32.3"
random-username = "^1.0.2"
pyperclip = "^1.8.2"
pyperclip = "^1.9.0"

[tool.poetry.dev-dependencies]
anyio = "^3.6.1"
anyio = "^4.4.0"
yagmail = "^0.15.283"
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
pytest-mock = "^3.8.2"
pytest-sugar = "^0.9.5"
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
pytest-sugar = "^1.0.0"
pytest-spec = "^3.2.0"
pytest-timeout = "^2.1.0"
coveralls = "^3.3.1"
PyYAML = "^6.0"
pytest-recording = "^0.12.1"
pytest-vcr-delete-on-fail = "^2.0.0"
python-dotenv = "^0.20.0"
pytest-timeout = "^2.3.1"
coveralls = "^4.0.1"
PyYAML = "^6.0.1"
pytest-recording = "^0.13.2"
pytest-vcr-delete-on-fail = "^2.0.1"
python-dotenv = "^1.0.1"
vcrpy-encrypt = "^0.9.1"

[build-system]
Expand Down
16 changes: 9 additions & 7 deletions tasks.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from invoke import task


poetry_pypi_testing = "testpypi"
# Use the minimum python version required by the package
default_python_bin = "python3.7"
default_python_bin = "python3.8"

_NOT_GRAPHICAL = " -m 'not graphical'"


# If the most currently activated python version is desired, use 'inv install -p latest'
Expand Down Expand Up @@ -35,7 +36,7 @@ def build(c):

@task(build)
def publish_coverage(c):
c.run(f"poetry run coveralls")
c.run("poetry run coveralls")


@task(build)
Expand All @@ -55,7 +56,7 @@ def test(c, full=False, s=False, t=False):
if t:
marks = " -m 'runthis'"
elif not full:
marks = " -m 'not graphical'"
marks = _NOT_GRAPHICAL
if s:
capture = " -s"
c.run(f"poetry run pytest{capture}{marks}", pty=True)
Expand All @@ -65,7 +66,7 @@ def test(c, full=False, s=False, t=False):
def test_spec(c, full=False):
marks = ""
if not full:
marks = " -m 'not graphical'"
marks = _NOT_GRAPHICAL
c.run(f"poetry run pytest -p no:sugar --spec{marks}", pty=True)


Expand All @@ -80,8 +81,9 @@ def test_cov(c, full=False):
c.run("mkdir -p coverage")
marks = ""
if not full:
marks = " -m 'not graphical'"
c.run(f"poetry run pytest --cov=pymailtm --cov-report annotate:coverage/cov_annotate --cov-report html:coverage/cov_html{marks}", pty=True)
marks = _NOT_GRAPHICAL
c.run(f"poetry run pytest --cov=pymailtm --cov-report annotate:coverage/cov_annotate --cov-report "
f"html:coverage/cov_html{marks}", pty=True)


@task(test_cov)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit efa0623

Please sign in to comment.