Skip to content

Commit dd0b6f9

Browse files
committed
pydrive2: bump to 0.14.0
1 parent cf58f81 commit dd0b6f9

28 files changed

+48
-61
lines changed

CONTRIBUTING.rst

+3-17
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,10 @@ Contributing guidelines
44
How to become a contributor and submit your own code
55
----------------------------------------------------
66

7-
Contributor License Agreements
8-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9-
10-
We'd love to accept your patches! Before we can take them, we have to jump a couple of legal hurdles.
11-
12-
Please fill out either the individual or corporate Contributor License Agreement (CLA).
13-
14-
* If you are an individual writing original source code and you're sure you
15-
own the intellectual property, then you'll need to sign an `individual CLA <http://code.google.com/legal/individual-cla-v1.0.html>`_.
16-
* If you work for a company that wants to allow you to contribute your
17-
work, then you'll need to sign a `corporate CLA <http://code.google.com/legal/corporate-cla-v1.0.html>`_.
18-
19-
Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll be able to accept your pull requests.
20-
21-
***NOTE***: Only original source code from you and other people that have signed the CLA can be accepted into the main repository.
7+
TODO
228

239
Contributing code
2410
~~~~~~~~~~~~~~~~~
2511

26-
If you have improvements to PyDrive, send us your pull requests! For those
27-
just getting started, Github has a `howto <https://help.github.com/articles/using-pull-requests/>`_.
12+
If you have improvements to PyDrive2, send us your pull requests! For those
13+
just getting started, Github has a `howto <https://help.github.com/articles/using-pull-requests/>`_.

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ include LICENSE
44
include MANIFEST.in
55
include README.rst
66
recursive-include docs *
7-
recursive-include pydrive/test *
7+
recursive-include pydrive2/test *
88
recursive-exclude * *.py[co]

README.rst

+14-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
PyDrive
1+
PyDrive2
22
-------
33

4-
*PyDrive* is a wrapper library of
4+
*PyDrive2* is a wrapper library of
55
`google-api-python-client <https://github.com/google/google-api-python-client>`_
6-
that simplifies many common Google Drive API tasks.
6+
that simplifies many common Google Drive API tasks. It is an actively
7+
maintained fork of `https://pypi.python.org/pypi/PyDrive <https://pypi.python.org/pypi/PyDrive>`_.
78

89
Project Info
910
------------
1011

11-
- Homepage: `https://pypi.python.org/pypi/PyDrive <https://pypi.python.org/pypi/PyDrive>`_
12+
- Homepage: `https://pypi.python.org/pypi/PyDrive2 <https://pypi.python.org/pypi/PyDrive2>`_
1213
- Documentation: `Official documentation on GitHub pages <https://gsuitedevs.github.io/PyDrive/docs/build/html/index.html>`_
13-
- GitHub: `https://github.com/gsuitedevs/PyDrive <https://github.com/gsuitedevs/PyDrive>`_
14+
- GitHub: `https://github.com/iterative/PyDrive2 <https://github.com/iterative/PyDrive2>`_
1415

15-
Features of PyDrive
16+
Features of PyDrive2
1617
-------------------
1718

1819
- Simplifies OAuth2.0 into just few lines with flexible settings.
@@ -24,17 +25,17 @@ Features of PyDrive
2425
How to install
2526
--------------
2627

27-
You can install PyDrive with regular ``pip`` command.
28+
You can install PyDrive2 with regular ``pip`` command.
2829

2930
::
3031

31-
$ pip install PyDrive
32+
$ pip install PyDrive2
3233

3334
To install the current development version from GitHub, use:
3435

3536
::
3637

37-
$ pip install git+https://github.com/gsuitedevs/PyDrive.git#egg=PyDrive
38+
$ pip install git+https://github.com/iterative/PyDrive2.git#egg=PyDrive2
3839

3940
OAuth made easy
4041
---------------
@@ -46,8 +47,8 @@ file *settings.yaml*.
4647
.. code:: python
4748
4849
49-
from pydrive.auth import GoogleAuth
50-
from pydrive.drive import GoogleDrive
50+
from pydrive2.auth import GoogleAuth
51+
from pydrive2.drive import GoogleDrive
5152
5253
gauth = GoogleAuth()
5354
gauth.LocalWebserverAuth()
@@ -57,7 +58,7 @@ file *settings.yaml*.
5758
File management made easy
5859
-------------------------
5960

60-
Upload/update the file with one method. PyDrive will do it in the most
61+
Upload/update the file with one method. PyDrive2 will do it in the most
6162
efficient way.
6263

6364
.. code:: python
@@ -91,7 +92,7 @@ efficient way.
9192
File listing pagination made easy
9293
---------------------------------
9394

94-
*PyDrive* handles file listing pagination for you.
95+
*PyDrive2* handles file listing pagination for you.
9596

9697
.. code:: python
9798

examples/strip_bom_example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pydrive.auth import GoogleAuth
2-
from pydrive.drive import GoogleDrive
1+
from pydrive2.auth import GoogleAuth
2+
from pydrive2.drive import GoogleDrive
33

44
# Authenticate the client.
55
gauth = GoogleAuth()

examples/using_folders.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pydrive.auth import GoogleAuth
2-
from pydrive.drive import GoogleDrive
1+
from pydrive2.auth import GoogleAuth
2+
from pydrive2.drive import GoogleDrive
33

44
gauth = GoogleAuth()
55
gauth.LocalWebserverAuth()
File renamed without changes.
File renamed without changes.
File renamed without changes.

pydrive/drive.py renamed to pydrive2/drive.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, auth=None):
1111
"""Create an instance of GoogleDrive.
1212
1313
:param auth: authorized GoogleAuth instance.
14-
:type auth: pydrive.auth.GoogleAuth.
14+
:type auth: pydrive2.auth.GoogleAuth.
1515
"""
1616
ApiAttributeMixin.__init__(self)
1717
self.auth = auth
@@ -23,7 +23,7 @@ def CreateFile(self, metadata=None):
2323
2424
:param metadata: file resource to initialize GoogleDriveFile with.
2525
:type metadata: dict.
26-
:returns: pydrive.files.GoogleDriveFile -- initialized with auth of this instance.
26+
:returns: pydrive2.files.GoogleDriveFile -- initialized with auth of this instance.
2727
"""
2828
return GoogleDriveFile(auth=self.auth, metadata=metadata)
2929

@@ -34,7 +34,7 @@ def ListFile(self, param=None):
3434
3535
:param param: parameter to be sent to Files.List().
3636
:type param: dict.
37-
:returns: pydrive.files.GoogleDriveFileList -- initialized with auth of this instance.
37+
:returns: pydrive2.files.GoogleDriveFileList -- initialized with auth of this instance.
3838
"""
3939
return GoogleDriveFileList(auth=self.auth, param=param)
4040

pydrive/files.py renamed to pydrive2/files.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, auth=None, param=None):
5858
def _GetList(self):
5959
"""Overwritten method which actually makes API call to list files.
6060
61-
:returns: list -- list of pydrive.files.GoogleDriveFile.
61+
:returns: list -- list of pydrive2.files.GoogleDriveFile.
6262
"""
6363
# Teamdrive support
6464
self['corpus'] = 'DEFAULT'
@@ -92,7 +92,7 @@ def __init__(self, auth=None, metadata=None, uploaded=False):
9292
"""Create an instance of GoogleDriveFile.
9393
9494
:param auth: authorized GoogleAuth instance.
95-
:type auth: pydrive.auth.GoogleAuth
95+
:type auth: pydrive2.auth.GoogleAuth
9696
:param metadata: file resource to initialize GoogleDriveFile with.
9797
:type metadata: dict.
9898
:param uploaded: True if this file is confirmed to be uploaded.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pydrive/test/test_apiattr.py renamed to pydrive2/test/test_apiattr.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22

3-
from pydrive.auth import GoogleAuth
4-
from pydrive.drive import GoogleDrive
3+
from pydrive2.auth import GoogleAuth
4+
from pydrive2.drive import GoogleDrive
55

66
class ApiAttributeTest(unittest.TestCase):
77
"""Test ApiAttr functions.
@@ -31,4 +31,4 @@ def tearDown(self):
3131
self.file1.Delete()
3232

3333
if __name__ == '__main__':
34-
unittest.main()
34+
unittest.main()

pydrive/test/test_drive.py renamed to pydrive2/test/test_drive.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
import unittest
33

4-
from pydrive.auth import GoogleAuth
5-
from pydrive.drive import GoogleDrive
4+
from pydrive2.auth import GoogleAuth
5+
from pydrive2.drive import GoogleDrive
66

77

88
class GoogleDriveTest(unittest.TestCase):

pydrive/test/test_file.py renamed to pydrive2/test/test_file.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import timeout_decorator
99
from concurrent.futures import ThreadPoolExecutor, as_completed
1010

11-
from pydrive.auth import GoogleAuth
12-
from pydrive.drive import GoogleDrive
13-
from pydrive.files import ApiRequestError, GoogleDriveFile
11+
from pydrive2.auth import GoogleAuth
12+
from pydrive2.drive import GoogleDrive
13+
from pydrive2.files import ApiRequestError, GoogleDriveFile
1414

1515
import test_util
1616

pydrive/test/test_filelist.py renamed to pydrive2/test/test_filelist.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import sys
44
import unittest
55

6-
from pydrive.auth import GoogleAuth
7-
from pydrive.drive import GoogleDrive
8-
from pydrive.test import test_util
6+
from pydrive2.auth import GoogleAuth
7+
from pydrive2.drive import GoogleDrive
8+
from pydrive2.test import test_util
99

1010

1111
class GoogleDriveFileListTest(unittest.TestCase):

pydrive/test/test_oauth.py renamed to pydrive2/test/test_oauth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import time
44

5-
from pydrive.auth import GoogleAuth
5+
from pydrive2.auth import GoogleAuth
66

77
class GoogleAuthTest(unittest.TestCase):
88
"""Tests basic OAuth2 operations of auth.GoogleAuth."""
File renamed without changes.

setup.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from setuptools import setup
22

33
setup(
4-
name='PyDrive',
5-
version='1.3.1',
4+
name='PyDrive2',
5+
version='1.4.0',
66
author='JunYoung Gwak',
77
author_email='[email protected]',
8-
maintainer='Robin Nabel',
9-
maintainer_email='[email protected]',
10-
packages=['pydrive', 'pydrive.test'],
11-
url='https://github.com/gsuitedevs/PyDrive',
12-
license='LICENSE',
13-
description='Google Drive API made easy.',
8+
maintainer='DVC team',
9+
maintainer_email='[email protected]',
10+
packages=['pydrive2', 'pydrive2.test'],
11+
url='https://github.com/iterative/PyDrive2',
12+
license='Apache License 2.0',
13+
description='Google Drive API made easy. Maintained fork of PyDrive.',
1414
long_description=open('README.rst').read(),
1515
install_requires=[
1616
"google-api-python-client >= 1.2",

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist = py26, py27, py33, py34
33

44
[testenv]
5-
changedir = {toxinidir}/pydrive/test
5+
changedir = {toxinidir}/pydrive2/test
66
deps =
77
pytest
88
httplib2

0 commit comments

Comments
 (0)