Skip to content

Commit 42bc2fd

Browse files
committed
Replace rye with uv
This assumes uv v0.3
1 parent 15fcd5e commit 42bc2fd

File tree

5 files changed

+196
-53
lines changed

5 files changed

+196
-53
lines changed

Makefile

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,23 @@ VIRTUALENV = .venv
33
all: build
44

55
compile_commands.json: build
6-
bear -- rye run python setup.py build_ext -qf
6+
bear -- uv run -- python setup.py build_ext -qf
77

8-
build: $(VIRTUALENV)/requirements.lock
8+
build: $(VIRTUALENV)/uv.lock
99

10-
$(VIRTUALENV)/requirements.lock: requirements.lock requirements-dev.lock pyproject.toml
11-
rye sync
10+
$(VIRTUALENV)/uv.lock: uv.lock pyproject.toml
11+
uv sync
1212
@cp $< $@
1313

1414
.PHONY: test
1515
test: build
16-
rye test -v
16+
uv run -- pytest -v
1717

1818
.PHONY: lint
1919
lint: build
20-
rye run lint
20+
uv run -- ruff check --diff $(CURDIR)
21+
uv run -- ruff format --check --diff $(CURDIR)
22+
uv run -- mypy $(CURDIR)
2123
clang-format --dry-run --Werror --style=file src/jump/*.c
2224

2325
.PHONY: clean

pyproject.toml

+1-8
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,14 @@ test-requires = "pytest"
4646
[tool.cibuildwheel.linux]
4747
archs = ["auto", "aarch64"]
4848

49-
[tool.rye]
50-
managed = true
49+
[tool.uv]
5150
dev-dependencies = [
5251
"mypy",
5352
"ruff",
5453
"pytest",
5554
"setuptools", # Required for `python setup.py build_ext`
5655
]
5756

58-
[tool.rye.scripts]
59-
lint = { chain = ["lint:ruff-check", "lint:mypy", "lint:ruff-format"] }
60-
"lint:ruff-check" = "ruff check --diff ."
61-
"lint:ruff-format" = "ruff format --check --diff ."
62-
"lint:mypy" = "mypy ."
63-
6457
[tool.mypy]
6558
check_untyped_defs = true
6659
ignore_missing_imports = true

requirements-dev.lock

-29
This file was deleted.

requirements.lock

-10
This file was deleted.

0 commit comments

Comments
 (0)