Skip to content

Commit d12cabd

Browse files
karthiknadigwesm
authored andcommitted
Rename pythonFiles to python_files (microsoft/vscode-python#22921)
1 parent 9c1cab5 commit d12cabd

File tree

338 files changed

+129
-2709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+129
-2709
lines changed

extensions/positron-python/.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ src/test/common/process/proc.unit.test.ts
105105
src/test/common/interpreterPathService.unit.test.ts
106106

107107

108-
src/test/pythonFiles/formatting/dummy.ts
108+
src/test/python_files/formatting/dummy.ts
109109

110110
src/test/debugger/extension/adapter/adapter.test.ts
111111
src/test/debugger/extension/adapter/outdatedDebuggerPrompt.unit.test.ts

extensions/positron-python/.github/actions/build-vsix/action.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030
cache-dependency-path: |
3131
requirements.txt
3232
build/build-install-requirements.txt
33-
pythonFiles/jedilsp_requirements/requirements.txt
33+
python_files/jedilsp_requirements/requirements.txt
3434
3535
- name: Upgrade Pip
3636
run: python -m pip install -U pip
@@ -44,20 +44,20 @@ runs:
4444
- name: Install Python dependencies
4545
uses: brettcannon/pip-secure-install@v1
4646
with:
47-
options: '-t ./pythonFiles/lib/python --implementation py'
47+
options: '-t ./python_files/lib/python --implementation py'
4848

4949
- name: Install debugpy and get-pip
5050
run: |
5151
python -m pip --disable-pip-version-check install packaging
52-
python ./pythonFiles/install_debugpy.py
53-
python ./pythonFiles/download_get_pip.py
52+
python ./python_files/install_debugpy.py
53+
python ./python_files/download_get_pip.py
5454
shell: bash
5555

5656
- name: Install Jedi LSP
5757
uses: brettcannon/pip-secure-install@v1
5858
with:
59-
requirements-file: './pythonFiles/jedilsp_requirements/requirements.txt'
60-
options: '-t ./pythonFiles/lib/jedilsp --implementation py --platform any --abi none'
59+
requirements-file: './python_files/jedilsp_requirements/requirements.txt'
60+
options: '-t ./python_files/lib/jedilsp --implementation py --platform any --abi none'
6161

6262
- name: Run npm ci
6363
run: npm ci --prefer-offline

extensions/positron-python/.github/actions/lint/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ runs:
4545
run: |
4646
python -m pip install -U black
4747
python -m black . --check
48-
working-directory: pythonFiles
48+
working-directory: python_files
4949
shell: bash
5050

5151
- name: Run Ruff
5252
run: |
5353
python -m pip install -U ruff
5454
python -m ruff check .
55-
working-directory: pythonFiles
55+
working-directory: python_files
5656
shell: bash

extensions/positron-python/.github/actions/smoke-tests/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ runs:
3434
- name: Install Python requirements
3535
uses: brettcannon/pip-secure-install@v1
3636
with:
37-
options: '-t ./pythonFiles/lib/python --implementation py'
37+
options: '-t ./python_files/lib/python --implementation py'
3838

3939
- name: pip install system test requirements
4040
run: |
4141
python -m pip install --upgrade -r build/test-requirements.txt
42-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --implementation py --no-deps --upgrade --pre debugpy
42+
python -m pip --disable-pip-version-check install -t ./python_files/lib/python --implementation py --no-deps --upgrade --pre debugpy
4343
shell: bash
4444

4545
# Bits from the VSIX are reused by smokeTest.ts to speed things up.

extensions/positron-python/.github/release_plan.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NOTE: Third Party Notices are automatically added by our build pipelines using
1717
- [ ] Create a new branch called **`bump-release-[YYYY.minor]`**.
1818
- [ ] Change the version in `package.json` to the next **even** number and switch the `-dev` to `-rc`. (🤖)
1919
- [ ] Run `npm install` to make sure `package-lock.json` is up-to-date _(you should now see changes to the `package.json` and `package-lock.json` at this point which update the version number **only**)_. (🤖)
20-
- [ ] Check [debugpy on PyPI](https://pypi.org/project/debugpy/) for a new release and update the version of debugpy in [`install_debugpy.py`](https://github.com/microsoft/vscode-python/blob/main/pythonFiles/install_debugpy.py) if necessary.
20+
- [ ] Check [debugpy on PyPI](https://pypi.org/project/debugpy/) for a new release and update the version of debugpy in [`install_debugpy.py`](https://github.com/microsoft/vscode-python/blob/main/python_files/install_debugpy.py) if necessary.
2121
- [ ] Update `ThirdPartyNotices-Repository.txt` as appropriate. You can check by looking at the [commit history](https://github.com/microsoft/vscode-python/commits/main) and scrolling through to see if there's anything listed there which might have pulled in some code directly into the repository from somewhere else. If you are still unsure you can check with the team.
2222
- [ ] Create a PR from your branch **`bump-release-[YYYY.minor]`** to `main`. Add the `"no change-log"` tag to the PR so it does not show up on the release notes before merging it.
2323

extensions/positron-python/.github/workflows/build.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ jobs:
8787
- name: Install core Python requirements
8888
uses: brettcannon/pip-secure-install@v1
8989
with:
90-
options: '-t ./pythonFiles/lib/python --no-cache-dir --implementation py'
90+
options: '-t ./python_files/lib/python --no-cache-dir --implementation py'
9191

9292
- name: Install Jedi requirements
9393
run: python scripts/vendor.py
9494

9595
- name: Install other Python requirements
9696
run: |
97-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
97+
python -m pip --disable-pip-version-check install -t ./python_files/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
9898
python -m pip install --upgrade -r build/test-requirements.txt
9999
100100
- name: Run Pyright
101101
uses: jakebailey/pyright-action@v2
102102
with:
103103
version: 1.1.308
104-
working-directory: 'pythonFiles'
104+
working-directory: 'python_files'
105105

106106
python-tests:
107107
name: Python Tests
@@ -134,13 +134,13 @@ jobs:
134134
uses: brettcannon/pip-secure-install@v1
135135
with:
136136
requirements-file: '"${{ env.special-working-directory-relative }}/requirements.txt"'
137-
options: '-t "${{ env.special-working-directory-relative }}/pythonFiles/lib/python" --no-cache-dir --implementation py'
137+
options: '-t "${{ env.special-working-directory-relative }}/python_files/lib/python" --no-cache-dir --implementation py'
138138

139139
- name: Install test requirements
140140
run: python -m pip install --upgrade -r build/test-requirements.txt
141141

142142
- name: Run Python unit tests
143-
run: python pythonFiles/tests/run_all.py
143+
run: python python_files/tests/run_all.py
144144

145145
tests:
146146
name: Tests
@@ -189,19 +189,19 @@ jobs:
189189
run: |
190190
python -m pip install wheel
191191
python -m pip install -r build/build-install-requirements.txt
192-
python ./pythonFiles/download_get_pip.py
192+
python ./python_files/download_get_pip.py
193193
shell: bash
194194

195195
- name: Install debugpy
196196
run: |
197197
# We need to have debugpy so that tests relying on it keep passing, but we don't need install_debugpy's logic in the test phase.
198-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
198+
python -m pip --disable-pip-version-check install -t ./python_files/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
199199
200200
- name: Install core Python requirements
201201
uses: brettcannon/pip-secure-install@v1
202202
with:
203203
requirements-file: '"${{ env.special-working-directory-relative }}/requirements.txt"'
204-
options: '-t "${{ env.special-working-directory-relative }}/pythonFiles/lib/python" --no-cache-dir --implementation py'
204+
options: '-t "${{ env.special-working-directory-relative }}/python_files/lib/python" --no-cache-dir --implementation py'
205205
if: startsWith(matrix.python, 3.)
206206

207207
- name: Install Jedi requirements
@@ -215,7 +215,7 @@ jobs:
215215
run: |
216216
python -m pip install wheel
217217
python -m pip install -r build/build-install-requirements.txt
218-
python ./pythonFiles/install_debugpy.py
218+
python ./python_files/install_debugpy.py
219219
shell: bash
220220
if: matrix.test-suite == 'debugger'
221221

extensions/positron-python/.github/workflows/pr-check.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ jobs:
6161
- name: Install base Python requirements
6262
uses: brettcannon/pip-secure-install@v1
6363
with:
64-
options: '-t ./pythonFiles/lib/python --no-cache-dir --implementation py'
64+
options: '-t ./python_files/lib/python --no-cache-dir --implementation py'
6565

6666
- name: Install Jedi requirements
6767
run: python scripts/vendor.py
6868

6969
- name: Install other Python requirements
7070
run: |
71-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
71+
python -m pip --disable-pip-version-check install -t ./python_files/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
7272
python -m pip install --upgrade -r build/test-requirements.txt
7373
7474
- name: Run Pyright
7575
uses: jakebailey/pyright-action@v2
7676
with:
7777
version: 1.1.308
78-
working-directory: 'pythonFiles'
78+
working-directory: 'python_files'
7979

8080
python-tests:
8181
name: Python Tests
@@ -121,13 +121,13 @@ jobs:
121121
uses: brettcannon/pip-secure-install@v1
122122
with:
123123
requirements-file: '"${{ env.special-working-directory-relative }}/requirements.txt"'
124-
options: '-t "${{ env.special-working-directory-relative }}/pythonFiles/lib/python" --no-cache-dir --implementation py'
124+
options: '-t "${{ env.special-working-directory-relative }}/python_files/lib/python" --no-cache-dir --implementation py'
125125

126126
- name: Install test requirements
127127
run: python -m pip install --upgrade -r build/test-requirements.txt
128128

129129
- name: Run Python unit tests
130-
run: python pythonFiles/tests/run_all.py
130+
run: python python_files/tests/run_all.py
131131

132132
tests:
133133
name: Tests
@@ -176,20 +176,20 @@ jobs:
176176
- name: Install debugpy
177177
run: |
178178
# We need to have debugpy so that tests relying on it keep passing, but we don't need install_debugpy's logic in the test phase.
179-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
179+
python -m pip --disable-pip-version-check install -t ./python_files/lib/python --no-cache-dir --implementation py --no-deps --upgrade --pre debugpy
180180
181181
- name: Download get-pip.py
182182
run: |
183183
python -m pip install wheel
184184
python -m pip install -r build/build-install-requirements.txt
185-
python ./pythonFiles/download_get_pip.py
185+
python ./python_files/download_get_pip.py
186186
shell: bash
187187

188188
- name: Install base Python requirements
189189
uses: brettcannon/pip-secure-install@v1
190190
with:
191191
requirements-file: '"${{ env.special-working-directory-relative }}/requirements.txt"'
192-
options: '-t "${{ env.special-working-directory-relative }}/pythonFiles/lib/python" --no-cache-dir --implementation py'
192+
options: '-t "${{ env.special-working-directory-relative }}/python_files/lib/python" --no-cache-dir --implementation py'
193193

194194
- name: Install Jedi requirements
195195
run: python scripts/vendor.py
@@ -201,7 +201,7 @@ jobs:
201201
run: |
202202
python -m pip install wheel
203203
python -m pip --disable-pip-version-check install -r build/build-install-requirements.txt
204-
python ./pythonFiles/install_debugpy.py
204+
python ./python_files/install_debugpy.py
205205
shell: bash
206206
if: matrix.test-suite == 'debugger'
207207

@@ -387,22 +387,22 @@ jobs:
387387
cache: 'pip'
388388
cache-dependency-path: |
389389
requirements.txt
390-
pythonFiles/jedilsp_requirements/requirements.txt
390+
python_files/jedilsp_requirements/requirements.txt
391391
build/test-requirements.txt
392392
build/functional-test-requirements.txt
393393
394394
- name: Install base Python requirements
395395
uses: brettcannon/pip-secure-install@v1
396396
with:
397-
options: '-t ./pythonFiles/lib/python --implementation py'
397+
options: '-t ./python_files/lib/python --implementation py'
398398

399399
- name: Install Jedi requirements
400400
run: python scripts/vendor.py
401401

402402
- name: Install debugpy
403403
run: |
404404
# We need to have debugpy so that tests relying on it keep passing, but we don't need install_debugpy's logic in the test phase.
405-
python -m pip --disable-pip-version-check install -t ./pythonFiles/lib/python --implementation py --no-deps --upgrade --pre debugpy
405+
python -m pip --disable-pip-version-check install -t ./python_files/lib/python --implementation py --no-deps --upgrade --pre debugpy
406406
407407
- name: Install test requirements
408408
run: python -m pip install --upgrade -r build/test-requirements.txt
@@ -478,7 +478,7 @@ jobs:
478478

479479
- name: Run Python unit tests
480480
run: |
481-
python pythonFiles/tests/run_all.py
481+
python python_files/tests/run_all.py
482482
483483
# The virtual environment based tests use the `testSingleWorkspace` set of tests
484484
# with the environment variable `TEST_FILES_SUFFIX` set to `testvirtualenvs`,

extensions/positron-python/.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ cucumber-report.json
2323
**/.venv*/
2424
port.txt
2525
precommit.hook
26-
pythonFiles/lib/**
27-
pythonFiles/get-pip.py
28-
pythonFiles/get_pip.py
26+
python_files/lib/**
27+
python_files/get-pip.py
2928
debug_coverage*/**
3029
languageServer/**
3130
languageServer.*/**

extensions/positron-python/.vscode/launch.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,18 @@
268268
},
269269
{
270270
"name": "Listen",
271-
"type": "python",
271+
"type": "debugpy",
272272
"request": "attach",
273273
"listen": { "host": "localhost", "port": 5678 },
274274
"justMyCode": true
275275
},
276276
{
277277
"name": "Debug pytest plugin tests",
278278

279-
"type": "python",
279+
"type": "debugpy",
280280
"request": "launch",
281281
"module": "pytest",
282-
"args": ["${workspaceFolder}/pythonFiles/tests/pytestadapter"],
282+
"args": ["${workspaceFolder}/python_files/tests/pytestadapter"],
283283
"justMyCode": true
284284
}
285285
],

extensions/positron-python/.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
// Open merge editor for resolving conflicts.
6969
"git.mergeEditor": true,
7070
"python.testing.pytestArgs": [
71-
"pythonFiles/tests"
71+
"python_files/tests"
7272
],
7373
"python.testing.unittestEnabled": false,
7474
"python.testing.pytestEnabled": true

extensions/positron-python/.vscodeignore

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ obj/**
5151
out/**/*.stats.json
5252
out/client/**/*.analyzer.html
5353
out/coverconfig.json
54-
out/pythonFiles/**
54+
out/python_files/**
5555
out/src/**
5656
out/test/**
5757
out/testMultiRootWkspc/**
5858
precommit.hook
59-
pythonFiles/**/*.pyc
60-
pythonFiles/lib/**/*.egg-info/**
61-
pythonFiles/lib/python/bin/**
62-
pythonFiles/jedilsp_requirements/**
63-
pythonFiles/tests/**
59+
python_files/**/*.pyc
60+
python_files/lib/**/*.egg-info/**
61+
python_files/lib/python/bin/**
62+
python_files/jedilsp_requirements/**
63+
python_files/tests/**
6464
scripts/**
6565
src/**
6666
test/**

extensions/positron-python/build/azure-pipeline.pre-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ extends:
5454

5555
- script: |
5656
python -m pip --disable-pip-version-check install -r build/build-install-requirements.txt
57-
python ./pythonFiles/install_debugpy.py
58-
python ./pythonFiles/download_get_pip.py
57+
python ./python_files/install_debugpy.py
58+
python ./python_files/download_get_pip.py
5959
displayName: Install debugpy and get-pip.py
6060
6161
- script: |
62-
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./pythonFiles/lib/python --implementation py -r ./requirements.txt
62+
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./python_files/lib/python --implementation py -r ./requirements.txt
6363
displayName: Install Python dependencies
6464
6565
- script: |
66-
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./pythonFiles/lib/jedilsp --implementation py --platform any --abi none -r ./pythonFiles/jedilsp_requirements/requirements.txt
66+
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./python_files/lib/jedilsp --implementation py --platform any --abi none -r ./python_files/jedilsp_requirements/requirements.txt
6767
displayName: Install Jedi Language Server
6868
6969
- script: |

extensions/positron-python/build/azure-pipeline.stable.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ extends:
4949

5050
- script: |
5151
python -m pip --disable-pip-version-check install -r build/build-install-requirements.txt
52-
python ./pythonFiles/install_debugpy.py
53-
python ./pythonFiles/download_get_pip.py
52+
python ./python_files/install_debugpy.py
53+
python ./python_files/download_get_pip.py
5454
displayName: Install debugpy and get-pip.py
5555
5656
- script: |
57-
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./pythonFiles/lib/python --implementation py -r ./requirements.txt
57+
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./python_files/lib/python --implementation py -r ./requirements.txt
5858
displayName: Install Python dependencies
5959
6060
- script: |
61-
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./pythonFiles/lib/jedilsp --implementation py --platform any --abi none -r ./pythonFiles/jedilsp_requirements/requirements.txt
61+
python -m pip install --no-deps --require-hashes --only-binary :all: -t ./python_files/lib/jedilsp --implementation py --platform any --abi none -r ./python_files/jedilsp_requirements/requirements.txt
6262
displayName: Install Jedi Language Server
6363
6464
- script: |

extensions/positron-python/build/existingFiles.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
"src/test/providers/shebangCodeLenseProvider.test.ts",
501501
"src/test/providers/symbolProvider.unit.test.ts",
502502
"src/test/providers/terminal.unit.test.ts",
503-
"src/test/pythonFiles/formatting/dummy.ts",
503+
"src/test/python_files/formatting/dummy.ts",
504504
"src/test/refactor/extension.refactor.extract.method.test.ts",
505505
"src/test/refactor/extension.refactor.extract.var.test.ts",
506506
"src/test/refactor/rename.test.ts",

0 commit comments

Comments
 (0)