Loading setup.py +35 −27 Original line number Original line Diff line number Diff line 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=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Operating System :: OS Independent", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Astronomy"], "Topic :: Scientific/Engineering :: Astronomy", package_dir={'csst': 'csst'}, ], # include_package_data=True, include_package_data=True, # 设置包含随包数据 package_data={"": ["LICENSE", "README.md"], package_data={ # 具体随包数据路径 "csst_common": ["data/*"]}, "csst_common": ["data/*"], # install_requires=['sphinx', }, # 'numpy', install_requires=requirements, # 'scipy', 'matplotlib', python_requires=">=3.11", # 'astropy', 'healpy', 'ccdproc', 'deepCR', 'photutils'], python_requires='>=3.8', ) ) Loading
setup.py +35 −27 Original line number Original line Diff line number Diff line 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=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Operating System :: OS Independent", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.8", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Physics", "Topic :: Scientific/Engineering :: Astronomy"], "Topic :: Scientific/Engineering :: Astronomy", package_dir={'csst': 'csst'}, ], # include_package_data=True, include_package_data=True, # 设置包含随包数据 package_data={"": ["LICENSE", "README.md"], package_data={ # 具体随包数据路径 "csst_common": ["data/*"]}, "csst_common": ["data/*"], # install_requires=['sphinx', }, # 'numpy', install_requires=requirements, # 'scipy', 'matplotlib', python_requires=">=3.11", # 'astropy', 'healpy', 'ccdproc', 'deepCR', 'photutils'], python_requires='>=3.8', ) )