Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# rejson-py changelog

## 0.5.1 20191129

* #29 Use io.open() and 'utf-8' encoding to read version

## 0.5.0 20190901

* #26 Fixing retrieving non-ascii string with JSON.GET, added no_escape flag

## 0.4.0 20190308

* Add exception handler for .jsonget for non-existent keys

## 0.3.0 20190107

*upgrade dependency to redis-py >=3.0.0
* Upgrade dependency to redis-py >=3.0.0

## 0.2.1 20170605

Expand Down
2 changes: 1 addition & 1 deletion rejson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ def decode(self, obj):
obj = rj.jsonget('custom', Path.rootPath())
```
"""
__version__ = "0.5.0"
__version__ = "0.5.1"
from .client import Client
from .path import Path
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
hiredis==0.2.0
redis>=3.0.0
six>=1.10
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
#!/usr/bin/env python

from setuptools import setup, find_packages
import io
import os
import sys
import re
import shutil


def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
init_py = io.open(os.path.join(package, '__init__.py'), encoding='utf-8').read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)


def read_all(f):
with open(f) as I:
return I.read()
Expand Down