Commit Graph

116 Commits

Author SHA1 Message Date
Philip Tzou
74a719b117 a work-around to avoid cpython bug (15881)
In python < 2.7.4, a lazy loading of package `pbr` will break setuptools if some other modules registered functions in `atexit`.
solution from: http://bugs.python.org/issue15881#msg170215
2013-10-24 13:43:09 +08:00
Doug Hellmann
08e6991697 add pypy to travis config
Change-Id: Ib4b9b5a91b7cfce8241b7ad641bb0b959344dc2a
2013-09-22 10:19:25 -04:00
Doug Hellmann
c019a1fa44 add pypy to default test env list
Change-Id: I1fba36e54850c18fdb2720377566ad43ee5b8661
2013-09-22 10:17:28 -04:00
Doug Hellmann
fc458a58c4 Fix pip call in tox config
Tox passes --pre to pip, which means we get pre-release
versions of stuff. That breaks the docs build, but is
just a bad idea anyway, so override the setting so we
don't do it.

Change-Id: Iec89b12a969f34486005e8dc41cb189438b38959
2013-09-18 15:08:01 -05:00
Doug Hellmann
2fb70e3fa8 fix version number in blog announcement file
Change-Id: Ieac1a09728f2a62d5c5c372b78bf6ad480688eb9
2013-09-18 12:07:50 -05:00
Doug Hellmann
a12411ada5 update history and announce file for release
Change-Id: I830d1755c9ed8dbf356edaf68243a01b1d6eb6ac
2013-09-18 12:05:27 -05:00
Doug Hellmann
a0efc3b814 remove version from setup.cfg and rely on git tag
Change-Id: Ib30d0538f4d17a8890a0001a4d0116b08dd74868
2013-09-18 11:45:03 -05:00
Doug Hellmann
f4c43cca33 Merge pull request #28 from jd/jd/pbr
Switch to pbr
2013-09-18 09:36:46 -07:00
Julien Danjou
35d442370c Switch to pbr
Resolves issue #16
2013-09-18 17:53:39 +02:00
Doug Hellmann
4b3f616eb4 Fix flake8 failures from pull/27
Fix a few formatting issues from within the
previous pull request.

Change-Id: Iadb0d5d4bfa1ac460c730e8af0cfec9386a4c066
2013-09-18 09:43:03 -05:00
Doug Hellmann
974f4fbc5a Merge pull request #27 from jd/master
Add map_method function to managers
2013-09-18 07:39:04 -07:00
Julien Danjou
1482cf264f Add map_method function to managers
This allows to use map() directly over some extension method in a more
convenient way. It's a pattern we often need, so let's built it directly
in Stevedore.
2013-09-17 13:52:03 +02:00
Doug Hellmann
7ab52e5475 Fixes reporting the error when drivers have the same name
Resolves issue #25

Change-Id: I944800fc2da0018b5b3bb076d296c38126fe97bf
2013-08-29 14:53:55 -04:00
Doug Hellmann
5b22dba30a prep for release 0.11
Change-Id: If291824f46cf8ab48c25cca54fbb072aad65cf4c
2013-08-29 12:29:45 -04:00
Ryan Petrello
ea9266836e Merge pull request #26 from dhellmann/bug/logging-py26
Update null log handling for py26
2013-08-28 08:43:32 -07:00
Doug Hellmann
a3eb4602aa Update null log handling for py26
Python 2.6 does not have a NullHandler in the logging
module, so introduce a little class that does the same
work.

Also add __all__ to the package init so extra names are
not exported.

Resolves issue #2

Change-Id: Id59d394cd02372e2c31de336894f06653cb1e22d
2013-08-28 11:32:13 -04:00
Doug Hellmann
4326707104 prep for 0.10 release
Change-Id: Ifce736e14ac1f6721b2188b4bcb8f78534faffd9
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-07-08 09:25:42 -04:00
Doug Hellmann
8394651311 Merge pull request #24 from drocco-007/master
Fixed a bug in the test for propagating map exceptions
2013-06-30 06:32:45 -07:00
Daniel Rocco
e015bf53b0 fixed a bug in the test for propagating map exceptions
A too-broad except clause caused the test to always pass by trapping the assertion error designed to trigger test failure.
2013-06-29 23:16:50 -04:00
Doug Hellmann
6608290ceb Merge pull request #23 from dirkmueller/python26x
Fix doc build with Python 2.6.x
2013-06-21 09:18:44 -07:00
Doug Hellmann
f9c18f6857 Merge pull request #22 from cyeoh/propogate_exceptions
Propogate exceptions
2013-06-21 09:18:27 -07:00
Dirk Mueller
c1a58e234b Fix doc build with Python 2.6.x
subprocess.check_output was new in Python 2.7.
Use an alternative construct via subprocess.Popen
which works on Python 2.6 as well.
2013-06-21 09:54:49 +02:00
Chris Yeoh
b617873a99 Update docstrings for map exception propagation
Updates docstrings related to map exception propagation
and the history.rst file
2013-06-21 13:55:00 +09:30
Chris Yeoh
9e950a24b6 Formatting fix
Fixes too many blank lines in test_extension.py
2013-06-20 13:38:00 +09:30
Chris Yeoh
9f2adb4d59 Adds ability to propogate exceptions within map
Adds init variable for extension managers to specify whether
or not exceptions are propated up by map or are logged and supressed
2013-06-20 13:32:52 +09:30
Doug Hellmann
1decfbe730 prep for 0.9.1 release
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-12 14:06:18 -04:00
Doug Hellmann
f945a560b4 Include all images from docs in sdist
Include the JPEG images under the docs directory
when creating the sdist.

Resolves issue #20

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-12 14:03:31 -04:00
Doug Hellmann
63122bdcd5 prep for 0.9 release
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-12 11:02:50 -04:00
Doug Hellmann
5def429271 add docs to default tox suite
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-12 11:02:33 -04:00
Doug Hellmann
f6cba1b72c Remove reliance on distribute
Assume setuptools is present and do not try to install
distribute.

Fixes issue #19

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-12 10:58:38 -04:00
Doug Hellmann
a4f94792f3 Merge branch 'add-tutorial' 2013-06-05 18:48:57 -04:00
Doug Hellmann
9065ff5623 doc cleanup
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-05 18:48:40 -04:00
Doug Hellmann
c40941e741 add reference to test class
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-05 18:45:13 -04:00
Doug Hellmann
6535133e88 finish tutorial section on loading plugins
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-05 18:45:00 -04:00
Doug Hellmann
712877f3cc remove line number references
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-05 18:15:19 -04:00
Doug Hellmann
48c8393c5e Add example of loading as a driver
Create an example program to load the formatters
from the tutorial as a driver and print some data.

Update run_sphinx to watch .txt files.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-05 18:02:12 -04:00
Doug Hellmann
fd4e42f0fe Add tutorial section on creating plugins
Expand and reorg the naming discussion.

Add a section on the mechanics of creating plugins,
with some tested example code.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-05 17:11:23 -04:00
Doug Hellmann
6acd86a666 add docs about names and namespaces
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-04 17:15:24 -04:00
Doug Hellmann
0015cbffb9 touch up ceilometer design diagram
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 17:47:13 -04:00
Doug Hellmann
3682eabc20 add tox env for building docs
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 17:38:56 -04:00
Doug Hellmann
7943bb2029 Add structure for tutorial
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 17:25:23 -04:00
Doug Hellmann
9136939760 Add PyCon 2013 essay
Add an essay based on my PyCon 2013 presentation.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 17:25:01 -04:00
Doug Hellmann
7e7f9c7c5f Update docs for NameDispatchExtensionManager
Add missing parameter to the table.

Resolves issue #13

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 11:00:13 -04:00
Doug Hellmann
fd365c497a Clean up autodoc for manager classes
Use default settings instead of repeating the options
for each class.

Add docstrings for special methods that do not have them
so they appear in the output.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 10:56:04 -04:00
Doug Hellmann
69e17801a3 Add ExtensionManager.__getitem__
Allow extensions to be accessed directly by name.

Fixes issue #15

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 10:54:49 -04:00
Doug Hellmann
52572efd4a Change sort for NamedExtensionManager
Use a less expensive algorithm for ordering the
extensions.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 10:02:53 -04:00
Doug Hellmann
c334f4981b Ignore missing extensions in named dispatch
If the NamedDispatchExtensionManager is told to invoke
and extension that it has not loaded, log the condition
but otherwise ignore it.

Resolves issue #14

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 09:54:19 -04:00
Doug Hellmann
7e967386c4 Set up extlinks extension
Configure the extlinks extension to make it easy to link
to issues from the documentation.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-06-03 09:53:34 -04:00
Doug Hellmann
ae2d9addea document new name_order param in history
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-05-19 12:25:08 -04:00
Doug Hellmann
abf23bc0e9 Correct argument types in name sort tests
The "names" argument is supposed to be a list, not a
single string.

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2013-05-19 12:22:48 -04:00