[python-dropbox] Update to 2.0.0
Miro Hrončok
churchyard at fedoraproject.org
Wed May 14 10:56:14 UTC 2014
commit 518d8a8e3707f08192c33b3fbdb203326f68672b
Author: Miro Hrončok <miro at hroncok.cz>
Date: Wed May 14 12:55:42 2014 +0200
Update to 2.0.0
.gitignore | 1 +
dropbox-setup-tests.patch | 57 +++++++-------------------------------------
python-dropbox.spec | 20 ++++++++-------
sources | 2 +-
4 files changed, 22 insertions(+), 58 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 87c9974..76e3b95 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/dropbox-python-sdk-1.6.zip
+/dropbox-2.0.0.zip
diff --git a/dropbox-setup-tests.patch b/dropbox-setup-tests.patch
index bd1138b..e00fee0 100644
--- a/dropbox-setup-tests.patch
+++ b/dropbox-setup-tests.patch
@@ -1,57 +1,18 @@
diff --git a/setup.py b/setup.py
-index 58a0ae1..f61ef8a 100755
+index 7c983c1..3e19006 100755
--- a/setup.py
+++ b/setup.py
-@@ -37,7 +37,7 @@ setup(name='dropbox',
+@@ -43,11 +43,10 @@ setup(name='dropbox',
author='Dropbox, Inc.',
author_email='support-api at dropbox.com',
url='http://www.dropbox.com/',
- packages=['dropbox', 'tests'],
+ packages=['dropbox'],
install_requires=INSTALL_REQUIRES,
- package_data={'dropbox': ['trusted-certs.crt'],
- 'tests' : ['server.crt', 'server.key']},
-diff --git a/tests/test_client.py b/tests/test_client.py
-index 87b0b0b..b74c31d 100755
---- a/tests/test_client.py
-+++ b/tests/test_client.py
-@@ -292,7 +292,7 @@ class TestClientOAuth1(BaseClientTests, unittest.TestCase):
- sess.set_token(cls.access_key, cls.access_secret)
-
- class TestClientOAuth2(BaseClientTests, unittest.TestCase):
-- Session = session.DropboxSessionOAuth2
-+ Session = session.DropboxOAuth2Session
-
- @classmethod
- def _configure_session(cls, sess):
-diff --git a/tests/test_session.py b/tests/test_session.py
-index bca077a..f0b34f6 100644
---- a/tests/test_session.py
-+++ b/tests/test_session.py
-@@ -3,7 +3,7 @@ import unittest
- import urllib
- import urlparse
-
--from dropbox.session import DropboxSession, DropboxSessionOAuth2
-+from dropbox.session import DropboxSession, DropboxOAuth2Session
-
- class ConfigurableSessionTest(unittest.TestCase):
- def _create_generic_session(self, rest_client, consumer_key='a',
-@@ -14,7 +14,7 @@ class OAuth1Mixin(ConfigurableSessionTest):
- Session = DropboxSession
-
- class OAuth2Mixin(ConfigurableSessionTest):
-- Session = DropboxSessionOAuth2
-+ Session = DropboxOAuth2Session
-
- class BaseTestClientUsage(object):
- def test_API_CONTENT_HOST(self):
-@@ -69,7 +69,7 @@ class TestClientUsageOAuth1(OAuth1Mixin, BaseTestClientUsage):
- self.assertEqual(a.request_token.secret, request_token[1])
-
- class TestClientUsageOAuth2(OAuth2Mixin, BaseTestClientUsage):
-- Session = DropboxSessionOAuth2
-+ Session = DropboxOAuth2Session
-
- def test_build_authorize_url(self):
- sess = self._create_generic_session(mock.Mock())
+ license=license,
+- package_data={'dropbox': ['trusted-certs.crt'],
+- 'tests' : ['server.crt', 'server.key']},
++ package_data={'dropbox': ['trusted-certs.crt']},
+ test_suite=TEST_SUITE,
+ tests_require=['mock'],
+ **extra
diff --git a/python-dropbox.spec b/python-dropbox.spec
index 28ae43a..785823f 100644
--- a/python-dropbox.spec
+++ b/python-dropbox.spec
@@ -1,16 +1,15 @@
%global with_python3 1
%global pypi_name dropbox
Name: python-%{pypi_name}
-Version: 1.6
-Release: 4%{?dist}
+Version: 2.0.0
+Release: 1%{?dist}
Summary: Official Dropbox REST API Client
License: MIT
URL: https://www.dropbox.com/developers/core/sdks
-Source0: https://www.dropbox.com/static/developers/%{pypi_name}-python-sdk-%{version}.zip
+Source0: https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.zip
# Don't install tests
-# Correct a mistake in tests
Patch0: %{pypi_name}-setup-tests.patch
BuildArch: noarch
@@ -27,18 +26,18 @@ BuildRequires: python3-setuptools
%endif
%description
-A Python library that for Dropbox's HTTP-based Core API.
+A Python library for Dropbox's HTTP-based Core and Datastore APIs.
%if 0%{?with_python3}
%package -n python3-%{pypi_name}
Summary: Official Dropbox REST API Client
%description -n python3-%{pypi_name}
-A Python library that for Dropbox's HTTP-based Core API.
+A Python library for Dropbox's HTTP-based Core and Datastore APIs.
%endif # with_python3
%prep
-%setup -q -n %{pypi_name}-python-sdk-%{version}
+%setup -q -n %{pypi_name}-%{version}
%patch0 -p1
rm -rf %{pypi_name}.egg-info
@@ -76,19 +75,22 @@ popd
%endif # with_python3
%files
-%doc README CHANGELOG LICENSE example
+%doc README.rst CHANGELOG.mdown LICENSE example
%{python_sitelib}/%{pypi_name}
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%if 0%{?with_python3}
%files -n python3-%{pypi_name}
# examples don't work with Python 3 (even when 2to3ed)
-%doc README CHANGELOG LICENSE
+%doc README.rst CHANGELOG.mdown LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%endif # with_python3
%changelog
+* Wed May 14 2014 Miro Hrončok <mhroncok at redhat.com> - 2.0.0-1
+- Updated to 2.0.0
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
diff --git a/sources b/sources
index 2411e4b..06d8ddb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-707b0239aa3c711be4fa356a756a632e dropbox-python-sdk-1.6.zip
+372c82d74bfc597615c1657d531376ac dropbox-2.0.0.zip
More information about the scm-commits
mailing list