From cb682cd33f33f09e960bb52888e95b7a94394bb2 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Mon, 5 Dec 2022 16:24:57 -0700 Subject: [PATCH 1/2] Add a setup.py --- setup.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..c32c50b1 --- /dev/null +++ b/setup.py @@ -0,0 +1,27 @@ +from setuptools import setup, find_packages + +with open("README.md", "r") as fh: + long_description = fh.read() + +import array_api_compat + +setup( + name='array_api_compat', + version=array_api_compat.__version__, + packages=find_packages(include=['array_api_compat*']), + author="Consortium for Python Data API Standards", + description="A wrapper around NumPy and other array libraries to make them compatible with the Array API standard", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://data-apis.org/array-api-compat/", + license="MIT", + extras_require={ + "numpy": "numpy", + "cupy": "cupy", + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], +) From 946320ab91a897859cba2982d28ba0a327dfca4a Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Mon, 5 Dec 2022 16:28:01 -0700 Subject: [PATCH 2/2] Add __version__ --- array_api_compat/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/array_api_compat/__init__.py b/array_api_compat/__init__.py index 34bd7565..ca195443 100644 --- a/array_api_compat/__init__.py +++ b/array_api_compat/__init__.py @@ -17,4 +17,6 @@ this implementation for the default when working with NumPy arrays. """ +__version__ = '1.0' + from .common import *