From ebe23b2a6db192a64589a003d82670347371b1c7 Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Tue, 27 Jun 2023 09:19:49 +0300 Subject: [PATCH] fix: adjust setup.py --- setup.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 5a6ba17..3f7f215 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,22 @@ +from pathlib import Path from setuptools import find_packages from setuptools import setup -with open("README.rst") as myfile: - long_description = myfile.read() + "\n" -with open("CHANGES.rst") as myfile: - long_description += myfile.read() version = "4.0.3.dev0" +long_description = ( + f"{Path('README.rst').read_text()}\n{Path('CHANGES.rst').read_text()}" +) + setup( name="Products.CMFEditions", version=version, description="Versioning for Plone", long_description=long_description, + long_description_content_type="text/x-rst", + # Get more strings from + # https://pypi.org/classifiers/ classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment",