Support DS_PYTHON_VERSION variable in gemnasium-python
Problem to solve
We have introduced DS_PYTHON_VERSON
variable to retire.js analyzer. #12296 (closed)
. It seems it is only leveraged in retire.js analyzer, not in the gemnasium-python. We would like gemnasium-python to use this variable to switch between python versions.
Intended users
Proposal
Make gemnasium-python leverage DS_PYTHON_VERSION
to switch b/w different versions of Python run-time, or build different multiple images to cover multiple versions of Python, and inject DS_PYTHON_VERSION
in the image:name
of the gemnasium-python-dependency_scanning
job.
TBD: Would we only support major versions of Python, or would we support all minor versions?
UPDATE:
The proper long term solution is splitting build and analyze steps, as a result, the work has moved to this epic - &3974 (closed). Please report any issues in that epic. Please specify your python version as well as any error message logs.
Permissions and Security
No special permissions
Documentation
-
Update the documentation for DS_PYTHON_VERSION
in Dependency Scanning documentation
Testing
To be tested during automatic QA using specific branches of python-pip and [python-pipenv](https://gitlab.com/gitlab-org/security-products/tests/python-pipenv].
What does success look like, and how can we measure that?
Users should be able to switch between python 2 or 3 by adjusting this variable when they scan their python projects.
What is the type of buyer?
- Internal customers
- GitLab Ultimate users
Product
- Release Post - Not Needed