use VERSION.py instead of importing package before it's installed
This commit is contained in:
		
							parent
							
								
									0ebfa030c4
								
							
						
					
					
						commit
						77f53affe7
					
				
							
								
								
									
										4
									
								
								opencl_fdfd/VERSION.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								opencl_fdfd/VERSION.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,4 @@
 | 
			
		||||
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
 | 
			
		||||
__version__ = '''
 | 
			
		||||
0.3
 | 
			
		||||
'''.strip()
 | 
			
		||||
@ -41,4 +41,5 @@ from .main import cg_solver
 | 
			
		||||
 | 
			
		||||
__author__ = 'Jan Petykiewicz'
 | 
			
		||||
 | 
			
		||||
version = '0.3'
 | 
			
		||||
from .VERSION import __version__
 | 
			
		||||
version = __version__
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								setup.py
									
									
									
									
									
								
							@ -5,8 +5,11 @@ from setuptools import setup, find_packages
 | 
			
		||||
with open('README.md', 'r') as f:
 | 
			
		||||
    long_description = f.read()
 | 
			
		||||
 | 
			
		||||
with open('opencl_fdfd/VERSION.py', 'rt') as f:
 | 
			
		||||
    version = f.readlines()[2].strip()
 | 
			
		||||
 | 
			
		||||
setup(name='opencl_fdfd',
 | 
			
		||||
      version='0.3',
 | 
			
		||||
      version=version,
 | 
			
		||||
      description='OpenCL FDFD solver',
 | 
			
		||||
      long_description=long_description,
 | 
			
		||||
      long_description_content_type='text/markdown',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user