mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 18:59:23 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			768 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			768 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| plugins {
 | |
|   id 'base'
 | |
| }
 | |
| 
 | |
| ext {
 | |
|   python_executable = 'python3'
 | |
| }
 | |
| 
 | |
| task checkPythonVersion(type: Exec) {
 | |
|   commandLine python_executable, '-c',
 | |
|     'import sys; sys.version_info >= (3, 9), f"Python version {sys.version_info} is too old"'
 | |
| }
 | |
| 
 | |
| task buildWheels(type: Exec, dependsOn: [
 | |
|   checkPythonVersion,
 | |
|   ':metadata-ingestion:buildWheel',
 | |
|   ':datahub-actions:buildWheel',
 | |
|   ':metadata-ingestion-modules:airflow-plugin:buildWheel',
 | |
|   ':metadata-ingestion-modules:dagster-plugin:buildWheel',
 | |
|   ':metadata-ingestion-modules:prefect-plugin:buildWheel',
 | |
|   ':metadata-ingestion-modules:gx-plugin:buildWheel',
 | |
| ]) {
 | |
|   commandLine python_executable, "copy_wheels.py"
 | |
| }
 | |
| 
 | |
| task buildSite(type: Exec, dependsOn: [buildWheels]) {
 | |
|   commandLine python_executable, "build_site.py"
 | |
| }
 | 
