Commit ffa4a02c authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

update setup.py

parent 92f0f448
Pipeline #2050 failed with stage
in 0 seconds
import setuptools import setuptools
import csst_common
with open("README.md", "r") as fh: # 读取README.md作为长描述
long_description = fh.read() with open("README.md", "r") as f:
long_description = f.read()
# 读取依赖列表requirements.txt
# 忽略#开头或者版本号不明确指定的条目
with open("requirements.txt", "r") as f:
requirements = [
req.strip()
for req in f.readlines()
if not req.startswith("#") and req.__contains__("==")
]
setuptools.setup( setuptools.setup(
name='csst_common', name="csst_common",
version=csst_common.__version__, version="0.0.1",
author='CSST Team', author="Bo Zhang",
author_email='bozhang@nao.cas.cn', author_email="bozhang@nao.cas.cn",
description='The CSST L1 pipeline - common modules', # short description description="The CSST L1 pipeline - common modules", # short description
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
url='https://csst-tb.bao.ac.cn/code/csst-l1/csst_common', url="https://csst-tb.bao.ac.cn/code/csst-l1/csst_common",
project_urls={ project_urls={
'Source': 'https://csst-tb.bao.ac.cn/code/csst-l1/csst_common', "Source": "https://csst-tb.bao.ac.cn/code/csst-l1/csst_common",
}, },
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
license='MIT', license="MIT",
classifiers=["Development Status :: 5 - Production/Stable", classifiers=[
"Intended Audience :: Science/Research", "Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License", "Intended Audience :: Science/Research",
"Operating System :: OS Independent", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8", "Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Physics", "Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Astronomy"], "Topic :: Scientific/Engineering :: Physics",
package_dir={'csst': 'csst'}, "Topic :: Scientific/Engineering :: Astronomy",
# include_package_data=True, ],
package_data={"": ["LICENSE", "README.md"], include_package_data=True, # 设置包含随包数据
"csst_common": ["data/*"]}, package_data={ # 具体随包数据路径
# install_requires=['sphinx', "csst_common": ["data/*"],
# 'numpy', },
# 'scipy', 'matplotlib', install_requires=requirements,
# 'astropy', 'healpy', 'ccdproc', 'deepCR', 'photutils'], python_requires=">=3.11",
python_requires='>=3.8',
) )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment