pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/py-dropbox py-dropbox: updated to 11.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fcc589769be7
branches:  trunk
changeset: 445346:fcc589769be7
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jan 20 21:06:30 2021 +0000

description:
py-dropbox: updated to 11.0.0

v11.0.0
Add stone to setup.py
Automated Spec Update
Fix links in release notes to be absolute
Bump peter-evans/create-pull-request from v3.4.1 to v3.5.1
change update_version.sh to reflect the renaming of dropbox/dropbox.py to dropbox/dropbox_client.py
Regenerate client using Stone 3.2.0
Bump codecov/codecov-action from v1.0.14 to v1.0.15
remove auto generated stone_fixtures.py
Automated Spec Update

v10.10.0
Automated Spec Update

v10.9.0
Automated Spec Update
Migrate references of master to main
Migrate primary branch to main

v10.8.0
Automated Spec Update
Update dispatch on spec update workflow

v10.7.0
Fix default in getAuthenticationUrl to pass if requested
Automated Spec Update
Bump codecov/codecov-action from v1.0.13 to v1.0.14
Bump actions/setup-python from v2.1.3 to v2.1.4

v10.6.0
Automated Spec Update
Bump peter-evans/create-pull-request from v3.4.0 to v3.4.1

v10.5.0
Automated Spec Update
Bump actions/setup-python from v2.1.2 to v2.1.3
Add release scripts
Add local build for docs to contributing
Added "of" to Question / Help Template
Fix arguments in OAuth2FlowResult.repr return value
Bump peter-evans/create-pull-request from v3.3.0 to v3.4.0
Update actions/setup-python requirement to v2.1.2
File update
Updated sphinx syntax
Add github action to auto update spec
Run CodeCov through github actions and remove Tox
Fix lists
Update OAuth.py Formatting
Update tox to not run codecov as github action takes care of it
Add github action for publishing master branch coverage
Add basic test to test codecov
Add 3.9-dev to travis and add codecov.yaml
Add Coverage.py and codecov functionality

diffstat:

 net/py-dropbox/Makefile                               |   22 +-
 net/py-dropbox/PLIST                                  |  116 ++++++++++++----
 net/py-dropbox/distinfo                               |   12 +-
 net/py-dropbox/patches/patch-dropbox_datastore.py     |  124 ------------------
 net/py-dropbox/patches/patch-tests_test__datastore.py |   49 -------
 5 files changed, 101 insertions(+), 222 deletions(-)

diffs (truncated from 366 to 300 lines):

diff -r c69b1b039831 -r fcc589769be7 net/py-dropbox/Makefile
--- a/net/py-dropbox/Makefile   Wed Jan 20 21:02:13 2021 +0000
+++ b/net/py-dropbox/Makefile   Wed Jan 20 21:06:30 2021 +0000
@@ -1,22 +1,20 @@
-# $NetBSD: Makefile,v 1.7 2019/11/03 11:45:50 rillig Exp $
+# $NetBSD: Makefile,v 1.8 2021/01/20 21:06:30 adam Exp $
 
-DISTNAME=      dropbox-python-sdk-2.2.0
-PKGNAME=       ${PYPKGPREFIX}-dropbox-2.2.0
-PKGREVISION=   1
-CATEGORIES=    net
-MASTER_SITES=  https://www.dropbox.com/developers/downloads/sdks/core/python/
-EXTRACT_SUFX=  .zip
+DISTNAME=      dropbox-11.0.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    net python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=d/dropbox/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://www.dropbox.com/developers/core/sdks/python
+HOMEPAGE=      https://www.dropbox.com/developers
 COMMENT=       Dropbox Python API
-LICENSE=       2-clause-bsd
+LICENSE=       mit
 
-EGG_NAME=      ${DISTNAME:S/python-sdk-//}
+DEPENDS+=      ${PYPKGPREFIX}-requests>=2.16.2:../../devel/py-requests
+DEPENDS+=      ${PYPKGPREFIX}-six>=1.12.0:../../lang/py-six
+DEPENDS+=      ${PYPKGPREFIX}-stone>=2.0:../../net/py-stone
 
 USE_LANGUAGES= # none
-REPLACE_PYTHON=        tests/test_client.py
 
-.include "../../lang/python/application.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c69b1b039831 -r fcc589769be7 net/py-dropbox/PLIST
--- a/net/py-dropbox/PLIST      Wed Jan 20 21:02:13 2021 +0000
+++ b/net/py-dropbox/PLIST      Wed Jan 20 21:06:30 2021 +0000
@@ -1,42 +1,98 @@
-@comment $NetBSD: PLIST,v 1.4 2015/04/05 22:07:31 hiramatsu Exp $
+@comment $NetBSD: PLIST,v 1.5 2021/01/20 21:06:30 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
 ${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/dropbox/__init__.py
 ${PYSITELIB}/dropbox/__init__.pyc
 ${PYSITELIB}/dropbox/__init__.pyo
-${PYSITELIB}/dropbox/client.py
-${PYSITELIB}/dropbox/client.pyc
-${PYSITELIB}/dropbox/client.pyo
-${PYSITELIB}/dropbox/datastore.py
-${PYSITELIB}/dropbox/datastore.pyc
-${PYSITELIB}/dropbox/datastore.pyo
-${PYSITELIB}/dropbox/rest.py
-${PYSITELIB}/dropbox/rest.pyc
-${PYSITELIB}/dropbox/rest.pyo
+${PYSITELIB}/dropbox/account.py
+${PYSITELIB}/dropbox/account.pyc
+${PYSITELIB}/dropbox/account.pyo
+${PYSITELIB}/dropbox/async.py
+${PYSITELIB}/dropbox/async.pyc
+${PYSITELIB}/dropbox/async.pyo
+${PYSITELIB}/dropbox/async_.py
+${PYSITELIB}/dropbox/async_.pyc
+${PYSITELIB}/dropbox/async_.pyo
+${PYSITELIB}/dropbox/auth.py
+${PYSITELIB}/dropbox/auth.pyc
+${PYSITELIB}/dropbox/auth.pyo
+${PYSITELIB}/dropbox/base.py
+${PYSITELIB}/dropbox/base.pyc
+${PYSITELIB}/dropbox/base.pyo
+${PYSITELIB}/dropbox/base_team.py
+${PYSITELIB}/dropbox/base_team.pyc
+${PYSITELIB}/dropbox/base_team.pyo
+${PYSITELIB}/dropbox/check.py
+${PYSITELIB}/dropbox/check.pyc
+${PYSITELIB}/dropbox/check.pyo
+${PYSITELIB}/dropbox/common.py
+${PYSITELIB}/dropbox/common.pyc
+${PYSITELIB}/dropbox/common.pyo
+${PYSITELIB}/dropbox/contacts.py
+${PYSITELIB}/dropbox/contacts.pyc
+${PYSITELIB}/dropbox/contacts.pyo
+${PYSITELIB}/dropbox/dropbox_client.py
+${PYSITELIB}/dropbox/dropbox_client.pyc
+${PYSITELIB}/dropbox/dropbox_client.pyo
+${PYSITELIB}/dropbox/exceptions.py
+${PYSITELIB}/dropbox/exceptions.pyc
+${PYSITELIB}/dropbox/exceptions.pyo
+${PYSITELIB}/dropbox/file_properties.py
+${PYSITELIB}/dropbox/file_properties.pyc
+${PYSITELIB}/dropbox/file_properties.pyo
+${PYSITELIB}/dropbox/file_requests.py
+${PYSITELIB}/dropbox/file_requests.pyc
+${PYSITELIB}/dropbox/file_requests.pyo
+${PYSITELIB}/dropbox/files.py
+${PYSITELIB}/dropbox/files.pyc
+${PYSITELIB}/dropbox/files.pyo
+${PYSITELIB}/dropbox/oauth.py
+${PYSITELIB}/dropbox/oauth.pyc
+${PYSITELIB}/dropbox/oauth.pyo
+${PYSITELIB}/dropbox/paper.py
+${PYSITELIB}/dropbox/paper.pyc
+${PYSITELIB}/dropbox/paper.pyo
+${PYSITELIB}/dropbox/secondary_emails.py
+${PYSITELIB}/dropbox/secondary_emails.pyc
+${PYSITELIB}/dropbox/secondary_emails.pyo
+${PYSITELIB}/dropbox/seen_state.py
+${PYSITELIB}/dropbox/seen_state.pyc
+${PYSITELIB}/dropbox/seen_state.pyo
 ${PYSITELIB}/dropbox/session.py
 ${PYSITELIB}/dropbox/session.pyc
 ${PYSITELIB}/dropbox/session.pyo
-${PYSITELIB}/dropbox/six.py
-${PYSITELIB}/dropbox/six.pyc
-${PYSITELIB}/dropbox/six.pyo
+${PYSITELIB}/dropbox/sharing.py
+${PYSITELIB}/dropbox/sharing.pyc
+${PYSITELIB}/dropbox/sharing.pyo
+${PYSITELIB}/dropbox/stone_base.py
+${PYSITELIB}/dropbox/stone_base.pyc
+${PYSITELIB}/dropbox/stone_base.pyo
+${PYSITELIB}/dropbox/stone_serializers.py
+${PYSITELIB}/dropbox/stone_serializers.pyc
+${PYSITELIB}/dropbox/stone_serializers.pyo
+${PYSITELIB}/dropbox/stone_validators.py
+${PYSITELIB}/dropbox/stone_validators.pyc
+${PYSITELIB}/dropbox/stone_validators.pyo
+${PYSITELIB}/dropbox/team.py
+${PYSITELIB}/dropbox/team.pyc
+${PYSITELIB}/dropbox/team.pyo
+${PYSITELIB}/dropbox/team_common.py
+${PYSITELIB}/dropbox/team_common.pyc
+${PYSITELIB}/dropbox/team_common.pyo
+${PYSITELIB}/dropbox/team_log.py
+${PYSITELIB}/dropbox/team_log.pyc
+${PYSITELIB}/dropbox/team_log.pyo
+${PYSITELIB}/dropbox/team_policies.py
+${PYSITELIB}/dropbox/team_policies.pyc
+${PYSITELIB}/dropbox/team_policies.pyo
 ${PYSITELIB}/dropbox/trusted-certs.crt
-${PYSITELIB}/tests/__init__.py
-${PYSITELIB}/tests/__init__.pyc
-${PYSITELIB}/tests/__init__.pyo
-${PYSITELIB}/tests/server.crt
-${PYSITELIB}/tests/server.key
-${PYSITELIB}/tests/test_client.py
-${PYSITELIB}/tests/test_client.pyc
-${PYSITELIB}/tests/test_client.pyo
-${PYSITELIB}/tests/test_datastore.py
-${PYSITELIB}/tests/test_datastore.pyc
-${PYSITELIB}/tests/test_datastore.pyo
-${PYSITELIB}/tests/test_rest.py
-${PYSITELIB}/tests/test_rest.pyc
-${PYSITELIB}/tests/test_rest.pyo
-${PYSITELIB}/tests/test_session.py
-${PYSITELIB}/tests/test_session.pyc
-${PYSITELIB}/tests/test_session.pyo
+${PYSITELIB}/dropbox/users.py
+${PYSITELIB}/dropbox/users.pyc
+${PYSITELIB}/dropbox/users.pyo
+${PYSITELIB}/dropbox/users_common.py
+${PYSITELIB}/dropbox/users_common.pyc
+${PYSITELIB}/dropbox/users_common.pyo
diff -r c69b1b039831 -r fcc589769be7 net/py-dropbox/distinfo
--- a/net/py-dropbox/distinfo   Wed Jan 20 21:02:13 2021 +0000
+++ b/net/py-dropbox/distinfo   Wed Jan 20 21:06:30 2021 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.4 2018/12/27 15:04:42 joerg Exp $
+$NetBSD: distinfo,v 1.5 2021/01/20 21:06:30 adam Exp $
 
-SHA1 (dropbox-python-sdk-2.2.0.zip) = 16fc4f2c9e37f49a00cc23d1df4aea9c29ed83c0
-RMD160 (dropbox-python-sdk-2.2.0.zip) = 84abbcc17b16ec0d2707e2ad45d94d9f80daf570
-SHA512 (dropbox-python-sdk-2.2.0.zip) = 1b30d53c69cd2a79abbdca81956ddd90eae5180b98a4b62cf97590f3201e0b5a0a721909060578831809cdbfa2e31794229d530718ff55067c6545cde09f343e
-Size (dropbox-python-sdk-2.2.0.zip) = 691948 bytes
-SHA1 (patch-dropbox_datastore.py) = 005aa34cfb446b1df2bcc7e45efaa7e0de906f24
-SHA1 (patch-tests_test__datastore.py) = 6f31e4312a7f5c9c0dc80abb4cbf21e7ea81112e
+SHA1 (dropbox-11.0.0.tar.gz) = 844a0732718fc414157ee01dffe1dddb458d4859
+RMD160 (dropbox-11.0.0.tar.gz) = f20faffd61d3f176ffb29ab965bbb2d3f15a658d
+SHA512 (dropbox-11.0.0.tar.gz) = 912859ed2d369ee3ffb09286131068b17356fdb0a4e382605545e0c1fea11e897c0476681fe876855606b3cccebccf56d88d8f1d86cf4ebbd4c693aee64eb90e
+Size (dropbox-11.0.0.tar.gz) = 548156 bytes
diff -r c69b1b039831 -r fcc589769be7 net/py-dropbox/patches/patch-dropbox_datastore.py
--- a/net/py-dropbox/patches/patch-dropbox_datastore.py Wed Jan 20 21:02:13 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,124 +0,0 @@
-$NetBSD: patch-dropbox_datastore.py,v 1.1 2018/12/27 15:04:42 joerg Exp $
-
---- dropbox/datastore.py.orig  2018-12-25 21:56:18.018562969 +0000
-+++ dropbox/datastore.py
-@@ -266,7 +266,7 @@ class _DatastoreOperations(object):
-         resp = self._client.rest_client.POST(url, params, headers)
-         return self._check_conflict(resp)
- 
--    def await(self, token=None, cursors=None):
-+    def send_await(self, token=None, cursors=None):
-         params = {}
-         if token:
-             params['list_datastores'] = json.dumps({'token': token})
-@@ -407,7 +407,7 @@ class DatastoreManager(object):
-         resp = self._dsops.list_datastores()
-         return [_make_dsinfo(item) for item in resp['datastores']]
- 
--    def await(self, token=None, datastores=None):
-+    def send_await(self, token=None, datastores=None):
-         """Wait until certain changes occur.
- 
-         This methods implements a flexible and efficient long-polling
-@@ -419,11 +419,11 @@ class DatastoreManager(object):
-           token
-             An optional token that represents a hash of the list of
-             datastores, computed by the server.  If this parameter is
--            present and non-empty, ``await()`` will return when the
-+            present and non-empty, ``send_await()`` will return when the
-             list of datastores has changed in a way that would cause a
-             different token to be computed, such as when a datastore
-             is created or deleted.  The token should be obtained from
--            the previous ``await()`` call; as a special case, the
-+            the previous ``send_await()`` call; as a special case, the
-             value ``'.'`` forces the call to return immediately with a
-             fresh token (as does any outdated token).
- 
-@@ -434,7 +434,7 @@ class DatastoreManager(object):
-             interested in receiving updates.  If this parameter is a
-             list of instances, the revision to compare is retrieved
-             from each instance using :meth:`Datastore.get_rev()`.  If
--            this parameter is present and non-empty, ``await()`` will
-+            this parameter is present and non-empty, ``send_await()`` will
-             return whenever a new revision is available for any of
-             those datastores.
- 
-@@ -448,7 +448,7 @@ class DatastoreManager(object):
-           token
-             A new token, or the value of the ``token`` parameter if
-             there are no changes to the list of datastores.  You
--            should pass this to the next ``await()`` call.
-+            should pass this to the next ``send_await()`` call.
- 
-           dsinfo
-             The full list of :class:`DatastoreInfo` objects (as
-@@ -465,7 +465,7 @@ class DatastoreManager(object):
-             not changed (and are still valid) will not be present.
- 
-         Unlike :meth:`Datastore.load_deltas()` and
--        :meth:`Datastore.await_deltas()`, ``await()`` does not apply
-+        :meth:`Datastore.await_deltas()`, ``send_await()`` does not apply
-         the deltas returned in ``deltamap`` to the respective
-         datastores; that is the caller's responsibility.  For
-         example::
-@@ -485,7 +485,7 @@ class DatastoreManager(object):
-             else:
-                 for ds in datastores:
-                     cursors[ds._handle] = ds._rev
--        resp = self._dsops.await(token=token, cursors=cursors)
-+        resp = self._dsops.send_await(token=token, cursors=cursors)
-         dsinfos = None
-         deltamap = None
-         if 'list_datastores' in resp:
-@@ -512,13 +512,13 @@ class DatastoreManager(object):
- 
-     @staticmethod
-     def make_cursor_map(datastores, deltamap):
--        """Utility to construct a ``datastores`` argument for :meth:`await()`.
-+        """Utility to construct a ``datastores`` argument for :meth:`send_await()`.
- 
-         Parameters
-           datastores
-             A list of :class:`Datastore` objects.
-           deltamap
--            An data structure as returned by :meth:`await()` in its
-+            An data structure as returned by :meth:`send_await()` in its
-             ``deltamap`` return value.  This may be None or it may be
-             a dict mapping :class:`Datastore` objects to values that
-             are either lists of deltas or ``None``.
-@@ -526,7 +526,7 @@ class DatastoreManager(object):
-         Returns
-           A dict mapping :class:`Datastore` objects to revisions,
-           suitable to pass as the ``datastores`` parameter to
--          :meth:`await()`.  This will normally just map the datastores
-+          :meth:`send_await()`.  This will normally just map the datastores
-           from the ``datastores`` parameter to their current revision;
-           however, datastores that are deleted or invalid according to
-           ``deltamap`` are excluded from the dict, and for datastores
-@@ -534,7 +534,7 @@ class DatastoreManager(object):
-           is set to one higher than the revision of the last delta.
- 
-         Using this function will reduce redundant server roundtrips in
--        multi-threaded apps that call :meth:`await()` in a background
-+        multi-threaded apps that call :meth:`send_await()` in a background
-         thread and then pass the received deltas to the main thread
-         through some kind of queue.
-         """
-@@ -1146,7 +1146,7 @@ class Datastore(object):
-         """
-         if self._changes:
-             raise DatastoreError('Cannot call await_deltas() with pending changes')
--        resp = self._manager._dsops.await(cursors={self._handle: self._rev})



Home | Main Index | Thread Index | Old Index