[Python-modules-commits] [python-tmdbsimple] 01/04: Import python-tmdbsimple_1.6.1.orig.tar.gz
Michael Fladischer
fladi at moszumanska.debian.org
Fri Mar 17 08:46:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch experimental
in repository python-tmdbsimple.
commit 8d246a456fcfeb0cb83d16c701cec452adad1979
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Fri Mar 17 09:27:30 2017 +0100
Import python-tmdbsimple_1.6.1.orig.tar.gz
---
setup.py | 10 ++++------
tests/test_account.py | 9 ++-------
tests/test_search.py | 7 -------
tmdbsimple/__init__.py | 4 ++--
tmdbsimple/account.py | 18 ------------------
tmdbsimple/search.py | 20 --------------------
6 files changed, 8 insertions(+), 60 deletions(-)
diff --git a/setup.py b/setup.py
index 0a7ceff..10c8b04 100644
--- a/setup.py
+++ b/setup.py
@@ -8,22 +8,20 @@ from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
-# Install requests==2.5.3 to avoid InsecurePlatformWarning message
-# http://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent
-# https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
+# requests[security]: http://stackoverflow.com/questions/29134512/insecureplatformwarning-a-true-sslcontext-object-is-not-available-this-prevent/29202163#29202163
setup(
name = 'tmdbsimple',
- version = '1.4.1',
+ version = '1.6.1',
author = 'Celia Oakley',
author_email = 'celia.oakley at alumni.stanford.edu',
description = 'A Python wrapper for The Movie Database API v3',
keywords = ['movie', 'the movie database', 'movie database', 'tmdb',
'wrapper', 'database', 'themoviedb', 'moviedb', 'api'],
url = 'https://github.com/celiao/tmdbsimple',
- download_url = 'https://github.com/celiao/tmdbsimple/tarball/1.4.1',
+ download_url = 'https://github.com/celiao/tmdbsimple/tarball/1.6.1',
packages = ['tmdbsimple'],
long_description=read('README.rst'),
- install_requires = ['requests==2.5.3'],
+ install_requires = ['requests[security]'],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
diff --git a/tests/test_account.py b/tests/test_account.py
index 758f23b..2c6d45f 100644
--- a/tests/test_account.py
+++ b/tests/test_account.py
@@ -26,7 +26,7 @@ TVTITLE = 'Breaking Bad'
FAVORITE_MOVIE_ID = 62211
WATCHLIST_MEDIA_ID = 11
LIST_ID = '509ec17b19c2950a0600050d'
-LIST_CREATED_BY = 'Travis Bell'
+LIST_CREATED_BY = 'travisbell'
LIST_MOVIE_ID = 76203 # Argo
LIST_NAME = 'My newly created list'
LIST_DESCRIPTION = 'No duplicates here'
@@ -37,7 +37,7 @@ Status codes and messages
"""
SUCCESSFUL_UPDATE = 12
SUCCESSFUL_DELETE = 13
-SUCCESS_PERIOD = 'Success.'
+SUCCESS_PERIOD = 'The item/record was created successfully.'
class AccountTestCase(unittest.TestCase):
@@ -212,8 +212,3 @@ class ListsTestCase(unittest.TestCase):
lst = tmdb.Lists(list_id, SESSION_ID)
response = lst.clear_list(confirm='true')
self.assertEqual(lst.status_code, status_code)
-
- status_code = SUCCESSFUL_DELETE
- lst = tmdb.Lists(list_id, SESSION_ID)
- response = lst.delete_list()
- self.assertEqual(lst.status_code, status_code)
diff --git a/tests/test_search.py b/tests/test_search.py
index 485db7a..ab4eeec 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -25,7 +25,6 @@ QUERY_1 = 'Club'
QUERY_2 = 'Avenger'
QUERY_3 = 'Breaking'
QUERY_4 = 'Brad Pitt'
-QUERY_5 = 'Oscars'
QUERY_6 = 'Sony Pictures'
QUERY_7 = 'fight'
QUERY_8 = 'blackjack'
@@ -55,12 +54,6 @@ class SearchTestCase(unittest.TestCase):
response = search.person(query=query)
self.assertTrue(hasattr(search, 'results'))
- def test_search_list(self):
- query = QUERY_5
- search = tmdb.Search()
- response = search.list(query=query)
- self.assertTrue(hasattr(search, 'results'))
-
def test_search_company(self):
query = QUERY_6
search = tmdb.Search()
diff --git a/tmdbsimple/__init__.py b/tmdbsimple/__init__.py
index 8774691..9314fef 100644
--- a/tmdbsimple/__init__.py
+++ b/tmdbsimple/__init__.py
@@ -12,12 +12,12 @@ http://www.themoviedb.org/documentation/api and documentation page
http://docs.themoviedb.apiary.io.
https://www.themoviedb.org/documentation/api/status-codes
-:copyright: (c) 2013-2014 by Celia Oakley.
+:copyright: (c) 2013-2017 by Celia Oakley.
:license: GPLv3, see LICENSE for more details
"""
__title__ = 'tmdbsimple'
-__version__ = '1.4.1'
+__version__ = '1.6.1'
__author__ = 'Celia Oakley'
__copyright__ = 'Copyright (c) 2013-1017 Celia Oakley'
__license__ = 'GPLv3'
diff --git a/tmdbsimple/account.py b/tmdbsimple/account.py
index e99d549..526f9d5 100644
--- a/tmdbsimple/account.py
+++ b/tmdbsimple/account.py
@@ -376,7 +376,6 @@ class Lists(TMDB):
'add_item': '/{id}/add_item',
'remove_item': '/{id}/remove_item',
'clear': '/{id}/clear',
- 'delete_list': '/{id}',
}
def __init__(self, id=0, session_id=0):
@@ -508,20 +507,3 @@ class Lists(TMDB):
response = self._POST(path, kwargs, payload)
self._set_attrs_to_values(response)
return response
-
- def delete_list(self, **kwargs):
- """
- Delete a list that the user created.
-
- A valid session id is required.
-
- Returns:
- A dict respresentation of the JSON returned from the API.
- """
- path = self._get_id_path('delete_list')
- kwargs.update({'session_id': self.session_id})
-
- response = self._DELETE(path, kwargs)
- self._set_attrs_to_values(response)
- return response
-
diff --git a/tmdbsimple/search.py b/tmdbsimple/search.py
index c9d6310..e84c9ba 100644
--- a/tmdbsimple/search.py
+++ b/tmdbsimple/search.py
@@ -25,7 +25,6 @@ class Search(TMDB):
'collection': '/collection',
'tv': '/tv',
'person': '/person',
- 'list': '/list',
'company': '/company',
'keyword': '/keyword',
'multi': '/multi'
@@ -130,25 +129,6 @@ class Search(TMDB):
self._set_attrs_to_values(response)
return response
- def list(self, **kwargs):
- """
- Search for lists by name and description.
-
- Args:
- query: CGI escpaed string.
- page: (optional) Minimum value of 1. Expected value is an integer.
- include_adult: (optional) Toggle the inclusion of adult titles.
- Expected value is True or False.
-
- Returns:
- A dict respresentation of the JSON returned from the API.
- """
- path = self._get_path('list')
-
- response = self._GET(path, kwargs)
- self._set_attrs_to_values(response)
- return response
-
def company(self, **kwargs):
"""
Search for companies by name.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-tmdbsimple.git
More information about the Python-modules-commits
mailing list