Skip to content

Commit 4025f7f

Browse files
authored
feat: use uv for package management (#77)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary `uv` is great. So we should use it where we can. The cache had to be removed because the workflow breaks currently. actions/setup-python#822 When this is solved, caching can be brought back in. ## Test Plan Ran workflow on my local repo.
1 parent 0ccbb5b commit 4025f7f

File tree

3 files changed

+8
-46
lines changed

3 files changed

+8
-46
lines changed

.github/workflows/main.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ jobs:
1616

1717
- uses: actions/checkout@v4
1818

19-
- uses: actions/setup-python@v4
19+
- uses: actions/setup-python@v5
2020
with:
2121
python-version: "3.11"
22-
cache: pip
23-
cache-dependency-path: requirements-dev.txt
2422

25-
- run: pip install -r requirements-dev.txt
23+
- name: download uv
24+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
25+
26+
- run: uv pip install --system -r requirements-dev.txt
2627

2728
- name: set git config
2829
run: |

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ dependencies = [
88
[project.optional-dependencies]
99
dev = [
1010
"packaging~=23.1",
11-
"pip-tools>=7.3.0,<8.0.0",
1211
"urllib3>=2.0.5,<3.0.0",
1312
]

requirements-dev.txt

+3-41
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,11 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.11
3-
# by the following command:
4-
#
5-
# pip-compile --extra=dev --generate-hashes --output-file=./requirements-dev.txt --unsafe-package=ruff ./pyproject.toml
6-
#
7-
build==1.0.3 \
8-
--hash=sha256:538aab1b64f9828977f84bc63ae570b060a8ed1be419e7870b8b4fc5e6ea553b \
9-
--hash=sha256:589bf99a67df7c9cf07ec0ac0e5e2ea5d4b37ac63301c4986d1acb126aa83f8f
10-
# via pip-tools
11-
click==8.1.7 \
12-
--hash=sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28 \
13-
--hash=sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de
14-
# via pip-tools
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile --extra=dev --generate-hashes -o requirements-dev.txt --no-emit-package=ruff pyproject.toml
153
packaging==23.1 \
164
--hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 \
175
--hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f
18-
# via
19-
# build
20-
# ruff-pre-commit (./pyproject.toml)
21-
pip==23.2.1 \
22-
--hash=sha256:7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be \
23-
--hash=sha256:fb0bd5435b3200c602b5bf61d2d43c2f13c02e29c1707567ae7fbc514eb9faf2
24-
# via pip-tools
25-
pip-tools==7.3.0 \
26-
--hash=sha256:8717693288720a8c6ebd07149c93ab0be1fced0b5191df9e9decd3263e20d85e \
27-
--hash=sha256:8e9c99127fe024c025b46a0b2d15c7bd47f18f33226cf7330d35493663fc1d1d
28-
# via ruff-pre-commit (./pyproject.toml)
29-
pyproject-hooks==1.0.0 \
30-
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \
31-
--hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5
32-
# via build
33-
setuptools==68.2.2 \
34-
--hash=sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87 \
35-
--hash=sha256:b454a35605876da60632df1a60f736524eb73cc47bbc9f3f1ef1b644de74fd2a
36-
# via pip-tools
376
urllib3==2.0.5 \
387
--hash=sha256:13abf37382ea2ce6fb744d4dad67838eec857c9f4f57009891805e0b5e123594 \
398
--hash=sha256:ef16afa8ba34a1f989db38e1dbbe0c302e4289a47856990d0682e374563ce35e
40-
# via ruff-pre-commit (./pyproject.toml)
41-
wheel==0.41.2 \
42-
--hash=sha256:0c5ac5ff2afb79ac23ab82bab027a0be7b5dbcf2e54dc50efe4bf507de1f7985 \
43-
--hash=sha256:75909db2664838d015e3d9139004ee16711748a52c8f336b52882266540215d8
44-
# via pip-tools
459

46-
# WARNING: The following packages were not pinned, but pip requires them to be
47-
# pinned when the requirements file includes hashes and the requirement is not
48-
# satisfied by a package already installed. Consider using the --allow-unsafe flag.
10+
# The following packages were excluded from the output:
4911
# ruff

0 commit comments

Comments
 (0)