Rename the rest capabilities to traits

This commit is contained in:
Yingxin 2016-09-20 05:40:55 +00:00
parent d5ab376e0a
commit d56ac9facb
10 changed files with 22 additions and 22 deletions

View File

@ -14,4 +14,4 @@ Pull requests submitted through GitHub will be ignored.
Bugs should be filed on Launchpad, not GitHub: Bugs should be filed on Launchpad, not GitHub:
https://bugs.launchpad.net/os-capabilities https://bugs.launchpad.net/os-traits

View File

@ -1,4 +1,4 @@
os-capabilities Style Commandments os-traits Style Commandments
=============================================== ===============================================
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/

View File

@ -37,7 +37,7 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'os-capabilities' project = u'os-traits'
copyright = u'2016, OpenStack Foundation' copyright = u'2016, OpenStack Foundation'
# If true, '()' will be appended to :func: etc. cross-reference text. # If true, '()' will be appended to :func: etc. cross-reference text.

View File

@ -1,9 +1,9 @@
.. os-capabilities documentation master file, created by .. os-traits documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013. sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive. contain the root `toctree` directive.
Welcome to os-capabilities's documentation! Welcome to os-traits' documentation!
======================================================== ========================================================
Contents: Contents:

View File

@ -4,9 +4,9 @@ Installation
At the command line:: At the command line::
$ pip install os-capabilities $ pip install os-traits
Or, if you have virtualenvwrapper installed:: Or, if you have virtualenvwrapper installed::
$ mkvirtualenv os-capabilities $ mkvirtualenv os-traits
$ pip install os-capabilities $ pip install os-traits

View File

@ -2,6 +2,6 @@
Usage Usage
======== ========
To use os-capabilities in a project:: To use os-traits in a project::
import os_capabilities import os_traits

View File

@ -18,16 +18,16 @@ import pbr.version
import six import six
__version__ = pbr.version.VersionInfo( __version__ = pbr.version.VersionInfo(
'os_capabilities').version_string() 'os_traits').version_string()
# Conveniently import all the constants into the main module "namespace" # Conveniently import all the constants into the main module "namespace"
from os_capabilities.const import * from os_traits.const import *
def get_symbol_names(prefix=None): def get_symbol_names(prefix=None):
""" """
Returns the names of symbols of capability strings in the Returns the names of symbols of trait strings in the os_traits module,
os_capabilities module, optionally filtered by a supplied prefix. optionally filtered by a supplied prefix.
:param prefix: Optional string prefix to filter by. e.g. 'hw:' :param prefix: Optional string prefix to filter by. e.g. 'hw:'
""" """
@ -44,9 +44,9 @@ def get_symbol_names(prefix=None):
] ]
def get_capabilities(prefix=None): def get_traits(prefix=None):
""" """
Returns the capability strings in the os_capabilities module, optionally Returns the trait strings in the os_traits module, optionally
filtered by a supplied prefix. filtered by a supplied prefix.
:param prefix: Optional string prefix to filter by. e.g. 'hw:' :param prefix: Optional string prefix to filter by. e.g. 'hw:'

View File

@ -13,16 +13,16 @@
# under the License. # under the License.
""" """
test_os_capabilities test_os_traits
---------------------------------- ----------------------------------
Tests for `os_capabilities` module. Tests for `os_traits` module.
""" """
from os_capabilities.tests import base from os_traits.tests import base
class TestOs_capabilities(base.TestCase): class TestOs_traits(base.TestCase):
def test_something(self): def test_something(self):
pass pass

View File

@ -55,7 +55,7 @@ source_suffix = '.rst'
master_doc = 'index' master_doc = 'index'
# General information about the project. # General information about the project.
project = u'os_capabilities Release Notes' project = u'os_traits Release Notes'
copyright = u'2016, OpenStack Foundation' copyright = u'2016, OpenStack Foundation'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for

View File

@ -1,5 +1,5 @@
============================================ ============================================
os_capabilities Release Notes os_traits Release Notes
============================================ ============================================
.. toctree:: .. toctree::