[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 07/25] python: add MANIFEST.in
From: |
John Snow |
Subject: |
[PATCH v6 07/25] python: add MANIFEST.in |
Date: |
Wed, 12 May 2021 19:12:23 -0400 |
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 <jsnow@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
- Re: [PATCH v6 02/25] python: create qemu packages, (continued)
- [PATCH v6 03/25] python: create utils sub-package, John Snow, 2021/05/12
- [PATCH v6 04/25] python: add qemu package installer, John Snow, 2021/05/12
- [PATCH v6 05/25] python: add VERSION file, John Snow, 2021/05/12
- [PATCH v6 07/25] python: add MANIFEST.in,
John Snow <=
- [PATCH v6 10/25] python: move pylintrc into setup.cfg, John Snow, 2021/05/12
- [PATCH v6 08/25] python: Add pipenv support, John Snow, 2021/05/12
- [PATCH v6 09/25] python: add pylint import exceptions, John Snow, 2021/05/12
- [PATCH v6 06/25] python: add directory structure README.rst files, John Snow, 2021/05/12
- [PATCH v6 12/25] python: move flake8 config to setup.cfg, John Snow, 2021/05/12