Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
75236371
Commit
75236371
authored
Oct 28, 2023
by
BO ZHANG
🏀
Browse files
read requirements.txt in installation
parent
e17d1ba0
Pipeline
#1430
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
requirements.txt
View file @
75236371
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
setup.py
View file @
75236371
import
setuptools
# 读取README.md作为长描述
with
open
(
"README.md"
,
"r"
)
as
f
h
:
long_description
=
f
h
.
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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment