From 33647038db71be84279bb389ba5a7c8f0bf28223 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 5 Nov 2023 01:52:52 +0200 Subject: [PATCH] Handle long description in setup.cfg Building from source with pip fails because pypi.md is not included in the sdist archive. Hopefully this fixes it. --- setup.cfg | 2 ++ setup.py | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/setup.cfg b/setup.cfg index 7018ce7..537541c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,6 +2,8 @@ formats = zip [metadata] +long_description = file: pypi.md +long_description_content_type = text/markdown license_files = LICENSE.txt src/NOTICE.txt diff --git a/setup.py b/setup.py index f3c4795..deabeb0 100644 --- a/setup.py +++ b/setup.py @@ -8,10 +8,6 @@ here = os.path.abspath(os.path.dirname(__file__)) -# Get the long description from the pypi.md file -with open(os.path.join(here, 'pypi.md'), encoding='utf-8') as f: - long_description = f.read() - define_macros = [('UNICODE', 1), ('_UNICODE', 1)] linetrace = False if int(os.environ.get('CYTHON_LINETRACE', '0')): @@ -37,8 +33,6 @@ name="dwriteshapepy", version= '1.0.7', description="Python extension for Windows DirectWrite shaping, modeled after uharfbuzz ", - long_description=long_description, - long_description_content_type='text/markdown', author="Paul Linnerud", author_email="paulli@microsoft.com", url="https://github.com/microsoft/DWriteShapePy",