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