-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 752 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (36 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.PHONY: clean sync cython build test lint typecheck format check sdist
clean:
$(RM) -r \
.pytest_cache \
.ruff_cache \
build \
dist \
src/cchardet/cli/__pycache__ \
src/cchardet/__pycache__ \
src/cchardet/*.cpp \
src/cchardet/*.pyc \
src/cchardet/*.so \
src/cchardet.egg-info \
tests/__pycache__ \
tests/*.pyc \
wheelhouse
cython:
uv run cython --cplus src/cchardet/_cchardet.pyx
sync:
uv sync --locked
test: clean cython
uv run python setup.py build_ext -i -f
uv run pytest tests
lint:
uv run ruff check
typecheck:
uv run mypy
format:
uv run ruff format
check: lint typecheck test
bench: clean cython
uv run python setup.py build_ext -i -f
uv run python tests/bench.py
build: clean
uv build
sdist: build