Skip to content

Commit e9fd821

Browse files
authored
Merge pull request #6 from khaledhosny/sdist-pypi.md
Handle long description in setup.cfg
2 parents 8d075f8 + 3364703 commit e9fd821

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
formats = zip
33

44
[metadata]
5+
long_description = file: pypi.md
6+
long_description_content_type = text/markdown
57
license_files =
68
LICENSE.txt
79
src/NOTICE.txt

setup.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
here = os.path.abspath(os.path.dirname(__file__))
1010

11-
# Get the long description from the pypi.md file
12-
with open(os.path.join(here, 'pypi.md'), encoding='utf-8') as f:
13-
long_description = f.read()
14-
1511
define_macros = [('UNICODE', 1), ('_UNICODE', 1)]
1612
linetrace = False
1713
if int(os.environ.get('CYTHON_LINETRACE', '0')):
@@ -37,8 +33,6 @@
3733
name="dwriteshapepy",
3834
version= '1.0.7',
3935
description="Python extension for Windows DirectWrite shaping, modeled after uharfbuzz ",
40-
long_description=long_description,
41-
long_description_content_type='text/markdown',
4236
author="Paul Linnerud",
4337
author_email="paulli@microsoft.com",
4438
url="https://github.com/microsoft/DWriteShapePy",

0 commit comments

Comments
 (0)