Feat: Add virtualenv for dependency isolation
requested to merge alexandervaneck/gemnasium:feat/add-virtualenv-for-dependency-isolation into master
Hello again! :)
I managed to add virtualenvs to gemnasium python
In very general terms it flows as follows;
- Create a virtualenv
- Update pip, setuptools and wheel
- (in case of pip) perhaps upgrade to a specific version of pip
- Install dependencies with the builder (setuptools/pip)
- create the pipdeptree.json
Why doesn't this have tests?!?!
This is my very first project in Golang and I don't know how to write tests yet
@fcatteau I would very much appreciate your review and pointers on how to proceed from here.
What does this MR do?
- Add virtualenv.go for managing virtual environments.
- Consolidate pipdeptree into virtualenv.go for simplicity.
- Adding virtualenvs to pip/setuptools to isolate environments
What are the relevant issue numbers?
Steps 2 of gitlab-org/gitlab#332558
Fixes gitlab-org/gitlab#34763 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Thiago Figueiró