setup.py 1.63 KB
Newer Older
BO ZHANG's avatar
BO ZHANG committed
1
2
3
4
5
6
7
import setuptools
import csst_proto

with open("README.md", "r") as fh:
    long_description = fh.read()

setuptools.setup(
BO ZHANG's avatar
BO ZHANG committed
8
    name='csst_proto',
BO ZHANG's avatar
BO ZHANG committed
9
    version=csst_proto.__version__,
BO ZHANG's avatar
BO ZHANG committed
10
    author='Bo Zhang',
BO ZHANG's avatar
BO ZHANG committed
11
    author_email='bozhang@nao.cas.cn',
BO ZHANG's avatar
BO ZHANG committed
12
    description='The CSST L1 pipeline - prototype',  # short description
BO ZHANG's avatar
BO ZHANG committed
13
14
    long_description=long_description,
    long_description_content_type="text/markdown",
BO ZHANG's avatar
BO ZHANG committed
15
    url='https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto',
BO ZHANG's avatar
BO ZHANG committed
16
    project_urls={
BO ZHANG's avatar
BO ZHANG committed
17
        'Source': 'https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto',
BO ZHANG's avatar
BO ZHANG committed
18
19
20
21
22
23
24
    },
    packages=setuptools.find_packages(),
    license='MIT',
    classifiers=["Development Status :: 5 - Production/Stable",
                 "Intended Audience :: Science/Research",
                 "License :: OSI Approved :: MIT License",
                 "Operating System :: OS Independent",
BO ZHANG's avatar
BO ZHANG committed
25
                 "Programming Language :: Python :: 3.9",
BO ZHANG's avatar
BO ZHANG committed
26
27
                 "Topic :: Scientific/Engineering :: Physics",
                 "Topic :: Scientific/Engineering :: Astronomy"],
BO ZHANG's avatar
BO ZHANG committed
28
    package_dir={'csst_proto': 'csst_proto'},
BO ZHANG's avatar
BO ZHANG committed
29
30
    # include_package_data=True,
    package_data={"": ["LICENSE", "README.md"],
BO ZHANG's avatar
BO ZHANG committed
31
                  "csst_proto": ["data/test_image.txt",
32
                                 "data/table_data.csv"
BO ZHANG's avatar
BO ZHANG committed
33
                                 ]},
BO ZHANG's avatar
BO ZHANG committed
34
35
36
37
38
    # install_requires=['numpy>1.20.3',
    #                   'scipy',
    #                   'matplotlib',
    #                   'astropy',
    #                   ],
39
    python_requires='>=3.9',
BO ZHANG's avatar
BO ZHANG committed
40
41
42
43
44
45
    ext_modules=[
        setuptools.Extension(
            name="csst_proto.cext.helloworld", sources=["cextern/helloworld.c"]
        )
    ]
)