Skip to content

Commit

Permalink
feat!: drop support for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
omercnet committed Nov 10, 2024
1 parent 4859e8d commit a27a66f
Show file tree
Hide file tree
Showing 7 changed files with 301 additions and 322 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ jobs:
- "3.10"
- "3.9"
- "3.8"
- "3.7"
os:
- ubuntu-latest
- macos-latest
- windows-latest
exclude:
- os: macos-latest
py: "3.7"
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -50,7 +46,6 @@ jobs:
env:
COVERAGE_FILE: "coverage.${{ matrix.os }}.${{ matrix.py }}"
- name: Store coverage file
if: matrix.py != '3.7'
uses: actions/upload-artifact@v4
with:
name: coverage.${{ matrix.os }}.${{ matrix.py }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ repos:
rev: v3.10.1
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [Flake8-pyproject]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ for a backend written in python. You can read more on the [Descope Website](http

## Requirements

The SDK supports Python 3.7 and above.
The SDK supports Python 3.8.1 and above.

## Installing the SDK

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

### Prerequisites

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

### Install dependencies
Expand Down
243 changes: 112 additions & 131 deletions poetry.lock

Large diffs are not rendered by default.

50 changes: 21 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,16 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed"
]
packages = [
{ include = "descope" },
"Typing :: Typed",
]
packages = [{ include = "descope" }]

[tool.poetry.extras]
Flask = ["Flask"]
Expand All @@ -37,41 +34,38 @@ Flask = ["Flask"]


[tool.poetry.dependencies]
python = ">=3.7,<4.0"
python = ">=3.8.1,<4.0"
requests = ">=2.27.0"
pyjwt = {version = ">=2.4.0", extras = ["crypto"]}
email-validator = [
{version = ">=2,<=2.0.0.post2", python = ">=3.7,<3.8"},
{version = ">=2,<3", python = ">=3.8"}
]
pyjwt = { version = ">=2.4.0", extras = ["crypto"] }
email-validator = [{ version = ">=2,<3", python = ">=3.8" }]
liccheck = "^0.9.1"
Flask = {version = ">=2", python = ">=3.8"}
Flask = ">=2"

[tool.poetry.group.dev.dependencies]
mock = "5.1.0"
pre-commit = [
{version = "<3.0.0", python = ">=3.8,<3.9"},
{version = "3.6.0", python = ">3.9"}
{ version = "<3.0.0", python = "<3.9" },
{ version = "3.6.0", python = ">=3.9" },
]
flake8 = {version = "7.1.1", python = ">=3.8.1"}
flake8-pyproject = {version = "1.2.3", python = ">=3.8.1"}
flake8-bugbear = {version = "24.8.19", python = ">=3.8.1"}
flake8 = "7.1.1"
flake8-pyproject = "1.2.3"
flake8-bugbear = "24.8.19"
liccheck = "0.9.2"
isort = {version = "5.13.2", python = ">=3.8"}
pep8-naming = {version = "0.14.1", python = ">=3.8"}
tox = {version = "4.12.1", python = ">=3.8"}
isort = "5.13.2"
pep8-naming = "0.14.1"
tox = "4.12.1"

[tool.poetry.group.format.dependencies]
black = {version = "24.3.0", python = ">=3.8"}
black = "24.3.0"

[tool.poetry.group.types.dependencies]
mypy = {version = "1.11.2", python = ">=3.8"}
types-requests = {version = "2.32.0.20240914", python = ">=3.8"}
types-setuptools = {version = "75.1.0.20240917", python = ">=3.8"}
mypy = "1.11.2"
types-requests = "2.32.0.20240914"
types-setuptools = "75.1.0.20240917"

[tool.poetry.group.tests.dependencies]
pytest = {version = "8.3.3", python = ">=3.8"}
coverage = {version = "^7.3.1", python = ">=3.8", extras = ["toml"]}
pytest = "8.3.3"
coverage = { version = "^7.3.1", extras = ["toml"] }

[build-system]
requires = ["poetry-core>=1.1.0"]
Expand All @@ -80,9 +74,7 @@ build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
relative_files = true
source = ["descope"]
omit = [
"descope/flask/*",
]
omit = ["descope/flask/*"]


[tool.coverage.report]
Expand Down
Loading

0 comments on commit a27a66f

Please sign in to comment.