diff options
| -rw-r--r-- | .github/workflows/wheels.yml | 6 | ||||
| -rwxr-xr-x | setup.py | 32 |
2 files changed, 13 insertions, 25 deletions
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index cc0730a4e..48acb4eb5 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -184,6 +184,12 @@ jobs: pip install -r test_requirements.txt cd .. # Can't import numpy within numpy src directory python -c "import numpy; print(numpy.__version__); numpy.test();" + + - name: Check README rendering for PyPI + run: | + python -mpip install twine + twine check dist/* + - uses: actions/upload-artifact@v3 with: name: sdist @@ -1,30 +1,11 @@ #!/usr/bin/env python3 -""" NumPy is the fundamental package for array computing with Python. - -It provides: - -- a powerful N-dimensional array object -- sophisticated (broadcasting) functions -- tools for integrating C/C++ and Fortran code -- useful linear algebra, Fourier transform, and random number capabilities -- and much more - -Besides its obvious scientific uses, NumPy can also be used as an efficient -multi-dimensional container of generic data. Arbitrary data-types can be -defined. This allows NumPy to seamlessly and speedily integrate with a wide -variety of databases. - -All NumPy wheels distributed on PyPI are BSD licensed. - -NumPy requires ``pytest`` and ``hypothesis``. Tests can then be run after -installation with:: - - python -c 'import numpy; numpy.test()' - """ -DOCLINES = (__doc__ or '').split("\n") +Numpy build options can be modified with a site.cfg file. +See site.cfg.example for a template and more information. +""" import os +from pathlib import Path import sys import subprocess import textwrap @@ -434,8 +415,9 @@ def setup_package(): name='numpy', maintainer="NumPy Developers", maintainer_email="numpy-discussion@python.org", - description=DOCLINES[0], - long_description="\n".join(DOCLINES[2:]), + description="Fundamental package for array computing in Python", + long_description=Path("README.md").read_text(encoding="utf-8"), + long_description_content_type="text/markdown", url="https://www.numpy.org", author="Travis E. Oliphant et al.", download_url="https://pypi.python.org/pypi/numpy", |
