File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
platformifier/templates/django Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func (q *BuildSteps) Ask(ctx context.Context) error {
4040 "# Install Pipenv as a global tool" ,
4141 "python -m venv /app/.global" ,
4242 "pip install pipenv==$PIPENV_TOOL_VERSION" ,
43- "pipenv install " ,
43+ "pipenv sync " ,
4444 )
4545 case models .Pip :
4646 answers .BuildSteps = append (
Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ func (q *Environment) Ask(ctx context.Context) error {
1818 for _ , dm := range answers .DependencyManagers {
1919 switch dm {
2020 case models .Poetry :
21- answers .Environment ["POETRY_VERSION" ] = "1.4.0 "
21+ answers .Environment ["POETRY_VERSION" ] = "1.8.4 "
2222 answers .Environment ["POETRY_VIRTUALENVS_IN_PROJECT" ] = "true"
2323 case models .Pipenv :
24- answers .Environment ["PIPENV_TOOL_VERSION" ] = "2023 .2.18 "
24+ answers .Environment ["PIPENV_TOOL_VERSION" ] = "2024 .2.0 "
2525 answers .Environment ["PIPENV_VENV_IN_PROJECT" ] = "1"
2626 }
2727 }
Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ def decode(variable):
2222 JSON decoding error.
2323 """
2424 try :
25- if sys .version_info [1 ] > 5 :
26- return json .loads (base64 .b64decode (variable ))
27- else :
28- return json .loads (base64 .b64decode (variable ).decode ("utf-8" ))
25+ return json .loads (base64 .b64decode (variable ))
2926 except json .decoder .JSONDecodeError :
3027 print ("Error decoding JSON, code %d" , json .decoder .JSONDecodeError )
3128
You can’t perform that action at this time.
0 commit comments