Skip to content

Commit

Permalink
build: Drop support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
empicano committed Aug 22, 2023
1 parent b9ce2bf commit 047ddca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version:
# Add "pypy-3.8", "pypy-3.9" again at some point
["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
include:
- os: macos-latest
python-version: "3.7"
python-version: "3.8"
- os: macos-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.7"
python-version: "3.8"
- os: windows-latest
python-version: "3.11"
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ aiomqtt combines the stability of the time-proven [paho-mqtt](https://github.com

## Installation

aiomqtt can be installed via `pip install aiomqtt`. It requires Python `3.7+` to run. The only dependency is [paho-mqtt](https://github.com/eclipse/paho.mqtt.python).
aiomqtt can be installed via `pip install aiomqtt`. It requires Python `3.8+` to run. The only dependency is [paho-mqtt](https://github.com/eclipse/paho.mqtt.python).

If you can't wait for the latest version and want to install directly from GitHub, use:

Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Issue tracker" = "https://github.com/sbtinstruments/aiomqtt/issues"

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
paho-mqtt = "^1.6.0"
typing-extensions = {version = "^4.4.0", markers = "python_version < '3.10'"}

Expand Down Expand Up @@ -52,11 +52,11 @@ requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.black] # https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
target-version = ["py37", "py38", "py39", "py310", "py311"]
target-version = ["py38", "py39", "py310", "py311"]

[tool.ruff]
required-version = "0.0.270"
target-version = "py37"
target-version = "py38"
select = [
"F", # Pyflakes
"E", # pycodestyle
Expand Down Expand Up @@ -136,7 +136,6 @@ show_error_codes = true
show_error_context = true
junit_xml = "reports/mypy.xml"
pretty = true
no_strict_concatenate = true # TODO(jonathan): remove when dropping python 3.7

[tool.pytest.ini_options] # https://docs.pytest.org/en/latest/reference/reference.html#ini-options-ref
filterwarnings = [
Expand Down

0 comments on commit 047ddca

Please sign in to comment.