-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v0.5.0-prep' and bump version to 0.5.0. Closes PR #21
- Loading branch information
Showing
10 changed files
with
257 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.pyc | ||
Embedly.egg-info/ | ||
*.egg-info/ | ||
.tox/ | ||
build/ | ||
dist/ | ||
.virtualenv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from __future__ import absolute_import | ||
from .client import Embedly | ||
|
||
__version__ = '0.4.3' | ||
__version__ = '0.5.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sys | ||
|
||
# 2to3 doesn't handle the UserDict relocation | ||
# put the import logic here for cleaner usage | ||
try: | ||
from collections import UserDict as IterableUserDict | ||
except ImportError: # Python 2 | ||
from UserDict import IterableUserDict | ||
|
||
|
||
def python_2_unicode_compatible(klass): | ||
""" | ||
A decorator that defines __unicode__ and __str__ methods under Python 2. | ||
Under Python 3 it does nothing. | ||
From django.utils.encoding.py in 1.4.2+, minus the dependency on Six. | ||
To support Python 2 and 3 with a single code base, define a __str__ method | ||
returning text and apply this decorator to the class. | ||
""" | ||
if sys.version_info[0] == 2: | ||
if '__str__' not in klass.__dict__: | ||
raise ValueError("@python_2_unicode_compatible cannot be applied " | ||
"to %s because it doesn't define __str__()." % | ||
klass.__name__) | ||
klass.__unicode__ = klass.__str__ | ||
klass.__str__ = lambda self: self.__unicode__().encode('utf-8') | ||
return klass |
Oops, something went wrong.
6242333
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@screeley you can hook up this repo to auto-push and test on Travis with these directions.
All that's left is the release on PyPI. Oh and to read over the release/tag text I wrote to make sure it's all correct.
6242333
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do I'll take care of this Monday. Thank you so much.
Send me an email at sean at embed.ly, so I can send you some swag.