Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1018 Bytes

CONTRIBUTING.md

File metadata and controls

28 lines (22 loc) · 1018 Bytes

Contributing

Install in "development/editable" mode including dev/test dependencies:

git clone https://github.com/AMYPAD/NumCu && cd NumCu

# `pip install -e .[dev]` won't work due to https://github.com/scikit-build/scikit-build-core/issues/114
# work-around:
# 1. install dependencies (one-off)
pip install toml
python -c 'import toml; c=toml.load("pyproject.toml")
print("\0".join(c["build-system"]["requires"] + c["project"]["dependencies"] + c["project"]["optional-dependencies"]["dev"]), end="")' \
| xargs -0 pip install -U ninja cmake

# 2. delete build artefacts, (re)build & install in-place with debug info
git clean -Xdf
pip install --no-build-isolation --no-deps -t . -U -v . \
  -Ccmake.define.CUVEC_DEBUG=1
  -Ccmake.define.CMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-cast-function-type"
git restore numcu/src # undo deletion of sources

Once installed in development/editable mode, tests may be run using:

pytest