Skip to content

Commit

Permalink
Fix Python 3.6 installation when the OS locale is set to POSIX (#616)
Browse files Browse the repository at this point in the history
* enforce 'utf-8' encoding, fixes #615

* using `open` from `codecs` for py2.7 support

* Updated changelog to reflect OS locale fix
  • Loading branch information
tehkirill authored and BoboTiG committed Jan 27, 2020
1 parent 42aae6e commit d557574
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Changelog

Other Changes
=============

- Fixed Python 3.6 installation when the OS locale is set to POSIX (`#615 <https://github.com/gorakhargosh/watchdog/pull/615>`__)
- [snapshot] Added EmptyDirectorySnapshot (`#613 <https://github.com/gorakhargosh/watchdog/pull/613>`__)
- Thanks to our beloved contributors: @Ajordat
- Thanks to our beloved contributors: @Ajordat, @tehkirill


0.10.0
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import sys
import os.path
from codecs import open
from setuptools import setup, find_packages
from setuptools.extension import Extension
from setuptools.command.build_ext import build_ext
Expand Down Expand Up @@ -79,10 +80,10 @@
'watchmedo': ['PyYAML>=3.10', 'argh>=0.24.1'],
}

with open('README.rst') as f:
with open('README.rst', encoding='utf-8') as f:
readme = f.read()

with open('changelog.rst') as f:
with open('changelog.rst', encoding='utf-8') as f:
changelog = f.read()

setup(name="watchdog",
Expand Down

0 comments on commit d557574

Please sign in to comment.