mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Specify encoding for README and CHANGELOG in setup.py
This commit is contained in:
parent
01d536d7c9
commit
6fe2fecb13
1 changed files with 9 additions and 3 deletions
12
setup.py
12
setup.py
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env python
|
||||
from io import open
|
||||
from os import walk
|
||||
from os.path import join, relpath
|
||||
import sys
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
|
|
@ -17,8 +19,12 @@ entry_points = {
|
|||
]
|
||||
}
|
||||
|
||||
README = open('README.rst').read()
|
||||
CHANGELOG = open('docs/changelog.rst').read()
|
||||
README = open('README.rst', encoding='utf-8').read()
|
||||
CHANGELOG = open('docs/changelog.rst', encoding='utf-8').read()
|
||||
|
||||
description = u'\n'.join([README, CHANGELOG])
|
||||
if sys.version_info.major < 3:
|
||||
description = description.encode('utf-8')
|
||||
|
||||
setup(
|
||||
name='pelican',
|
||||
|
|
@ -29,7 +35,7 @@ setup(
|
|||
author_email='authors@getpelican.com',
|
||||
description="Static site generator supporting reStructuredText and "
|
||||
"Markdown source content.",
|
||||
long_description=README + '\n' + CHANGELOG,
|
||||
long_description=description,
|
||||
packages=['pelican', 'pelican.tools'],
|
||||
package_data={
|
||||
# we manually collect the package data, as opposed to using,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue