-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
87 lines (61 loc) · 2.49 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
.PHONY: venv venv-pip
PYTHON=$(PWD)/venv/bin/python
PIP=$(PWD)/venv/bin/pip
venv:
python3 -m venv venv
venv-pip: venv
$(PIP) install -U pip setuptools pdoc flake8 ipdb
$(PIP) install -r requirements.txt
$(PYTHON) --version
$(PIP) --version
lint: venv-pip
cargo fmt -- --check
$(PYTHON) -m flake8 fluvio integration-tests macos-ci-tests
$(PYTHON) -m black --check fluvio integration-tests macos-ci-tests
lint-write: venv-pip
cargo fmt
$(PYTHON) -m black fluvio integration-tests macos-ci-tests
build-wheel: venv-pip
rm -rf ./fluvio.egg-info/
$(PYTHON) setup.py bdist_wheel
install-wheel: build-wheel
$(PIP) install --upgrade --force-reinstall --no-index --pre --find-links=dist/ fluvio
build-dev: venv-pip
$(PYTHON) setup.py develop
unit-tests: build-dev
cd tests/ && $(PYTHON) -m unittest
integration-tests: build-dev
cd integration-tests/ && $(PYTHON) -m unittest
test-signals: build-dev
cd integration-tests/ && $(PYTHON) -m unittest test_signals.py
test-signals-async: build-dev
cd integration-tests/ && $(PYTHON) -m unittest test_signals_async.py
test-produce: build-dev
cd integration-tests/ && $(PYTHON) -m unittest test_produce.py
test-consume: build-dev
cd integration-tests/ && $(PYTHON) -m unittest test_consume.py
macos-ci-tests: build-dev
cd macos-ci-tests && $(PYTHON) -m unittest
manual-tests: build-dev
cd manual-tests/ && $(PYTHON) -m unittest
ci-build: # This is for testing builds
CIBW_BUILD="cp311-manylinux_x86_64 cp311-manylinux_aarch64 cp311-macosx_x86_64 cp311-macosx_universal2 cp311-macosx_arm64" CIBW_SKIP="cp27-*" CIBW_BEFORE_ALL_LINUX="{package}/tools/cibw_before_all_linux.sh" $(PYTHON) -m cibuildwheel --platform linux --output-dir wheelhouse
manylinux2014_aarch64:
docker build -f cross/Dockerfile.aarch64-unknown-linux-gnu -t fluvio-cross-python:aarch64-unknown-linux-gnu cross
python setup.py bdist_wheel --py-limited-api=cp38 --plat-name manylinux2014_aarch64
manylinux2014_x86_64:
python setup.py bdist_wheel --py-limited-api=cp38 --plat-name manylinux2014_x86_64
PDOC_OPTS=--logo='https://www.fluvio.io/img/infinyon-gradient.png' --favicon='https://www.fluvio.io/images/favicon.ico'
docs-serve: venv-pip build-dev
$(PYTHON) -m pdoc fluvio $(PDOC_OPTS)
docs-build: venv-pip build-dev
$(PYTHON) -m pdoc fluvio -o docs/ $(PDOC_OPTS)
clean:
rm -rf venv fluvio/*.so target dist build
changelog:
# backfill from older
# git cliff v0.15.2..HEAD -t v0.15.7 -p CHANGELOG.md
# normal changelog update
# git cliff -l -p ./CHANGELOG.md
# info
git cliff -l