Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Commit fec621a

Browse files
authored
Merge pull request #100 from getyourguide/art-1200-use-uv-for-installation
Use uv for installing packages
2 parents c562a3f + 517950f commit fec621a

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog db-rocket
22

3+
## Version 3.1.0
4+
- Use uv when installing packages
5+
6+
## Version 3.0.6
7+
- Warn when failing to create requirements.txt file with poetry instead of raising an error
8+
39
## Version 3.0.6
410
- Create folder before copying file
511

rocket/rocket.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,21 +216,25 @@ def _build_and_deploy(
216216
if dependency_file_exist:
217217
logger.info(
218218
f"""Watch activated. Uploaded your project to databricks. Install your project in your databricks notebook by running:
219-
%pip install --upgrade pip
220-
%pip install {index_urls_options} -r {install_path}/{uploaded_dependency_file}
221-
%pip install --no-deps -e {install_path}
219+
%sh
220+
pip install uv
221+
uv pip install {index_urls_options} -r {install_path}/{uploaded_dependency_file}
222+
uv pip install --no-deps -e {install_path}
223+
224+
and in a new Python cell:
222225
dbutils.library.restartPython()
223226
224-
and following in a new Python cell:
227+
and and in one more Python cell:
225228
%load_ext autoreload
226229
%autoreload 2
227230
{extra_watch_command}"""
228231
)
229232
else:
230233
logger.info(
231234
f"""Watch activated. Uploaded your project to databricks. Install your project in your databricks notebook by running:
232-
%pip install --upgrade pip
233-
%pip install -e {install_path}
235+
%sh
236+
pip install uv
237+
uv pip install -e {install_path}
234238
235239
and following in a new Python cell:
236240
%load_ext autoreload

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setuptools.setup(
1111
name="databricks-rocket",
12-
version="3.0.7",
12+
version="3.1.0",
1313
author="GetYourGuide",
1414
author_email="[email protected]",
1515
description="Keep your local python scripts installed and in sync with a databricks notebook. Shortens the feedback loop to develop projects using a hybrid enviroment",

0 commit comments

Comments
 (0)