Skip to content

Commit

Permalink
5004 - Docker - fix pipenv version
Browse files Browse the repository at this point in the history
Recent pipenv version 2022.4.20 dropped support for Python3.6[1].
Installation from Pipfile on Oracle Linux 8 then fails with following error:

  ...
  File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/requirementslib/models/requirements.py", line 577, in parse_extras
       self.line, extras = pip_shims.shims._strip_extras(self.line)
  TypeError: 'NoneType' object is not callable

This commit fixes pipenv version to 2022.4.8, thus resolving the problem.
Default repo on CentOS8 variants contains only python3.6 so upgrade
to python3.8 (or other version) isn't straightforward.

[1] pypa/pipenv#4829
  • Loading branch information
DTran0 committed Apr 25, 2022
1 parent 82eb2cf commit 997cb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile.gitlab-ci
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ RUN <<EOF
EOF

COPY ../Pipfile* /tmp/
RUN python3 -m pip install pipenv && cd /tmp && pipenv install --system --deploy
RUN python3 -m pip install 'pipenv<=2022.4.8' && cd /tmp && pipenv install --system --deploy

CMD ["/bin/bash"]

0 comments on commit 997cb6f

Please sign in to comment.