[ovs-dev] [PATCH python3 0/4] Remove Python 2 support

Ben Pfaff blp at ovn.org
Wed Sep 18 15:47:51 UTC 2019


Python 2 will reach end-of-life at the beginning of 2020, in only
a few months.  This series removes support for Python 2 from OVS
and requires Python 3.

This is currently building on Travis:
https://travis-ci.org/blp/ovs-reviews/builds/586655314

Ben Pfaff (4):
  Documentation: Work with sphinx-build for Python 3 also.
  Recommend Sphinx from Python 3 in documentation and packaging.
  xenserver: Make Python files parse in Python 3 also.
  Require Python 3 and remove support for Python 2.

 .cirrus.yml                                   |   3 +-
 .travis.yml                                   |   2 +-
 Documentation/automake.mk                     |   1 -
 Documentation/intro/install/documentation.rst |   6 +-
 Documentation/intro/install/fedora.rst        |   4 +-
 Documentation/intro/install/general.rst       |   8 +-
 Documentation/intro/install/netbsd.rst        |  10 +-
 Documentation/intro/install/rhel.rst          |   4 +-
 Documentation/intro/install/windows.rst       |   4 +-
 Documentation/intro/install/xenserver.rst     |   4 +-
 Makefile.am                                   |  12 +-
 Vagrantfile                                   |  24 +-
 Vagrantfile-FreeBSD                           |   2 +-
 appveyor.yml                                  |   2 +-
 build-aux/check-structs                       |   2 +-
 build-aux/dpdkstrip.py                        |   2 +-
 build-aux/extract-ofp-actions                 |   2 +-
 build-aux/extract-ofp-errors                  |   2 +-
 build-aux/extract-ofp-fields                  |   2 +-
 build-aux/extract-ofp-msgs                    |   2 +-
 build-aux/sodepends.py                        |   2 +-
 build-aux/soexpand.py                         |   2 +-
 build-aux/text2c                              |   2 +-
 build-aux/xml2nroff                           |   2 +-
 configure.ac                                  |   3 +-
 debian/.gitignore                             |   1 +
 debian/automake.mk                            |   4 +-
 debian/control                                |  35 +-
 debian/openvswitch-test.install               |   2 +-
 debian/python-openvswitch.install             |   1 -
 ...nvswitch.dirs => python3-openvswitch.dirs} |   0
 debian/python3-openvswitch.install            |   1 +
 debian/rules                                  |   2 +-
 include/openflow/automake.mk                  |   2 -
 m4/openvswitch.m4                             | 112 +----
 manpages.mk                                   |   6 -
 ovn/automake.mk                               |   8 +-
 python/automake.mk                            |   9 +-
 rhel/openvswitch-fedora.spec.in               |   2 +-
 rhel/openvswitch.spec.in                      |   2 +-
 tests/atlocal.in                              |  42 +-
 tests/automake.mk                             |   2 +-
 tests/check-structs.at                        |   3 +-
 tests/checkpatch.at                           |  17 +-
 tests/daemon-py.at                            | 453 ++++++++----------
 tests/flowgen.py                              |   2 +-
 tests/interface-reconfigure.at                |   2 +-
 tests/json.at                                 |  57 +--
 tests/jsonrpc-py.at                           |  67 +--
 tests/library.at                              |  42 +-
 tests/ofproto-dpif.at                         |  10 +-
 tests/ofproto.at                              |   4 +-
 tests/ovs-macros.at                           |   2 +-
 tests/ovs-xapi-sync.at                        |   3 +-
 tests/ovsdb-data.at                           |   9 +-
 tests/ovsdb-idl.at                            | 188 ++------
 tests/ovsdb-macros.at                         |  52 +-
 tests/ovsdb-monitor.at                        |  20 +-
 tests/reconnect.at                            |  13 +-
 tests/system-common-macros.at                 |   2 +-
 tests/system-kmod-macros.at                   |   3 +-
 tests/system-traffic.at                       |  16 +-
 tests/system-userspace-macros.at              |   4 +-
 tests/unixctl-py.at                           | 208 ++++----
 tests/vlog.at                                 | 219 ++++-----
 utilities/automake.mk                         |   5 +-
 utilities/bugtool/automake.mk                 |   2 -
 utilities/checkpatch.py                       |   2 +-
 vswitchd/automake.mk                          |   4 +-
 vtep/automake.mk                              |   4 +-
 ...urce_libexec_InterfaceReconfigureBridge.py |  10 +-
 ...xsconsole_plugins-base_XSFeatureVSwitch.py |  14 +-
 72 files changed, 654 insertions(+), 1123 deletions(-)
 delete mode 100644 debian/python-openvswitch.install
 rename debian/{python-openvswitch.dirs => python3-openvswitch.dirs} (100%)
 create mode 100644 debian/python3-openvswitch.install

-- 
2.21.0



More information about the dev mailing list