|mach python-test| still generates an empty root Pipfile
Categories
(Testing :: Python Test, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: ahal, Unassigned, Mentored)
Details
(Keywords: good-first-bug)
Bug 1490253 switched us away from using Pipenv to vendor python packages and replaced it with pip-tools instead. As a consequence, the root Pipfile was removed. However, it looks like running |mach python-test| causes a root Pipfile to get created again (albeit without any packages specified). This doesn't seem to cause any harm so it's more of a minor annoyance than anything.
Comment 1•6 years ago
|
||
Looking into the source code for pipenv, it appears that this is a side-effect of using pipenv to create our virtual environment. I don't see an option to prevent the creation of the Pipfile, and as we're not using the tool in a typical way, I doubt there would be much traction in changing this behavior of pipenv. I would suggest deleting the file if it exists after the virtual environment has been created. Note that we should only delete the Pipfile when it's been created by pipenv, and not when a Pipfile exists for the purpose of populating the environment.
Reporter | ||
Updated•5 years ago
|
I am new to Mozilla and i have recently started contributing to it. I have the entire firefox environment set. I would like to work on this bug while using some mentoring. Please do let me know if i can start working on this..!
Reporter | ||
Comment 3•5 years ago
|
||
Hi Tejaswi, it looks like the mentor Dave is away until the 21st, but I can help out. First, just try and reproduce the problem so you can understand what needs to be fixed.
You'll need to modify this function here:
https://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/virtualenv.py#584
We need to somehow detect if the Pipfile was created our function call and remove it if so. Feel free to needinfo me if you need help / have questions!
Comment 5•3 years ago
|
||
This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 6•3 years ago
|
||
I don't think this is still valid. I believe we moved away from pipenv, and when I ran the tests locally just now I didn't have a Pipfile.
Description
•