]> Git Repo - qemu.git/commitdiff
python: add MANIFEST.in
authorJohn Snow <[email protected]>
Thu, 27 May 2021 21:16:57 +0000 (17:16 -0400)
committerJohn Snow <[email protected]>
Tue, 1 Jun 2021 20:21:21 +0000 (16:21 -0400)
When creating a source or binary distribution via 'python3 setup.py
<sdist|bdist>', 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 these files won't fail.

This is required by 'tox', as well as by the tooling needed to upload
packages to PyPI.

Exclude the 'README.rst' file -- that's intended as a guidebook to our
source tree, not a file that needs to be distributed.

Signed-off-by: John Snow <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Cleber Rosa <[email protected]>
Message-id: 20210527211715[email protected]
Signed-off-by: John Snow <[email protected]>
python/MANIFEST.in [new file with mode: 0644]
python/README.rst

diff --git a/python/MANIFEST.in b/python/MANIFEST.in
new file mode 100644 (file)
index 0000000..7059ad2
--- /dev/null
@@ -0,0 +1,3 @@
+include VERSION
+include PACKAGE.rst
+exclude README.rst
index 38b0c83f32154ee6dc8cfda928705323b6919796..0099646ae2f14729d52ef6806344cedb73504119 100644 (file)
@@ -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
This page took 0.033009 seconds and 4 git commands to generate.