Skip to content

Specify and install Python dependencies in a requirements.txt file #2965

@brettcannon

Description

@brettcannon

Right 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.

Metadata

Metadata

Assignees

Labels

debtCode quality issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions