Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(14)  |  Derive(0)  |  Import(2)
A plugin manager that finds plugins in eggs on the 'plugin_path'.

To declare a plugin (or plugins) in your egg use an entry point in your
'setup.py' file, e.g.

[envisage.plugins]
acme.foo = acme.foo.foo_plugin:FooPlugin
acme.foo.fred = acme.foo.fred.fred_plugin:FredPlugin

The left hand side of the entry point declaration MUST be the same as the(more...)

src/e/n/envisage-HEAD/envisage/tests/egg_basket_plugin_manager_test_case.py   envisage(Download)
import pkg_resources
 
from envisage.egg_basket_plugin_manager import EggBasketPluginManager
from traits.testing.unittest_tools import unittest
 
    def test_find_plugins_in_eggs_on_the_plugin_path(self):
 
        plugin_manager = EggBasketPluginManager(
            plugin_path=[self.eggs_dir]
        )
 
        plugin_manager = EggBasketPluginManager(
            plugin_path = [self.eggs_dir],
            include     = include
        )
 
        plugin_manager = EggBasketPluginManager(
            plugin_path = [self.eggs_dir],
            include     = include
        )
 
        plugin_manager = EggBasketPluginManager(
            plugin_path = [self.eggs_dir],
            exclude     = exclude
        )

src/e/n/envisage-4.4.0/envisage/tests/egg_basket_plugin_manager_test_case.py   envisage(Download)
from os.path import dirname, join
 
from envisage.egg_basket_plugin_manager import EggBasketPluginManager
from traits.testing.unittest_tools import unittest
 
    def test_find_plugins_in_eggs_on_the_plugin_path(self):
 
        plugin_manager = EggBasketPluginManager(
            plugin_path=[self.eggs_dir]
        )
 
        plugin_manager = EggBasketPluginManager(
            plugin_path = [self.eggs_dir],
            include     = include
        )
 
        plugin_manager = EggBasketPluginManager(
            plugin_path = [self.eggs_dir],
            include     = include
        )
 
        plugin_manager = EggBasketPluginManager(
            plugin_path = [self.eggs_dir],
            exclude     = exclude
        )