mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-22 01:46:29 +00:00
Use requirements.txt (#607)
* Create requirements.txt * Update setup.py * Update Dockerfile * Update Dockerfile * Update requirements.txt * Update requirements.txt * Update Dockerfile * Update tox.ini
This commit is contained in:
parent
f626e31fd3
commit
a0fb91af29
@ -5,6 +5,7 @@ FROM $BUILD_FROM
|
|||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
|
|
||||||
# Setup base
|
# Setup base
|
||||||
|
COPY requirements.txt /usr/src/
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
socat \
|
socat \
|
||||||
@ -14,11 +15,9 @@ RUN apk add --no-cache \
|
|||||||
&& apk add --no-cache --virtual .build-dependencies \
|
&& apk add --no-cache --virtual .build-dependencies \
|
||||||
make \
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
&& pip3 install --no-cache-dir \
|
&& pip3 install -r /usr/src/requirements.txt \
|
||||||
uvloop==0.11.0 \
|
&& apk del .build-dependencies \
|
||||||
cchardet==2.1.1 \
|
&& rm -f /usr/src/requirements.txt
|
||||||
pycryptodome==3.6.4 \
|
|
||||||
&& apk del .build-dependencies
|
|
||||||
|
|
||||||
# Install HassIO
|
# Install HassIO
|
||||||
COPY . /usr/src/hassio
|
COPY . /usr/src/hassio
|
||||||
|
13
requirements.txt
Normal file
13
requirements.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
attr==0.3.1
|
||||||
|
async_timeout==3.0.0
|
||||||
|
aiohttp==3.3.2
|
||||||
|
docker==3.4.0
|
||||||
|
colorlog==3.1.2
|
||||||
|
voluptuous==0.11.1
|
||||||
|
gitpython==2.1.10
|
||||||
|
pytz==2018.4
|
||||||
|
pyudev==0.21.0
|
||||||
|
pycryptodome==3.6.4
|
||||||
|
cpe==1.2.1
|
||||||
|
uvloop==0.11.0
|
||||||
|
cchardet==2.1.1
|
15
setup.py
15
setup.py
@ -38,18 +38,5 @@ setup(
|
|||||||
'hassio.utils',
|
'hassio.utils',
|
||||||
'hassio.snapshots'
|
'hassio.snapshots'
|
||||||
],
|
],
|
||||||
include_package_data=True,
|
include_package_data=True
|
||||||
install_requires=[
|
|
||||||
'attr==0.3.1',
|
|
||||||
'async_timeout==3.0.0',
|
|
||||||
'aiohttp==3.3.2',
|
|
||||||
'docker==3.4.0',
|
|
||||||
'colorlog==3.1.2',
|
|
||||||
'voluptuous==0.11.1',
|
|
||||||
'gitpython==2.1.10',
|
|
||||||
'pytz==2018.4',
|
|
||||||
'pyudev==0.21.0',
|
|
||||||
'pycryptodome==3.6.4',
|
|
||||||
"cpe==1.2.1"
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user