-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
70 lines (61 loc) · 2.15 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import os
from setuptools import setup
######################
# beginning of setup
######################
here = os.path.dirname(__file__)
if here == "":
here = "."
package_data = {"pandas_streaming.validation": ["*.css", "*.js"]}
try:
with open(os.path.join(here, "requirements.txt"), "r") as f:
requirements = f.read().strip(" \n\r\t").split("\n")
except FileNotFoundError:
requirements = []
if len(requirements) == 0 or requirements == [""]:
requirements = ["pandas"]
try:
with open(os.path.join(here, "README.rst"), "r", encoding="utf-8") as f:
long_description = "pandas-streaming:" + f.read().split("pandas-streaming:")[1]
except FileNotFoundError:
long_description = ""
version_str = "0.1.0"
with open(os.path.join(here, "pandas_streaming/__init__.py"), "r") as f:
line = [
_
for _ in [_.strip("\r\n ") for _ in f.readlines()]
if _.startswith("__version__")
]
if len(line) > 0:
version_str = line[0].split("=")[1].strip('" ')
setup(
name="pandas-streaming",
version=version_str,
description="Array (and numpy) API for ONNX",
long_description=long_description,
author="Xavier Dupré",
author_email="[email protected]",
url="https://github.com/sdpython/pandas-streaming",
package_data=package_data,
setup_requires=["numpy", "scipy"],
install_requires=requirements,
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: C",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Development Status :: 5 - Production/Stable",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)