Skip to content

Commit

Permalink
Merge branch 'master' into use-zyte-instead-of-scrapinghub
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio authored Nov 7, 2023
2 parents 5dfbf6f + e6f35c0 commit f72aef8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shub/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def _get_pipfile_requirements(tmpdir=None):
return open(_add_sources(convert_deps_to_pip(deps), _sources=sources.encode(), tmpdir=tmpdir), 'rb')


def _add_sources(_requirements: Union[str, list,dict], _sources: bytes, tmpdir: Optional[AnyStr] = None) -> str:
def _add_sources(
_requirements: Union[str, list], _sources: bytes, tmpdir: Optional[AnyStr] = None
) -> str:
tmp = tempfile.NamedTemporaryFile(delete=False, suffix="-requirements.txt", dir=tmpdir)
tmp.write(_sources + b'\n')
# Keep backward compatibility with pipenv<=2022.8.30
Expand Down

0 comments on commit f72aef8

Please sign in to comment.