Skip to content

Commit 53539f1

Browse files
authored
Merge pull request #38 from DenisaCG/fixName
Change package name
2 parents 10def7c + 47120d6 commit 53539f1

File tree

13 files changed

+58
-58
lines changed

13 files changed

+58
-58
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
jupyter server extension list 2>&1 | grep -ie "jupyter_drives.*OK"
4242
4343
jupyter labextension list
44-
jupyter labextension list 2>&1 | grep -ie "@jupyter/drives.*OK"
44+
jupyter labextension list 2>&1 | grep -ie "jupyter-drives.*OK"
4545
python -m jupyterlab.browser_check
4646
4747
- name: Package the extension
@@ -86,7 +86,7 @@ jobs:
8686
jupyter server extension list 2>&1 | grep -ie "jupyter_drives.*OK"
8787
8888
jupyter labextension list
89-
jupyter labextension list 2>&1 | grep -ie "@jupyter/drives.*OK"
89+
jupyter labextension list 2>&1 | grep -ie "jupyter-drives.*OK"
9090
python -m jupyterlab.browser_check --no-browser-test
9191
9292
integration-tests:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
A Jupyter extension to support drives in the backend.
55

66
This extension is composed of a Python package named `jupyter_drives`
7-
for the server extension and a NPM package named `@jupyter/drives`
7+
for the server extension and a NPM package named `jupyter-drives`
88
for the frontend extension.
99

1010
## Requirements
@@ -138,7 +138,7 @@ pip uninstall jupyter_drives
138138

139139
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
140140
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
141-
folder is located. Then you can remove the symlink named `@jupyter/drives` within that folder.
141+
folder is located. Then you can remove the symlink named `jupyter-drives` within that folder.
142142

143143
### Testing the extension
144144

jupyter_drives/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def _jupyter_labextension_paths():
1515
return [{
1616
"src": "labextension",
17-
"dest": "@jupyter/drives"
17+
"dest": "jupyter-drives"
1818
}]
1919

2020

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@jupyter/drives",
2+
"name": "jupyter-drives",
33
"version": "0.0.1-a1",
44
"description": "A Jupyter extension to support drives in the backend.",
55
"keywords": [

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ artifacts = ["jupyter_drives/labextension"]
5959
exclude = [".github", "binder"]
6060

6161
[tool.hatch.build.targets.wheel.shared-data]
62-
"jupyter_drives/labextension" = "share/jupyter/labextensions/@jupyter/drives"
63-
"install.json" = "share/jupyter/labextensions/@jupyter/drives/install.json"
62+
"jupyter_drives/labextension" = "share/jupyter/labextensions/jupyter-drives"
63+
"install.json" = "share/jupyter/labextensions/jupyter-drives/install.json"
6464
"jupyter-config/server-config" = "etc/jupyter/jupyter_server_config.d"
6565

6666
[tool.hatch.build.hooks.version]

schema/drives-file-browser.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636
]
3737
},
38-
"jupyter.lab.setting-icon": "@jupyter/drives:drive-browser",
38+
"jupyter.lab.setting-icon": "jupyter-drives:drive-browser",
3939
"jupyter.lab.setting-icon-label": "Drive Browser",
4040
"type": "object",
4141
"jupyter.lab.transform": true,

src/__tests__/jupyter_drives.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Example of [Jest](https://jestjs.io/docs/getting-started) unit tests
33
*/
44

5-
describe('@jupyter/drives', () => {
5+
describe('jupyter-drives', () => {
66
it('should be tested', () => {
77
expect(1 + 1).toEqual(2);
88
});

src/icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import driveSvgstr from '../style/drive.svg';
33
import driveBrowserSvg from '../style/driveIconFileBrowser.svg';
44

55
export const DriveIcon = new LabIcon({
6-
name: '@jupyter/drives:drive',
6+
name: 'jupyter-drives:drive',
77
svgstr: driveSvgstr
88
});
99

1010
export const driveBrowserIcon = new LabIcon({
11-
name: '@jupyter/drives:drive-browser',
11+
name: 'jupyter-drives:drive-browser',
1212
svgstr: driveBrowserSvg
1313
});

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const FILE_BROWSER_FACTORY = 'DriveBrowser';
4949
const FILTERBOX_CLASS = 'jp-drive-browser-search-box';
5050

5151
const openDriveDialogPlugin: JupyterFrontEndPlugin<void> = {
52-
id: '@jupyter/drives:widget',
52+
id: 'jupyter-drives:widget',
5353
description: 'Open a dialog to select drives to be added in the filebrowser.',
5454
requires: [IFileBrowserFactory, ITranslator],
5555
autoStart: true,
@@ -156,7 +156,7 @@ const openDriveDialogPlugin: JupyterFrontEndPlugin<void> = {
156156
* The drives list provider.
157157
*/
158158
const drivesListProvider: JupyterFrontEndPlugin<IDriveInfo[]> = {
159-
id: '@jupyter/drives:drives-list',
159+
id: 'jupyter-drives:drives-list',
160160
description: 'The drives list provider.',
161161
provides: IDrivesList,
162162
activate: async (_: JupyterFrontEnd): Promise<IDriveInfo[]> => {
@@ -183,7 +183,7 @@ const drivesListProvider: JupyterFrontEndPlugin<IDriveInfo[]> = {
183183
* The drive file browser factory provider.
184184
*/
185185
const driveFileBrowser: JupyterFrontEndPlugin<void> = {
186-
id: '@jupyter/drives:drives-file-browser',
186+
id: 'jupyter-drives:drives-file-browser',
187187
description: 'The drive file browser factory provider.',
188188
autoStart: true,
189189
requires: [
@@ -212,7 +212,7 @@ const driveFileBrowser: JupyterFrontEndPlugin<void> = {
212212
restorer: ILayoutRestorer | null
213213
): Promise<void> => {
214214
console.log(
215-
'JupyterLab extension @jupyter/drives:drives-file-browser is activated!'
215+
'JupyterLab extension jupyter-drives:drives-file-browser is activated!'
216216
);
217217
const { commands } = app;
218218

src/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Contents } from '@jupyterlab/services';
55
* A token for the plugin that provides the list of drives.
66
*/
77
export const IDrivesList = new Token<IDriveInfo[]>(
8-
'@jupyter/drives:drives-list-provider'
8+
'jupyter-drives:drives-list-provider'
99
);
1010

1111
/**

0 commit comments

Comments
 (0)