equal
deleted
inserted
replaced
20 |
20 |
21 setup( |
21 setup( |
22 name = "coneexamplemlplugin", |
22 name = "coneexamplemlplugin", |
23 version = __version__, |
23 version = __version__, |
24 packages = find_packages(exclude=["*.tests"]), |
24 packages = find_packages(exclude=["*.tests"]), |
|
25 package_data = {'examplemlplugin': ['xsd/*.xsd']}, |
25 test_suite = "examplemlplugin.tests.collect_suite", |
26 test_suite = "examplemlplugin.tests.collect_suite", |
26 |
27 |
27 # metadata for upload to PyPI |
28 # metadata for upload to PyPI |
28 author = "<author>", |
29 author = "<author>", |
29 author_email = "authors.email@example.com", |
30 author_email = "authors.email@example.com", |
33 url = "http://developer.symbian.org/wiki/index.php/Software_Configuration_Middleware", |
34 url = "http://developer.symbian.org/wiki/index.php/Software_Configuration_Middleware", |
34 zip_safe = True, |
35 zip_safe = True, |
35 |
36 |
36 # Entry point info. |
37 # Entry point info. |
37 # Plug-ins can register ImplML reader classes by adding entry points |
38 # Plug-ins can register ImplML reader classes by adding entry points |
38 # pointing to reader classes under 'cone.plugins.implmlreaders' |
39 # pointing to reader classes under 'cone.plugins.implmlreaders', and |
|
40 # validator classes under 'cone.plugins.implvalidators' |
39 entry_points = { |
41 entry_points = { |
40 'cone.plugins.implmlreaders': [ |
42 'cone.plugins.implmlreaders': [ |
41 'exampleml = examplemlplugin.exampleml_reader:ExamplemlReader', |
43 'exampleml = examplemlplugin.exampleml_reader:ExamplemlReader', |
42 # More readers (e.g. different versions of the same ImplML) |
44 # More readers (e.g. different versions of the same ImplML) |
43 # could also be registered: |
45 # could also be registered: |
44 #'exampleml_v2 = examplemlplugin.exampleml_reader:ExamplemlReader2', |
46 #'exampleml_v2 = examplemlplugin.exampleml_reader:ExamplemlReader2', |
45 ] |
47 ], |
|
48 |
|
49 'cone.plugins.implvalidators': [ |
|
50 # Each entry point is expected to be an iterable of reader |
|
51 # classes, here it points to a list defined in exampleml_validators.py |
|
52 'exampleml = examplemlplugin.exampleml_validators:VALIDATOR_CLASSES' |
|
53 ], |
46 } |
54 } |
47 ) |
55 ) |