Skip to content

Commit c2d568d

Browse files
authored
Fix Tox tags & update dropbox copy client (dropbox#218)
* Fix Tox tags & update dropbox copy client * Update travis to test newest versions of python as well * Fix flaky linter issue
1 parent 5ef1a2a commit c2d568d

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

.pylintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
disable=C,R,file-ignored,fixme,locally-disabled,protected-access,useless-else-on-loop,unnecessary-pass
2+
disable=C,R,file-ignored,fixme,locally-disabled,protected-access,useless-else-on-loop,unnecessary-pass,raise-missing-from
33
enable=useless-suppression
44

55
[REPORTS]

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ python:
55
- pypy
66
- "3.4"
77
- "3.5"
8+
- "3.6"
9+
- "3.7"
10+
- "3.8"
811
- pypy3
912

1013
install:

dropbox/dropbox.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def _get_dropbox_client_with_select_header(self, select_header_name, team_member
728728
new_headers = self._headers.copy() if self._headers else {}
729729
new_headers[select_header_name] = team_member_id
730730
return Dropbox(
731-
self._oauth2_access_token,
731+
oauth2_access_token=self._oauth2_access_token,
732732
oauth2_refresh_token=self._oauth2_refresh_token,
733733
oauth2_access_token_expiration=self._oauth2_access_token_expiration,
734734
max_retries_on_error=self._max_retries_on_error,
@@ -737,6 +737,9 @@ def _get_dropbox_client_with_select_header(self, select_header_name, team_member
737737
user_agent=self._raw_user_agent,
738738
session=self._session,
739739
headers=new_headers,
740+
app_key=self._app_key,
741+
app_secret=self._app_secret,
742+
scope=self._scope,
740743
)
741744

742745
class BadInputException(Exception):

dropbox/stone_validators.py

+1
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ def get_default(self):
593593
class Nullable(Validator):
594594

595595
def __init__(self, validator):
596+
super(Nullable, self).__init__()
596597
assert isinstance(validator, (Primitive, Composite)), \
597598
'validator must be for a primitive or composite type'
598599
assert not isinstance(validator, Nullable), \

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
'Programming Language :: Python :: 3.4',
7373
'Programming Language :: Python :: 3.5',
7474
'Programming Language :: Python :: 3.6',
75+
'Programming Language :: Python :: 3.7',
76+
'Programming Language :: Python :: 3.8',
7577
'Programming Language :: Python :: Implementation :: CPython',
7678
'Programming Language :: Python :: Implementation :: PyPy',
7779
'Topic :: Software Development :: Libraries :: Python Modules',

tox.ini

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22

3-
envlist = py{27,34,35,36,py,py3},check,lint
3+
envlist = py{27,34,35,36,37,38,py,py3},check,lint
44
skip_missing_interpreters = true
55

66
[tox:travis]
@@ -10,6 +10,8 @@ pypy = lint
1010
3.4 = lint
1111
3.5 = lint
1212
3.6 = check, lint
13+
3.7 = check, lint
14+
3.8 = check, lint
1315
pypy3 = lint
1416

1517

0 commit comments

Comments
 (0)