Skip to content

Commit

Permalink
Merge pull request samgiles#67 from merwok/master
Browse files Browse the repository at this point in the history
Release 0.6.0
  • Loading branch information
merwok committed Apr 1, 2013
2 parents 8a98595 + 71bdee3 commit 7caf9f5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist/*
docs/_build/*
.tox
*.pyc
*.egg-info
slumber.egg-info
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ recursive-include docs *.rst
include README.rst
include LICENSE.txt
include CHANGELOG.rst
prune tests
include tests
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Requirements

Slumber requires the following modules.

* Python 2.5+
* Python 2.6+
* requests
* simplejson (If using Python 2.5, or you desire the speedups for JSON serialization)
* simplejson (If you desire the speedups for JSON serialization)
* pyyaml (If you are using the optional yaml serialization)

.. _Pip: http://pip.openplans.org/
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
requests
simplejson
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import os.path
from setuptools import setup, find_packages
import sys
import os
from setuptools import setup

install_requires = ["requests"]

if sys.version_info < (2, 6):
install_requires.append("simplejson")

base_dir = os.path.dirname(os.path.abspath(__file__))

setup(
Expand All @@ -20,7 +16,7 @@
url = "http://slumber.in/",
author = "Donald Stufft",
author_email = "[email protected]",
packages = find_packages(),
packages = ["slumber"],
zip_safe = False,
install_requires = install_requires,
test_suite = "tests.get_tests",
Expand Down
8 changes: 8 additions & 0 deletions tests/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def test_get_200_json(self):
"GET",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -59,6 +60,7 @@ def test_get_200_text(self):
"GET",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -92,6 +94,7 @@ def test_post_201_redirect(self):
"POST",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -120,6 +123,7 @@ def test_post_decodable_response(self):
"POST",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -153,6 +157,7 @@ def test_patch_201_redirect(self):
"PATCH",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -181,6 +186,7 @@ def test_patch_decodable_response(self):
"PATCH",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -214,6 +220,7 @@ def test_put_201_redirect(self):
"PUT",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down Expand Up @@ -242,6 +249,7 @@ def test_put_decodable_response(self):
"PUT",
"http://example/api/v1/test",
data=None,
files=None,
params=None,
headers={"content-type": self.base_resource._store["serializer"].get_content_type(), "accept": self.base_resource._store["serializer"].get_content_type()}
)
Expand Down

0 comments on commit 7caf9f5

Please sign in to comment.