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

read requirements.txt in installation

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