Skip to content

Commit 101e8f8

Browse files
authored
Merge pull request #4872 from hugovk/add-logo-to-readme
Add Pillow logo to README and PyPI
2 parents 572259b + 2fecde9 commit 101e8f8

File tree

3 files changed

+102
-109
lines changed

3 files changed

+102
-109
lines changed

README.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<p align="center">
2+
<img width="248" height="250" src="https://raw.githubusercontent.com/python-pillow/pillow-logo/master/pillow-logo-248x250.png" alt="Pillow logo">
3+
</p>
4+
5+
# Pillow
6+
7+
## Python Imaging Library (Fork)
8+
9+
Pillow is the friendly PIL fork by [Alex Clark and
10+
Contributors](https://github.com/python-pillow/Pillow/graphs/contributors).
11+
PIL is the Python Imaging Library by Fredrik Lundh and Contributors.
12+
As of 2019, Pillow development is
13+
[supported by Tidelift](https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=readme&utm_campaign=enterprise).
14+
15+
<table>
16+
<tr>
17+
<th>docs</th>
18+
<td>
19+
<a href="https://pillow.readthedocs.io/?badge=latest"><img
20+
alt="Documentation Status"
21+
src="https://readthedocs.org/projects/pillow/badge/?version=latest"></a>
22+
</td>
23+
</tr>
24+
<tr>
25+
<th>tests</th>
26+
<td>
27+
<a href="https://travis-ci.org/python-pillow/Pillow"><img
28+
alt="Travis CI build status (Linux)"
29+
src="https://img.shields.io/travis/python-pillow/Pillow/master.svg?label=Linux%20build"></a>
30+
<a href="https://travis-ci.org/python-pillow/pillow-wheels"><img
31+
alt="Travis CI build status (macOS)"
32+
src="https://img.shields.io/travis/python-pillow/pillow-wheels/master.svg?label=macOS%20build"></a>
33+
<a href="https://ci.appveyor.com/project/python-pillow/Pillow"><img
34+
alt="AppVeyor CI build status (Windows)"
35+
src="https://img.shields.io/appveyor/build/python-pillow/Pillow/master.svg?label=Windows%20build"></a>
36+
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3ALint"><img
37+
alt="GitHub Actions build status (Lint)"
38+
src="https://github.com/python-pillow/Pillow/workflows/Lint/badge.svg"></a>
39+
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3ATest"><img
40+
alt="GitHub Actions build status (Test Linux and macOS)"
41+
src="https://github.com/python-pillow/Pillow/workflows/Test/badge.svg"></a>
42+
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3A%22Test+Windows%22"><img
43+
alt="GitHub Actions build status (Test Windows)"
44+
src="https://github.com/python-pillow/Pillow/workflows/Test%20Windows/badge.svg"></a>
45+
<a href="https://github.com/python-pillow/Pillow/actions?query=workflow%3A%22Test+Docker%22"><img
46+
alt="GitHub Actions build status (Test Docker)"
47+
src="https://github.com/python-pillow/Pillow/workflows/Test%20Docker/badge.svg"></a>
48+
<a href="https://codecov.io/gh/python-pillow/Pillow"><img
49+
alt="Code coverage"
50+
src="https://codecov.io/gh/python-pillow/Pillow/branch/master/graph/badge.svg"></a>
51+
</td>
52+
</tr>
53+
<tr>
54+
<th>package</th>
55+
<td>
56+
<a href="https://zenodo.org/badge/latestdoi/17549/python-pillow/Pillow"><img
57+
alt="Zenodo"
58+
src="https://zenodo.org/badge/17549/python-pillow/Pillow.svg"></a>
59+
<a href="https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=badge"><img
60+
alt="Tidelift"
61+
src="https://tidelift.com/badges/package/pypi/Pillow?style=flat"></a>
62+
<a href="https://pypi.org/project/Pillow/"><img
63+
alt="Newest PyPI version"
64+
src="https://img.shields.io/pypi/v/pillow.svg"></a>
65+
<a href="https://pypi.org/project/Pillow/"><img
66+
alt="Number of PyPI downloads"
67+
src="https://img.shields.io/pypi/dm/pillow.svg"></a>
68+
</td>
69+
</tr>
70+
<tr>
71+
<th>social</th>
72+
<td>
73+
<a href="https://gitter.im/python-pillow/Pillow?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"><img
74+
alt="Join the chat at https://gitter.im/python-pillow/Pillow"
75+
src="https://badges.gitter.im/python-pillow/Pillow.svg"></a>
76+
<a href="https://twitter.com/PythonPillow"><img
77+
alt="Follow on https://twitter.com/PythonPillow"
78+
src="https://img.shields.io/badge/tweet-on%20Twitter-00aced.svg"></a>
79+
</td>
80+
</tr>
81+
</table>
82+
83+
## More Information
84+
85+
- [Documentation](https://pillow.readthedocs.io/)
86+
- [Installation](https://pillow.readthedocs.io/en/latest/installation.html)
87+
- [Handbook](https://pillow.readthedocs.io/en/latest/handbook/index.html)
88+
- [Contribute](https://github.com/python-pillow/Pillow/blob/master/.github/CONTRIBUTING.md)
89+
- [Issues](https://github.com/python-pillow/Pillow/issues)
90+
- [Pull requests](https://github.com/python-pillow/Pillow/pulls)
91+
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
92+
- [Pre-fork](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst#pre-fork)
93+
94+
## Report a Vulnerability
95+
96+
To report a security vulnerability, please follow the procedure described in the [Tidelift security policy](https://tidelift.com/docs/security).

README.rst

Lines changed: 0 additions & 103 deletions
This file was deleted.

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,6 @@ def _cmd_exists(cmd):
243243
)
244244

245245

246-
def _read(file):
247-
with open(file, "rb") as fp:
248-
return fp.read()
249-
250-
251246
def _pkg_config(name):
252247
try:
253248
command = os.environ.get("PKG_CONFIG", "pkg-config")
@@ -861,12 +856,17 @@ def debug_build():
861856
Extension("PIL._imagingmath", ["src/_imagingmath.c"]),
862857
Extension("PIL._imagingmorph", ["src/_imagingmorph.c"]),
863858
]
859+
860+
with open("README.md") as f:
861+
long_description = f.read()
862+
864863
try:
865864
setup(
866865
name=NAME,
867866
version=PILLOW_VERSION,
868867
description="Python Imaging Library (Fork)",
869-
long_description=_read("README.rst").decode("utf-8"),
868+
long_description=long_description,
869+
long_description_content_type="text/markdown",
870870
license="HPND",
871871
author="Alex Clark (PIL Fork Author)",
872872
author_email="[email protected]",

0 commit comments

Comments
 (0)