When creating a source distribution via 'python3 setup.py sdist', the VERSION and PACKAGE.rst files aren't bundled by default. Create a MANIFEST.in file that instructs the build tools to include these so that installation from source dists won't fail.
(This invocation is required by 'tox', as well as by the tooling needed to upload packages to PyPI.) Signed-off-by: John Snow <js...@redhat.com> --- python/README.rst | 2 ++ python/MANIFEST.in | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 python/MANIFEST.in diff --git a/python/README.rst b/python/README.rst index 7a0dc5dff4a..86364367261 100644 --- a/python/README.rst +++ b/python/README.rst @@ -33,6 +33,8 @@ Files in this directory ----------------------- - ``qemu/`` Python package source directory. +- ``MANIFEST.in`` is read by python setuptools, it specifies additional files + that should be included by a source distribution. - ``PACKAGE.rst`` is used as the README file that is visible on PyPI.org. - ``README.rst`` you are here! - ``VERSION`` contains the PEP-440 compliant version used to describe diff --git a/python/MANIFEST.in b/python/MANIFEST.in new file mode 100644 index 00000000000..2b1ee8b4e72 --- /dev/null +++ b/python/MANIFEST.in @@ -0,0 +1,2 @@ +include VERSION +include PACKAGE.rst \ No newline at end of file -- 2.30.2