Skip to content

Commit

Permalink
DOC: add some hints to build, test (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip authored Feb 3, 2023
1 parent fc26f5e commit a0dd289
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion devpy/cmds/_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
def build(build_dir, meson_args, jobs=None, clean=False, verbose=False):
"""🔧 Build package with Meson/ninja and install
MESON_ARGS are passed through directly to pytest, e.g.:
MESON_ARGS are passed through e.g.:
./dev.py build -- -Dpkg_config_path=/lib64/pkgconfig
The package is installed to BUILD_DIR-install
By default builds for release, to be able to use a debugger set CFLAGS
appropriately. For example, for linux use
CFLAGS="-O0 -g" ./dev.py build
"""
build_dir = os.path.abspath(build_dir)
inst_dir = install_dir(build_dir)
Expand Down
4 changes: 4 additions & 0 deletions devpy/cmds/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ def test(build_dir, pytest_args):
PYTEST_ARGS are passed through directly to pytest, e.g.:
./dev.py test -- -v
By default, runs the full test suite. To skip "slow" tests, run
./dev.py test -- -m "not slow"
"""
cfg = get_config()

Expand Down

0 comments on commit a0dd289

Please sign in to comment.