Skip to content

Commit

Permalink
update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-black-tea committed Oct 31, 2024
1 parent 8e085b3 commit 85ad62f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dependencies:
dev-dependencies:
- pyyaml

release-dependencies: []

optional-dependencies:
# 下载时使用requests包,并且支持socks5代理
# Use requests package for downloading, and support socks5 proxy
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def append_module(self, path, script_prefix, module_prefix):
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 85ad62f

Please sign in to comment.