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

install requirements automatically

parent 75236371
Loading
Loading
Loading
Loading
Loading
+11 −14
Original line number Original line Diff line number Diff line
@@ -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` 可用如下方式安装


```bash
```shell
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)
或者单行命令:


```bash
```shell
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
+6 −1
Original line number Original line Diff line number Diff line
@@ -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(