Skip to content

Commit

Permalink
Handle long description in setup.cfg
Browse files Browse the repository at this point in the history
Building from source with pip fails because pypi.md is not included in
the sdist archive. Hopefully this fixes it.
  • Loading branch information
khaledhosny committed Nov 5, 2023
1 parent 6d7108d commit 3364703
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')):
Expand All @@ -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="[email protected]",
url="https://github.com/microsoft/DWriteShapePy",
Expand Down

0 comments on commit 3364703

Please sign in to comment.