A wrapper to present a cryptography api but use the pycryptodome module.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
591 B

  1. VIRTUALENV ?= python3 -m venv
  2. VRITUALENVARGS =
  3. MODULES=cryptography.tests
  4. test: venv pycaenv
  5. find cryptography -name '*.py' | entr make test-noentr
  6. test-noentr:
  7. ( . ./pycaenv/bin/activate && cd cryptography && python -m unittest tests) && ( . ./venv/bin/activate && pip install -e . && python -m coverage run -m unittest $(MODULES) && coverage report --omit=p/\* -m -i)
  8. venv:
  9. ($(VIRTUALENV) $(VIRTUALENVARGS) venv && . ./venv/bin/activate && pip install -r requirements.txt)
  10. pycaenv:
  11. ($(VIRTUALENV) $(VIRTUALENVARGS) pycaenv && . ./pycaenv/bin/activate && pip install cryptography)