Skip to content

Commit f3f8c7c

Browse files
authored
Update sphinx config (#196)
* Update sphinx version * Update documents
1 parent 54cb2da commit f3f8c7c

File tree

7 files changed

+24
-14
lines changed

7 files changed

+24
-14
lines changed

docs/source/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353

5454
# General information about the project.
5555
project = u'Twitter Ads API SDK for Python'
56-
copyright = u'2015, Twitter, Inc'
57-
author = u'Brandon Black'
56+
copyright = u'2019, Twitter, Inc'
57+
5858

5959
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
6060
from twitter_ads.utils import get_version
@@ -226,7 +226,7 @@
226226
# author, documentclass [howto, manual, or own class]).
227227
latex_documents = [
228228
(master_doc, 'TwitterAdsAPISDKforPython.tex', u'Twitter Ads API SDK for Python Documentation',
229-
u'Brandon Black', 'manual'),
229+
230230
]
231231

232232
# The name of an image file (relative to this directory) to place at the top of

docs/source/index.rst

+12-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
:hidden:
77

88
twitter_ads/index
9-
twitter_ads/code
109
twitter_ads/account
1110
twitter_ads/audience
11+
twitter_ads/campaign
12+
twitter_ads/client
13+
twitter_ads/creative
14+
twitter_ads/cursor
15+
twitter_ads/enum
1216
twitter_ads/error
17+
twitter_ads/http
18+
twitter_ads/resource
19+
twitter_ads/targeting
20+
twitter_ads/utils
1321

1422
Getting Started
1523
---------------
@@ -74,9 +82,9 @@ versions we officially support and regularly test against.
7482
+------------+-------------------------+
7583
| Platform | Versions |
7684
+============+=========================+
77-
| CPython | 2.7, 3.3, 3.4, 3.5 |
85+
| CPython | 2.7, 3.5, 3.6, 3.7 |
7886
+------------+-------------------------+
79-
| PyPy | 2.x, 4.x |
87+
| PyPy | 7.x |
8088
+------------+-------------------------+
8189

8290
All releases adhere to strict `semantic versioning`_. For Example,
@@ -116,7 +124,7 @@ License
116124

117125
The MIT License (MIT)
118126

119-
Copyright (C) 2015 Twitter, Inc.
127+
Copyright (C) 2019 Twitter, Inc.
120128

121129
Permission is hereby granted, free of charge, to any person obtaining a copy
122130
of this software and associated documentation files (the "Software"), to deal

docs/source/twitter_ads/tweet.rst

-5
This file was deleted.

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pyyaml
22
requests-oauthlib
33
python-dateutil
4-
sphinx==1.3.1
54
responses
65
mock
76
setuptools_scm

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (C) 2015 Twitter, Inc.
22

33
import os
4+
import sys
45
from setuptools import setup, find_packages
56

67
DESCRIPTION = 'A Twitter supported and maintained Ads API SDK for Python.'
@@ -43,6 +44,9 @@ def get_version(version_tuple):
4344
'tests_require': ['pytest', 'responses', 'mock']
4445
}
4546

47+
if sys.version_info[0] == 3:
48+
extra_opts['setup_requires'].append('sphinx==2.1.1')
49+
4650
setup(
4751
name='twitter-ads',
4852
version=VERSION,

twitter_ads/audience.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def users(self, params):
3939
"""
4040
This is a private API and requires whitelisting from Twitter.
4141
This endpoint will allow partners to add, update and remove users from a given
42-
tailored_audience_id.
42+
tailored_audience_id.
4343
The endpoint will also accept multiple user identifier types per user as well.
4444
"""
4545
resource = self.RESOURCE_USERS.format(account_id=self.account.id, id=self.id)

twitter_ads/resource.py

+4
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ def async_stats_job_data(klass, account, url, **kwargs):
313313

314314
@classmethod
315315
def active_entities(klass, account, start_time, end_time, **kwargs):
316+
"""
317+
Returns the details about which entities' analytics metrics
318+
have changed in a given time period.
319+
"""
316320
entity_type = klass.__name__
317321
if entity_type == 'OrganicTweet':
318322
raise ValueError("'OrganicTweet' not support with 'active_entities'")

0 commit comments

Comments
 (0)