forked from gouline/dbt-metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·46 lines (37 loc) · 1.48 KB
/
setup.py
File metadata and controls
executable file
·46 lines (37 loc) · 1.48 KB
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
#!/usr/bin/env python3
import sys
import json
from setuptools import find_packages, setup
if sys.version_info < (3, 12):
raise ValueError("Requires Python 3.12+")
def requires_from_pipfile_lock(filename: str) -> list:
with open(filename, "r", encoding="utf-8") as f:
pipfile_lock = json.load(f)
default_deps = pipfile_lock.get("default", {})
return [f"{pkg}{info['version']}" for pkg, info in default_deps.items()]
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
setup(
name="dbt-metabase",
description="dbt + Metabase integration. auto-creating dashbords from dbt models and exposes",
long_description=readme,
long_description_content_type="text/markdown",
author="Mike Gouline, Alexander Korbashov",
url="https://github.com/korbash/dbt-metabase",
license="MIT License",
entry_points={
"console_scripts": ["dbt-metabase = dbtmetabase.__main__:cli"],
},
packages=find_packages(exclude=["tests", "sandbox"]),
install_requires=requires_from_pipfile_lock("Pipfile.lock"),
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)