Add setup.py to allow local pip installs of tfw

This commit is contained in:
Kristóf Tóth 2018-05-10 15:57:36 +02:00
parent d67d2c6bc9
commit 1fb13fefff
3 changed files with 21 additions and 1 deletions

View File

@ -50,7 +50,7 @@ COPY nginx/default.conf ${TFW_NGINX_DEFAULT}
COPY nginx/components/ ${TFW_NGINX_COMPONENTS} COPY nginx/components/ ${TFW_NGINX_COMPONENTS}
COPY lib LICENSE ${TFW_LIB_DIR} COPY lib LICENSE ${TFW_LIB_DIR}
RUN for dir in "${TFW_LIB_DIR}"/{tfw,tao,envvars.py} "/etc/nginx" "/etc/supervisor"; do \ RUN for dir in "${TFW_LIB_DIR}"/{tfw,tao,envvars} "/etc/nginx" "/etc/supervisor"; do \
chown -R root:root "$dir" && chmod -R 700 "$dir"; \ chown -R root:root "$dir" && chmod -R 700 "$dir"; \
done done

20
setup.py Normal file
View File

@ -0,0 +1,20 @@
from setuptools import setup, find_packages
from os.path import dirname, realpath, join
LIB_DIR = dirname(realpath(__file__))
version = None
with open(join(LIB_DIR, 'VERSION'), 'r') as ifile:
version = ifile.read().strip('\n')
setup(name='tfw',
version=version,
description='Avatao tutorial-framework',
url='https://github.com/avatao-content/baseimage-tutorial-framework',
author='Avatao.com Innovative Learning Kft.',
author_email='support@avatao.com',
license='custom',
packages=find_packages('lib'),
package_dir={'': 'lib'},
zip_safe=False)