-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
44 lines (32 loc) · 1.18 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
from setuptools import setup, find_packages
import re
def get_long_description():
with open('README.md') as f:
return re.sub('!\[(.*?)\]\(docs/(.*?)\)',
r'![\1](https://github.com/mara/mara-google-analytics-downloader/raw/master/docs/\2)', f.read())
setup(
name='mara-google-analytics-downloader',
version='1.1.2',
description='Download Google Analytics data in the mara etl framework',
long_description=get_long_description(),
long_description_content_type='text/markdown',
url='https://github.com/mara/mara-google-analytics-downloader',
install_requires=[
'mara-db>=4.2.0',
'mara-pipelines>=3.0.0',
'google-api-python-client>=1.7.11',
'oauth2client>=1.5.0', # old, will be replaced soon
'google_auth_oauthlib' # new, already used in the user credential helper
],
extras_require={
'test': ['pytest']
},
python_requires='>=3.6',
packages=find_packages(),
author='Mara contributors',
license='MIT',
entry_points='''
[console_scripts]
mara-google-analytics-downloader=mara_google_analytics_downloader.__main__:ga_download_to_csv
''',
)