Philipp Wolfer
2f1b6d79da
Implement proper version comparison for dev, alpha, beta and rc releases
...
The version identifier was previously compared alphabetically, which fails for e.g. "dev" < "alpha".
Implement proper version comparison by introducing a Version class (inherited from tuple).
2020-01-03 14:25:15 +01:00
Philipp Wolfer
95c3689a86
PICARD-1665: Refactoring for detecting user installed plugins
2019-12-31 17:17:54 +01:00
Laurent Monin
c4ff226bd5
Move a big part of plugin.py to new pluginmanager.py
2019-04-18 11:30:08 +02:00
Laurent Monin
e5d1279183
Add tests for PluginManager.load_plugins_from_directory()
2019-04-18 11:14:48 +02:00
Laurent Monin
2d8a1f8136
Unload plugin before each test
2019-04-18 11:14:48 +02:00
Laurent Monin
6bacf2deb4
_get_test_plugins(): Ignore __pycache__
2019-04-18 11:14:48 +02:00
Laurent Monin
7fceae05f7
Minor warnings fixes
2019-04-18 11:14:48 +02:00
Laurent Monin
51e85f6883
PluginManager.install_plugin(): assert path or plugin_name, and test it
2019-04-18 11:14:47 +02:00
Laurent Monin
ae779631c1
Actually import DummyPlugin to ensure it was properly loaded
2019-04-18 11:14:47 +02:00
Laurent Monin
dd42b5e3bd
Add tests for zipped plugin installed from picard plugins ws
2019-04-18 11:14:47 +02:00
Laurent Monin
f9cc6c1d81
packaged_module support is not really implemented
2019-04-18 11:14:47 +02:00
Laurent Monin
3634cbb99b
TestPicardPluginsInstall: get rid of useless loop
2019-04-18 11:14:47 +02:00
Laurent Monin
f6f7b58c38
Add tests for PluginManager.install_plugin()
2019-04-18 11:14:47 +02:00
Laurent Monin
76487b0b0b
Add tests for _plugin_name_from_path()
2019-04-18 11:14:47 +02:00
Laurent Monin
689fcdcc48
Drop PluginManager._api_versions, use picard.api_versions_tuple instead
...
- modify PluginManager._compatible_api_versions()
- add matching tests
2019-04-18 11:14:46 +02:00