-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
47 lines (44 loc) · 1.35 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
import setuptools
from setuptools import Extension
from Cython.Build import cythonize
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
extensions = [
Extension("*", ["tabox/ta_func/*.py"]) # extra_compile_args=["-O3", "/Ox"]
# Extension("mandheling", ["mandheling/*/*.pyx"]),
# Everything but primes.pyx is included here.
# Extension("*", ["*.pyx"],
# include_dirs=[],
# libraries=[],
# library_dirs=[]),
]
setuptools.setup(
name="TA-Box",
version="0.0.1a1.dev2",
author="Jun Wang",
author_email="[email protected]",
description="A Python implementation for TA-LIB",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/quantmew/ta-lib",
project_urls={
"Bug Tracker": "https://github.com/quantmew/ta-lib/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
packages=['tabox'],
python_requires='>=3.6',
ext_modules=cythonize(
extensions,
language_level = "3",
annotate=True,
compiler_directives={'language_level' : "3"}, # or "2" or "3str"
),
install_requires=[
'numpy>=1.19.2',
'cython>=0.29.21',
]
)