Skip to content

Commit

Permalink
Merge pull request #235 from oz123/pipenv-improvements
Browse files Browse the repository at this point in the history
feature: use pipenv sync instead of install
  • Loading branch information
akalipetis authored Dec 3, 2024
2 parents 5507705 + 0d299df commit 7d0478a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/question/build_steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (q *BuildSteps) Ask(ctx context.Context) error {
"# Install Pipenv as a global tool",
"python -m venv /app/.global",
"pip install pipenv==$PIPENV_TOOL_VERSION",
"pipenv install",
"pipenv sync",
)
case models.Pip:
answers.BuildSteps = append(
Expand Down
4 changes: 2 additions & 2 deletions internal/question/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ func (q *Environment) Ask(ctx context.Context) error {
for _, dm := range answers.DependencyManagers {
switch dm {
case models.Poetry:
answers.Environment["POETRY_VERSION"] = "1.4.0"
answers.Environment["POETRY_VERSION"] = "1.8.4"
answers.Environment["POETRY_VIRTUALENVS_IN_PROJECT"] = "true"
case models.Pipenv:
answers.Environment["PIPENV_TOOL_VERSION"] = "2023.2.18"
answers.Environment["PIPENV_TOOL_VERSION"] = "2024.2.0"
answers.Environment["PIPENV_VENV_IN_PROJECT"] = "1"
}
}
Expand Down
5 changes: 1 addition & 4 deletions platformifier/templates/django/settings_psh.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ def decode(variable):
JSON decoding error.
"""
try:
if sys.version_info[1] > 5:
return json.loads(base64.b64decode(variable))
else:
return json.loads(base64.b64decode(variable).decode("utf-8"))
return json.loads(base64.b64decode(variable))
except json.decoder.JSONDecodeError:
print("Error decoding JSON, code %d", json.decoder.JSONDecodeError)

Expand Down

0 comments on commit 7d0478a

Please sign in to comment.