equal
deleted
inserted
replaced
19 # You should have received a copy of the GNU Lesser General Public License along |
19 # You should have received a copy of the GNU Lesser General Public License along |
20 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
20 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
21 """Generic Setup script, takes package info from __pkginfo__.py file |
21 """Generic Setup script, takes package info from __pkginfo__.py file |
22 """ |
22 """ |
23 |
23 |
|
24 import io |
24 import os |
25 import os |
25 import sys |
26 import sys |
26 import shutil |
27 import shutil |
27 from os.path import dirname, exists, isdir, join |
28 from os.path import dirname, exists, isdir, join |
28 |
29 |
51 description = __pkginfo__['description'] |
52 description = __pkginfo__['description'] |
52 web = __pkginfo__['web'] |
53 web = __pkginfo__['web'] |
53 author = __pkginfo__['author'] |
54 author = __pkginfo__['author'] |
54 author_email = __pkginfo__['author_email'] |
55 author_email = __pkginfo__['author_email'] |
55 |
56 |
56 long_description = open('README').read() |
57 with io.open('README', encoding='utf-8') as f: |
|
58 long_description = f.read() |
57 |
59 |
58 # import optional features |
60 # import optional features |
59 if USE_SETUPTOOLS: |
61 if USE_SETUPTOOLS: |
60 requires = {} |
62 requires = {} |
61 for entry in ("__depends__",): # "__recommends__"): |
63 for entry in ("__depends__",): # "__recommends__"): |