Skip to content

Commit

Permalink
Python 3.10 support (#523)
Browse files Browse the repository at this point in the history
* Enable support for Python 3.10

* Update classifiers

* ONNX update

* Update onnx and onnxruntime
  • Loading branch information
mgoin authored Jul 29, 2022
1 parent ce295c5 commit cedc685
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

# Developing the DeepSparse Engine

The DeepSparse Python API is developed and tested using Python 3.6-3.9.
The DeepSparse Python API is developed and tested using Python 3.6-3.10.
To develop the Python API, you will also need the development dependencies and to follow the styling guidelines.

Here's some details to get started.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Neural Magic's DeepSparse Engine is able to integrate into popular deep learning
- 🧰 [CPU Hardware Support for Various Architectures](https://docs.neuralmagic.com/deepsparse/source/hardware.html)

## Installation
The DeepSparse Engine is tested on Python 3.6-3.9, ONNX 1.5.0-1.10.1, ONNX opset version 11+, and manylinux compliant. Using a [virtual environment](https://docs.python.org/3/library/venv.html) is highly recommended. Install the engine using the following command:
The DeepSparse Engine is tested on Python 3.6-3.10, ONNX 1.5.0-1.12.0, ONNX opset version 11+, and manylinux compliant. Using a [virtual environment](https://docs.python.org/3/library/venv.html) is highly recommended. Install the engine using the following command:

```bash
pip install deepsparse
Expand Down
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

_deps = [
"numpy>=1.16.3",
"onnx>=1.5.0,<=1.10.1",
"onnx>=1.5.0,<=1.12.0",
"pydantic>=1.8.2",
"requests>=2.0.0",
"tqdm>=4.0.0",
Expand All @@ -73,7 +73,7 @@
"pytest>=6.0.0",
"sphinx-multiversion==0.2.4",
"sphinx-rtd-theme",
"onnxruntime>=1.4.0,<1.9.0",
"onnxruntime>=1.7.0",
"flask>=1.0.0",
"flask-cors>=3.0.0",
]
Expand Down Expand Up @@ -129,7 +129,7 @@ def _check_supported_system():

def _check_supported_python_version():
supported_major = 3
supported_minor = [6, 7, 8, 9]
supported_minor = [6, 7, 8, 9, 10]

if (
sys.version_info[0] != supported_major
Expand Down Expand Up @@ -249,11 +249,16 @@ def _setup_long_description() -> Tuple[str, str]:
install_requires=_setup_install_requires(),
extras_require=_setup_extras(),
entry_points=_setup_entry_points(),
python_requires=">=3.6, <3.10",
python_requires=">=3.6, <3.11",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
Expand Down

0 comments on commit cedc685

Please sign in to comment.