Commit f403c3ee by Tyler Hallada Committed by GitHub

Merge pull request #30 from edx/thallada/version-updates

Update python packages
parents 509ae29d 2c0b148e
...@@ -18,4 +18,4 @@ quality: ...@@ -18,4 +18,4 @@ quality:
pylint --rcfile=.pylintrc $(PACKAGE) pylint --rcfile=.pylintrc $(PACKAGE)
# Ignore module level docstrings and all test files # Ignore module level docstrings and all test files
pep257 --ignore=D100,D203 --match='(?!test).*py' $(PACKAGE) pep257 --ignore=D100,D104,D203 --match='(?!test).*py' $(PACKAGE)
""" Course activity types. """ """Course activity types."""
ANY = 'any' ANY = 'any'
ATTEMPTED_PROBLEM = 'attempted_problem' ATTEMPTED_PROBLEM = 'attempted_problem'
......
""" Course demographics. """ """Course demographics."""
BIRTH_YEAR = 'birth_year' BIRTH_YEAR = 'birth_year'
EDUCATION = 'education' EDUCATION = 'education'
......
...@@ -6,7 +6,7 @@ from analyticsclient.exceptions import InvalidRequestError ...@@ -6,7 +6,7 @@ from analyticsclient.exceptions import InvalidRequestError
class Course(object): class Course(object):
""" Course-related analytics. """ """Course-related analytics."""
def __init__(self, client, course_id): def __init__(self, client, course_id):
""" """
......
class ClientError(Exception): class ClientError(Exception):
""" Common base class for all client errors. """ """Common base class for all client errors."""
pass pass
class NotFoundError(ClientError): class NotFoundError(ClientError):
""" URL was not found. """ """URL was not found."""
pass pass
class InvalidRequestError(ClientError): class InvalidRequestError(ClientError):
""" The API request was invalid. """ """The API request was invalid."""
pass pass
class TimeoutError(ClientError): class TimeoutError(ClientError):
""" The API server did not respond before the timeout expired. """ """The API server did not respond before the timeout expired."""
pass pass
...@@ -2,7 +2,7 @@ import analyticsclient.constants.data_format as DF ...@@ -2,7 +2,7 @@ import analyticsclient.constants.data_format as DF
class Module(object): class Module(object):
""" Module related analytics data. """ """Module related analytics data."""
def __init__(self, client, course_id, module_id): def __init__(self, client, course_id, module_id):
""" """
......
...@@ -2,7 +2,7 @@ from analyticsclient.exceptions import ClientError ...@@ -2,7 +2,7 @@ from analyticsclient.exceptions import ClientError
class Status(object): class Status(object):
""" API server status. """ """API server status."""
def __init__(self, client): def __init__(self, client):
""" """
......
...@@ -4,10 +4,10 @@ from analyticsclient.client import Client ...@@ -4,10 +4,10 @@ from analyticsclient.client import Client
class ClientTestCase(TestCase): class ClientTestCase(TestCase):
""" Base class for client-related tests. """ """Base class for client-related tests."""
def setUp(self): def setUp(self):
""" Configure Client. """ """Configure Client."""
self.api_url = 'http://localhost:9999/api/v0' self.api_url = 'http://localhost:9999/api/v0'
self.client = Client(self.api_url) self.client = Client(self.api_url)
......
requests==2.2.0 requests==2.12.4
# Testing # Testing
coverage==3.7.1 coverage==4.3.1
ddt==1.1.1 ddt==1.1.1
nose==1.3.3 nose==1.3.7
httpretty==0.8.0 httpretty==0.8.14
pep8==1.7.0 pep8==1.7.0
pylint==1.5.0 pylint==1.6.4
pep257==0.4.1 pep257==0.7.0
mock==1.0.1 mock==2.0.0
testfixtures==4.0.0 testfixtures==4.13.3
...@@ -8,14 +8,14 @@ setup( ...@@ -8,14 +8,14 @@ setup(
description='Client used to access edX analytics data warehouse', description='Client used to access edX analytics data warehouse',
long_description=open('README.rst').read(), long_description=open('README.rst').read(),
install_requires=[ install_requires=[
"requests==2.2.0", "requests==2.12.4",
], ],
tests_require=[ tests_require=[
"coverage==3.7.1", "coverage==4.3.1",
"nose==1.3.3", "nose==1.3.7",
"httpretty==0.8.0", "httpretty==0.8.14",
"pep8==1.5.7", "pep8==1.7.0",
"pylint==1.2.1", "pylint==1.6.4",
"pep257==0.3.2" "pep257==0.7.0"
] ]
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment