Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
c1bdaadb783c
Commit
f53e916d
authored
Oct 04, 2019
by
Denis Laxalde
Browse files
[py2] Use io.open() to get the encoding parameter
parent
c3306bbf1b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.py
View file @
c1bdaadb
...
...
@@ -20,6 +20,7 @@
# along with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""Generic Setup script, takes package info from __pkginfo__.py file
"""
import
io
from
os.path
import
join
,
dirname
from
setuptools
import
find_packages
,
setup
...
...
@@ -44,7 +45,7 @@ author = __pkginfo__['author']
author_email
=
__pkginfo__
[
'author_email'
]
classifiers
=
__pkginfo__
[
'classifiers'
]
with
open
(
join
(
here
,
'README'
),
encoding
=
'utf-8'
)
as
f
:
with
io
.
open
(
join
(
here
,
'README'
),
encoding
=
'utf-8'
)
as
f
:
long_description
=
f
.
read
()
# get optional metadatas
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment