Loading requirements.txt +8 −7 Original line number Original line Diff line number Diff line numpy==1.23.3 numpy==1.26.1 scipy==1.9.2 scipy==1.11.3 joblib==1.2.0 astropy==5.3.4 astropy==5.1 joblib==1.3.0 pytest==7.2.1 coverage==7.2.1 toml==0.10.2 toml==0.10.2 #pytest #coverage #pytest-cov No newline at end of file setup.py +8 −2 Original line number Original line Diff line number Diff line import setuptools import setuptools # 读取README.md作为长描述 # 读取README.md作为长描述 with open("README.md", "r") as fh: with open("README.md", "r") as f: long_description = fh.read() long_description = f.read() # 读取依赖列表requirements.txt with open("requirements.txt", "r") as f: requirements = [_.strip() for _ in f.readlines()] # 配置、安装 setuptools.setup( setuptools.setup( name="csst_proto", # 包名 name="csst_proto", # 包名 version="0.0.1", # 版本号 version="0.0.1", # 版本号 Loading Loading @@ -31,6 +36,7 @@ setuptools.setup( include_package_data=True, # 包含所有随包数据 include_package_data=True, # 包含所有随包数据 # 请注意检查,防止临时文件或其他不必要的文件被提交到仓库,否则会一同安装 # 请注意检查,防止临时文件或其他不必要的文件被提交到仓库,否则会一同安装 python_requires=">=3.11", # Python版本要求 python_requires=">=3.11", # Python版本要求 install_requires=requirements, ext_modules=[ # 如果有随包的C代码,需要在这里定义扩展 ext_modules=[ # 如果有随包的C代码,需要在这里定义扩展 setuptools.Extension( setuptools.Extension( name="csst_proto.cext.helloworld", name="csst_proto.cext.helloworld", Loading Loading
requirements.txt +8 −7 Original line number Original line Diff line number Diff line numpy==1.23.3 numpy==1.26.1 scipy==1.9.2 scipy==1.11.3 joblib==1.2.0 astropy==5.3.4 astropy==5.1 joblib==1.3.0 pytest==7.2.1 coverage==7.2.1 toml==0.10.2 toml==0.10.2 #pytest #coverage #pytest-cov No newline at end of file
setup.py +8 −2 Original line number Original line Diff line number Diff line import setuptools import setuptools # 读取README.md作为长描述 # 读取README.md作为长描述 with open("README.md", "r") as fh: with open("README.md", "r") as f: long_description = fh.read() long_description = f.read() # 读取依赖列表requirements.txt with open("requirements.txt", "r") as f: requirements = [_.strip() for _ in f.readlines()] # 配置、安装 setuptools.setup( setuptools.setup( name="csst_proto", # 包名 name="csst_proto", # 包名 version="0.0.1", # 版本号 version="0.0.1", # 版本号 Loading Loading @@ -31,6 +36,7 @@ setuptools.setup( include_package_data=True, # 包含所有随包数据 include_package_data=True, # 包含所有随包数据 # 请注意检查,防止临时文件或其他不必要的文件被提交到仓库,否则会一同安装 # 请注意检查,防止临时文件或其他不必要的文件被提交到仓库,否则会一同安装 python_requires=">=3.11", # Python版本要求 python_requires=">=3.11", # Python版本要求 install_requires=requirements, ext_modules=[ # 如果有随包的C代码,需要在这里定义扩展 ext_modules=[ # 如果有随包的C代码,需要在这里定义扩展 setuptools.Extension( setuptools.Extension( name="csst_proto.cext.helloworld", name="csst_proto.cext.helloworld", Loading