-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (41 loc) · 1.57 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
#!/usr/bin/env python
import os
import re
from setuptools import find_namespace_packages
from setuptools import setup
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md")) as f:
long_description = f.read()
package_name = "dbt-excel"
def _dbt_excel_version():
_version_path = os.path.join(this_directory, "dbt", "adapters", "excel", "__version__.py")
_version_pattern = r"""version\s*=\s*["'](.+)["']"""
with open(_version_path) as f:
match = re.search(_version_pattern, f.read().strip())
if match is None:
raise ValueError(f"invalid version at {_version_path}")
return match.group(1)
package_version = _dbt_excel_version() + "rc2"
description = """The excel adapter plugin for dbt (data build tool)"""
setup(
name=package_name,
version=package_version,
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
author="Cor Zuurmond,Dumky de Wilde,Juan Perafan,Henk Griffioen",
url="https://github.com/godatadriven/dbt-excel",
packages=find_namespace_packages(include=["dbt", "dbt.*"]),
include_package_data=True,
install_requires=[
"dbt-duckdb~=1.4.0",
"pandas>=1.0.0,<3.0.0",
"pyarrow>=9.0.0",
"openpyxl>=3.0.0,<4.0.0",
],
extras_require={
"glue": ["boto3", "mypy-boto3-glue"],
"test": ["pytest", "dbt-tests-adapter"],
},
)