Loading setup.py +35 −27 Original line number Diff line number Diff line import setuptools import csst_common with open("README.md", "r") as fh: long_description = fh.read() # 读取README.md作为长描述 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( name='csst_common', version=csst_common.__version__, author='CSST Team', author_email='bozhang@nao.cas.cn', description='The CSST L1 pipeline - common modules', # short description name="csst_common", version="0.0.1", author="Bo Zhang", author_email="bozhang@nao.cas.cn", description="The CSST L1 pipeline - common modules", # short description long_description=long_description, 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={ '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(), license='MIT', classifiers=["Development Status :: 5 - Production/Stable", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Astronomy"], package_dir={'csst': 'csst'}, # include_package_data=True, package_data={"": ["LICENSE", "README.md"], "csst_common": ["data/*"]}, # install_requires=['sphinx', # 'numpy', # 'scipy', 'matplotlib', # 'astropy', 'healpy', 'ccdproc', 'deepCR', 'photutils'], python_requires='>=3.8', "Topic :: Scientific/Engineering :: Astronomy", ], include_package_data=True, # 设置包含随包数据 package_data={ # 具体随包数据路径 "csst_common": ["data/*"], }, install_requires=requirements, python_requires=">=3.11", ) Loading
setup.py +35 −27 Original line number Diff line number Diff line import setuptools import csst_common with open("README.md", "r") as fh: long_description = fh.read() # 读取README.md作为长描述 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( name='csst_common', version=csst_common.__version__, author='CSST Team', author_email='bozhang@nao.cas.cn', description='The CSST L1 pipeline - common modules', # short description name="csst_common", version="0.0.1", author="Bo Zhang", author_email="bozhang@nao.cas.cn", description="The CSST L1 pipeline - common modules", # short description long_description=long_description, 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={ '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(), license='MIT', classifiers=["Development Status :: 5 - Production/Stable", license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Astronomy"], package_dir={'csst': 'csst'}, # include_package_data=True, package_data={"": ["LICENSE", "README.md"], "csst_common": ["data/*"]}, # install_requires=['sphinx', # 'numpy', # 'scipy', 'matplotlib', # 'astropy', 'healpy', 'ccdproc', 'deepCR', 'photutils'], python_requires='>=3.8', "Topic :: Scientific/Engineering :: Astronomy", ], include_package_data=True, # 设置包含随包数据 package_data={ # 具体随包数据路径 "csst_common": ["data/*"], }, install_requires=requirements, python_requires=">=3.11", )