-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
44 lines (35 loc) · 1.26 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
#!/usr/bin/env python
import setuptools
import os
with open("README.md", "r") as fh:
long_description = fh.read()
def read_requirements(name):
with open(os.path.join("requirements", name)) as f:
return list(map(str.strip, f))
with open(os.path.join('bigflow', '_version.py'), 'r') as version_file:
version_globals = {}
exec(version_file.read(), version_globals)
version = version_globals['__version__']
setuptools.setup(
name="bigflow",
version=version,
author=u"Pogranicze",
author_email="[email protected]",
description="BigQuery client wrapper with clean API",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/allegro/bigflow",
packages=setuptools.find_packages(exclude=('test', 'e2e')),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
install_requires=read_requirements("base.txt"),
extras_require={
'bigquery': read_requirements("bigquery_extras.txt"),
'dataflow': read_requirements("dataflow_extras.txt"),
'base_frozen': read_requirements("base_frozen.txt"),
},
scripts=["scripts/bf", "scripts/bigflow"],
)