mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-24 21:11:32 +00:00
Add setup.py to allow local pip installs of tfw
This commit is contained in:
parent
d67d2c6bc9
commit
1fb13fefff
@ -50,7 +50,7 @@ COPY nginx/default.conf ${TFW_NGINX_DEFAULT}
|
||||
COPY nginx/components/ ${TFW_NGINX_COMPONENTS}
|
||||
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"; \
|
||||
done
|
||||
|
||||
|
20
setup.py
Normal file
20
setup.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user