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
628eb736
Commit
628eb736
authored
Oct 28, 2023
by
BO ZHANG
🏀
Browse files
install requirements automatically
parent
75236371
Pipeline
#1431
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
628eb736
...
@@ -4,34 +4,31 @@ CSST 流水线原型,用于展示示例代码。
...
@@ -4,34 +4,31 @@ CSST 流水线原型,用于展示示例代码。
## dependency
## dependency
-
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
## installation
## installation
`csst_proto`
can be installed with the following shell command
`csst_proto`
可用如下方式安装
```
ba
sh
```
sh
ell
git clone https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto.git
git clone https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto.git
cd
csst_proto
cd
csst_proto
pip
install
-r
requirements.txt
pip
install
.
python setup.py
install
```
```
or a single-line command (the requirements are not installed automatically)
或者单行命令:
```
ba
sh
```
sh
ell
sh
-c
"
$(
curl
-fsSL
https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto
/-/raw/main/install.sh
)
"
pip
install
--force-reinstall
git+
https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto
.git
```
```
## tutorial
## tutorial
A simple example on how to use this package:
一个简单使用教程
```
python
```
python
from
csst_proto
import
flip_image
from
csst_proto
import
flip_image
...
...
setup.py
View file @
628eb736
...
@@ -5,8 +5,13 @@ with open("README.md", "r") as f:
...
@@ -5,8 +5,13 @@ with open("README.md", "r") as f:
long_description
=
f
.
read
()
long_description
=
f
.
read
()
# 读取依赖列表requirements.txt
# 读取依赖列表requirements.txt
# 忽略#开头或者版本号不明确指定的条目
with
open
(
"requirements.txt"
,
"r"
)
as
f
:
with
open
(
"requirements.txt"
,
"r"
)
as
f
:
requirements
=
[
_
.
strip
()
for
_
in
f
.
readlines
()]
requirements
=
[
req
.
strip
()
for
req
in
f
.
readlines
()
if
not
req
.
startswith
(
"#"
)
and
req
.
__contains__
(
"=="
)
]
# 配置、安装
# 配置、安装
setuptools
.
setup
(
setuptools
.
setup
(
...
...
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