From e5e8c55018390ad50dc29b576cef39ac15a07772 Mon Sep 17 00:00:00 2001 From: Milad Alizadeh Date: Mon, 20 Jul 2020 13:37:47 +0100 Subject: [PATCH] Trying to fix the README rendering in PyPI --- setup.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 06a40c7..717e195 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,15 @@ +import codecs from setuptools import setup, find_packages -with open("README.md", "r") as fh: - readme = fh.read() +with codecs.open("README.md", encoding="utf-8") as f: + README = f.read() setup( name="stui", description="A Slurm client for the terminal", - long_description=readme, - version="0.2.0", + long_description=README, + long_description_content_type="text/markdown", + version="0.2.1", packages=find_packages(), author="Milad Alizadeh", url="https://github.com/mi-lad/stui",