fix
This commit is contained in:
		
							parent
							
								
									6e823beec8
								
							
						
					
					
						commit
						2e35cb2a0b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								setup.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,8 +4,8 @@ import os
 | 
			
		|||
import re
 | 
			
		||||
from setuptools import setup, find_packages
 | 
			
		||||
 | 
			
		||||
def read_version():
 | 
			
		||||
    with open(os.path.join(os.path.dirname(__file__), 'labhw', '__init__.py')) as f:
 | 
			
		||||
def read_version(name):
 | 
			
		||||
    with open(os.path.join(os.path.dirname(__file__), name, '__init__.py')) as f:
 | 
			
		||||
        for line in f:
 | 
			
		||||
            match = re.match(r"^__version__ = ['\"]([^'\"]*)['\"]", line)
 | 
			
		||||
            if match:
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +24,7 @@ with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
 | 
			
		|||
 | 
			
		||||
setup(
 | 
			
		||||
    name         = 'labhw',
 | 
			
		||||
    version      = '0.1.1',
 | 
			
		||||
    version      = read_version('labhw'),
 | 
			
		||||
    author       = "Francois Boulogne",
 | 
			
		||||
    license      = "BSD",
 | 
			
		||||
    author_email = "devel@sciunto.org",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue