forked from dyvenia/viadot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (28 loc) · 997 Bytes
/
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
import os
import re
import setuptools
def get_version(package: str):
"""Return package version as listed in `__version__` in `init.py`."""
init_py = open(os.path.join(package, "__init__.py")).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
with open("README.md", "r") as fh:
long_description = fh.read()
extras = {
"sap": ["pyrfc==2.5.0", "sql-metadata==2.3.0"],
}
setuptools.setup(
name="viadot",
version=get_version("viadot"),
author="Alessio Civitillo",
description="A simple data ingestion library to guide data flows from some places to other places",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/dyvenia/viadot",
packages=setuptools.find_packages(),
extras=extras,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)