Specify and install Python dependencies in a requirements.txt file
See original GitHub issueRight now we have some Python source code checked into our repository. We should move away from that and over to pinned versions that we install via pip.
The install command should be:
python -m pip install --target pythonFiles --implementation py --no-deps -r requirements.txt
The requirements.txt files should be:
# Needs 'futures' for Python 2; see https://github.com/Microsoft/vscode-python/issues/2022 .
isort==4.3.4
parso==0.2.1
jedi==0.12.0
# Should probably start pinning ptvsd.
ptvsd
And with that we can drop almost all of the third-party code in pythonFiles
that we have checked into our repo. This will require updating where we install ptvsd, though, as well as probably renaming/moving the requirements.txt
file we already have in the top-level directory that specifies requirements for tests.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to use requirements.txt to install all dependencies in a ...
Remove matplotlib==1.3.1 from requirements.txt · Try to install with sudo apt-get install python-matplotlib · Run pip install -r requirements.txt (Python 2), or ...
Read more >Managing Python Dependencies with Requirements.txt
This article will explain how unwanted packages sneak into your code, describe how to use requirements.txt files to ensure repeatable builds, ...
Read more >The Python Requirements File and How to Create it
Use the pip install -r requirements.txt command to install all of the Python modules and packages listed in your requirements.txt file. This ...
Read more >Manage dependencies using requirements.txt | IntelliJ IDEA ...
From the Tools menu, select Sync Python Requirements. · In the opened dialog, specify the name of the requirements file. · Select the...
Read more >How to install Python packages with pip and requirements.txt
The following command will install the packages according to the configuration file requirements.txt . ... You can name the configuration file ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just wanted to ensure we do not forget about that requirement (for testing purposes), either way, I do agree with the suggestion.
@DonJayamanne I knew you were going to say that 😉 . That’s fine, but for general development and especially for building the extension we shouldn’t do that.