Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed package detection in requirement.txt #21289

Closed
3 tasks done
karthiknadig opened this issue May 23, 2023 · 0 comments
Closed
3 tasks done

Installed package detection in requirement.txt #21289

karthiknadig opened this issue May 23, 2023 · 0 comments

Comments

@karthiknadig
Copy link
Member

karthiknadig commented May 23, 2023

Refs: #21140

Complexity: 2

Create Issue


Requirements

  1. Python 3.7 or greater
  2. Latest python extension pre-release.

Verification steps:

  1. Ensure you have python and python extension installed.
  2. Make sure python extension is activated (open python file)
  3. Create requirements.txt with following content:
flake8
flake8-docstrings; os_name != 'nt'
httpx

Things to check:

  1. For os specific case you should see the create env button only if the dependency that applies to your os (as in the constraint passes). More environment markers here (https://peps.python.org/pep-0508/#environment-markers)
  2. If there are no dependencies or if all packages are installed then Create Environment button should go away.
  3. You should be able to see some hint squiggle for cases where the package is missing.

Note: we don't trigger on file system events to detect package installs at this point. So you will need to close and reopen the file for this.
Note 2: We don't validate versions at this point. We only detect if a package is installed.

@karthiknadig karthiknadig added this to the May 2023 milestone May 23, 2023
@sandy081 sandy081 removed their assignment May 30, 2023
@connor4312 connor4312 removed their assignment May 30, 2023
@devinvalenciano devinvalenciano removed their assignment May 31, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants