Skip to content

Commit

Permalink
setup.py is updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
idlesign committed Oct 27, 2015
1 parent 9f11d5d commit e96d098
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
django-sitemetrics changelog
============================


Unreleased
----------
* Fixed "UnicodeDecodeError: 'ascii' codec..." in setup.py


v0.5.0
------
* IMPORTANT: Google Analytics JS code is switched to Universal Analytics.
Expand Down
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import os
import codecs
import io
from setuptools import setup

from sitemetrics import VERSION


def read(*parts):
file_path = os.path.join(os.path.dirname(__file__), *parts)
return codecs.open(file_path, encoding='utf-8').read()
with io.open(os.path.join(os.path.dirname(__file__), *parts)) as f:
return f.read()


setup(
name='django-sitemetrics',
Expand Down Expand Up @@ -36,5 +39,6 @@ def read(*parts):
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)

0 comments on commit e96d098

Please sign in to comment.