Commit 628eb736 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

install requirements automatically

parent 75236371
Pipeline #1431 passed with stage
in 0 seconds
......@@ -4,34 +4,31 @@ CSST 流水线原型,用于展示示例代码。
## dependency
- numpy==1.23.3
- scipy==1.9.2
- joblib==1.2.0
- astropy==5.1
- pytest==7.2.1
- coverage==7.2.1
- numpy==1.26.1
- scipy==1.11.3
- astropy==5.3.4
- joblib==1.3.0
- toml==0.10.2
## installation
`csst_proto` can be installed with the following shell command
`csst_proto` 可用如下方式安装
```bash
```shell
git clone https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto.git
cd csst_proto
pip install -r requirements.txt
python setup.py install
pip install .
```
or a single-line command (the requirements are not installed automatically)
或者单行命令:
```bash
sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/install.sh)"
```shell
pip install --force-reinstall git+https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto.git
```
## tutorial
A simple example on how to use this package:
一个简单使用教程
```python
from csst_proto import flip_image
......
......@@ -5,8 +5,13 @@ 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()]
requirements = [
req.strip()
for req in f.readlines()
if not req.startswith("#") and req.__contains__("==")
]
# 配置、安装
setuptools.setup(
......
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