From 074b728d9799a20672f205878cbd3bd948279082 Mon Sep 17 00:00:00 2001 From: Luiz Lima Date: Tue, 30 Nov 2021 21:32:47 -0300 Subject: [PATCH 1/2] Bump dependencies and Python version --- .pre-commit-config.yaml | 2 +- .travis.yml | 2 +- README.md | 2 +- requirements-dev.txt | 4 ++-- runtime.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb14922..8e2f820 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: rev: stable hooks: - id: black - language_version: python3.8 + language_version: python3.10 - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.1.0 hooks: diff --git a/.travis.yml b/.travis.yml index 10ba67b..0f4b89a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ dist: xenial language: python python: - - 3.8.1 + - 3.10-dev install: - make install script: diff --git a/README.md b/README.md index b453caf..6cccc92 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ A service to send email messages. ## Development ### Requirements -- [Python 3.8.1](https://realpython.com/intro-to-pyenv/) +- [Python 3.10.0](https://realpython.com/intro-to-pyenv/) - [Docker](https://docs.docker.com/get-docker/) - [Docker Compose](https://docs.docker.com/compose/install/) diff --git a/requirements-dev.txt b/requirements-dev.txt index ede7f11..afe4dc3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,7 +2,7 @@ black==19.10b0 flake8==3.8.1 isort==5.6.4 -pre-commit==2.4.0 +pre-commit==2.15.0 pytest-cov==2.8.1 -pytest==5.4.2 +pytest==6.2.5 requests==2.23.0 diff --git a/runtime.txt b/runtime.txt index c5d7ce3..fadb070 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.8.1 +python-3.10.0 From 17e702f01082172d708a50ef3e87fa6736a9dd1b Mon Sep 17 00:00:00 2001 From: Luiz Lima Date: Tue, 30 Nov 2021 21:33:04 -0300 Subject: [PATCH 2/2] Update makefile instructions --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/makefile b/makefile index a376984..306cf78 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,13 @@ +.PHONY: environment +environment: + pyenv install -s 3.10.0 + pyenv uninstall --force email-sender + pyenv virtualenv 3.10.0 --force email-sender + pyenv local email-sender + .PHONY: install install: + pip freeze | xargs -r pip uninstall -y && \ pip install -r requirements-dev.txt && \ pre-commit install