Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/jsnow-gitlab/tags/python-pull-r…
…equest' into staging Pull request V2: - Squashed in fixup for 'Python: add utility function for retrieving port redirection' - Rebased on today's upstream CI here: https://gitlab.com/jsnow/qemu/-/pipelines/313202814 # gpg: Signature made Wed 02 Jun 2021 00:29:55 BST # gpg: using RSA key F9B7ABDBBCACDF95BE76CBD07DEF8106AAFC390E # gpg: Good signature from "John Snow (John Huston) <jsnow@redhat.com>" [full] # Primary key fingerprint: FAEB 9711 A12C F475 812F 18F2 88A9 064D 1835 61EB # Subkey fingerprint: F9B7 ABDB BCAC DF95 BE76 CBD0 7DEF 8106 AAFC 390E * remotes/jsnow-gitlab/tags/python-pull-request: (44 commits) gitlab: add python linters to CI python: add tox support python: add .gitignore python: add Makefile for some common tasks python: add avocado-framework and tests python: add devel package requirements to setuptools python/qemu: add qemu package itself to pipenv python/qemu: add isort to pipenv python: move .isort.cfg into setup.cfg python: add mypy to pipenv python: move mypy.ini into setup.cfg python: Add flake8 to pipenv python: add excluded dirs to flake8 config python: move flake8 config to setup.cfg python: add pylint to pipenv python: move pylintrc into setup.cfg python: add pylint import exceptions python: Add pipenv support python: add MANIFEST.in python: add directory structure README.rst files ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
- Loading branch information
Showing
48 changed files
with
967 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# linter/tooling cache | ||
.mypy_cache/ | ||
.cache/ | ||
|
||
# python packaging | ||
build/ | ||
dist/ | ||
qemu.egg-info/ | ||
|
||
# editor config | ||
.idea/ | ||
.vscode/ | ||
|
||
# virtual environments (pipenv et al) | ||
.venv/ | ||
.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include VERSION | ||
include PACKAGE.rst | ||
exclude README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.PHONY: help venv venv-check check clean distclean develop | ||
|
||
help: | ||
@echo "python packaging help:" | ||
@echo "" | ||
@echo "make venv: Create pipenv's virtual environment." | ||
@echo " NOTE: Requires Python 3.6 and pipenv." | ||
@echo " Will download packages from PyPI." | ||
@echo " Hint: (On Fedora): 'sudo dnf install python36 pipenv'" | ||
@echo "" | ||
@echo "make venv-check: run linters using pipenv's virtual environment." | ||
@echo " Hint: If you don't know which test to run, run this one!" | ||
@echo "" | ||
@echo "make develop: Install deps for 'make check', and" | ||
@echo " the qemu libs in editable/development mode." | ||
@echo "" | ||
@echo "make check: run linters using the current environment." | ||
@echo "" | ||
@echo "make check-tox: run linters using multiple python versions." | ||
@echo "" | ||
@echo "make clean: remove package build output." | ||
@echo "" | ||
@echo "make distclean: remove venv files, qemu package forwarder," | ||
@echo " built distribution files, and everything" | ||
@echo " from 'make clean'." | ||
|
||
venv: .venv | ||
.venv: Pipfile.lock | ||
@PIPENV_VENV_IN_PROJECT=1 pipenv sync --dev --keep-outdated | ||
@touch .venv | ||
|
||
venv-check: venv | ||
@pipenv run make check | ||
|
||
develop: | ||
pip3 install -e .[devel] | ||
|
||
check: | ||
@avocado --config avocado.cfg run tests/ | ||
|
||
check-tox: | ||
@tox | ||
|
||
clean: | ||
python3 setup.py clean --all | ||
|
||
distclean: clean | ||
rm -rf qemu.egg-info/ .venv/ .tox/ dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
QEMU Python Tooling | ||
=================== | ||
|
||
This package provides QEMU tooling used by the QEMU project to build, | ||
configure, and test QEMU. It is not a fully-fledged SDK and it is subject | ||
to change at any time. | ||
|
||
Usage | ||
----- | ||
|
||
The ``qemu.qmp`` subpackage provides a library for communicating with | ||
QMP servers. The ``qemu.machine`` subpackage offers rudimentary | ||
facilities for launching and managing QEMU processes. Refer to each | ||
package's documentation | ||
(``>>> help(qemu.qmp)``, ``>>> help(qemu.machine)``) | ||
for more information. | ||
|
||
Contributing | ||
------------ | ||
|
||
This package is maintained by John Snow <jsnow@redhat.com> as part of | ||
the QEMU source tree. Contributions are welcome and follow the `QEMU | ||
patch submission process | ||
<https://wiki.qemu.org/Contribute/SubmitAPatch>`_, which involves | ||
sending patches to the QEMU development mailing list. | ||
|
||
John maintains a `GitLab staging branch | ||
<https://gitlab.com/jsnow/qemu/-/tree/python>`_, and there is an | ||
official `GitLab mirror <https://gitlab.com/qemu-project/qemu>`_. | ||
|
||
Please report bugs on the `QEMU issue tracker | ||
<https://gitlab.com/qemu-project/qemu/-/issues>`_ and tag ``@jsnow`` in | ||
the report. | ||
|
||
Optional packages necessary for running code quality analysis for this | ||
package can be installed with the optional dependency group "devel": | ||
``pip install qemu[devel]``. | ||
|
||
``make develop`` can be used to install this package in editable mode | ||
(to the current environment) *and* bring in testing dependencies in one | ||
command. | ||
|
||
``make check`` can be used to run the available tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
qemu = {editable = true, extras = ["devel"], path = "."} | ||
|
||
[packages] | ||
qemu = {editable = true,path = "."} | ||
|
||
[requires] | ||
python_version = "3.6" |
Oops, something went wrong.