Skip to content

Commit

Permalink
update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hu Ji committed Oct 31, 2024
1 parent b4065bf commit 6ae54d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@ sudo apt-get update
sudo apt-get install -y python3 python3-pip git docker-compose-plugin
```

安装linktools库并添加homelab仓库
安装linktools-cntr库

```bash
# Install linktools library and add repository
python3 -m pip install -U linktools linktools-cntr
ct-cntr repo add https://github.com/ice-black-tea/cntr-homelab # fetch code from remote repository
ct-cntr repo update # update code from remote repository
python3 -m pip install -U linktools-cntr
```

## 容器部署

### Nas (主页、Nextcloud、...) 环境部署

👉 [搭建文档](400-omv/README.md)
👉 [搭建文档](https://github.com/ice-black-tea/cntr-homelab/blob/master/400-omv/README.md)

### Xray Server (websocket + ssl + vless) 环境搭建

👉 [搭建文档](220-xray-server/README.md)
👉 [搭建文档](https://github.com/ice-black-tea/cntr-homelab/blob/master/220-xray-server/README.md)

### Redroid (Redroid、Redroid-Builder) 环境搭建

Expand Down
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ dependencies:

dev-dependencies: []

release-dependencies:
- linktools>=0.8.11

optional-dependencies: {}
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ def get_src_path(*paths):
data = yaml.safe_load(fd)
# install_requires = dependencies + dev-dependencies
install_requires = data.get("dependencies")
if not release:
install_requires.extend(data.get("dev-dependencies"))
install_requires.extend(data.get("release-dependencies") if release else data.get("dev-dependencies"))
# extras_require = optional-dependencies
extras_require = data.get("optional-dependencies")
all_requires = []
Expand Down

0 comments on commit 6ae54d0

Please sign in to comment.