Commit 95783e85 authored by sim's avatar sim

Add alembic

parent 3bd1eeff
...@@ -8,9 +8,15 @@ TARG=dev ...@@ -8,9 +8,15 @@ TARG=dev
PIPENV_ARGS=--dev PIPENV_ARGS=--dev
endif endif
VENV=$(shell pipenv --venv)
PY_VERSION=$(shell python -c 'import sys; v=sys.version_info; print("{0}.{1}".format(*v))')
gargantext: conf env gargantext: conf env
@echo "• Installing dependencies..." @echo "• Installing dependencies..."
pipenv install $(PIPENV_ARGS) pipenv install $(PIPENV_ARGS)
@# Put current directory in python path to be able to import gargantext
@# from scripts in sub-directories (eg. alembic revisions)
@pwd > $(VENV)/lib/python$(PY_VERSION)/site-packages/gargantext.pth
@echo @echo
env: env:
......
...@@ -21,6 +21,7 @@ django-celery = "*" ...@@ -21,6 +21,7 @@ django-celery = "*"
djangorestframework = "*" djangorestframework = "*"
djangorestframework-jwt = "*" djangorestframework-jwt = "*"
python-decouple = "*" python-decouple = "*"
alembic = "*"
[requires] [requires]
......
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "53e18b75e4a0cfdcafd2ff47bd1d6772a5638f975b59fe95f4575e4086f60346" "sha256": "7a16a064353cfbfbf663cc7cbef0696dcc4bab271b2b3553ed39d2f69b37ee9b"
}, },
"host-environment-markers": { "host-environment-markers": {
"implementation_name": "cpython", "implementation_name": "cpython",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment