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

Bump importlib-metadata from 7.2.0 to 7.2.1 #1843

Closed
wants to merge 106 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
fefa070
Add native locator for finding pythons (#23208)
karthiknadig May 3, 2024
f5fae81
Add `python.nativeLocator` experimental setting (#23324)
karthiknadig May 3, 2024
93f19f7
Add more Windows based locators (#23325)
karthiknadig May 3, 2024
32d2651
Add logging over JSON-RPC (#23326)
karthiknadig May 3, 2024
b9d5baf
Fix compilation error and use PathBuf::from (#23339)
DonJayamanne May 6, 2024
225e45f
Conda and Known Python Tests (#23349)
DonJayamanne May 7, 2024
9c29fd1
Fix typo in windows locator (#23355)
DonJayamanne May 7, 2024
7546f1e
Support for pyenv locator (#23356)
DonJayamanne May 7, 2024
b5b0e7e
Use enum for category (#23357)
DonJayamanne May 7, 2024
06839d1
Adopt native pyenv locator in TS land (#23359)
DonJayamanne May 7, 2024
9f4ed59
Add sysPrefixPath to native locator (#23360)
DonJayamanne May 7, 2024
d914399
Fix discovery of native conda locator (#23361)
DonJayamanne May 7, 2024
4dba153
Ensure all messages are JSON rpc payloads (#23362)
DonJayamanne May 7, 2024
5a617d4
Add native homebrew locator on mac (#23363)
DonJayamanne May 7, 2024
05875b3
Homebrew only on unix and not windows (#23364)
DonJayamanne May 7, 2024
463cdbc
Better py env version extraction (#23368)
DonJayamanne May 7, 2024
74d6ce6
Remove unwanted test feature (#23371)
DonJayamanne May 8, 2024
0ba3ba5
Support for pyenv virtual-env in native locator (#23372)
DonJayamanne May 8, 2024
5168747
Extract conda version where possible in native locator (#23374)
DonJayamanne May 8, 2024
dd0766b
Compute regex once in native locator (#23375)
DonJayamanne May 8, 2024
6a615fc
Strip 'envs' prefix from conda env name (#23377)
DonJayamanne May 8, 2024
c4e4ee6
Update python env properties sent back to TS layer (#23378)
DonJayamanne May 8, 2024
1e7f925
Add support for pipenv environments (#23379)
DonJayamanne May 8, 2024
a7c3798
Fixes to detection of conda version on windows (#23380)
DonJayamanne May 8, 2024
347a15c
Tweek pyenv version detection on windows (#23383)
DonJayamanne May 8, 2024
bbe380f
Support virtualenvwrapper in nativelocator (#23388)
DonJayamanne May 8, 2024
4114225
virtualenvwrapper support in ts layer of native locator (#23390)
DonJayamanne May 8, 2024
e5a4c75
Tweaks to how native finder is spawned and logging (#23387)
karthiknadig May 8, 2024
0542421
Drop jsonrpc connection after all messages are handled (#23391)
DonJayamanne May 9, 2024
0479bc9
Use PathBufs to avoid regular conversions (#23393)
DonJayamanne May 9, 2024
5831123
Use structs instead of loose json in native test (#23394)
DonJayamanne May 9, 2024
795bba9
Support venv, virtualEnv in global folders (#23395)
DonJayamanne May 9, 2024
3119849
End the passthrough stream instead of ending (#23399)
DonJayamanne May 9, 2024
dbb813a
Refactor locators to implement a specific trait (#23404)
DonJayamanne May 10, 2024
97ff7d5
Use logger formatter to send log msgs via json rpc (#23405)
DonJayamanne May 10, 2024
424ca3f
Remove duplicate environment finder event handlers (#23406)
DonJayamanne May 10, 2024
3e7bf50
Remove duplicates from reported envs & refactor locators (#23407)
DonJayamanne May 10, 2024
d6c2fb6
Replace locator enum with struct (#23412)
DonJayamanne May 13, 2024
094041f
Look for Python (PythonCore) in windows registry (#23414)
DonJayamanne May 13, 2024
268c2eb
Fix extraction of Python version for Conda environments (#23415)
DonJayamanne May 13, 2024
50fd008
Fixes to comparing of Python environments (#23417)
DonJayamanne May 13, 2024
bdedb0a
Revised native conda locator (#23416)
DonJayamanne May 13, 2024
a6214e2
Fix winreg locator & add conda registry locator on windows (#23422)
DonJayamanne May 14, 2024
22496cc
Updates to the native windows store locator (#23426)
DonJayamanne May 14, 2024
79e1423
Add more logging and some tweaks (#23425)
karthiknadig May 14, 2024
fea0149
Remove sysPrefixPath from native locator (#23427)
DonJayamanne May 14, 2024
6a25657
Search for conda envs in known locations (#23428)
DonJayamanne May 15, 2024
f2313f9
Ignore native locator tests folder (#23436)
DonJayamanne May 15, 2024
a8a0e59
Add Interactive REPL Experiment (#23235)
anthonykim1 May 16, 2024
b68fa75
fix parameterized test duplicate function different classes (#23439)
eleanorjboyd May 16, 2024
0f80b59
Activate base conda envs using 'name', add env_path for homebrew (#23…
DonJayamanne May 16, 2024
2e56a21
Ensure resolvers accept data from native locators (#23444)
DonJayamanne May 16, 2024
4323c58
Updates to python locator (#23446)
DonJayamanne May 20, 2024
86b9791
Build rust python finder for CI and produce a package (#23465)
karthiknadig May 22, 2024
ed8fabf
Capture count of envs collected (#23471)
DonJayamanne May 23, 2024
b37a292
Ensure Windows Store takes precedence over Registry and fix Conda loc…
DonJayamanne May 24, 2024
43d59c2
Adding detail to create environment pip install prompt (#23470)
cwebster-99 May 24, 2024
80a7f90
Allow execute on enter and Intellisense for native REPL with notebook…
anthonykim1 May 24, 2024
fc05490
Allow reopening of native REPL after closing (#23478)
anthonykim1 May 24, 2024
2373901
Fix telemetry annotations (#23481)
lramos15 May 24, 2024
8af19fa
Ensure native locator is included in the VSIX when built (#23476)
karthiknadig May 24, 2024
e25fd57
Add flags to optimize binary size (#23483)
karthiknadig May 24, 2024
a9bdf47
Fx win reg locator (#23486)
DonJayamanne May 27, 2024
54becad
Parallelize locating of global python environments (#23490)
DonJayamanne May 27, 2024
e777588
Ignore Win Store Python in Windows Registry search (#23492)
DonJayamanne May 27, 2024
5803a19
Fix build arguments to pipeline (#23494)
karthiknadig May 28, 2024
8909fda
Stop creating duplicate REPL and allow new REPL instance (#23496)
anthonykim1 May 28, 2024
3fca3ed
Support VSC in VS Code when opening native_locator (#23516)
DonJayamanne May 29, 2024
a4a9a3b
Bump typing-extensions from 4.11.0 to 4.12.0 (#23472)
dependabot[bot] May 29, 2024
025d1a6
Bug: Fix python.execInREPL stealing shift+enter (#23526)
anthonykim1 May 30, 2024
f377620
Bug Fix: REPL reuse and do not overwrite Jupyter's IW title (#23530)
anthonykim1 May 30, 2024
3cee060
dont override shift+enter behavior (#23546)
amunger Jun 3, 2024
7fca1da
bump release 2024.8.0 (#23547)
anthonykim1 Jun 3, 2024
6fcbe4e
bump-dev-version-2024.9 (#23548)
anthonykim1 Jun 3, 2024
dd8da57
Bump typing-extensions from 4.12.0 to 4.12.1 (#23542)
dependabot[bot] Jun 4, 2024
2048b91
Support pytest parameterized tests spanning multiple classes when cal…
eleanorjboyd Jun 4, 2024
40e45b6
bug fix to have load bar show during test discovery (#23537)
eleanorjboyd Jun 4, 2024
c2a044e
dont send to REPL from a notebook editor (#23572)
amunger Jun 7, 2024
807c7f9
Update info-needed-closer.yml (#23574)
eleanorjboyd Jun 7, 2024
41a616f
Remove macos runner (#23598)
karthiknadig Jun 12, 2024
9643f42
Restore computing version in legacy locators (#23596)
karthiknadig Jun 12, 2024
901cbe3
Fix smoke tests (#23597)
karthiknadig Jun 12, 2024
83c69a0
Audit fix and some clean up (#23599)
karthiknadig Jun 12, 2024
66b8c0b
Add missing telemetry for REPL (#23591)
anthonykim1 Jun 13, 2024
fdc3cba
Bump typing-extensions from 4.12.1 to 4.12.2 (#23583)
dependabot[bot] Jun 13, 2024
7e562f3
Bump braces and gulp (#23589)
dependabot[bot] Jun 13, 2024
33c0a83
Adopt new Python locator (#23617)
DonJayamanne Jun 14, 2024
ad9a9b3
Adopt new request with configuration object (#23626)
DonJayamanne Jun 17, 2024
0b103a8
Restore execute bits on deactivate scripts (#23620)
covracer Jun 17, 2024
fd17bd8
Update language server modules to latest release (#23623)
rchiodo Jun 17, 2024
adabe96
Rename REPL to Terminal REPL (#23613)
anthonykim1 Jun 17, 2024
42de48d
Adopt native locator resolve methods (#23631)
DonJayamanne Jun 17, 2024
02029de
Refresh environments immediately (#23634)
DonJayamanne Jun 18, 2024
7473a34
Refactor Native REPL code (#23550)
anthonykim1 Jun 18, 2024
49e2ed7
Allow Smart send with new REPL (#23638)
anthonykim1 Jun 19, 2024
29b708e
Activate extension when .venv or .conda found in workspace (#23642)
nickwarters Jun 20, 2024
06ecbd6
Add locator for pixi environments (#22968)
baszalmstra Jun 20, 2024
1503558
Add hook to `vscode_pytest` to determine number `xdist` workers to us…
DetachHead Jun 20, 2024
29652d3
Separate output channel for native finder (#23648)
DonJayamanne Jun 20, 2024
03b9701
Add support for Python Environment Tools (#23643)
karthiknadig Jun 21, 2024
0da0412
Bump importlib-metadata from 7.1.0 to 7.2.0 (#23652)
dependabot[bot] Jun 21, 2024
092e780
Get native finder telemetry (#23646)
karthiknadig Jun 21, 2024
42b8eac
Use conda-meta to get python version (#23650)
karthiknadig Jun 21, 2024
10f9613
Unify Terminal REPL triggers (#23641)
anthonykim1 Jun 21, 2024
3c5f46f
Revert changes introduced for Native Locator (#23663)
DonJayamanne Jun 24, 2024
15b66a6
Bump importlib-metadata from 7.2.0 to 7.2.1
dependabot[bot] Jun 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions .github/actions/build-vsix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ inputs:
artifact_name:
description: 'Name to give the artifact containing the VSIX'
required: true
cargo_target:
description: 'Cargo build target for the native build'
required: true
vsix_target:
description: 'vsix build target for the native build'
required: true

runs:
using: 'composite'
Expand All @@ -21,6 +27,9 @@ runs:
node-version: ${{ inputs.node_version }}
cache: 'npm'

- name: Rust Tool Chain setup
uses: dtolnay/rust-toolchain@stable

# Jedi LS depends on dataclasses which is not in the stdlib in Python 3.7.
- name: Use Python 3.8 for JediLSP
uses: actions/setup-python@v5
Expand All @@ -44,23 +53,32 @@ runs:
run: nox --session install_python_libs
shell: bash

- name: Run npm ci
run: npm ci --prefer-offline
- name: Add Rustup target
run: rustup target add ${{ inputs.cargo_target }}
shell: bash

# Use the GITHUB_RUN_ID environment variable to update the build number.
# GITHUB_RUN_ID is a unique number for each run within a repository.
# This number does not change if you re-run the workflow run.
- name: Update extension build number
run: npm run updateBuildNumber -- --buildNumber $GITHUB_RUN_ID
- name: Build Native Binaries
run: nox --session native_build
shell: bash
env:
CARGO_TARGET: ${{ inputs.cargo_target }}

- name: Run npm ci
run: npm ci --prefer-offline
shell: bash

- name: Update optional extension dependencies
run: npm run addExtensionPackDependencies
shell: bash

- name: Build Webpack
run: |
npx gulp clean
npx gulp prePublishBundle
shell: bash

- name: Build VSIX
run: npm run package
run: npx vsce package --target ${{ inputs.vsix_target }} --out ms-python-insiders.vsix --pre-release
shell: bash

- name: Rename VSIX
Expand Down
85 changes: 79 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run:
shell: python
outputs:
vsix_basename: ${{ steps.vsix_names.outputs.vsix_basename }}
vsix_name: ${{ steps.vsix_names.outputs.vsix_name }}
vsix_artifact_name: ${{ steps.vsix_names.outputs.vsix_artifact_name }}
steps:
Expand All @@ -40,23 +41,68 @@ jobs:
else:
vsix_type = "release"
print(f"::set-output name=vsix_name::ms-python-{vsix_type}.vsix")
print(f"::set-output name=vsix_basename::ms-python-{vsix_type}")
print(f"::set-output name=vsix_artifact_name::ms-python-{vsix_type}-vsix")

build-vsix:
name: Create VSIX
if: github.repository == 'microsoft/vscode-python'
needs: setup
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
vsix-target: win32-x64
- os: windows-latest
target: aarch64-pc-windows-msvc
vsix-target: win32-arm64
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
vsix-target: linux-x64
# - os: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# vsix-target: linux-arm64
# - os: ubuntu-latest
# target: arm-unknown-linux-gnueabihf
# vsix-target: linux-armhf
# - os: macos-latest
# target: x86_64-apple-darwin
# vsix-target: darwin-x64
# - os: macos-14
# target: aarch64-apple-darwin
# vsix-target: darwin-arm64
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
vsix-target: alpine-x64
# - os: ubuntu-latest
# target: aarch64-unknown-linux-musl
# vsix-target: alpine-arm64
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout Python Environment Tools
uses: actions/checkout@v4
with:
repository: 'microsoft/python-environment-tools'
path: 'python-env-tools'
sparse-checkout: |
crates
Cargo.toml
Cargo.lock
sparse-checkout-cone-mode: false

- name: Build VSIX
uses: ./.github/actions/build-vsix
with:
node_version: ${{ env.NODE_VERSION }}
vsix_name: ${{ needs.setup.outputs.vsix_name }}
artifact_name: ${{ needs.setup.outputs.vsix_artifact_name }}
node_version: ${{ env.NODE_VERSION}}
vsix_name: ${{ needs.setup.outputs.vsix_basename }}-${{ matrix.vsix-target }}.vsix
artifact_name: ${{ needs.setup.outputs.vsix_artifact_name }}-${{ matrix.vsix-target }}
cargo_target: ${{ matrix.target }}
vsix_target: ${{ matrix.vsix-target }}

lint:
name: Lint
Expand Down Expand Up @@ -166,6 +212,17 @@ jobs:
with:
path: ${{ env.special-working-directory-relative }}

- name: Checkout Python Environment Tools
uses: actions/checkout@v4
with:
repository: 'microsoft/python-environment-tools'
path: ${{ env.special-working-directory-relative }}/python-env-tools
sparse-checkout: |
crates
Cargo.toml
Cargo.lock
sparse-checkout-cone-mode: false

- name: Install Node
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -342,13 +399,29 @@ jobs:
matrix:
# We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used,
# macOS runners are expensive, and we assume that Ubuntu is enough to cover the UNIX case.
os: [ubuntu-latest, windows-latest]
include:
- os: windows-latest
vsix-target: win32-x64
- os: ubuntu-latest
vsix-target: linux-x64

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout Python Environment Tools
uses: actions/checkout@v4
with:
repository: 'microsoft/python-environment-tools'
path: ${{ env.special-working-directory-relative }}/python-env-tools
sparse-checkout: |
crates
Cargo.toml
Cargo.lock
sparse-checkout-cone-mode: false

- name: Smoke tests
uses: ./.github/actions/smoke-tests
with:
node_version: ${{ env.NODE_VERSION }}
artifact_name: ${{ needs.setup.outputs.vsix_artifact_name }}
artifact_name: ${{ needs.setup.outputs.vsix_artifact_name }}-${{ matrix.vsix-target }}
3 changes: 3 additions & 0 deletions .github/workflows/info-needed-closer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
types: [trigger-needs-more-info]
workflow_dispatch:

permissions:
issues: write

jobs:
main:
runs-on: ubuntu-latest
Expand Down
Loading
Loading