Skip to content

Commit 62cfa1a

Browse files
committed
added logo to readme and changed contrib link to contribute page
updated project urls + longdescription to readme composed images from front page into one image for readme Updated readme for PyPa: * Updated language to match copy on https://matplotlib.org/devdocs/ * Added logo + front page images * removed link to developer notes since ended up not using that * removed link to gitwash generated docs since they're not very good * used python -mpytest language since it's more robust * updated testing link and shortened to one option * moved contact down 'cause on pypa that information is in the sidebar & for other folks reading the readme they're probably looking for contributions Co-Authored-By: Thomas A Caswell <tcaswell@gmail.com> updated classifiers+ changed discourse to forum
1 parent 12f2624 commit 62cfa1a

File tree

4 files changed

+36
-46
lines changed

4 files changed

+36
-46
lines changed

.github/CONTRIBUTING.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Please refer to the [Coding
2-
Guidelines](http://matplotlib.org/devel/coding_guide.html).
1+
Please refer to the [developers guide](https://matplotlib.org/devel/index.html).

README.rst

+24-36
Original file line numberDiff line numberDiff line change
@@ -40,46 +40,45 @@
4040
.. |NUMFocus| image:: https://img.shields.io/badge/powered%20by-NumFOCUS-orange.svg?style=flat&colorA=E1523D&colorB=007D8A
4141
.. _NUMFocus: http://www.numfocus.org
4242

43+
.. image:: doc/_static/logo2.png
4344

44-
##########
45-
Matplotlib
46-
##########
45+
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python.
4746

48-
Matplotlib is a Python 2D plotting library which produces publication-quality
49-
figures in a variety of hardcopy formats and interactive environments across
50-
platforms. Matplotlib can be used in Python scripts, the Python and IPython
51-
shell (à la MATLAB or Mathematica), web application servers, and various
52-
graphical user interface toolkits.
47+
Check out our `home page <http://matplotlib.org/>`_ for more information.
48+
49+
.. image:: doc/_static/readme_preview.png
5350

54-
NOTE: The current master branch is now Python 3 only. Python 2 support is
55-
being dropped.
51+
Matplotlib produces publication-quality figures in a variety of hardcopy formats
52+
and interactive environments across platforms. Matplotlib can be used in Python scripts,
53+
the Python and IPython shell, web application servers, and various
54+
graphical user interface toolkits.
5655

57-
`Home page <http://matplotlib.org/>`_
56+
**Note:** The master branch is Python 3 only. Python 2 support has been dropped.
5857

5958
Install
6059
=======
6160

62-
For installation instructions and requirements, see the INSTALL.rst file or the
63-
`install <http://matplotlib.org/users/installing.html>`_ documentation. If you
64-
think you may want to contribute to matplotlib, check out the `guide to
65-
working with the source code
66-
<http://matplotlib.org/devel/gitwash/index.html>`_.
61+
For installation instructions and requirements, see `INSTALL.rst <INSTALL.rst>`_ or the
62+
`install <http://matplotlib.org/users/installing.html>`_ documentation.
6763

6864
Test
6965
====
7066

71-
After installation, you can launch the test suite::
67+
After installation, launch the test suite::
7268

73-
pytest
69+
python -mpytest
70+
71+
Read the `testing guide <https://matplotlib.org/devel/testing.html>`_ for more information and alternatives.
72+
73+
Contribute
74+
==========
75+
You've discovered a bug or something else you want to change - excellent!
7476

75-
Or from the Python interpreter::
77+
You've worked out a way to fix it – even better!
7678

77-
import matplotlib
78-
matplotlib.test()
79+
You want to tell us about it – best of all!
7980

80-
Consider reading http://matplotlib.org/devel/coding_guide.html#testing for more
81-
information. Note that the test suite requires pytest. Please install with pip
82-
or your package manager of choice.
81+
Start at the `contributing guide <http://matplotlib.org/devdocs/devel/contributing.html>`_!
8382

8483
Contact
8584
=======
@@ -91,24 +90,13 @@ Our active mailing lists (which are mirrored on Discourse) are:
9190
* `Announcement <https://mail.python.org/mailman/listinfo/matplotlib-announce>`_ mailing list: matplotlib-announce@python.org
9291
* `Development <https://mail.python.org/mailman/listinfo/matplotlib-devel>`_ mailing list: matplotlib-devel@python.org
9392

94-
9593
Gitter_ is for coordinating development and asking questions directly related
9694
to contributing to matplotlib.
9795

98-
Contribute
99-
==========
100-
You've discovered a bug or something else you want to change - excellent!
101-
102-
You've worked out a way to fix it – even better!
103-
104-
You want to tell us about it – best of all!
105-
106-
Start at the `contributing guide <http://matplotlib.org/devdocs/devel/contributing.html>`_!
107-
108-
Developer notes are now at `Developer Discussions <https://github.com/orgs/matplotlib/teams/developers/discussions>`_ (Note: For technical reasons, this is currently only accessible for matplotlib developers.)
10996

11097
Citing Matplotlib
11198
=================
11299
If Matplotlib contributes to a project that leads to publication, please
113100
acknowledge this by citing Matplotlib.
101+
114102
`A ready-made citation entry <https://matplotlib.org/citing.html>`_ is available.

doc/_static/readme_preview.png

66.5 KB
Loading

setup.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
classifiers = [
7777
'Development Status :: 5 - Production/Stable',
7878
'Intended Audience :: Science/Research',
79+
'Intended Audience :: Education',
7980
'License :: OSI Approved :: Python Software Foundation License',
8081
'Programming Language :: Python',
8182
'Programming Language :: Python :: 3',
@@ -221,6 +222,10 @@ def run(self):
221222
with open('lib/matplotlib/mpl-data/matplotlibrc', 'w') as fd:
222223
fd.write(''.join(template_lines))
223224

225+
# Use Readme as long description
226+
with open('README.rst') as fd:
227+
long_description = fd.read()
228+
224229
# Finally, pass this all along to distutils to do the heavy lifting.
225230
setup(
226231
name="matplotlib",
@@ -231,16 +236,14 @@ def run(self):
231236
url="https://matplotlib.org",
232237
download_url="https://matplotlib.org/users/installing.html",
233238
project_urls={
239+
'Documentation': 'https://matplotlib.org',
240+
'Source Code': 'https://github.com/matplotlib/matplotlib',
234241
'Bug Tracker': 'https://github.com/matplotlib/matplotlib/issues',
235-
'Documentation': 'https://matplotlib.org/contents.html',
236-
'Source Code': 'https://github.com/matplotlib/matplotlib'
242+
'Forum': 'https://discourse.matplotlib.org/',
243+
'Donate': 'https://numfocus.org/donate-to-matplotlib'
237244
},
238-
long_description="""
239-
Matplotlib strives to produce publication quality 2D graphics
240-
for interactive graphing, scientific publishing, user interface
241-
development and web application servers targeting multiple user
242-
interfaces and hardcopy output formats.
243-
""",
245+
long_description=long_description,
246+
long_description_content_type="text/x-rst",
244247
license="PSF",
245248
platforms="any",
246249
package_dir={"": "lib"},

0 commit comments

Comments
 (0)