File: Makefile

package info (click to toggle)
python-cramjam 2.7.0.1%2Bds1-2
  • links: PTS
  • area: main
  • in suites: sid
  • size: 3,048 kB
  • sloc: python: 622; makefile: 41
file content (46 lines) | stat: -rw-r--r-- 971 bytes parent folder | download
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
BASE_BENCH_CMD = python -m pytest -v --benchmark-sort name --benchmark-only benchmarks/ -k

test:
	python -m pytest tests -n auto -v --ignore benchmarks

test-bench:
	python -m pytest -v --benchmark-disable benchmarks/

bench:
	python -m pytest -v --benchmark-only --benchmark-sort name benchmarks/

bench-snappy-framed:
	$(BASE_BENCH_CMD) test_snappy_framed

bench-snappy-raw:
	$(BASE_BENCH_CMD) test_snappy_raw

bench-snappy-compress-into:
	$(BASE_BENCH_CMD) snappy_de_compress_into

bench-lz4:
	$(BASE_BENCH_CMD) lz4

bench-lz4-block:
	$(BASE_BENCH_CMD) lz4_block

bench-gzip:
	$(BASE_BENCH_CMD) gzip

bench-brotli:
	$(BASE_BENCH_CMD) brotli

bench-bzip2:
	$(BASE_BENCH_CMD) bzip2

bench-zstd:
	$(BASE_BENCH_CMD) zstd

dev-install:
	rm -rf ./dist
	maturin build --release --out dist --interpreter $(shell which python)
	pip uninstall cramjam -y
	pip install cramjam --no-index --find-links dist/

pypy-build:
	maturin build -i $(shell which pypy) --release --out dist