-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
124 lines (88 loc) · 4.47 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
GITHUB_WORKSPACE=/build
STABLE_BRANCH = Dec2023
TEST_IMAGE = monetdb/dev-builds:$(STABLE_BRANCH)
WHEEL_IMAGE = monetdb/dev-builds:$(STABLE_BRANCH)_manylinux
all: test
venv/:
python3 -m venv venv
venv/bin/pip install --upgrade pip wheel build setuptools
venv/bin/pytest: venv/
venv/bin/pip install -e ".[test]"
touch venv/bin/pytest
setup: venv/bin/pytest
build: venv/bin/pytest
venv/bin/pyproject-build
test: venv/bin/pytest
venv/bin/pytest
docker-wheels:
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.7"
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.8"
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.9"
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.10"
docker-wheels-aarch64:
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE}_aarch64 sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.7 manylinux_2_28_aarch64"
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE}_aarch64 sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.8 manylinux_2_28_aarch64"
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE}_aarch64 sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.9 manylinux_2_28_aarch64"
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${WHEEL_IMAGE}_aarch64 sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/make_wheel.sh 3.10 manylinux_2_28_aarch64"
docker-test:
docker run -ti -v `pwd`:$(GITHUB_WORKSPACE) ${TEST_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); MONETDB_BRANCH=$(STABLE_BRANCH) scripts/test.sh"
docker-mypy:
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${TEST_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); scripts/mypy.sh"
docker-pycodestyle:
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${TEST_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); scripts/pycodestyle.sh"
docker-info:
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${TEST_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); scripts/info.sh"
docker-doc:
docker run -v `pwd`:$(GITHUB_WORKSPACE) ${TEST_IMAGE} sh -c "cd $(GITHUB_WORKSPACE); scripts/doc.sh"
dockers: docker-wheels docker-test docker-mypy docker-pycodestyle docker-doc
clean: venv/
venv/bin/python3 setup.py clean
rm -rf build dist *.egg-info .eggs monetdbe/*.so monetdbe/*.dylib .*_cache venv/
rm monetdbe/_cffi/branch.py
find . -name __pycache__ | xargs rm -rf
venv/bin/mypy: venv/
venv/bin/pip install mypy
touch venv/bin/mypy
venv/bin/pycodestyle: venv/
venv/bin/pip install pycodestyle
touch venv/bin/pycodestyle
mypy: venv/bin/mypy
venv/bin/mypy --show-error-codes monetdbe tests
pycodestyle: venv/bin/pycodestyle
venv/bin/pycodestyle monetdbe tests
venv/bin/jupyter-notebook: venv/
venv/bin/pip install notebook
touch venv/bin/jupyter-notebook
notebook: venv/bin/jupyter-notebook
venv/bin/jupyter-notebook
venv/bin/delocate-wheel: venv/
venv/bin/pip install delocate
touch venv/bin/delocate-wheel
delocate: venv/bin/delocate-wheel
venv/bin/delocate-wheel -v dist/*.whl
venv/bin/twine: venv/
venv/bin/pip install twine
touch venv/bin/twine
twine: venv/bin/twine
venv/bin/twine upload dist/*.whl dist/*.tar.gz
info: setup
venv/bin/python -c "from monetdbe._cffi.util import print_info; print_info()"
venv/bin/ipython: venv/
venv/bin/pip install ipython
ipython: venv/bin/ipython
venv/bin/ipython
venv38/:
/opt/homebrew/Cellar/[email protected]/3.8.*/bin/python3.8 -m venv venv38
venv39/:
/opt/homebrew/Cellar/[email protected]/3.9.*/bin/python3.9 -m venv venv39
venv310/:
/opt/homebrew/Cellar/[email protected]/3.10.*/bin/python3.10 -m venv venv310
osx-m1-all-wheels: venv38/ venv39/ venv310/
venv38/bin/pip install --upgrade pip wheel setuptools build
venv39/bin/pip install --upgrade pip wheel setuptools build
venv310/bin/pip install --upgrade pip wheel setuptools build
MONETDB_BRANCH=default CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" venv38/bin/python -m build
MONETDB_BRANCH=default CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" venv39/bin/python -m build
MONETDB_BRANCH=default CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" venv310/bin/python -m build
osx-m1-wheel: venv/
MONETDB_BRANCH=default CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" venv/bin/python -m build