FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
twitter-python-ads-sdk/setup.py at main · xdevplatform/twitter-python-ads-sdk · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
xdevplatform
/
twitter-python-ads-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
113
Star
201
Code
Issues
21
Pull requests
5
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
twitter-python-ads-sdk
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
66 lines (55 loc) · 2.19 KB
Breadcrumbs
twitter-python-ads-sdk
/
setup.py
Copy path
File metadata and controls
66 lines (55 loc) · 2.19 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
# Copyright (C) 2015 Twitter, Inc.
import
os
import
sys
from
setuptools
import
setup
,
find_packages
DESCRIPTION
=
'A Twitter supported and maintained Ads API SDK for Python.'
LONG_DESCRIPTION
=
None
URL
=
'http://twitterdev.github.io/twitter-python-ads-sdk/'
DOWNLOAD_URL
=
'https://github.com/twitterdev/twitter-python-ads-sdk/tarball/master'
def
get_version
(
version_tuple
):
if
not
isinstance
(
version_tuple
[
-
1
],
int
):
return
'.'
.
join
(
map
(
str
,
version_tuple
[:
-
1
]))
+
version_tuple
[
-
1
]
return
'.'
.
join
(
map
(
str
,
version_tuple
))
init
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'twitter_ads'
,
'__init__.py'
)
version_line
=
list
(
filter
(
lambda
l
:
l
.
startswith
(
'VERSION'
),
open
(
init
)))[
0
]
VERSION
=
get_version
(
eval
(
version_line
.
split
(
'='
)[
-
1
]))
CLASSIFIERS
=
[
'Development Status :: 5 - Production/Stable'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: MIT License'
,
'Operating System :: OS Independent'
,
'Programming Language :: Python'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.5'
,
'Programming Language :: Python :: 3.6'
,
'Programming Language :: Python :: 3.7'
,
'Programming Language :: Python :: Implementation :: CPython'
,
'Programming Language :: Python :: Implementation :: PyPy'
,
'Topic :: Internet'
,
'Topic :: Internet :: WWW/HTTP'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
]
extra_opts
=
{
'setup_requires'
: [
'flake8==3.7.7'
,
'pytest-runner'
],
'tests_require'
: [
'pytest'
,
'responses'
,
'mock'
]
}
if
sys
.
version_info
[
0
]
>
2
:
extra_opts
[
'setup_requires'
].
append
(
'sphinx==2.1.1'
)
setup
(
name
=
'twitter-ads'
,
version
=
VERSION
,
author
=
'John Babich, Tushar Bhushan, Juan Shishido'
,
author_email
=
'jbabich@twitter.com, tbhushan@twitter.com, jshishido@twitter.com'
,
url
=
URL
,
download_url
=
DOWNLOAD_URL
,
license
=
'MIT'
,
include_package_data
=
True
,
description
=
DESCRIPTION
,
long_description
=
LONG_DESCRIPTION
,
platforms
=
[
'any'
],
classifiers
=
CLASSIFIERS
,
scripts
=
[
'bin/twitter-ads'
],
install_requires
=
[
'pyyaml'
,
'requests-oauthlib'
,
'python-dateutil'
],
packages
=
find_packages
(
exclude
=
[
'docs'
,
'tests'
]),
**
extra_opts
)
Back
|
FazBrowse Home
|
New Git URL