Skip to content

Commit 1fa56d0

Browse files
feat(project): drop support for Python 3.7 (#1845)
3.7 has been EOL for over a year and accounts for a small number of downloads
1 parent bbd7598 commit 1fa56d0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![PyPI version](https://img.shields.io/pypi/v/openai.svg)](https://pypi.org/project/openai/)
44

5-
The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.7+
5+
The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.8+
66
application. The library includes type definitions for all request params and response fields,
77
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
88

@@ -520,7 +520,7 @@ print(openai.__version__)
520520

521521
## Requirements
522522

523-
Python 3.7 or higher.
523+
Python 3.8 or higher.
524524

525525
## Contributing
526526

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ dependencies = [
1616
"sniffio",
1717
"cached-property; python_version < '3.8'",
1818
]
19-
requires-python = ">= 3.7.1"
19+
requires-python = ">= 3.8"
2020
classifiers = [
2121
"Typing :: Typed",
2222
"Intended Audience :: Developers",
23-
"Programming Language :: Python :: 3.7",
2423
"Programming Language :: Python :: 3.8",
2524
"Programming Language :: Python :: 3.9",
2625
"Programming Language :: Python :: 3.10",
@@ -139,7 +138,7 @@ filterwarnings = [
139138
# there are a couple of flags that are still disabled by
140139
# default in strict mode as they are experimental and niche.
141140
typeCheckingMode = "strict"
142-
pythonVersion = "3.7"
141+
pythonVersion = "3.8"
143142

144143
exclude = [
145144
"_dev",

0 commit comments

Comments
 (0)