mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
docker share database dependencies
This commit is contained in:
parent
28d4a44711
commit
5e225f9e9a
3 changed files with 7 additions and 7 deletions
|
@ -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 ****" && \
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue