setup.py 1.58 KB
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
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
import setuptools
import os

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

with open("requirements.txt", "r") as f:
    requirements = [
        req.strip()
        for req in f.readlines()
        if not req.startswith("#") and req.__contains__("==")
    ]

def version():
    __version = {}
    version_path = os.path.join(os.path.dirname(__file__), "csst_dfs_client", "version.py")
    with open(version_path, "r") as file:
        exec(file.read(), __version)
    return __version["__version__"]

setuptools.setup(
    name="csst-dfs-client",
    version=version(),
    author="Shoulin Wei",
    author_email="weishoulin@kust.edu.cn",
    description="CSST DFS Project",
    long_description=long_description,
    long_description_content_type="text/markdown",
Wei Shoulin's avatar
mit    
Wei Shoulin committed
29
    url="https://csst-tb.bao.ac.cn/code/csst-dfs/csst-dfs-client",
Wei Shoulin's avatar
Wei Shoulin committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
    packages=setuptools.find_packages(where="." , exclude=['tests']), 
    license="MIT",
    classifiers=[
        # How mature is this project?
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3",
        "Framework :: FastAPI",
        "Topic :: Scientific/Engineering :: Physics",
        "Topic :: Scientific/Engineering :: Astronomy",
    ],
    include_package_data=True,
    package_data={
        "csst_dfs_client": ["data/*"],
    },
    python_requires=">=3.9",
    install_requires=requirements
)