mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-30 23:47:53 +03:00 
			
		
		
		
	Merge pull request #1270 from irrelative/master
fix setup.py with new __init__.py boilerplate
This commit is contained in:
		
						commit
						e155534f4f
					
				
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							|  | @ -12,7 +12,7 @@ def get_version(package): | |||
|     Return package version as listed in `__version__` in `init.py`. | ||||
|     """ | ||||
|     init_py = open(os.path.join(package, '__init__.py')).read() | ||||
|     return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) | ||||
|     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) | ||||
| 
 | ||||
| 
 | ||||
| def get_packages(package): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user