Browse Source

update to python 3..

main
John-Mark Gurney 3 years ago
parent
commit
4dd21d78cf
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      ui/Makefile

+ 4
- 3
ui/Makefile View File

@@ -1,16 +1,17 @@
VIRTUALENV?=virtualenv-3.7
MODULES=cli.py kleintest.py mtree.py server.py

test: fixtures/sample.data.pasn1 fixtures/sample.persona.pasn1 fixtures/sample.mtree
(. ./p/bin/activate && \
(ls $(MODULES) | entr sh -c 'python -m coverage run -m unittest $(basename $(MODULES)) && coverage report -m --omit=p/\*'))
(ls $(MODULES) | entr sh -c 'python3 -m coverage run -m unittest -f $(basename $(MODULES)) && coverage report -m --omit=p/\*'))

env:
virtualenv p
$(VIRTUALENV) p
(. ./p/bin/activate && \
pip install -r requirements.txt)

fixtures/sample.data.pasn1 fixtures/sample.persona.pasn1: fixtures/genfixtures.py
(. ./p/bin/activate && cd fixtures && PYTHONPATH=.. python genfixtures.py )
(. ./p/bin/activate && cd fixtures && PYTHONPATH=.. python3 genfixtures.py )

fixtures/sample.mtree: fixtures/mtree.dir
bsdtar -cf - --format mtree --options='!all,time,sha512,size,indent' -C fixtures/mtree.dir . > $@

Loading…
Cancel
Save