Browse Source

Initial commit from github (squashed)

These were the commits from github repo(s)

  84d943e Initial commit
  3d15bd1 Created the pecan project for containers for API
  b49297b Added rest functionality to the v2 apis
  227e1dd Added rest functionality to the v2 apis
  39500ae Added the base API call like POST, GET, PUT & DELETE.
  e404e94 adding wsme support to pecan
  f90f540 Added wsme support to the magnum apis
  c879329 added changes to api
  24ebc32 Fixed the bugs in the container apis
  01725ef Rename dir from containers to magnum
  1a1375a Add requirements and test-requirements
  f957e2e Add ASL2.0 license
  8f4c0ee Move tests to the proper location
  48dd100 Move setup files to proper directory
  86cc435 Fix the setup so the installation is sanitary
  b766d59 Make the installation and tox testing work
  c477236 This is a new project - start with v1 for api
  cf20cac Remove pep8 errors
  d23b325 Merge with code generated using OpenStack cookie-cutter
  b6b9f34 Ability to run pecan serve from command line

Had to update requirements.txt to get jobs working

Change-Id: I068389412d023c258bda40dfbdff5a40f2e7d175
Co-Authored-By: Digambar Patil <digambarpat@gmail.com>
Co-Authored-By: Steven Dake <sdake@redhat.com>
tags/m1
digambar 5 years ago
parent
commit
9bd22e2c77

+ 7
- 0
.coveragerc View File

@@ -0,0 +1,7 @@
1
+[run]
2
+branch = True
3
+source = magnum
4
+omit = magnum/tests/*,magnum/openstack/*
5
+
6
+[report]
7
+ignore-errors = True

+ 53
- 0
.gitignore View File

@@ -0,0 +1,53 @@
1
+*.py[cod]
2
+
3
+# C extensions
4
+*.so
5
+
6
+# Packages
7
+*.egg
8
+*.egg-info
9
+dist
10
+build
11
+eggs
12
+parts
13
+bin
14
+var
15
+sdist
16
+develop-eggs
17
+.installed.cfg
18
+lib
19
+lib64
20
+
21
+# Installer logs
22
+pip-log.txt
23
+
24
+# Unit test / coverage reports
25
+.coverage
26
+.tox
27
+nosetests.xml
28
+.testrepository
29
+.venv
30
+
31
+# Translations
32
+*.mo
33
+
34
+# Mr Developer
35
+.mr.developer.cfg
36
+.project
37
+.pydevproject
38
+
39
+# Complexity
40
+output/*.html
41
+output/*/index.html
42
+
43
+# Sphinx
44
+doc/build
45
+
46
+# pbr generates these
47
+AUTHORS
48
+ChangeLog
49
+
50
+# Editors
51
+*~
52
+.*.swp
53
+.*sw?

+ 3
- 0
.mailmap View File

@@ -0,0 +1,3 @@
1
+# Format is:
2
+# <preferred e-mail> <other e-mail 1>
3
+# <preferred e-mail> <other e-mail 2>

+ 7
- 0
.testr.conf View File

@@ -0,0 +1,7 @@
1
+[DEFAULT]
2
+test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
3
+             OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
4
+             OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
5
+             ${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
6
+test_id_option=--load-list $IDFILE
7
+test_list_option=--list

+ 17
- 0
CONTRIBUTING.rst View File

@@ -0,0 +1,17 @@
1
+If you would like to contribute to the development of OpenStack,
2
+you must follow the steps in the "If you're a developer, start here"
3
+section of this page:
4
+
5
+   http://wiki.openstack.org/HowToContribute
6
+
7
+Once those steps have been completed, changes to OpenStack
8
+should be submitted for review via the Gerrit tool, following
9
+the workflow documented at:
10
+
11
+   http://wiki.openstack.org/GerritWorkflow
12
+
13
+Pull requests submitted through GitHub will be ignored.
14
+
15
+Bugs should be filed on Launchpad, not GitHub:
16
+
17
+   https://bugs.launchpad.net/magnum

+ 4
- 0
HACKING.rst View File

@@ -0,0 +1,4 @@
1
+magnum Style Commandments
2
+===============================================
3
+
4
+Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/

+ 176
- 0
LICENSE View File

@@ -0,0 +1,176 @@
1
+
2
+                                 Apache License
3
+                           Version 2.0, January 2004
4
+                        http://www.apache.org/licenses/
5
+
6
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+   1. Definitions.
9
+
10
+      "License" shall mean the terms and conditions for use, reproduction,
11
+      and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+      "Licensor" shall mean the copyright owner or entity authorized by
14
+      the copyright owner that is granting the License.
15
+
16
+      "Legal Entity" shall mean the union of the acting entity and all
17
+      other entities that control, are controlled by, or are under common
18
+      control with that entity. For the purposes of this definition,
19
+      "control" means (i) the power, direct or indirect, to cause the
20
+      direction or management of such entity, whether by contract or
21
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+      outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+      "You" (or "Your") shall mean an individual or Legal Entity
25
+      exercising permissions granted by this License.
26
+
27
+      "Source" form shall mean the preferred form for making modifications,
28
+      including but not limited to software source code, documentation
29
+      source, and configuration files.
30
+
31
+      "Object" form shall mean any form resulting from mechanical
32
+      transformation or translation of a Source form, including but
33
+      not limited to compiled object code, generated documentation,
34
+      and conversions to other media types.
35
+
36
+      "Work" shall mean the work of authorship, whether in Source or
37
+      Object form, made available under the License, as indicated by a
38
+      copyright notice that is included in or attached to the work
39
+      (an example is provided in the Appendix below).
40
+
41
+      "Derivative Works" shall mean any work, whether in Source or Object
42
+      form, that is based on (or derived from) the Work and for which the
43
+      editorial revisions, annotations, elaborations, or other modifications
44
+      represent, as a whole, an original work of authorship. For the purposes
45
+      of this License, Derivative Works shall not include works that remain
46
+      separable from, or merely link (or bind by name) to the interfaces of,
47
+      the Work and Derivative Works thereof.
48
+
49
+      "Contribution" shall mean any work of authorship, including
50
+      the original version of the Work and any modifications or additions
51
+      to that Work or Derivative Works thereof, that is intentionally
52
+      submitted to Licensor for inclusion in the Work by the copyright owner
53
+      or by an individual or Legal Entity authorized to submit on behalf of
54
+      the copyright owner. For the purposes of this definition, "submitted"
55
+      means any form of electronic, verbal, or written communication sent
56
+      to the Licensor or its representatives, including but not limited to
57
+      communication on electronic mailing lists, source code control systems,
58
+      and issue tracking systems that are managed by, or on behalf of, the
59
+      Licensor for the purpose of discussing and improving the Work, but
60
+      excluding communication that is conspicuously marked or otherwise
61
+      designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+      "Contributor" shall mean Licensor and any individual or Legal Entity
64
+      on behalf of whom a Contribution has been received by Licensor and
65
+      subsequently incorporated within the Work.
66
+
67
+   2. Grant of Copyright License. Subject to the terms and conditions of
68
+      this License, each Contributor hereby grants to You a perpetual,
69
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+      copyright license to reproduce, prepare Derivative Works of,
71
+      publicly display, publicly perform, sublicense, and distribute the
72
+      Work and such Derivative Works in Source or Object form.
73
+
74
+   3. Grant of Patent License. Subject to the terms and conditions of
75
+      this License, each Contributor hereby grants to You a perpetual,
76
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+      (except as stated in this section) patent license to make, have made,
78
+      use, offer to sell, sell, import, and otherwise transfer the Work,
79
+      where such license applies only to those patent claims licensable
80
+      by such Contributor that are necessarily infringed by their
81
+      Contribution(s) alone or by combination of their Contribution(s)
82
+      with the Work to which such Contribution(s) was submitted. If You
83
+      institute patent litigation against any entity (including a
84
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+      or a Contribution incorporated within the Work constitutes direct
86
+      or contributory patent infringement, then any patent licenses
87
+      granted to You under this License for that Work shall terminate
88
+      as of the date such litigation is filed.
89
+
90
+   4. Redistribution. You may reproduce and distribute copies of the
91
+      Work or Derivative Works thereof in any medium, with or without
92
+      modifications, and in Source or Object form, provided that You
93
+      meet the following conditions:
94
+
95
+      (a) You must give any other recipients of the Work or
96
+          Derivative Works a copy of this License; and
97
+
98
+      (b) You must cause any modified files to carry prominent notices
99
+          stating that You changed the files; and
100
+
101
+      (c) You must retain, in the Source form of any Derivative Works
102
+          that You distribute, all copyright, patent, trademark, and
103
+          attribution notices from the Source form of the Work,
104
+          excluding those notices that do not pertain to any part of
105
+          the Derivative Works; and
106
+
107
+      (d) If the Work includes a "NOTICE" text file as part of its
108
+          distribution, then any Derivative Works that You distribute must
109
+          include a readable copy of the attribution notices contained
110
+          within such NOTICE file, excluding those notices that do not
111
+          pertain to any part of the Derivative Works, in at least one
112
+          of the following places: within a NOTICE text file distributed
113
+          as part of the Derivative Works; within the Source form or
114
+          documentation, if provided along with the Derivative Works; or,
115
+          within a display generated by the Derivative Works, if and
116
+          wherever such third-party notices normally appear. The contents
117
+          of the NOTICE file are for informational purposes only and
118
+          do not modify the License. You may add Your own attribution
119
+          notices within Derivative Works that You distribute, alongside
120
+          or as an addendum to the NOTICE text from the Work, provided
121
+          that such additional attribution notices cannot be construed
122
+          as modifying the License.
123
+
124
+      You may add Your own copyright statement to Your modifications and
125
+      may provide additional or different license terms and conditions
126
+      for use, reproduction, or distribution of Your modifications, or
127
+      for any such Derivative Works as a whole, provided Your use,
128
+      reproduction, and distribution of the Work otherwise complies with
129
+      the conditions stated in this License.
130
+
131
+   5. Submission of Contributions. Unless You explicitly state otherwise,
132
+      any Contribution intentionally submitted for inclusion in the Work
133
+      by You to the Licensor shall be under the terms and conditions of
134
+      this License, without any additional terms or conditions.
135
+      Notwithstanding the above, nothing herein shall supersede or modify
136
+      the terms of any separate license agreement you may have executed
137
+      with Licensor regarding such Contributions.
138
+
139
+   6. Trademarks. This License does not grant permission to use the trade
140
+      names, trademarks, service marks, or product names of the Licensor,
141
+      except as required for reasonable and customary use in describing the
142
+      origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+   7. Disclaimer of Warranty. Unless required by applicable law or
145
+      agreed to in writing, Licensor provides the Work (and each
146
+      Contributor provides its Contributions) on an "AS IS" BASIS,
147
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+      implied, including, without limitation, any warranties or conditions
149
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+      PARTICULAR PURPOSE. You are solely responsible for determining the
151
+      appropriateness of using or redistributing the Work and assume any
152
+      risks associated with Your exercise of permissions under this License.
153
+
154
+   8. Limitation of Liability. In no event and under no legal theory,
155
+      whether in tort (including negligence), contract, or otherwise,
156
+      unless required by applicable law (such as deliberate and grossly
157
+      negligent acts) or agreed to in writing, shall any Contributor be
158
+      liable to You for damages, including any direct, indirect, special,
159
+      incidental, or consequential damages of any character arising as a
160
+      result of this License or out of the use or inability to use the
161
+      Work (including but not limited to damages for loss of goodwill,
162
+      work stoppage, computer failure or malfunction, or any and all
163
+      other commercial damages or losses), even if such Contributor
164
+      has been advised of the possibility of such damages.
165
+
166
+   9. Accepting Warranty or Additional Liability. While redistributing
167
+      the Work or Derivative Works thereof, You may choose to offer,
168
+      and charge a fee for, acceptance of support, warranty, indemnity,
169
+      or other liability obligations and/or rights consistent with this
170
+      License. However, in accepting such obligations, You may act only
171
+      on Your own behalf and on Your sole responsibility, not on behalf
172
+      of any other Contributor, and only if You agree to indemnify,
173
+      defend, and hold each Contributor harmless for any liability
174
+      incurred by, or claims asserted against, such Contributor by reason
175
+      of your accepting any such warranty or additional liability.
176
+

+ 6
- 0
MANIFEST.in View File

@@ -0,0 +1,6 @@
1
+include AUTHORS
2
+include ChangeLog
3
+exclude .gitignore
4
+exclude .gitreview
5
+
6
+global-exclude *.pyc

+ 15
- 0
README.rst View File

@@ -0,0 +1,15 @@
1
+===============================
2
+magnum
3
+===============================
4
+
5
+new Openstack project for containers.
6
+
7
+* Free software: Apache license
8
+* Documentation: http://docs.openstack.org/developer/magnum
9
+* Source: http://git.openstack.org/cgit/stackforge/magnum
10
+* Bugs: http://bugs.launchpad.net/magnum
11
+
12
+Features
13
+--------
14
+
15
+* TODO

+ 2
- 0
babel.cfg View File

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

+ 75
- 0
doc/source/conf.py View File

@@ -0,0 +1,75 @@
1
+# -*- coding: utf-8 -*-
2
+# Licensed under the Apache License, Version 2.0 (the "License");
3
+# you may not use this file except in compliance with the License.
4
+# You may obtain a copy of the License at
5
+#
6
+#    http://www.apache.org/licenses/LICENSE-2.0
7
+#
8
+# Unless required by applicable law or agreed to in writing, software
9
+# distributed under the License is distributed on an "AS IS" BASIS,
10
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11
+# implied.
12
+# See the License for the specific language governing permissions and
13
+# limitations under the License.
14
+
15
+import os
16
+import sys
17
+
18
+sys.path.insert(0, os.path.abspath('../..'))
19
+# -- General configuration ----------------------------------------------------
20
+
21
+# Add any Sphinx extension module names here, as strings. They can be
22
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
23
+extensions = [
24
+    'sphinx.ext.autodoc',
25
+    #'sphinx.ext.intersphinx',
26
+    'oslosphinx'
27
+]
28
+
29
+# autodoc generation is a bit aggressive and a nuisance when doing heavy
30
+# text edit cycles.
31
+# execute "export SPHINX_DEBUG=1" in your terminal to disable
32
+
33
+# The suffix of source filenames.
34
+source_suffix = '.rst'
35
+
36
+# The master toctree document.
37
+master_doc = 'index'
38
+
39
+# General information about the project.
40
+project = u'magnum'
41
+copyright = u'2013, OpenStack Foundation'
42
+
43
+# If true, '()' will be appended to :func: etc. cross-reference text.
44
+add_function_parentheses = True
45
+
46
+# If true, the current module name will be prepended to all description
47
+# unit titles (such as .. function::).
48
+add_module_names = True
49
+
50
+# The name of the Pygments (syntax highlighting) style to use.
51
+pygments_style = 'sphinx'
52
+
53
+# -- Options for HTML output --------------------------------------------------
54
+
55
+# The theme to use for HTML and HTML Help pages.  Major themes that come with
56
+# Sphinx are currently 'default' and 'sphinxdoc'.
57
+# html_theme_path = ["."]
58
+# html_theme = '_theme'
59
+# html_static_path = ['static']
60
+
61
+# Output file base name for HTML help builder.
62
+htmlhelp_basename = '%sdoc' % project
63
+
64
+# Grouping the document tree into LaTeX files. List of tuples
65
+# (source start file, target name, title, author, documentclass
66
+# [howto/manual]).
67
+latex_documents = [
68
+    ('index',
69
+     '%s.tex' % project,
70
+     u'%s Documentation' % project,
71
+     u'OpenStack Foundation', 'manual'),
72
+]
73
+
74
+# Example configuration for intersphinx: refer to the Python standard library.
75
+#intersphinx_mapping = {'http://docs.python.org/': None}

+ 4
- 0
doc/source/contributing.rst View File

@@ -0,0 +1,4 @@
1
+============
2
+Contributing
3
+============
4
+.. include:: ../../CONTRIBUTING.rst

+ 25
- 0
doc/source/index.rst View File

@@ -0,0 +1,25 @@
1
+.. magnum documentation master file, created by
2
+   sphinx-quickstart on Tue Jul  9 22:26:36 2013.
3
+   You can adapt this file completely to your liking, but it should at least
4
+   contain the root `toctree` directive.
5
+
6
+Welcome to magnum's documentation!
7
+========================================================
8
+
9
+Contents:
10
+
11
+.. toctree::
12
+   :maxdepth: 2
13
+
14
+   readme
15
+   installation
16
+   usage
17
+   contributing
18
+
19
+Indices and tables
20
+==================
21
+
22
+* :ref:`genindex`
23
+* :ref:`modindex`
24
+* :ref:`search`
25
+

+ 12
- 0
doc/source/installation.rst View File

@@ -0,0 +1,12 @@
1
+============
2
+Installation
3
+============
4
+
5
+At the command line::
6
+
7
+    $ pip install magnum
8
+
9
+Or, if you have virtualenvwrapper installed::
10
+
11
+    $ mkvirtualenv magnum
12
+    $ pip install magnum

+ 1
- 0
doc/source/readme.rst View File

@@ -0,0 +1 @@
1
+.. include:: ../../README.rst

+ 7
- 0
doc/source/usage.rst View File

@@ -0,0 +1,7 @@
1
+========
2
+Usage
3
+========
4
+
5
+To use magnum in a project::
6
+
7
+    import magnum

+ 1
- 0
magnum/MANIFEST.in View File

@@ -0,0 +1 @@
1
+recursive-include public *

+ 22
- 0
magnum/__init__.py View File

@@ -0,0 +1,22 @@
1
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
2
+# not use this file except in compliance with the License. You may obtain
3
+# a copy of the License at
4
+#
5
+#      http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+# Unless required by applicable law or agreed to in writing, software
8
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10
+# License for the specific language governing permissions and limitations
11
+# under the License.
12
+
13
+import threading
14
+
15
+import pbr.version
16
+
17
+
18
+__version__ = pbr.version.VersionInfo(
19
+    'magnum').version_string()
20
+
21
+# Make a project global TLS trace storage repository
22
+TLS = threading.local()

+ 0
- 0
magnum/api/__init__.py View File


+ 27
- 0
magnum/api/app.py View File

@@ -0,0 +1,27 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+import pecan
14
+
15
+from magnum.api import model
16
+
17
+
18
+def setup_app(config):
19
+
20
+    model.init_model()
21
+    app_conf = dict(config.app)
22
+
23
+    return pecan.make_app(
24
+        app_conf.pop('root'),
25
+        logging=getattr(config, 'logging', {}),
26
+        **app_conf
27
+    )

+ 0
- 0
magnum/api/controllers/__init__.py View File


+ 17
- 0
magnum/api/controllers/root.py View File

@@ -0,0 +1,17 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+from magnum.api.controllers import v1
14
+
15
+
16
+class RootController(object):
17
+    v1 = v1.ContainerController()

+ 198
- 0
magnum/api/controllers/v1.py View File

@@ -0,0 +1,198 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+import ast
14
+import functools
15
+import inspect
16
+import uuid
17
+
18
+from oslo.utils import strutils
19
+from oslo.utils import timeutils
20
+import pecan
21
+from pecan import rest
22
+import six
23
+import wsme
24
+from wsme import exc
25
+from wsme import types as wtypes
26
+import wsmeext.pecan as wsme_pecan
27
+
28
+
29
+# NOTE(dims): We don't depend on oslo*i18n yet
30
+_ = _LI = _LW = _LE = _LC = lambda x: x
31
+
32
+state_kind = ["ok", "containers", "insufficient data"]
33
+state_kind_enum = wtypes.Enum(str, *state_kind)
34
+operation_kind = ('lt', 'le', 'eq', 'ne', 'ge', 'gt')
35
+operation_kind_enum = wtypes.Enum(str, *operation_kind)
36
+
37
+
38
+class _Base(wtypes.Base):
39
+
40
+    @classmethod
41
+    def from_db_model(cls, m):
42
+        return cls(**(m.as_dict()))
43
+
44
+    @classmethod
45
+    def from_db_and_links(cls, m, links):
46
+        return cls(links=links, **(m.as_dict()))
47
+
48
+    def as_dict(self, db_model):
49
+        valid_keys = inspect.getargspec(db_model.__init__)[0]
50
+        if 'self' in valid_keys:
51
+            valid_keys.remove('self')
52
+        return self.as_dict_from_keys(valid_keys)
53
+
54
+    def as_dict_from_keys(self, keys):
55
+        return dict((k, getattr(self, k))
56
+                    for k in keys
57
+                    if hasattr(self, k) and
58
+                    getattr(self, k) != wsme.Unset)
59
+
60
+
61
+class Query(_Base):
62
+
63
+    """Query filter."""
64
+
65
+    # The data types supported by the query.
66
+    _supported_types = ['integer', 'float', 'string', 'boolean']
67
+
68
+    # Functions to convert the data field to the correct type.
69
+    _type_converters = {'integer': int,
70
+                        'float': float,
71
+                        'boolean': functools.partial(
72
+                            strutils.bool_from_string, strict=True),
73
+                        'string': six.text_type,
74
+                        'datetime': timeutils.parse_isotime}
75
+
76
+    _op = None  # provide a default
77
+
78
+    def get_op(self):
79
+        return self._op or 'eq'
80
+
81
+    def set_op(self, value):
82
+        self._op = value
83
+
84
+    field = wtypes.text
85
+    "The name of the field to test"
86
+
87
+    # op = wsme.wsattr(operation_kind, default='eq')
88
+    # this ^ doesn't seem to work.
89
+    op = wsme.wsproperty(operation_kind_enum, get_op, set_op)
90
+    "The comparison operator. Defaults to 'eq'."
91
+
92
+    value = wtypes.text
93
+    "The value to compare against the stored data"
94
+
95
+    type = wtypes.text
96
+    "The data type of value to compare against the stored data"
97
+
98
+    def __repr__(self):
99
+        # for logging calls
100
+        return '<Query %r %s %r %s>' % (self.field,
101
+                                        self.op,
102
+                                        self.value,
103
+                                        self.type)
104
+
105
+    @classmethod
106
+    def sample(cls):
107
+        return cls(field='resource_id',
108
+                   op='eq',
109
+                   value='bd9431c1-8d69-4ad3-803a-8d4a6b89fd36',
110
+                   type='string'
111
+                   )
112
+
113
+    def as_dict(self):
114
+        return self.as_dict_from_keys(['field', 'op', 'type', 'value'])
115
+
116
+    def _get_value_as_type(self, forced_type=None):
117
+        """Convert metadata value to the specified data type.
118
+        """
119
+        type = forced_type or self.type
120
+        try:
121
+            converted_value = self.value
122
+            if not type:
123
+                try:
124
+                    converted_value = ast.literal_eval(self.value)
125
+                except (ValueError, SyntaxError):
126
+                    # Unable to convert the metadata value automatically
127
+                    # let it default to self.value
128
+                    pass
129
+            else:
130
+                if type not in self._supported_types:
131
+                    # Types must be explicitly declared so the
132
+                    # correct type converter may be used. Subclasses
133
+                    # of Query may define _supported_types and
134
+                    # _type_converters to define their own types.
135
+                    raise TypeError()
136
+                converted_value = self._type_converters[type](self.value)
137
+        except ValueError:
138
+            msg = (_('Unable to convert the value %(value)s'
139
+                     ' to the expected data type %(type)s.') %
140
+                   {'value': self.value, 'type': type})
141
+            raise exc.ClientSideError(msg)
142
+        except TypeError:
143
+            msg = (_('The data type %(type)s is not supported. The supported'
144
+                     ' data type list is: %(supported)s') %
145
+                   {'type': type, 'supported': self._supported_types})
146
+            raise exc.ClientSideError(msg)
147
+        except Exception:
148
+            msg = (_('Unexpected exception converting %(value)s to'
149
+                     ' the expected data type %(type)s.') %
150
+                   {'value': self.value, 'type': type})
151
+            raise exc.ClientSideError(msg)
152
+        return converted_value
153
+
154
+
155
+class Container(_Base):
156
+    container_id = wtypes.text
157
+    """ The ID of the containers."""
158
+
159
+    name = wsme.wsattr(wtypes.text, mandatory=True)
160
+    """ The name of the container."""
161
+
162
+    desc = wsme.wsattr(wtypes.text, mandatory=True)
163
+
164
+    def __init__(self, **kwargs):
165
+        super(Container, self).__init__(**kwargs)
166
+
167
+    @classmethod
168
+    def sample(cls):
169
+        return cls(id=str(uuid.uuid1(),
170
+                          name="Docker",
171
+                          desc='Docker Containers'))
172
+
173
+
174
+class ContainerController(rest.RestController):
175
+
176
+    @wsme_pecan.wsexpose([Container], [Query], int)
177
+    def get_all(self, q=None, limit=None):
178
+        # TODO(dims): Returns all the containers
179
+        pecan.response.status = 200
180
+        return
181
+
182
+    @wsme_pecan.wsexpose(Container, wtypes.text)
183
+    def get_one(self, container_id):
184
+        # TODO(dims): Returns all the containers
185
+        pecan.response.status = 200
186
+        return
187
+
188
+    @wsme_pecan.wsexpose([Container], body=[Container])
189
+    def post(self, data):
190
+        # TODO(dims): Create a new container
191
+        pecan.response.status = 201
192
+        return
193
+
194
+    @wsme_pecan.wsexpose(None, status_code=204)
195
+    def delete(self):
196
+        # TODO(dims): DELETE the containers
197
+        pecan.response.status = 204
198
+        return

+ 26
- 0
magnum/api/model/__init__.py View File

@@ -0,0 +1,26 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+from pecan import conf  # noqa
14
+
15
+
16
+def init_model():
17
+    """This is a stub method which is called at application startup time.
18
+
19
+    If you need to bind to a parsed database configuration, set up tables or
20
+    ORM classes, or perform any database initialization, this is the
21
+    recommended place to do it.
22
+
23
+    For more information working with databases, and some common recipes,
24
+    see http://pecan.readthedocs.org/en/latest/databases.html
25
+    """
26
+    pass

+ 12
- 0
magnum/api/templates/error.html View File

@@ -0,0 +1,12 @@
1
+<%inherit file="layout.html" />
2
+
3
+## provide definitions for blocks we want to redefine
4
+<%def name="title()">
5
+    Server Error ${status}
6
+</%def>
7
+
8
+## now define the body of the template
9
+    <header>
10
+        <h1>Server Error ${status}</h1>
11
+    </header>
12
+    <p>${message}</p>

+ 34
- 0
magnum/api/templates/index.html View File

@@ -0,0 +1,34 @@
1
+<%inherit file="layout.html" />
2
+
3
+## provide definitions for blocks we want to redefine
4
+<%def name="title()">
5
+    Welcome to Pecan!
6
+</%def>
7
+
8
+## now define the body of the template
9
+    <header>
10
+        <h1><img src="/images/logo.png" /></h1>
11
+    </header>
12
+
13
+    <div id="content">
14
+
15
+        <p>This is a sample Pecan project.</p>
16
+
17
+        <p>
18
+            Instructions for getting started can be found online at <a
19
+            href="http://pecanpy.org" target="window">pecanpy.org</a>
20
+        </p>
21
+
22
+        <p>
23
+            ...or you can search the documentation here:
24
+        </p>
25
+
26
+        <form method="POST" action="/">
27
+            <fieldset>
28
+                <input name="q" />
29
+                <input type="submit" value="Search" />
30
+            </fieldset>
31
+            <small>Enter search terms or a module, class or function name.</small>
32
+        </form>
33
+
34
+    </div>

+ 22
- 0
magnum/api/templates/layout.html View File

@@ -0,0 +1,22 @@
1
+<html>
2
+    <head>
3
+        <title>${self.title()}</title>
4
+        ${self.style()}
5
+        ${self.javascript()}
6
+    </head>
7
+    <body>
8
+        ${self.body()}
9
+    </body>
10
+</html>
11
+
12
+<%def name="title()">
13
+    Default Title
14
+</%def>
15
+
16
+<%def name="style()">
17
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css" />
18
+</%def>
19
+
20
+<%def name="javascript()">
21
+    <script language="text/javascript" src="/javascript/shared.js"></script>
22
+</%def>

+ 81
- 0
magnum/config.py View File

@@ -0,0 +1,81 @@
1
+# Copyright 2013 - Red Hat, Inc.
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 implied.
12
+#    See the License for the specific language governing permissions and
13
+#    limitations under the License.
14
+
15
+"""Solum specific config handling."""
16
+
17
+from oslo.config import cfg
18
+
19
+from magnum import version
20
+
21
+# Server Specific Configurations
22
+server = {
23
+    'port': '8080',
24
+    'host': '0.0.0.0'
25
+}
26
+
27
+# Pecan Application Configurations
28
+app = {
29
+    'root': 'magnum.api.controllers.root.RootController',
30
+    'modules': ['magnum.api'],
31
+    'static_root': '%(confdir)s/public',
32
+    'template_path': '%(confdir)s/api/templates',
33
+    'debug': True,
34
+    'errors': {
35
+        404: '/error/404',
36
+        '__force_dict__': True
37
+    }
38
+}
39
+
40
+logging = {
41
+    'root': {'level': 'INFO', 'handlers': ['console']},
42
+    'loggers': {
43
+        'magnum': {'level': 'DEBUG', 'handlers': ['console']},
44
+        'pecan.commands.serve': {'level': 'DEBUG', 'handlers': ['console']},
45
+        'py.warnings': {'handlers': ['console']},
46
+        '__force_dict__': True
47
+    },
48
+    'handlers': {
49
+        'console': {
50
+            'level': 'DEBUG',
51
+            'class': 'logging.StreamHandler',
52
+            'formatter': 'color'
53
+        }
54
+    },
55
+    'formatters': {
56
+        'simple': {
57
+            'format': ('%(asctime)s %(levelname)-5.5s [%(name)s]'
58
+                       '[%(threadName)s] %(message)s')
59
+        },
60
+        'color': {
61
+            '()': 'pecan.log.ColorFormatter',
62
+            'format': ('%(asctime)s [%(padded_color_levelname)s] [%(name)s]'
63
+                       '[%(threadName)s] %(message)s'),
64
+        '__force_dict__': True
65
+        }
66
+    }
67
+}
68
+
69
+# Custom Configurations must be in Python dictionary format::
70
+#
71
+# foo = {'bar':'baz'}
72
+#
73
+# All configurations are accessible at::
74
+# pecan.conf
75
+
76
+
77
+def parse_args(argv, default_config_files=None):
78
+    cfg.CONF(argv[1:],
79
+             project='magnum',
80
+             version=version.version_string,
81
+             default_config_files=default_config_files)

+ 43
- 0
magnum/public/css/style.css View File

@@ -0,0 +1,43 @@
1
+body {
2
+  background: #311F00;
3
+  color: white;
4
+  font-family: 'Helvetica Neue', 'Helvetica', 'Verdana', sans-serif;
5
+  padding: 1em 2em;
6
+}
7
+
8
+a {
9
+  color: #FAFF78;
10
+  text-decoration: none;
11
+}
12
+
13
+a:hover {
14
+  text-decoration: underline;
15
+}
16
+
17
+div#content  {
18
+  width: 800px;
19
+  margin: 0 auto;
20
+}
21
+
22
+form {
23
+  margin: 0;
24
+  padding: 0;
25
+  border: 0;
26
+}
27
+
28
+fieldset {
29
+  border: 0;
30
+}
31
+
32
+input.error {
33
+  background: #FAFF78;
34
+}
35
+
36
+header {
37
+  text-align: center;
38
+}
39
+
40
+h1, h2, h3, h4, h5, h6 {
41
+  font-family: 'Futura-CondensedExtraBold', 'Futura', 'Helvetica', sans-serif;
42
+  text-transform: uppercase;
43
+}

BIN
magnum/public/images/logo.png View File


+ 36
- 0
magnum/tests/__init__.py View File

@@ -0,0 +1,36 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+import os
14
+import unittest
15
+
16
+import pecan
17
+from pecan import testing
18
+
19
+__all__ = ['FunctionalTest']
20
+
21
+
22
+class FunctionalTest(unittest.TestCase):
23
+    """Functional tests
24
+
25
+    Used for functional tests where you need to test your
26
+    literal application and its integration with the framework.
27
+    """
28
+
29
+    def setUp(self):
30
+        self.app = testing.load_test_app(os.path.join(
31
+            os.path.dirname(__file__),
32
+            'config.py'
33
+        ))
34
+
35
+    def tearDown(self):
36
+        pecan.set_config({}, overwrite=True)

+ 23
- 0
magnum/tests/base.py View File

@@ -0,0 +1,23 @@
1
+# -*- coding: utf-8 -*-
2
+
3
+# Copyright 2010-2011 OpenStack Foundation
4
+# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
5
+#
6
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
7
+# not use this file except in compliance with the License. You may obtain
8
+# a copy of the License at
9
+#
10
+#      http://www.apache.org/licenses/LICENSE-2.0
11
+#
12
+# Unless required by applicable law or agreed to in writing, software
13
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
+# License for the specific language governing permissions and limitations
16
+# under the License.
17
+
18
+from oslotest import base
19
+
20
+
21
+class TestCase(base.BaseTestCase):
22
+
23
+    """Test case base class for all unit tests."""

+ 37
- 0
magnum/tests/config.py View File

@@ -0,0 +1,37 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+# Server Specific Configurations
14
+server = {
15
+    'port': '8080',
16
+    'host': '0.0.0.0'
17
+}
18
+
19
+# Pecan Application Configurations
20
+app = {
21
+    'root': 'magnum.api.controllers.root.RootController',
22
+    'modules': ['magnum.api'],
23
+    'static_root': '%(confdir)s/../../public',
24
+    'template_path': '%(confdir)s/../templates',
25
+    'debug': True,
26
+    'errors': {
27
+        '404': '/error/404',
28
+        '__force_dict__': True
29
+    }
30
+}
31
+
32
+# Custom Configurations must be in Python dictionary format::
33
+#
34
+# foo = {'bar':'baz'}
35
+#
36
+# All configurations are accessible at::
37
+# pecan.conf

+ 24
- 0
magnum/tests/test_functional.py View File

@@ -0,0 +1,24 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+from magnum import tests
14
+
15
+
16
+class TestRootController(tests.FunctionalTest):
17
+
18
+    def test_get_all(self):
19
+        response = self.app.get('/v1/containers')
20
+        assert response.status_int == 200
21
+
22
+    def test_get_not_found(self):
23
+        response = self.app.get('/a/bogus/url', expect_errors=True)
24
+        assert response.status_int == 404

+ 28
- 0
magnum/tests/test_magnum.py View File

@@ -0,0 +1,28 @@
1
+# -*- coding: utf-8 -*-
2
+
3
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
4
+# not use this file except in compliance with the License. You may obtain
5
+# 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, WITHOUT
11
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+# License for the specific language governing permissions and limitations
13
+# under the License.
14
+
15
+"""
16
+test_magnum
17
+----------------------------------
18
+
19
+Tests for `magnum` module.
20
+"""
21
+
22
+from magnum.tests import base
23
+
24
+
25
+class TestMagnum(base.TestCase):
26
+
27
+    def test_something(self):
28
+        pass

+ 19
- 0
magnum/tests/test_units.py View File

@@ -0,0 +1,19 @@
1
+#    Licensed under the Apache License, Version 2.0 (the "License");
2
+#    you may not use this file except in compliance with the License.
3
+#    You may obtain a copy of the License at
4
+#
5
+#        http://www.apache.org/licenses/LICENSE-2.0
6
+#
7
+#    Unless required by applicable law or agreed to in writing, software
8
+#    distributed under the License is distributed on an "AS IS" BASIS,
9
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+#    See the License for the specific language governing permissions and
11
+#    limitations under the License.
12
+
13
+import unittest
14
+
15
+
16
+class TestUnits(unittest.TestCase):
17
+
18
+    def test_units(self):
19
+        assert 5 * 5 == 25

+ 21
- 0
magnum/version.py View File

@@ -0,0 +1,21 @@
1
+# -*- coding: utf-8 -*-
2
+#
3
+# Copyright 2013 - Noorul Islam K M
4
+#
5
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
6
+# not use this file except in compliance with the License. You may obtain
7
+# a copy of the License at
8
+#
9
+#      http://www.apache.org/licenses/LICENSE-2.0
10
+#
11
+# Unless required by applicable law or agreed to in writing, software
12
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
+# License for the specific language governing permissions and limitations
15
+# under the License.
16
+
17
+import pbr.version
18
+
19
+
20
+version_info = pbr.version.VersionInfo('magnum')
21
+version_string = version_info.version_string

+ 6
- 0
openstack-common.conf View File

@@ -0,0 +1,6 @@
1
+[DEFAULT]
2
+
3
+# The list of modules to copy from oslo-incubator.git
4
+
5
+# The base module to hold the copy of openstack.common
6
+base=magnum

+ 14
- 0
requirements.txt View File

@@ -0,0 +1,14 @@
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>=0.6,!=0.7,<1.0
6
+Babel>=1.3
7
+
8
+oslo.config>=1.4.0
9
+oslo.utils>=1.0.0
10
+pecan>=0.8.0
11
+python-keystoneclient>=0.11.1
12
+python-zaqarclient>=0.0.3
13
+six>=1.7.0
14
+WSME>=0.6

+ 50
- 0
setup.cfg View File

@@ -0,0 +1,50 @@
1
+[metadata]
2
+name = magnum
3
+summary = Container Management project for OpenStack
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 :: 2.6
19
+    Programming Language :: Python :: 3
20
+    Programming Language :: Python :: 3.3
21
+    Programming Language :: Python :: 3.4
22
+
23
+[files]
24
+packages =
25
+    magnum
26
+
27
+[build_sphinx]
28
+source-dir = doc/source
29
+build-dir = doc/build
30
+all_files = 1
31
+
32
+[upload_sphinx]
33
+upload-dir = doc/build/html
34
+
35
+[compile_catalog]
36
+directory = magnum/locale
37
+domain = magnum
38
+
39
+[update_catalog]
40
+domain = magnum
41
+output_dir = magnum/locale
42
+input_file = magnum/locale/magnum.pot
43
+
44
+[extract_messages]
45
+keywords = _ gettext ngettext l_ lazy_gettext
46
+mapping_file = babel.cfg
47
+output_file = magnum/locale/magnum.pot
48
+
49
+[wheel]
50
+universal = 1

+ 22
- 0
setup.py View File

@@ -0,0 +1,22 @@
1
+#!/usr/bin/env python
2
+# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
3
+#
4
+# Licensed under the Apache License, Version 2.0 (the "License");
5
+# you may not use this file except in compliance with the License.
6
+# You may obtain a copy of the License at
7
+#
8
+#    http://www.apache.org/licenses/LICENSE-2.0
9
+#
10
+# Unless required by applicable law or agreed to in writing, software
11
+# distributed under the License is distributed on an "AS IS" BASIS,
12
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
+# implied.
14
+# See the License for the specific language governing permissions and
15
+# limitations under the License.
16
+
17
+# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
18
+import setuptools
19
+
20
+setuptools.setup(
21
+    setup_requires=['pbr'],
22
+    pbr=True)

+ 18
- 0
test-requirements.txt View File

@@ -0,0 +1,18 @@
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
+hacking>=0.9.2,<0.10
6
+
7
+coverage>=3.6
8
+discover
9
+fixtures>=0.3.14
10
+mock>=1.0
11
+nose
12
+python-subunit>=0.0.18
13
+sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
14
+oslosphinx>=2.2.0
15
+oslotest>=1.2.0
16
+testrepository>=0.0.18
17
+testscenarios>=0.4
18
+testtools>=0.9.36,!=1.2.0,!=1.4.0

+ 35
- 0
tox.ini View File

@@ -0,0 +1,35 @@
1
+[tox]
2
+minversion = 1.6
3
+envlist = py33,py34,py26,py27,pypy,pep8
4
+skipsdist = True
5
+
6
+[testenv]
7
+usedevelop = True
8
+install_command = pip install -U {opts} {packages}
9
+setenv =
10
+   VIRTUAL_ENV={envdir}
11
+deps = -r{toxinidir}/requirements.txt
12
+       -r{toxinidir}/test-requirements.txt
13
+commands = python setup.py testr --slowest --testr-args='{posargs}'
14
+
15
+[testenv:pep8]
16
+commands = flake8
17
+
18
+[testenv:venv]
19
+commands = {posargs}
20
+
21
+[testenv:cover]
22
+commands = python setup.py testr --coverage --testr-args='{posargs}'
23
+
24
+[testenv:docs]
25
+commands = python setup.py build_sphinx
26
+
27
+[flake8]
28
+# H803 skipped on purpose per list discussion.
29
+# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
30
+# The rest of the ignores are TODOs
31
+# New from hacking 0.9: E129, E131, H407, H405, H904
32
+# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
33
+
34
+ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405,H803,H904
35
+exclude =  .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools

Loading…
Cancel
Save