-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
53 lines (45 loc) · 1.3 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
from distutils.core import setup
from setuptools import find_packages
from Cython.Build import cythonize
import numpy
import glob
extensions = glob.glob("torchqtm/_C/*.pyx")
install_requires = [
'numpy',
'pandas',
'pandas_market_calendars',
'cython',
]
def main():
setup(
ext_modules=cythonize(extensions, language='c++'),
include_dirs=[numpy.get_include()],
name="torchqtm",
version="0.1.0",
author="ny",
author_email="[email protected]",
install_requires=install_requires,
description="None",
long_description=open('README.md', 'r').read(),
long_description_content_type="text/markdown",
url="https://github.com/nymath/torchquantum/tree/main",
download_url="https://github.com/nymath/torchquantum/releases/tag/",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
],
python_requires='>=3.6',
)
if __name__ == "__main__":
main()
## setup cython
# python setup.py build_ext --inplace
## setup package
# pip install twine
# python setup.py sdist bdist_wheel
# twine upload dist/*
# twine upload --skip-existing dist/*
# ny.math
# xxx