| 
									
										
										
										
											2021-12-21 06:37:36 +01:00
										 |  |  | #  Copyright 2021 Collate | 
					
						
							|  |  |  | #  Licensed under the Apache License, Version 2.0 (the "License"); | 
					
						
							|  |  |  | #  you may not use this file except in compliance with the License. | 
					
						
							|  |  |  | #  You may obtain a copy of the License at | 
					
						
							|  |  |  | #  http://www.apache.org/licenses/LICENSE-2.0 | 
					
						
							|  |  |  | #  Unless required by applicable law or agreed to in writing, software | 
					
						
							|  |  |  | #  distributed under the License is distributed on an "AS IS" BASIS, | 
					
						
							|  |  |  | #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
					
						
							|  |  |  | #  See the License for the specific language governing permissions and | 
					
						
							|  |  |  | #  limitations under the License. | 
					
						
							|  |  |  | import os | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-20 22:02:59 -08:00
										 |  |  | from setuptools import find_namespace_packages, setup | 
					
						
							| 
									
										
										
										
											2021-12-21 06:37:36 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def get_long_description(): | 
					
						
							|  |  |  |     root = os.path.dirname(__file__) | 
					
						
							|  |  |  |     with open(os.path.join(root, "README.md")) as f: | 
					
						
							|  |  |  |         description = f.read() | 
					
						
							|  |  |  |     return description | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-18 16:27:35 +01:00
										 |  |  | dev = { | 
					
						
							|  |  |  |     "datamodel-code-generator==0.11.14", | 
					
						
							|  |  |  |     "incremental", | 
					
						
							|  |  |  |     "twine", | 
					
						
							|  |  |  |     "twisted", | 
					
						
							|  |  |  |     "wheel", | 
					
						
							|  |  |  |     "click", | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-20 22:02:59 -08:00
										 |  |  | setup( | 
					
						
							| 
									
										
										
										
											2021-12-21 07:29:07 +01:00
										 |  |  |     name="openmetadata-ingestion-core", | 
					
						
							| 
									
										
										
										
											2021-12-20 22:02:59 -08:00
										 |  |  |     url="https://open-metadata.org/", | 
					
						
							|  |  |  |     author="OpenMetadata Committers", | 
					
						
							|  |  |  |     license="Apache License 2.0", | 
					
						
							|  |  |  |     description="These are the generated Python classes from JSON Schema", | 
					
						
							|  |  |  |     long_description=get_long_description(), | 
					
						
							|  |  |  |     long_description_content_type="text/markdown", | 
					
						
							|  |  |  |     python_requires=">=3.8", | 
					
						
							|  |  |  |     package_dir={"": "src"}, | 
					
						
							|  |  |  |     zip_safe=False, | 
					
						
							| 
									
										
										
										
											2022-01-05 10:41:33 +05:30
										 |  |  |     use_incremental=True, | 
					
						
							| 
									
										
										
										
											2022-01-07 06:17:48 +01:00
										 |  |  |     setup_requires=["incremental"], | 
					
						
							|  |  |  |     install_requires=["incremental"], | 
					
						
							| 
									
										
										
										
											2021-12-20 22:02:59 -08:00
										 |  |  |     project_urls={ | 
					
						
							|  |  |  |         "Documentation": "https://docs.open-metadata.org/", | 
					
						
							|  |  |  |         "Source": "https://github.com/open-metadata/OpenMetadata", | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     packages=find_namespace_packages(where="./src", exclude=["tests*"]), | 
					
						
							| 
									
										
										
										
											2022-01-18 16:27:35 +01:00
										 |  |  |     extras_require={ | 
					
						
							|  |  |  |         "dev": list(dev), | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2021-12-20 22:02:59 -08:00
										 |  |  | ) |