Skip to content

Commit 9dd96e8

Browse files
committed
Update setup.py to use README for long_description
1 parent ab5c5c4 commit 9dd96e8

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ The aggdraw module
77

88
A high-quality graphics engine for PIL, based on Maxim Shemanarev's
99
Anti-Grain Geometry library (from http://antigrain.com).
10+
The aggdraw module implements the basic WCK 2D Drawing Interface on
11+
top of the AGG library. This library provides high-quality drawing,
12+
with anti-aliasing and alpha compositing, while being fully compatible
13+
with the WCK renderer.
1014

1115
The necessary AGG sources are included in the aggdraw source kit.
1216

setup.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@
2424
VERSION = "1.4.0"
2525

2626
SUMMARY = "High quality drawing interface for PIL."
27-
28-
DESCRIPTION = """\
29-
30-
The aggdraw module implements the basic WCK 2D Drawing Interface on
31-
top of the AGG library. This library provides high-quality drawing,
32-
with anti-aliasing and alpha compositing, while being fully compatible
33-
with the WCK renderer.
34-
35-
"""
27+
README = open("README.rst", "r").read()
3628

3729

3830
def is_platform_mac():
@@ -159,9 +151,10 @@ def _get_freetype_with_pkgconfig():
159151
"Programming Language :: Python :: Free Threading :: 1 - Unstable",
160152
],
161153
description=SUMMARY,
154+
long_description=README,
155+
long_description_content_type="text/x-rst",
162156
download_url="http://www.effbot.org/downloads#aggdraw",
163157
license="Python (MIT style)",
164-
long_description=DESCRIPTION.strip(),
165158
url="https://github.com/pytroll/aggdraw",
166159
ext_modules=[
167160
Extension("aggdraw", ["aggdraw.cxx"] + sources,

0 commit comments

Comments
 (0)