FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
googleads-python-lib/setup.py at main · googleads/googleads-python-lib · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
googleads
/
googleads-python-lib
Public
Notifications
You must be signed in to change notification settings
Fork
969
Star
747
Code
Issues
27
Pull requests
12
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
googleads-python-lib
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
114 lines (85 loc) · 3.29 KB
Breadcrumbs
googleads-python-lib
/
setup.py
Copy path
File metadata and controls
executable file
·
114 lines (85 loc) · 3.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/usr/bin/env python
#
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Setup script for the Google Ads Python Client Library."""
import
os
import
re
import
sys
from
setuptools
import
setup
PACKAGES
=
[
'googleads'
]
DEPENDENCIES
=
[
'google-auth>=2.0.0,<3.0.0'
,
'google-auth-oauthlib>=1.0.0,<2.0.0'
,
'pytz>=2015.7'
,
'PyYAML>=6.0, <7.0'
,
'requests>=2.0.0,<3.0.0'
,
'xmltodict>=0.9.2,<1.0.0'
,
'zeep>=2.5.0'
]
TEST_DEPENDENCIES
=
[
'mock>=2.0.0,<3.0.0'
,
'pyfakefs>=5.1.0'
]
CLASSIFIERS
=
[
'Intended Audience :: Developers'
,
'License :: OSI Approved :: Apache Software License'
,
'Programming Language :: Python :: 3.7'
]
def
GetVersion
():
"""Gets the version from googleads/common.py.
We can't import this directly because new users would get ImportErrors on our
third party dependencies.
Returns:
The version of the library.
"""
with
open
(
os
.
path
.
join
(
'googleads'
,
'common.py'
))
as
versions_file
:
source
=
versions_file
.
read
()
return
re
.
search
(
'
\\
nVERSION =
\'
(.*?)
\'
'
,
source
).
group
(
1
)
long_description
=
"""
===========================================
The googleads Python Client Libraries
===========================================
The googleads Python Client Libraries support the following products:
* Google Ad Manager API
You can find more information about the Google Ads Python Client Libraries
`here <https://github.com/googleads/googleads-python-lib>`_.
Supported Python Versions
=========================
This library is supported for Python 3.7+.
Installation
============
You have two options for installing the Ads Python Client Libraries:
* Install with a tool such as pip::
$ sudo pip install googleads
* Install manually after downloading and extracting the tarball::
$ sudo python setup.py install
Examples
========
If you would like to obtain example code for any of the included
client libraries, you can find it on our
`downloads page <https://github.com/googleads/googleads-python-lib/releases>`_.
Contact Us
==========
Do you have an issue using the googleads Client Libraries? Or perhaps some
feedback for how we can improve them? Feel free to let us know on our
`issue tracker <https://github.com/googleads/googleads-python-lib/issues>`_.
"""
setup
(
name
=
'googleads'
,
version
=
GetVersion
(),
description
=
'Google Ads Python Client Library'
,
author
=
'Mark Saniscalchi'
,
author_email
=
'api.msaniscalchi@gmail.com'
,
url
=
'https://github.com/googleads/googleads-python-lib'
,
license
=
'Apache License 2.0'
,
long_description
=
long_description
,
packages
=
PACKAGES
,
platforms
=
'any'
,
keywords
=
'admanager google'
,
classifiers
=
CLASSIFIERS
,
install_requires
=
DEPENDENCIES
,
tests_require
=
TEST_DEPENDENCIES
,
test_suite
=
'tests'
)
Back
|
FazBrowse Home
|
New Git URL