Skip to content

Commit f83ec88

Browse files
author
derwentx
committed
fixed encoding error on windows python, increment version
thanks to Joseph Lawrie
1 parent 512f88d commit f83ec88

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
import os
66
import re
7+
from io import open
8+
79
from setuptools import setup
810

911
# Get version from __init__.py file
@@ -15,7 +17,7 @@
1517
raise RuntimeError("Cannot find version information")
1618

1719
# Get long description
18-
README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
20+
README = open(os.path.join(os.path.dirname(__file__), "README.rst"), encoding="utf8").read()
1921

2022
# allow setup.py to be run from any path
2123
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

wordpress/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
__title__ = "wordpress"
13-
__version__ = "1.2.6"
13+
__version__ = "1.2.7"
1414
__author__ = "Claudio Sanches @ WooThemes, forked by Derwent"
1515
__license__ = "MIT"
1616

0 commit comments

Comments
 (0)