Skip to content

Commit 210b91b

Browse files
authored
feat!: drop support for python 3.7 (#455)
1 parent 4859e8d commit 210b91b

File tree

7 files changed

+301
-322
lines changed

7 files changed

+301
-322
lines changed

.github/workflows/ci.yml

-5
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@ jobs:
2525
- "3.10"
2626
- "3.9"
2727
- "3.8"
28-
- "3.7"
2928
os:
3029
- ubuntu-latest
3130
- macos-latest
3231
- windows-latest
33-
exclude:
34-
- os: macos-latest
35-
py: "3.7"
3632
steps:
3733
- uses: actions/checkout@v4
3834
with:
@@ -50,7 +46,6 @@ jobs:
5046
env:
5147
COVERAGE_FILE: "coverage.${{ matrix.os }}.${{ matrix.py }}"
5248
- name: Store coverage file
53-
if: matrix.py != '3.7'
5449
uses: actions/upload-artifact@v4
5550
with:
5651
name: coverage.${{ matrix.os }}.${{ matrix.py }}

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ repos:
2727
rev: v3.10.1
2828
hooks:
2929
- id: pyupgrade
30-
args: [--py37-plus]
30+
args: [--py38-plus]
3131
- repo: https://github.com/pycqa/flake8
32-
rev: 7.0.0
32+
rev: 7.1.1
3333
hooks:
3434
- id: flake8
3535
additional_dependencies: [Flake8-pyproject]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ for a backend written in python. You can read more on the [Descope Website](http
55

66
## Requirements
77

8-
The SDK supports Python 3.7 and above.
8+
The SDK supports Python 3.8.1 and above.
99

1010
## Installing the SDK
1111

@@ -1444,7 +1444,7 @@ You can find various usage samples in the [samples folder](https://github.com/de
14441444

14451445
### Prerequisites
14461446

1447-
- Python 3.7 or higher
1447+
- Python 3.8.1 or higher
14481448
- [Poetry](https://python-poetry.org) installed
14491449

14501450
### Install dependencies

poetry.lock

+112-131
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+21-29
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,16 @@ classifiers = [
1414
"Operating System :: OS Independent",
1515
"Programming Language :: Python",
1616
"Programming Language :: Python :: 3 :: Only",
17-
"Programming Language :: Python :: 3.7",
1817
"Programming Language :: Python :: 3.8",
1918
"Programming Language :: Python :: 3.9",
2019
"Programming Language :: Python :: 3.10",
2120
"Programming Language :: Python :: 3.11",
2221
"Programming Language :: Python :: 3.12",
2322
"License :: OSI Approved :: MIT License",
2423
"Topic :: Software Development :: Libraries :: Python Modules",
25-
"Typing :: Typed"
26-
]
27-
packages = [
28-
{ include = "descope" },
24+
"Typing :: Typed",
2925
]
26+
packages = [{ include = "descope" }]
3027

3128
[tool.poetry.extras]
3229
Flask = ["Flask"]
@@ -37,41 +34,38 @@ Flask = ["Flask"]
3734

3835

3936
[tool.poetry.dependencies]
40-
python = ">=3.7,<4.0"
37+
python = ">=3.8.1,<4.0"
4138
requests = ">=2.27.0"
42-
pyjwt = {version = ">=2.4.0", extras = ["crypto"]}
43-
email-validator = [
44-
{version = ">=2,<=2.0.0.post2", python = ">=3.7,<3.8"},
45-
{version = ">=2,<3", python = ">=3.8"}
46-
]
39+
pyjwt = { version = ">=2.4.0", extras = ["crypto"] }
40+
email-validator = [{ version = ">=2,<3", python = ">=3.8" }]
4741
liccheck = "^0.9.1"
48-
Flask = {version = ">=2", python = ">=3.8"}
42+
Flask = ">=2"
4943

5044
[tool.poetry.group.dev.dependencies]
5145
mock = "5.1.0"
5246
pre-commit = [
53-
{version = "<3.0.0", python = ">=3.8,<3.9"},
54-
{version = "3.6.0", python = ">3.9"}
47+
{ version = "<3.0.0", python = "<3.9" },
48+
{ version = "3.6.0", python = ">=3.9" },
5549
]
56-
flake8 = {version = "7.1.1", python = ">=3.8.1"}
57-
flake8-pyproject = {version = "1.2.3", python = ">=3.8.1"}
58-
flake8-bugbear = {version = "24.8.19", python = ">=3.8.1"}
50+
flake8 = "7.1.1"
51+
flake8-pyproject = "1.2.3"
52+
flake8-bugbear = "24.8.19"
5953
liccheck = "0.9.2"
60-
isort = {version = "5.13.2", python = ">=3.8"}
61-
pep8-naming = {version = "0.14.1", python = ">=3.8"}
62-
tox = {version = "4.12.1", python = ">=3.8"}
54+
isort = "5.13.2"
55+
pep8-naming = "0.14.1"
56+
tox = "4.12.1"
6357

6458
[tool.poetry.group.format.dependencies]
65-
black = {version = "24.3.0", python = ">=3.8"}
59+
black = "24.3.0"
6660

6761
[tool.poetry.group.types.dependencies]
68-
mypy = {version = "1.11.2", python = ">=3.8"}
69-
types-requests = {version = "2.32.0.20240914", python = ">=3.8"}
70-
types-setuptools = {version = "75.1.0.20240917", python = ">=3.8"}
62+
mypy = "1.11.2"
63+
types-requests = "2.32.0.20240914"
64+
types-setuptools = "75.1.0.20240917"
7165

7266
[tool.poetry.group.tests.dependencies]
73-
pytest = {version = "8.3.3", python = ">=3.8"}
74-
coverage = {version = "^7.3.1", python = ">=3.8", extras = ["toml"]}
67+
pytest = "8.3.3"
68+
coverage = { version = "^7.3.1", extras = ["toml"] }
7569

7670
[build-system]
7771
requires = ["poetry-core>=1.1.0"]
@@ -80,9 +74,7 @@ build-backend = "poetry.core.masonry.api"
8074
[tool.coverage.run]
8175
relative_files = true
8276
source = ["descope"]
83-
omit = [
84-
"descope/flask/*",
85-
]
77+
omit = ["descope/flask/*"]
8678

8779

8880
[tool.coverage.report]

0 commit comments

Comments
 (0)