diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 69952d2..4b400c9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -180,6 +180,12 @@ environment** install an editable version of `drf-user` along with its tests, docs requirements and to avoid committing code that violates our style guide, we use [pre-commit](https://pre-commit.com/) hooks: +Note : For **windows** users, please refer this link to install choco [here](https://chocolatey.org/install) and then use following command to setup make + +```sh +$ choco install make +``` + ```sh (env) $ cd drf-user (env) $ make install diff --git a/Makefile b/Makefile index 512e5fe..b43c7f3 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,12 @@ VIRTUALENV = virtualenv --python=python3 PYTHON = $(VENV)/bin/python VENV := $(shell echo $${VIRTUAL_ENV-.venv}) +# make it work on windows too +ifeq ($(OS), Windows_NT) + VENV = venv + PYTHON=$(VENV)/Scripts/python +endif + TEST_FLAGS=--verbosity=2 COVER_FLAGS=--source=drf_user