-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathMakefile
69 lines (53 loc) · 2.12 KB
/
Makefile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
venv:
if [ ! -d "venv" ]; then \
if [[ '$(shell uname -m)' == 'arm64' ]]; then \
/usr/bin/python3 -m venv venv; \
else \
python -m venv venv; \
fi \
fi
clean-build:
rm -rf dist
rm -rf build
rm -rf deltacat.egg-info
clean-venv:
rm -rf venv
clean: clean-build clean-venv
build: venv
venv/bin/python setup.py sdist bdist_wheel
rebuild: clean-build build
deploy-s3:
./dev/deploy/aws/scripts/s3-build-and-deploy.sh
install: venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r dev-requirements.txt
lint: install
venv/bin/pre-commit run --all-files
test: install
venv/bin/pytest -m "not integration"
unit-test: install
venv/bin/pytest -m "not integration and not benchmark"
test-integration: install
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml kill
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml rm -f
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml up -d
sleep 3
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml exec -T spark-iceberg ipython ./provision.py
venv/bin/python -m pytest deltacat/tests/integ -v -m integration
test-converter:
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml kill
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml rm -f
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml up -d
sleep 3
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml exec -T spark-iceberg ipython ./provision.py
venv/bin/python -m pytest deltacat/tests/compute/converter -vv
test-integration-rebuild:
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml kill
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml rm -f
docker-compose -f dev/iceberg-integration/docker-compose-integration.yml build --no-cache
benchmark-aws: install
venv/bin/pytest deltacat/benchmarking/benchmark_parquet_reads.py --benchmark-only --benchmark-group-by=group,param:name
benchmark: install
pytest -m benchmark deltacat/benchmarking
publish: test test-integration rebuild
twine upload dist/*