-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
59 lines (50 loc) · 1.7 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
import re
from setuptools import setup, find_packages
version_filename = "spooq/_version.py"
with open(version_filename, "rt") as version_filename:
version_file = version_filename.read()
version_regex = r"""^__version__ = ["\"]([^"\"]*)["\"]"""
regex_result = re.search(version_regex, version_file, re.M)
if regex_result:
version_string = regex_result.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (version_filename,))
with open("readme.rst") as readme_file:
readme = readme_file.read()
with open("docs/source/index.rst") as sphinx_index_file:
sphinx_index = sphinx_index_file.read()
requirements = [
"pandas",
"future",
"requests",
]
setup(
name="Spooq",
version=version_string,
description="Spooq is a PySpark based helper library for ETL data ingestion pipeline in Data Lakes.",
long_description=readme,
author="David Hohensinn",
author_email="breaka@gmx.at",
url="https://github.com/Breaka84/Spooq",
project_urls={
"Documentation": "https://spooq.readthedocs.io",
},
include_package_data=False,
packages=find_packages(exclude=['*tests*']),
install_requires=requirements,
zip_safe=False,
keywords=[
"spooq", "spark", "hive", "cloudera", "hadoop", "etl",
"data ingestion", "data wrangling", "databricks", "big data",
"batch", "streaming", "data engineering"
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
]
)