setup.py 1.55 KB
Newer Older
Shuai Feng's avatar
Shuai Feng committed
1
2
from setuptools import setup, find_packages

Shuai Feng's avatar
Shuai Feng committed
3
import setuptools
Shuai Feng's avatar
Shuai Feng committed
4

Shuai Feng's avatar
Shuai Feng committed
5
6
7
8
9
10
11
12
13
14
15
with open("README.md", "r") as fh:
    long_description = fh.read()

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

setuptools.setup(
Shuai Feng's avatar
Shuai Feng committed
16
    name='csst_ifs_gehong',
Shuai Feng's avatar
Shuai Feng committed
17
    version='1.1.0',
Shuai Feng's avatar
Shuai Feng committed
18
19
20
    license='MIT',
    author="Shuai Feng",
    author_email='sfeng@hebtu.edu.cn',
Shuai Feng's avatar
Shuai Feng committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    description='The packages for the scientific data simulation of CSST-IFS',  # short description
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://csst-tb.bao.ac.cn/code/csst-sims/csst_ifs_gehong',
    project_urls={
        'Source': 'https://csst-tb.bao.ac.cn/code/csst-sims/csst_ifs_gehong',
    },
    packages=setuptools.find_packages(),
    classifiers=["Development Status :: 5 - Production/Stable",
                 "Intended Audience :: Science/Research",
                 "License :: OSI Approved :: MIT License",
                 "Operating System :: OS Independent",
                 "Programming Language :: Python :: 3.11",
                 "Topic :: Scientific/Engineering :: Physics",
                 "Topic :: Scientific/Engineering :: Astronomy"],
    package_dir={'csst_ifs_gehong': 'csst_ifs_gehong'},
    # include_package_data=True,
    package_data={"": ["LICENSE", "README.md"],
                  "csst_ifs_gehong": [
                      "data/*",
                  ]},
    python_requires='>=3.11',
    install_requires=requirements,
Shuai Feng's avatar
Shuai Feng committed
44
)