Skip to content

Commit 655796d

Browse files
authored
feat: use uv instead of pip (#389)
# Description <!-- Please provide a general summary of your PR changes and link any related issues or other pull requests. --> # Testing <!-- Please provide details on how you tested this code. See below. - All pull requests must be tested (unit tests where possible with accompanying cassettes, or provide a screenshot of end-to-end testing when unit tests are not possible) - New features must get a new unit test - Bug fixes/refactors must re-record existing cassettes --> # Pull Request Type Please select the option(s) that are relevant to this PR. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Improvement (fixing a typo, updating readme, renaming a variable name, etc)
1 parent 6130b81 commit 655796d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v6
1414
- uses: extractions/setup-just@v3
15+
- uses: astral-sh/setup-uv@v7
1516
- uses: actions/setup-python@v6
1617
with:
1718
python-version: '3.14'
@@ -28,6 +29,7 @@ jobs:
2829
steps:
2930
- uses: actions/checkout@v6
3031
- uses: extractions/setup-just@v3
32+
- uses: astral-sh/setup-uv@v7
3133
- uses: actions/setup-python@v6
3234
with:
3335
python-version: ${{ matrix.pythonversion }}
@@ -48,6 +50,7 @@ jobs:
4850
steps:
4951
- uses: actions/checkout@v6
5052
- uses: extractions/setup-just@v3
53+
- uses: astral-sh/setup-uv@v7
5154
- uses: actions/setup-python@v6
5255
with:
5356
python-version: '3.14'

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v6
1313
- uses: extractions/setup-just@v3
14+
- uses: astral-sh/setup-uv@v7
1415
- uses: actions/setup-python@v6
1516
with:
1617
python-version: '3.14'

justfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
PYTHON_BINARY := "python3"
2-
VIRTUAL_ENV := "venv"
1+
VIRTUAL_ENV := ".venv"
32
VIRTUAL_BIN := VIRTUAL_ENV / "bin"
43
PROJECT_NAME := "easypost"
54
TEST_DIR := "tests"
@@ -29,8 +28,8 @@ init-examples-submodule:
2928

3029
# Install the project locally (dev mode)
3130
install: init-examples-submodule
32-
{{PYTHON_BINARY}} -m venv {{VIRTUAL_ENV}}
33-
{{VIRTUAL_BIN}}/pip install -e ."[dev]"
31+
uv venv
32+
uv pip install -e '.[dev]'
3433

3534
# Update the examples submodule
3635
update-examples-submodule:

0 commit comments

Comments
 (0)