mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 09:11:32 +00:00
Make setup.py parse requirements.txt
This commit is contained in:
parent
1fb13fefff
commit
a9d6794c4d
8
setup.py
8
setup.py
@ -2,11 +2,12 @@ from setuptools import setup, find_packages
|
||||
from os.path import dirname, realpath, join
|
||||
|
||||
|
||||
LIB_DIR = dirname(realpath(__file__))
|
||||
here = dirname(realpath(__file__))
|
||||
|
||||
version = None
|
||||
with open(join(LIB_DIR, 'VERSION'), 'r') as ifile:
|
||||
with open(join(here, 'VERSION'), 'r') as ifile:
|
||||
version = ifile.read().strip('\n')
|
||||
with open(join(here, 'requirements.txt'), 'r') as ifile:
|
||||
requirements = ifile.read().splitlines()
|
||||
|
||||
setup(name='tfw',
|
||||
version=version,
|
||||
@ -17,4 +18,5 @@ setup(name='tfw',
|
||||
license='custom',
|
||||
packages=find_packages('lib'),
|
||||
package_dir={'': 'lib'},
|
||||
install_requires=requirements,
|
||||
zip_safe=False)
|
||||
|
Loading…
Reference in New Issue
Block a user