Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import pipenv utils from new location #418

Merged
merged 1 commit into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions shub/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,14 @@ def _is_pipfile(name):

def _get_pipfile_requirements(tmpdir=None):
try:
from pipenv.utils import convert_deps_to_pip, prepare_pip_source_args
# moved in pipenv==2022.4.8
from pipenv.utils.dependencies import convert_deps_to_pip
from pipenv.utils.indexes import prepare_pip_source_args
except ImportError:
raise ImportError('You need pipenv installed to deploy with Pipfile')
try:
from pipenv.utils import convert_deps_to_pip, prepare_pip_source_args
except ImportError:
raise ImportError('You need pipenv installed to deploy with Pipfile')
try:
with open('Pipfile.lock') as f:
pipefile = json.load(f)
Expand Down