Skip to content

Commit

Permalink
Merge pull request #6 from khaledhosny/sdist-pypi.md
Browse files Browse the repository at this point in the history
Handle long description in setup.cfg
  • Loading branch information
paullinnerud authored Nov 9, 2023
2 parents 8d075f8 + 3364703 commit e9fd821
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 e9fd821

Please sign in to comment.