Skip to content

Commit cb149fa

Browse files
mbogosianposita
authored andcommitted
Clean up repo
- Fix test runners. - Get linters to pass. - Prep for running linters via TravisCI. - Remove indicated support for Python 2.6.
1 parent de34ca3 commit cb149fa

38 files changed

+403
-252
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__pycache__/
22
.cache/
3+
.eggs/
34
*.egg
45
*.egg-info/
56
*.pyc

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "stone"]
22
path = stone
3-
url = https://github.com:dropbox/stone.git
3+
url = https://github.com/dropbox/stone.git
44
[submodule "spec"]
55
path = spec
6-
url = https://github.com:dropbox/dropbox-api-spec.git
6+
url = https://github.com/dropbox/dropbox-api-spec.git

.pylintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[MESSAGES CONTROL]
2+
disable=C,R,fixme,locally-disabled,protected-access,useless-else-on-loop
3+
enable=useless-suppression
4+
5+
[REPORTS]
6+
reports=n

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
language: python
2+
3+
python:
4+
- "2.7"
5+
- pypy
6+
- "3.3"
7+
- "3.4"
8+
- "3.5"
9+
- pypy3
10+
11+
install:
12+
- pip install tox-travis
13+
14+
matrix:
15+
allow_failures:
16+
# PyPy 3k probably won't work until it acquires compatibility with
17+
# >= 3.4
18+
- python: pypy3
19+
20+
script:
21+
- tox

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2016 Dropbox Inc., http://www.dropbox.com/
1+
Copyright (c) 2015-2017 Dropbox Inc., http://www.dropbox.com/
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
include ez_setup.py
22
include LICENSE
33
include *.rst
4+
include test/requirements.txt

README.rst

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
Dropbox for Python
22
==================
33

4+
.. image:: https://travis-ci.org/dropbox/dropbox-sdk-python.svg?branch=master
5+
:target: https://travis-ci.org/dropbox/dropbox-sdk-python
6+
7+
.. image:: https://readthedocs.org/projects/dropbox-sdk-python/badge/?version=latest
8+
:target: https://dropbox-sdk-python.readthedocs.org/en/latest/
9+
:alt: [Latest Documentation]
10+
11+
.. image:: https://img.shields.io/pypi/v/dropbox.svg
12+
:target: https://pypi.python.org/pypi/dropbox
13+
:alt: [Latest Release Version]
14+
15+
.. image:: https://img.shields.io/pypi/l/dropbox.svg
16+
:target: http://opensource.org/licenses/MIT
17+
:alt: [Latest Release License]
18+
19+
.. image:: https://img.shields.io/pypi/pyversions/dropbox.svg
20+
:target: https://pypi.python.org/pypi/dropbox
21+
:alt: [Latest Release Supported Python Versions]
22+
23+
.. image:: https://img.shields.io/pypi/implementation/dropbox.svg
24+
:target: https://pypi.python.org/pypi/dropbox
25+
:alt: [Latest Release Supported Python Implementations]
26+
27+
.. image:: https://img.shields.io/pypi/status/dropbox.svg
28+
:target: https://pypi.python.org/pypi/dropbox
29+
:alt: [Latest Release Development Stage]
30+
31+
432
A Python SDK for integrating with the Dropbox API v2. Compatible with Python
533
2.7 and 3.4+. Documentation is available on `Read the Docs
634
<http://dropbox-sdk-python.readthedocs.org/>`_.
@@ -56,8 +84,7 @@ Documentation
5684

5785
Documentation can be compiled by running ``make html`` from the ``docs``
5886
folder. After compilation, open ``docs/_build/html/index.html``. Alternatively,
59-
you can read a hosted version from `Read the Docs
60-
<http://dropbox-sdk-python.readthedocs.org/>`_.
87+
you can read a hosted version from `Read the Docs`_.
6188

6289
Updating API specification
6390
--------------------------

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# General information about the project.
5656
project = u'Dropbox for Python'
57-
copyright = u'2017, Dropbox, Inc.'
57+
copyright = u'2015-2017, Dropbox, Inc.'
5858

5959
# The version info for the project you're documenting, acts as replacement for
6060
# |version| and |release|, also used in various other places throughout the

dropbox/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import absolute_import
22

3-
from .dropbox import __version__, Dropbox, DropboxTeam, create_session
4-
from .oauth import DropboxOAuth2Flow, DropboxOAuth2FlowNoRedirect
3+
from .dropbox import __version__, Dropbox, DropboxTeam, create_session # noqa: F401
4+
from .oauth import DropboxOAuth2Flow, DropboxOAuth2FlowNoRedirect # noqa: F401
55

66
# Compatibility with the deprecated v1 client.
7-
from . import client, rest, session
7+
from . import client, rest, session # noqa: F401

dropbox/async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# -*- coding: utf-8 -*-
22
# Auto-generated by Stone, do not modify.
3+
# flake8: noqa
4+
# pylint: skip-file
35
try:
46
from . import stone_validators as bv
57
from . import stone_base as bb
@@ -305,4 +307,3 @@ def __repr__(self):
305307

306308
ROUTES = {
307309
}
308-

0 commit comments

Comments
 (0)