seatup.py: fix [dev_]requirements and open file with context
setup(..) named arguments 'install_requires' and 'extras_require' need lists arguments, the <map object> is ignored when installing extra environment 'test':: pip install -e .\[test\] Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									05033ea8d8
								
							
						
					
					
						commit
						a56c56ead3
					
				
							
								
								
									
										12
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								setup.py
									
									
									
									
									
								
							| @ -11,14 +11,14 @@ import sys | |||||||
| sys.path.insert(0, './searx') | sys.path.insert(0, './searx') | ||||||
| from version import VERSION_STRING | from version import VERSION_STRING | ||||||
| 
 | 
 | ||||||
|  | with open('README.rst') as f: | ||||||
|  |     long_description = f.read() | ||||||
| 
 | 
 | ||||||
| def read(*rnames): | with open('requirements.txt') as f: | ||||||
|     return open(os.path.join(os.path.dirname(__file__), *rnames)).read() |     requirements = [ l.strip() for l in f.readlines()] | ||||||
| 
 | 
 | ||||||
| 
 | with open('requirements-dev.txt') as f: | ||||||
| long_description = read('README.rst') |     dev_requirements = [ l.strip() for l in f.readlines()] | ||||||
| requirements = map(str.strip, open('requirements.txt').readlines()) |  | ||||||
| dev_requirements = map(str.strip, open('requirements-dev.txt').readlines()) |  | ||||||
| 
 | 
 | ||||||
| setup( | setup( | ||||||
|     name='searx', |     name='searx', | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user