-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
94 lines (80 loc) · 2.84 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
"""
Copyright (c) 2022, Oracle and/or its affiliates.
Copyright (c) 2020, Vitor Avancini
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
https://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.
"""
"""The setup script."""
import sys
from setuptools import setup, find_packages
# lockstep with dbt-core==1.1 which requires Python > 3.7.2
if sys.version_info < (3, 7, 2):
print("Error: dbt-oracle does not support this version of Python.")
print("Please upgrade to Python 3.7.2 or higher.")
sys.exit(1)
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
"dbt-core==1.1.2",
"cx_Oracle==8.3.0",
"oracledb==1.0.3"
]
test_requirements = [
"dbt-tests-adapter==1.1.2",
"pytest"
]
project_urls = {
'Documentation': 'https://docs.getdbt.com/reference/warehouse-profiles/oracle-profile',
'Source': 'https://github.com/oracle/dbt-oracle',
'Bug Tracker': 'https://github.com/oracle/dbt-oracle/issues',
'CI': 'https://github.com/oracle/dbt-oracle/actions',
"Release Notes": "https://github.com/oracle/dbt-oracle/releases"
}
url = 'https://github.com/oracle/dbt-oracle'
VERSION = '1.1.2'
setup(
author="Oracle",
python_requires='>=3.7.2',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10'
],
description="dbt (data build tool) adapter for the Oracle database",
install_requires=requirements,
license="Apache Software License 2.0",
long_description=readme,
long_description_content_type='text/markdown',
include_package_data=True,
keywords='Oracle dbt',
name='dbt-oracle',
packages=find_packages(),
test_suite='tests',
tests_require=test_requirements,
scripts=['bin/create-pem-from-p12'],
url=url,
project_urls=project_urls,
version=VERSION,
zip_safe=False,
package_data={
'dbt': [
'include/oracle/dbt_project.yml',
'include/oracle/profile_template.yml',
'include/oracle/macros/*.sql',
'include/oracle/macros/**/**/*.sql'
]
}
)