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 &&\
|
mkdir -p /etc/ihatemoney &&\
|
||||||
echo "**** install pip packages ****" && \
|
echo "**** install pip packages ****" && \
|
||||||
pip install --no-cache-dir \
|
pip install --no-cache-dir \
|
||||||
gunicorn \
|
gunicorn && \
|
||||||
pymysql \
|
pip install --no-cache-dir -e /src[database] && \
|
||||||
psycopg2 && \
|
|
||||||
pip install --no-cache-dir -e /src && \
|
|
||||||
echo "**** create user abc:abc ****" && \
|
echo "**** create user abc:abc ****" && \
|
||||||
useradd -u 1000 -U -d /src abc && \
|
useradd -u 1000 -U -d /src abc && \
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
|
|
|
@ -45,6 +45,10 @@ install_requires =
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
|
||||||
[options.extras_require]
|
[options.extras_require]
|
||||||
|
database =
|
||||||
|
psycopg2-binary>=2.9,<3
|
||||||
|
PyMySQL>=0.9,<1.1
|
||||||
|
|
||||||
dev =
|
dev =
|
||||||
black>=19.10b0 ; python_version >= '3.6'
|
black>=19.10b0 ; python_version >= '3.6'
|
||||||
flake8>=3.7.9
|
flake8>=3.7.9
|
||||||
|
@ -53,8 +57,6 @@ dev =
|
||||||
pytest>=5.4.1
|
pytest>=5.4.1
|
||||||
tox>=3.14.6
|
tox>=3.14.6
|
||||||
zest.releaser>=6.20.1
|
zest.releaser>=6.20.1
|
||||||
psycopg2-binary>=2.9,<3
|
|
||||||
PyMySQL>=0.9,<1.1
|
|
||||||
|
|
||||||
doc =
|
doc =
|
||||||
Sphinx==4.3.0
|
Sphinx==4.3.0
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -10,7 +10,7 @@ commands =
|
||||||
py.test --pyargs ihatemoney.tests
|
py.test --pyargs ihatemoney.tests
|
||||||
|
|
||||||
deps =
|
deps =
|
||||||
-e.[dev]
|
-e.[database,dev]
|
||||||
|
|
||||||
# To be sure we are importing ihatemoney pkg from pip-installed version
|
# To be sure we are importing ihatemoney pkg from pip-installed version
|
||||||
changedir = /tmp
|
changedir = /tmp
|
||||||
|
|
Loading…
Reference in a new issue