From 7560b47b809f44ddc095bb8827ed0c523bd8593d Mon Sep 17 00:00:00 2001 From: Fran Quinto <1702904+fquinto@users.noreply.github.com> Date: Fri, 5 Aug 2022 21:45:45 +0200 Subject: [PATCH] Change README.md to README.rst --- MANIFEST.in | 2 +- pyproject.toml | 2 +- setup.cfg | 2 +- setup.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 636657f..9dd0096 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ # Things to include in the built package (besides the packages defined in setup.py) -include README.md +include README.rst include LICENSE \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 62e9a09..2aab9f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ Homepage = "https://github.com/fquinto/pywibeee" [tool.setuptools.dynamic] version = {attr = "pywibeee.__version__"} -readme = {file = ["README.md"]} +readme = {file = ["README.rst"]} [project.scripts] pywibeee = "pywibeee.main:main" diff --git a/setup.cfg b/setup.cfg index 4f51281..d4c2122 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ # https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file license_files = LICENSE description = Command line interface (CLI) for WiBeee (old Mirubee) meter -description_file = README.md +description_file = README.rst description-content-type = text/markdown name = pywibeee version = attr: pywibeee.__version__ diff --git a/setup.py b/setup.py index 5c346f4..fd3fd0e 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ EXCLUDE_FROM_PACKAGES = ["contrib", "docs", "tests*"] CURDIR = os.path.abspath(os.path.dirname(__file__)) -with io.open(os.path.join(CURDIR, "README.md"), "r", encoding="utf-8") as f: +with io.open(os.path.join(CURDIR, "README.rst"), "r", encoding="utf-8") as f: long_description = f.read() long_description += "\n\n" @@ -33,7 +33,7 @@ def get_long_description(): Return the README and CHANGELOG.md. """ long_description = "" - with open("README.md", encoding="utf8") as f: + with open("README.rst", encoding="utf8") as f: long_description += f.read() # long_description += "\n\n" # with open(os.path.join(CURDIR, "CHANGELOG.md"), encoding="utf8") as f: