1515lint_install :
1616 pre-commit install
1717
18- build :
19- mkdir -p build && cd build && \
20- cmake .. && make
21- .PHONY : build
22-
2318docs_build :
2419 mkdocs build
2520docs_serve :
@@ -47,28 +42,31 @@ test_in_dev_container:
4742 -v ` pwd` :` pwd` -w ` pwd` -it $(DEV_CONTAINER_IMAG ) bash
4843
4944PYTHON ?= python3
45+ build :
46+ $(PYTHON ) -m pip install scikit_build_core pyproject_metadata pathspec pybind11
47+ CMAKE_BUILD_PARALLEL_LEVEL=$(NUM_JOBS ) $(PYTHON ) -m pip install --no-build-isolation -Ceditable.rebuild=true -Cbuild-dir=build -ve.
5048python_install :
51- $(PYTHON ) setup.py install
52- python_build :
53- $(PYTHON ) setup.py bdist_wheel
49+ $(PYTHON ) -m pip install . --verbose
50+ python_wheel :
51+ $(PYTHON ) -m pip wheel . -w build --verbose
5452python_sdist :
55- $(PYTHON ) setup.py sdist
56- # tar -tvf dist/polyline_ruler-*.tar.gz
57- python_test :
58- $(PYTHON ) -m pytest tests/test_basic.py --capture tee-sys -vv -x
59- pytest : python_test
60- .PHONY : python_install python_build python_sdist python_test
53+ $(PYTHON ) -m pip sdist . --verbose
54+ python_test : pytest
55+ pytest :
56+ python3 -m pip install pytest
57+ pytest tests/test_basic.py
58+ .PHONY : build
59+
60+ restub :
61+ pybind11-stubgen polyline_ruler._core -o stubs
62+ cp -rf stubs/polyline_ruler/_core src/polyline_ruler
6163
62- # conda create -y -n py36 python=3.6
63- # conda create -y -n py37 python=3.7
6464# conda create -y -n py38 python=3.8
6565# conda create -y -n py39 python=3.9
6666# conda create -y -n py310 python=3.10
67+ # conda create -y -n py311 python=3.11
68+ # conda create -y -n py312 python=3.12
6769# conda env list
68- python_build_py36 :
69- PYTHON=python conda run --no-capture-output -n py36 make python_build
70- python_build_py37 :
71- PYTHON=python conda run --no-capture-output -n py37 make python_build
7270python_build_py38 :
7371 PYTHON=python conda run --no-capture-output -n py38 make python_build
7472python_build_py39 :
@@ -77,11 +75,13 @@ python_build_py310:
7775 PYTHON=python conda run --no-capture-output -n py310 make python_build
7876python_build_py311 :
7977 PYTHON=python conda run --no-capture-output -n py311 make python_build
80- python_build_all : python_build_py36 python_build_py37 python_build_py38 python_build_py39 python_build_py310 python_build_py311
78+ python_build_py312 :
79+ PYTHON=python conda run --no-capture-output -n py312 make python_build
80+ python_build_all : python_build_py38 python_build_py39 python_build_py310 python_build_py311 python_build_py312
8181python_build_all_in_linux :
8282 docker run --rm -w ` pwd` -v ` pwd` :` pwd` -v ` pwd` /build/linux:` pwd` /build -it $(DOCKER_TAG_LINUX ) make python_build_all
8383 make repair_wheels && rm -rf dist/* .whl && mv wheelhouse/* .whl dist && rm -rf wheelhouse
84- python_build_all_in_macos : python_build_py38 python_build_py39 python_build_py310 python_build_py311
84+ python_build_all_in_macos : python_build_py38 python_build_py39 python_build_py310 python_build_py311 python_build_py312
8585python_build_all_in_windows : python_build_all
8686
8787repair_wheels :
0 commit comments