[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 26/44] python: add MANIFEST.in
From: |
John Snow |
Subject: |
[PULL 26/44] python: add MANIFEST.in |
Date: |
Thu, 27 May 2021 22:32:02 -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 <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-14-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
---
python/README.rst | 2 ++
python/MANIFEST.in | 3 +++
2 files changed, 5 insertions(+)
create mode 100644 python/MANIFEST.in
diff --git a/python/README.rst b/python/README.rst
index 38b0c83f321..0099646ae2f 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..7059ad28221
--- /dev/null
+++ b/python/MANIFEST.in
@@ -0,0 +1,3 @@
+include VERSION
+include PACKAGE.rst
+exclude README.rst
--
2.31.1
- [PULL 14/44] python/console_socket: avoid one-letter variable, (continued)
- [PULL 14/44] python/console_socket: avoid one-letter variable, John Snow, 2021/05/27
- [PULL 15/44] python/machine: use subprocess.DEVNULL instead of open(os.path.devnull), John Snow, 2021/05/27
- [PULL 16/44] python/machine: use subprocess.run instead of subprocess.Popen, John Snow, 2021/05/27
- [PULL 17/44] python/console_socket: Add a pylint ignore, John Snow, 2021/05/27
- [PULL 18/44] python/machine: Disable pylint warning for open() in _pre_launch, John Snow, 2021/05/27
- [PULL 21/44] iotests/297: add --namespace-packages to mypy arguments, John Snow, 2021/05/27
- [PULL 19/44] python/machine: disable warning for Popen in _launch(), John Snow, 2021/05/27
- [PULL 20/44] python/machine: Trim line length to below 80 chars, John Snow, 2021/05/27
- [PULL 22/44] python: create qemu packages, John Snow, 2021/05/27
- [PULL 23/44] python: add qemu package installer, John Snow, 2021/05/27
- [PULL 26/44] python: add MANIFEST.in,
John Snow <=
- [PULL 25/44] python: add directory structure README.rst files, John Snow, 2021/05/27
- [PULL 24/44] python: add VERSION file, John Snow, 2021/05/27
- [PULL 28/44] python: add pylint import exceptions, John Snow, 2021/05/27
- [PULL 27/44] python: Add pipenv support, John Snow, 2021/05/27
- [PULL 29/44] python: move pylintrc into setup.cfg, John Snow, 2021/05/27
- [PULL 30/44] python: add pylint to pipenv, John Snow, 2021/05/27
- [PULL 32/44] python: add excluded dirs to flake8 config, John Snow, 2021/05/27
- [PULL 31/44] python: move flake8 config to setup.cfg, John Snow, 2021/05/27
- [PULL 34/44] python: move mypy.ini into setup.cfg, John Snow, 2021/05/27
- [PULL 33/44] python: Add flake8 to pipenv, John Snow, 2021/05/27