diff --git a/requirements.yml b/requirements.yml index b5fd2cab..3bd5a49e 100644 --- a/requirements.yml +++ b/requirements.yml @@ -6,6 +6,8 @@ dependencies: dev-dependencies: - pyyaml +release-dependencies: [] + optional-dependencies: # 下载时使用requests包,并且支持socks5代理 # Use requests package for downloading, and support socks5 proxy diff --git a/setup.py b/setup.py index 8770976f..8c5513c7 100755 --- a/setup.py +++ b/setup.py @@ -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 = []