Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config utilities for describing config files and CLI arguments #17

Merged
merged 13 commits into from
Aug 11, 2014
Merged
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq sloccount
- pip install -r requirements.txt
- pip install pip-tools coviolations_app flake8 coverage coveralls
- pip install pip-tools coviolations_app flake8 coverage coveralls testfixtures
script: python setup.py nosetests --with-coverage --cover-package=xylem > test_result
notifications:
email: false
Expand Down
24 changes: 24 additions & 0 deletions docs/apidoc/xylem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,30 @@ Subpackages
Submodules
----------

xylem.arguments module
----------------------

.. automodule:: xylem.arguments
:members:
:undoc-members:
:show-inheritance:

xylem.config module
-------------------

.. automodule:: xylem.config
:members:
:undoc-members:
:show-inheritance:

xylem.config_utils module
-------------------------

.. automodule:: xylem.config_utils
:members:
:undoc-members:
:show-inheritance:

xylem.exception module
----------------------

Expand Down
8 changes: 0 additions & 8 deletions docs/apidoc/xylem.sources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ xylem.sources.impl module
:undoc-members:
:show-inheritance:

xylem.sources.rules_dict module
-------------------------------

.. automodule:: xylem.sources.rules_dict
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------
Expand Down
22 changes: 22 additions & 0 deletions docs/apidoc/xylem.specs.plugins.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
xylem.specs.plugins package
===========================

Submodules
----------

xylem.specs.plugins.rules module
--------------------------------

.. automodule:: xylem.specs.plugins.rules
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: xylem.specs.plugins
:members:
:undoc-members:
:show-inheritance:
13 changes: 10 additions & 3 deletions docs/apidoc/xylem.specs.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
xylem.specs package
===================

Subpackages
-----------

.. toctree::

xylem.specs.plugins

Submodules
----------

Expand All @@ -12,10 +19,10 @@ xylem.specs.impl module
:undoc-members:
:show-inheritance:

xylem.specs.rules module
------------------------
xylem.specs.rules_dict module
-----------------------------

.. automodule:: xylem.specs.rules
.. automodule:: xylem.specs.rules_dict
:members:
:undoc-members:
:show-inheritance:
Expand Down
1 change: 1 addition & 0 deletions docs/xylem_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Database
.. automodule:: xylem.update
:members:
:undoc-members:
:noindex:

Indices and tables
------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# http://www.jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/

# see: http://reinout.vanrees.org/weblog/2009/12/17/managing-dependencies.html
tests_require = ['nose', 'flake8', 'mock', 'coverage']
tests_require = ['nose', 'flake8', 'mock', 'coverage', 'testfixtures']

setup(
name='xylem',
Expand Down
Empty file.
19 changes: 19 additions & 0 deletions test/unit_tests/config/test_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Unit tests for config module."""

from __future__ import unicode_literals

# TODO
Empty file.
19 changes: 19 additions & 0 deletions test/unit_tests/config_utils/test_config_api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Test high level API for config_utils."""

from __future__ import unicode_literals

# TODO
19 changes: 19 additions & 0 deletions test/unit_tests/config_utils/test_config_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Test creating and using ConfigDescription."""

from __future__ import unicode_literals

# TODO
19 changes: 19 additions & 0 deletions test/unit_tests/config_utils/test_config_dict.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Test functions manipulating config dicts."""

from __future__ import unicode_literals

# TODO
Loading