Skip to content

Commit

Permalink
docker share database dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Youe Graillot committed Nov 24, 2021
1 parent 28d4a44 commit 5e225f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Expand Up @@ -43,10 +43,8 @@ RUN echo "**** install build dependencies ****" &&\
mkdir -p /etc/ihatemoney &&\
echo "**** install pip packages ****" && \
pip install --no-cache-dir \
gunicorn \
pymysql \
psycopg2 && \
pip install --no-cache-dir -e /src && \
gunicorn && \
pip install --no-cache-dir -e /src[database] && \
echo "**** create user abc:abc ****" && \
useradd -u 1000 -U -d /src abc && \
echo "**** cleanup ****" && \
Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Expand Up @@ -45,6 +45,10 @@ install_requires =
python-dateutil

[options.extras_require]
database =
psycopg2-binary>=2.9,<3
PyMySQL>=0.9,<1.1

dev =
black>=19.10b0 ; python_version >= '3.6'
flake8>=3.7.9
Expand All @@ -53,8 +57,6 @@ dev =
pytest>=5.4.1
tox>=3.14.6
zest.releaser>=6.20.1
psycopg2-binary>=2.9,<3
PyMySQL>=0.9,<1.1

doc =
Sphinx==4.3.0
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -10,7 +10,7 @@ commands =
py.test --pyargs ihatemoney.tests

deps =
-e.[dev]
-e.[database,dev]

# To be sure we are importing ihatemoney pkg from pip-installed version
changedir = /tmp
Expand Down

0 comments on commit 5e225f9

Please sign in to comment.