From 69f5eed5791d81025afa68bb45823524b87b22fe Mon Sep 17 00:00:00 2001 From: Nir Tal Date: Sun, 6 Apr 2025 13:36:08 +0300 Subject: [PATCH 1/2] uv --- .github/README.md | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/README.md b/.github/README.md index 1502545a25..775bfc6bcb 100644 --- a/.github/README.md +++ b/.github/README.md @@ -58,32 +58,37 @@ git clone https://github.com/nirtal85/Selenium-Python-Example.git cd selenium-python-example ``` -### Create and activate a virtual environment +### Install uv #### For Windows: ```bash -py -m pip install --user virtualenv -py -m venv env -.\env\Scripts\activate +pip install uv ``` #### For Mac: ```bash -python3 -m pip install --user virtualenv -python3 -m venv venv -source venv/bin/activate +python3 -m pip install uv ``` -### Install Poetry +### Create and activate a virtual environment + +#### For Windows: +```bash +uv venv +.\env\Scripts\activate +``` +#### For Mac: ```bash -pip install poetry +uv venv +source .venv/bin/activate ``` + ### Install Project Dependencies ```bash -poetry install --no-root +uv pip sync uv.lock ``` ### Create .env File From deefd690e87dc8549cf0cb2bc19f28c013cea33e Mon Sep 17 00:00:00 2001 From: Nir Tal Date: Sun, 6 Apr 2025 13:42:04 +0300 Subject: [PATCH 2/2] uv --- .github/README.md | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/README.md b/.github/README.md index 775bfc6bcb..af57134f61 100644 --- a/.github/README.md +++ b/.github/README.md @@ -58,36 +58,21 @@ git clone https://github.com/nirtal85/Selenium-Python-Example.git cd selenium-python-example ``` -### Install uv +### Create and activate a virtual environment then Install project dependencies #### For Windows: ```bash pip install uv -``` - -#### For Mac: -```bash -python3 -m pip install uv -``` - -### Create and activate a virtual environment - -#### For Windows: -```bash uv venv .\env\Scripts\activate +uv pip sync uv.lock ``` #### For Mac: ```bash +python3 -m pip install uv uv venv source .venv/bin/activate -``` - - -### Install Project Dependencies - -```bash uv pip sync uv.lock ```