Browse Source

Remove Python crud

This is a DevStack plugin - not a Python package. As such, a lot of the
configuration provide herein can be removed. Do this.

Change-Id: I079b06dc6cb85c73e9309af841e86ec112c79282
Stephen Finucane 1 year ago
parent
commit
4755a273e8
9 changed files with 20 additions and 138 deletions
  1. 14
    11
      README.rst
  2. 0
    2
      babel.cfg
  3. 1
    2
      doc/source/conf.py
  4. 0
    25
      readme.md
  5. 0
    5
      requirements.txt
  6. 0
    47
      setup.cfg
  7. 0
    29
      setup.py
  8. 3
    10
      test-requirements.txt
  9. 2
    7
      tox.ini

+ 14
- 11
README.rst View File

@@ -1,19 +1,22 @@
1
-===============================
2
-devstack-plugin-libvirt-qemu
3
-===============================
1
+============================
2
+DevStack Libvirt QEMU Plugin
3
+============================
4 4
 
5
-OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package.
5
+This project is a plugin for DevStack, which is a set of scripts and utilities
6
+to quickly deploy an OpenStack cloud.
6 7
 
7
-Please fill here a long description which must be at least 3 lines wrapped on
8
-80 cols, so that distribution package maintainers can use it in their packages.
9
-Note that this is a hard requirement.
8
+This DevStack plugin provides the ability to download and compile libvirt and
9
+QEMU from source. It also gives the ability to set an specific Git commit to be
10
+used in the compilation
11
+
12
+For more information, refer to the `DevStack Documentation`__, and the
13
+`libvirt`__ and `QEMU`__ docs.
10 14
 
11 15
 * Free software: Apache license
12 16
 * Documentation: http://docs.openstack.org/developer/devstack-plugin-libvirt-qemu
13 17
 * Source: http://git.openstack.org/cgit/devstack-plugin-libvirt-qemu/devstack-plugin-libvirt-qemu
14 18
 * Bugs: http://bugs.launchpad.net/devstack-plugin-libvirt-qemu
15 19
 
16
-Features
17
---------
18
-
19
-* TODO
20
+__ https://docs.openstack.org/devstack/latest/plugins.html
21
+__ https://libvirt.org/
22
+__ http://www.qemu.org/

+ 0
- 2
babel.cfg View File

@@ -1,2 +0,0 @@
1
-[python: **.py]
2
-

+ 1
- 2
doc/source/conf.py View File

@@ -22,8 +22,7 @@ sys.path.insert(0, os.path.abspath('../..'))
22 22
 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
23 23
 extensions = [
24 24
     'sphinx.ext.autodoc',
25
-    #'sphinx.ext.intersphinx',
26
-    'oslosphinx'
25
+    'openstackdocstheme',
27 26
 ]
28 27
 
29 28
 # autodoc generation is a bit aggressive and a nuisance when doing heavy

+ 0
- 25
readme.md View File

@@ -1,25 +0,0 @@
1
-============================
2
-devstack-plugin-libvirt-qemu
3
-============================
4
-
5
-This project is a set of scripts to be executed along with DevStack. DevStack
6
-is a set of scripts and utilities to quickly deploy an OpenStack cloud.
7
-
8
-This DevStack plugin provides the ability to download from the source and
9
-compile libvirt and QEMU. Also gives the ability to set an specific git commit
10
-to be used in the compilation
11
-
12
-A Collection of Agents and Drivers to support managing DPDK accelerated Open
13
-vSwitch with neutron.
14
-
15
-* Free software: Apache license
16
-* Source: https://github.com/openstack/devstack-plugin-libvirt-qemu
17
-
18
-
19
-The following are links to background information that provide additional
20
-insight into the related programs used in this project:
21
-
22
-* libvirt
23
-  - Official libvirt website: https://github.com/openstack/devstack-plugin-libvirt-qemu
24
-* Qemu:
25
-  - Official QEMU website: http://www.qemu.org/

+ 0
- 5
requirements.txt View File

@@ -1,5 +0,0 @@
1
-# The order of packages is significant, because pip processes them in the order
2
-# of appearance. Changing the order has an impact on the overall integration
3
-# process, which may cause wedges in the gate later.
4
-
5
-pbr>=2.0 # Apache-2.0

+ 0
- 47
setup.cfg View File

@@ -1,47 +0,0 @@
1
-[metadata]
2
-name = devstack-plugin-libvirt-qemu
3
-summary = OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package.
4
-description-file =
5
-    README.rst
6
-author = OpenStack
7
-author-email = openstack-dev@lists.openstack.org
8
-home-page = http://www.openstack.org/
9
-classifier =
10
-    Environment :: OpenStack
11
-    Intended Audience :: Information Technology
12
-    Intended Audience :: System Administrators
13
-    License :: OSI Approved :: Apache Software License
14
-    Operating System :: POSIX :: Linux
15
-    Programming Language :: Python
16
-    Programming Language :: Python :: 2
17
-    Programming Language :: Python :: 2.7
18
-    Programming Language :: Python :: 3
19
-    Programming Language :: Python :: 3.3
20
-    Programming Language :: Python :: 3.4
21
-
22
-[files]
23
-packages =
24
-    devstack_plugin_libvirt_qemu
25
-
26
-[build_sphinx]
27
-all-files = 1
28
-warning-is-error = 1
29
-source-dir = doc/source
30
-build-dir = doc/build
31
-
32
-[upload_sphinx]
33
-upload-dir = doc/build/html
34
-
35
-[compile_catalog]
36
-directory = devstack_plugin_libvirt_qemu/locale
37
-domain = devstack_plugin_libvirt_qemu
38
-
39
-[update_catalog]
40
-domain = devstack_plugin_libvirt_qemu
41
-output_dir = devstack_plugin_libvirt_qemu/locale
42
-input_file = devstack_plugin_libvirt_qemu/locale/devstack_plugin_libvirt_qemu.pot
43
-
44
-[extract_messages]
45
-keywords = _ gettext ngettext l_ lazy_gettext
46
-mapping_file = babel.cfg
47
-output_file = devstack_plugin_libvirt_qemu/locale/devstack_plugin_libvirt_qemu.pot

+ 0
- 29
setup.py View File

@@ -1,29 +0,0 @@
1
-# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
2
-#
3
-# Licensed under the Apache License, Version 2.0 (the "License");
4
-# you may not use this file except in compliance with the License.
5
-# You may obtain a copy of the License at
6
-#
7
-#    http://www.apache.org/licenses/LICENSE-2.0
8
-#
9
-# Unless required by applicable law or agreed to in writing, software
10
-# distributed under the License is distributed on an "AS IS" BASIS,
11
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12
-# implied.
13
-# See the License for the specific language governing permissions and
14
-# limitations under the License.
15
-
16
-# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
17
-import setuptools
18
-
19
-# In python < 2.7.4, a lazy loading of package `pbr` will break
20
-# setuptools if some other modules registered functions in `atexit`.
21
-# solution from: http://bugs.python.org/issue15881#msg170215
22
-try:
23
-    import multiprocessing  # noqa
24
-except ImportError:
25
-    pass
26
-
27
-setuptools.setup(
28
-    setup_requires=['pbr>=2.0'],
29
-    pbr=True)

+ 3
- 10
test-requirements.txt View File

@@ -2,15 +2,8 @@
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4 4
 
5
-hacking>=0.12.0,<0.13 # Apache-2.0
6
-
7
-coverage>=4.0 # Apache-2.0
8
-python-subunit>=0.0.18 # Apache-2.0/BSD
9
-sphinx>=1.5.1,<1.6 # BSD
10
-oslosphinx>=4.7.0 # Apache-2.0
11
-oslotest>=1.10.0 # Apache-2.0
12
-testrepository>=0.0.18  # Apache-2.0/BSD
13
-testtools>=1.4.0 # MIT
5
+openstackdocstheme>=1.16.0 # Apache-2.0
6
+sphinx>=1.6.2 # BSD
14 7
 
15 8
 # releasenotes
16
-reno>=1.8.0 # Apache-2.0
9
+reno>=2.5.0 # Apache-2.0

+ 2
- 7
tox.ini View File

@@ -4,13 +4,10 @@ envlist = bashate
4 4
 skipsdist = True
5 5
 
6 6
 [testenv]
7
-usedevelop = True
8 7
 install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
9 8
 setenv =
10 9
    VIRTUAL_ENV={envdir}
11
-   PYTHONWARNINGS=default::DeprecationWarning
12 10
 deps = -r{toxinidir}/test-requirements.txt
13
-commands = python setup.py test --slowest --testr-args='{posargs}'
14 11
 
15 12
 [testenv:bashate]
16 13
 # if you want to test out some changes you have made to bashate
@@ -39,11 +36,9 @@ commands = bash -c "find {toxinidir}             \
39 36
          -print0 | xargs -0 bashate -v -iE006 -eE005,E042"
40 37
 
41 38
 [testenv:docs]
42
-commands = python setup.py build_sphinx
39
+commands =
40
+  sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
43 41
 
44 42
 [testenv:releasenotes]
45 43
 commands =
46 44
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
47
-
48
-[testenv:debug]
49
-commands = oslo_debug_helper {posargs}

Loading…
Cancel
Save