Skip to content

Commit e873002

Browse files
committed
build: Drop Python 3.9 support
1 parent cec3ac9 commit e873002

File tree

8 files changed

+12
-15
lines changed

8 files changed

+12
-15
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ body:
3333
label: Python Version
3434
description: What Python version are you using?
3535
options:
36-
- '3.9'
3736
- '3.10'
3837
- '3.11'
3938
- '3.12'

.github/workflows/commit_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
30-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
30+
python-version: ["3.10", "3.11", "3.12", "3.13"]
3131
env:
3232
MJ_APIKEY_PUBLIC: ${{ secrets.MJ_APIKEY_PUBLIC }}
3333
MJ_APIKEY_PRIVATE: ${{ secrets.MJ_APIKEY_PRIVATE }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ repos:
111111
rev: v3.20.0
112112
hooks:
113113
- id: pyupgrade
114-
args: [--py39-plus, --keep-runtime-typing]
114+
args: [--py310-plus, --keep-runtime-typing]
115115

116116
- repo: https://github.com/charliermarsh/ruff-pre-commit
117117
# Ruff version.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Check out all the resources and Python code examples in the official [Mailjet Do
5858

5959
This library `mailjet_rest` officially supports the following Python versions:
6060

61-
- Python >=3.9,\<3.14
61+
- Python >=3.10,\<3.14
6262

6363
It's tested up to 3.13 (including).
6464

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ source:
1616

1717
build:
1818
number: 0
19-
skip: True # [py<39]
19+
skip: True # [py<310]
2020
script: {{ PYTHON }} -m pip install . --no-deps --no-build-isolation -vv
2121
script_env:
2222
- SETUPTOOLS_SCM_PRETEND_VERSION={{ version }}

environment-dev.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: mailjet-dev
33
channels:
44
- defaults
55
dependencies:
6-
- python >=3.9
6+
- python >=3.10
77
# build & host deps
88
- pip
99
- setuptools-scm
@@ -52,8 +52,7 @@ dependencies:
5252
- pyment >=0.3.3
5353
- pytype
5454
- pyupgrade
55-
# refurb doesn't support py39
56-
#- refurb
55+
- refurb
5756
- scalene >=1.3.16
5857
- snakeviz
5958
- typos

environment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: mailjet
33
channels:
44
- defaults
55
dependencies:
6-
- python >=3.9
6+
- python >=3.10
77
# build & host deps
88
- pip
99
# runtime deps

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ license = {text = "MIT"}
3535
# TODO: Enable license-files when setuptools >=77.0.0 will be available
3636
#license-files = ["LICENSE"]
3737
readme = "README.md"
38-
requires-python = ">=3.9"
38+
requires-python = ">=3.10"
3939

4040
dependencies = ["requests>=2.32.3"]
4141

@@ -54,7 +54,6 @@ classifiers = [
5454
"Natural Language :: English",
5555
"Operating System :: OS Independent",
5656
"Programming Language :: Python :: 3",
57-
"Programming Language :: Python :: 3.9",
5857
"Programming Language :: Python :: 3.10",
5958
"Programming Language :: Python :: 3.11",
6059
"Programming Language :: Python :: 3.12",
@@ -136,7 +135,7 @@ other = ["toml"]
136135

137136
[tool.black]
138137
line-length = 88
139-
target-version = ["py39", "py310", "py311", "py312", "py313"]
138+
target-version = ["py310", "py311", "py312", "py313"]
140139
skip-string-normalization = false
141140
skip-magic-trailing-comma = false
142141
extend-exclude = '''
@@ -190,8 +189,8 @@ extend-exclude = ["tests", "test"]
190189
line-length = 88
191190
#indent-width = 4
192191

193-
# Assume Python 3.9.
194-
target-version = "py39"
192+
# Assume Python 3.10.
193+
target-version = "py310"
195194
# Enumerate all fixed violations.
196195
show-fixes = true
197196

@@ -334,7 +333,7 @@ ignore_patterns = [
334333
strict = true
335334
# Adapted from this StackOverflow post:
336335
# https://stackoverflow.com/questions/55944201/python-type-hinting-how-do-i-enforce-that-project-wide
337-
python_version = "3.9"
336+
python_version = "3.10"
338337
mypy_path = "type_stubs"
339338
namespace_packages = true
340339
# This flag enhances the user feedback for error messages

0 commit comments

Comments
 (0)