Skip to content

Commit 191d64d

Browse files
Merge pull request #52 from martinRenou/rename_package
Rename package jupyter-bluetooth-manager
2 parents 2d66787 + 8d1e9d2 commit 191d64d

15 files changed

Lines changed: 88 additions & 88 deletions

File tree

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ author_name: Florence Haudin
66
has_binder: false
77
has_settings: true
88
kind: frontend
9-
labextension_name: bluetooth-manager
9+
labextension_name: jupyter-bluetooth-manager
1010
project_short_description: A JupyterLab extension to manage to connect to devices
1111
with web bluetooth.
12-
python_name: bluetooth_manager
12+
python_name: jupyter-bluetooth-manager
1313
repository: https://github.com/QuantStack/bluetooth-manager
1414
test: true
1515

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ jobs:
5050
5151
pip install build
5252
python -m build
53-
pip uninstall -y "bluetooth_manager" jupyterlab
53+
pip uninstall -y "jupyter-bluetooth-manager" jupyterlab
5454
5555
- name: Upload extension packages
5656
uses: actions/upload-artifact@v4
5757
with:
5858
name: extension-artifacts
59-
path: dist/bluetooth_manager*
59+
path: dist/jupyter_bluetooth_manager*
6060
if-no-files-found: error
6161

6262
test_isolated:
@@ -79,7 +79,7 @@ jobs:
7979
sudo rm -rf $(which node)
8080
sudo rm -rf $(which node)
8181
82-
pip install "jupyterlab>=4.0.0,<5" bluetooth_manager*.whl
82+
pip install "jupyterlab>=4.0.0,<5" jupyter_bluetooth_manager*.whl
8383
8484
8585
jupyter labextension list
@@ -109,7 +109,7 @@ jobs:
109109
- name: Install the extension
110110
run: |
111111
set -eux
112-
python -m pip install "jupyterlab>=4.0.0,<5" bluetooth_manager*.whl
112+
python -m pip install "jupyterlab>=4.0.0,<5" jupyter_bluetooth_manager*.whl
113113
114114
- name: Install dependencies
115115
working-directory: ui-tests

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ node_modules/
77
*.egg-info/
88
.ipynb_checkpoints
99
*.tsbuildinfo
10-
bluetooth_manager/labextension
10+
jupyter_bluetooth_manager/labextension
1111
# Version file is handled by hatchling
12-
bluetooth_manager/_version.py
12+
jupyter_bluetooth_manager/_version.py
1313

1414
# Integration tests
1515
ui-tests/test-results/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
**/lib
44
**/package.json
55
!/package.json
6-
bluetooth_manager
6+
jupyter_bluetooth_manager

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bluetooth_manager
1+
# jupyter-bluetooth-manager
22

33
A JupyterLab extension to manage to connect to devices with web bluetooth.
44

@@ -11,15 +11,15 @@ A JupyterLab extension to manage to connect to devices with web bluetooth.
1111
To install the extension, execute:
1212

1313
```bash
14-
pip install bluetooth_manager
14+
pip install jupyter-bluetooth-manager
1515
```
1616

1717
## Uninstall
1818

1919
To remove the extension, execute:
2020

2121
```bash
22-
pip uninstall bluetooth_manager
22+
pip uninstall jupyter-bluetooth-manager
2323
```
2424

2525
## Contributing
@@ -34,7 +34,7 @@ The `jlpm` command is JupyterLab's pinned version of
3434

3535
```bash
3636
# Clone the repo to your local environment
37-
# Change directory to the bluetooth_manager directory
37+
# Change directory to the jupyter-bluetooth-manager directory
3838
# Install package in development mode
3939
pip install -e "."
4040
# Link your development version of the extension with JupyterLab
@@ -63,7 +63,7 @@ jupyter lab build --minimize=False
6363
### Development uninstall
6464

6565
```bash
66-
pip uninstall bluetooth_manager
66+
pip uninstall jupyter-bluetooth-manager
6767
```
6868

6969
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Making a new release of bluetooth_manager
1+
# Making a new release of jupyter-bluetooth-manager
22

33
The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
44

examples/test-widget-with-ipykernel.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
},
1616
{
1717
"cell_type": "code",
18-
"execution_count": 6,
18+
"execution_count": null,
1919
"id": "762d552a-dafd-4b4b-9b0c-8b6612d2415b",
2020
"metadata": {
2121
"scrolled": true
2222
},
2323
"outputs": [],
2424
"source": [
25-
"import asyncio \n",
26-
"from bluetooth_manager import MoveHubWidget,LedColor,Port, Sensor\n",
25+
"import asyncio\n",
26+
"from jupyter_bluetooth_manager import MoveHubWidget,LedColor,Port, Sensor\n",
2727
"from ipywidgets import Output\n",
2828
"from IPython.display import display\n",
2929
"\n",
3030
"# the robot's LED supports the following colors\n",
3131
"colors = [\n",
32-
" \n",
32+
"\n",
3333
" LedColor.pink,\n",
3434
" LedColor.purple,\n",
3535
" LedColor.blue,\n",
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "code",
56-
"execution_count": 7,
56+
"execution_count": null,
5757
"id": "aae633ad-bbb2-45c2-a1ff-5fab18146172",
5858
"metadata": {
5959
"scrolled": true
@@ -76,7 +76,7 @@
7676
],
7777
"source": [
7878
"# number of concurrent \"lanes\"\n",
79-
"n_lanes = 4 \n",
79+
"n_lanes = 4\n",
8080
"widget = MoveHubWidget(n_lanes=n_lanes)\n",
8181
"output = Output()\n",
8282
"display(widget)"
@@ -179,13 +179,13 @@
179179
"d_forward = 200\n",
180180
"d_rotate = 300\n",
181181
"output = Output()\n",
182-
"async def main(lane,log, identifier): \n",
182+
"async def main(lane,log, identifier):\n",
183183
" for i in range(4):\n",
184184
" await lane.set_led_async(\"red\")\n",
185185
" await lane.motor_angle_multi_async(angle=d_forward, power_a=speed,power_b=speed)\n",
186186
" await lane.set_led_async(\"green\")\n",
187187
" await lane.motor_angle_multi_async(angle=d_rotate, power_a=speed,power_b=-1.0*speed)\n",
188-
" \n",
188+
"\n",
189189
"widget.run_async_program(main, output=output);\n",
190190
"output"
191191
]

install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageManager": "python",
3-
"packageName": "bluetooth_manager",
4-
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package bluetooth_manager"
3+
"packageName": "jupyter-bluetooth-manager",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyter-bluetooth-manager"
55
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
# in editable mode with pip. It is highly recommended to install
88
# the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
99
import warnings
10-
warnings.warn("Importing 'bluetooth_manager' outside a proper installation.")
10+
warnings.warn("Importing 'jupyter_bluetooth_manager' outside a proper installation.")
1111
__version__ = "dev"
1212

1313

1414
def _jupyter_labextension_paths():
1515
return [{
1616
"src": "labextension",
17-
"dest": "bluetooth-manager"
17+
"dest": "jupyter-bluetooth-manager"
1818
}]

0 commit comments

Comments
 (0)