Don't provide git+https://
dependencies in setup.py
extras.
Otherwise Twine will complain with errors like this: ``` HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ Can't have direct dependency: pybluez@ git+https://github.com/pybluez/pybluez ; extra == "bluetooth". See https://packaging.python.org/specifications/core-metadata for more information. ```
This commit is contained in:
parent
e6702398dc
commit
5c0f85c311
1 changed files with 1 additions and 2 deletions
3
setup.py
3
setup.py
|
@ -34,8 +34,7 @@ def parse_deps(deps):
|
|||
ret = []
|
||||
for dep in deps:
|
||||
if dep.startswith('git+'):
|
||||
repo_name = dep.split('/')[-1].split('.git')[0]
|
||||
dep = f'{repo_name} @ {dep}'
|
||||
continue # Don't include git dependencies in the setup.py, or Twine will complain
|
||||
|
||||
ret.append(dep)
|
||||
|
||||
|
|
Loading…
Reference in a new issue