Development moving to github.
Use github actions for automatic tests.
Bump major version to drop Python2 support.
Also ignore files generated by direnv.
New release?
Just released Yapsy with your fix: https://pypi.org/project/Yapsy/1.12.2/ Thanks again for your contribution !
directories_list in PluginManager is not respected
The fix was in Yapsy-1.12
setPluginPlaces should not presume it was given a list
The fix is part of Yapsy1.12
Multiprocess Plugin fails under Windows 7
This was fixed in Yapsy 1.12 release.
Test cases are not passing in current version (1.11.223)
I haven't heard of the pb coming back since the fix mentionned above, so closing this ticket.
Please make a new release
At least 2 releases have been done since the request I believe, so closing this ticket.
Push New Version to PyPI
Sorry for not replying directly and thanks for your interest in yapsy. A release has actually been done last september (so after both comments). Hope you could get what you needed in it !
Pull request made on github
Hello, Thanks for your pull request and for coming all the way to here to push it even more. Indeed I saw it a little while back but didn't get the time to process it. This is now done (and yes, you're right about the error with Python2.6 and unelated to your change). Thanks again, and sorry for not being more responsive !
Test cases are not passing in current version (1.11.223)
Here is the fix (which I hope, is cross-platform enough, we'll see with the CI): https://sourceforge.net/p/yapsy/code/ci/0f24c72014ebc79beb812fbaefc15e4edd3f50d4/
Hello, thanks and also... sorry if that didn't work in your case. I'm not a heavy user of Cython to say the least, so I may be mistaken but it seems Cython modules don't get imported that easily (at least not without a specific set-up), right ? (again I'm not so familiar, please forgive me if I'm wrong). To me importing Cython module may motivate wirting a new PluginLocator (see doc at https://yapsy.readthedocs.io/en/latest/PluginFileLocator.html) Or if you're sure it's enough adding some customisation...
Please make a new release
setCategoriesFilter not compatible with Python 2.7 [Owner edit: it is !]
Sorry, but I don't get your point here. copy is a method of dict in Python2.7 and 3.x as far as I can see in the doc, here for Python2.7: https://docs.python.org/2/library/stdtypes.html?highlight=dict#dict.copy this method is unit-tested and the tests pass ok for for Python2.7 on travisCI: https://travis-ci.org/tibonihoo/yapsy/jobs/351908101
Sorry, but I don't get your point here. copy is a method of dict in Python2.7 and 3.x as far as I can see in the doc. this method is unit-tested and the tests pass ok for for Python2.7 on travisCI: https://travis-ci.org/tibonihoo/yapsy/jobs/351908101
setPluginPlaces should not presume it was given a list
Fix is there: https://sourceforge.net/p/yapsy/code/ci/f4509587466829bb080a900f5a079ec1f0567d08/
Well, it is expecting a list of enumerable (generator for instance) of paths, so if you provide something else, things go bad indeed, but that's true for any of the methods. However I get your point, that providing a single string may be tempting and looking (possibly recursively) below "/" is pretty bad. So I'll add a specific protection against this precise case.
directories_list in PluginManager is not respected
Fixed with https://sourceforge.net/p/yapsy/code/ci/7b632977e7bda49f6dcdac83a85439021df8b3ab/ (including a shameful typo in the commit mesage: Encore => Enforce ....)
directories_list in PluginManager is not respected
Indeed that's unfortunate and unexpected. A fix is underway.
Ack!. Sorry for not releasing ealrier, I'll do my best to get this done this week. (and thanks for maintaining this module in debian btw !)
Import errors when plugin attempts to use multiprocessing.Pool
Hello, Sorry for the wait but I think I nailed the root cause of your problem. Basically, you're on windows and on windows the child process shares no memory with the parent process. Which means in particular that it won't know anything about the plugin's module that has been loaded (with the "yapsy_loaded_plugin_multiprocess_plugin_0" name typically) in the PluginManager.py This is by design both on yapsy's side and on the multiprocessing+windows side, so the only way to solve that is by handling...
Multiprocess Plugin fails under Windows 7
This problem is fixed with the following commit: https://sourceforge.net/p/yapsy/code/ci/abbdb0c4b86220b39230c8182358117495bbc00a/ The root cause was that on Windows the child process doesn't share any memory with the parent process and typically forget what has been imported with imp. in the PluginManager. As a consequence, to make it work the plugin candidate's module has to be imported a second time in the child process. Not terribly elegant but seems to work and make sense.
Apparently there's a way to do it that won't break python2 code. http://mypy.readthedocs.io/en/latest/python2.html...
Merge pull request #9 from Oliver2213/master
getPluginsOfCategory should have optional active=True filter
So there are 2 requests here right. About the one on getPluginOfCategory: thinking...
Thanks for your request and contribution ! It's quite suprising to me that mypy requires...
Not a valid plugin error
Sorry for the very late answer, but I guess you found the solution already: the debug...
Not a valid plugin error
Merge pull request #9 from Oliver2213/master
Multiprocess Plugin fails under Windows 7
Test cases are not passing in current version (1.11.223)
Juste a heads up, this looks bad indeed, but I don't have a windows 7 at my disposal...
Sure, the test is just too strict for the way you unpacked yapsy: it expects the...
Unicode filenames make Yapsy fail to load things
The tests are passing quite well on automatic testing: https://travis-ci.org/tibonihoo/yapsy...
The tests are passing quite well on automatic testing: https://travis-ci.org/tibonihoo/yapsy...
New release of Yapsy 1.11.223
yep, I've just done it right now. Sorry for the long wait.
By the way in the latest sources, the faulty line in your stack reads isinstance(filename,...
That's very strange, the latest version of yapsy has a specific test for that and...
Advice on Modifying Locator, Configuration & Plugins
Implementing a class-based Plugin Manager
Configurable Plugins not behaving the same way
Make _extractCorePluginInfo accept Unicode filenames
New bugfix release Yapsy 1.11.123
Configurable Plugins not behaving the same way
Well... not worries... actually the mistake is mine in this case and I've just comited...
Hello and sorry for the late reply. This seems related to the fallbak set at init...
Make _extractCorePluginInfo accept Unicode filenames
Bug fix commited at https://sourceforge.net/p/yapsy/code/ci/a0f2f129d572f4778406...
The bug is confirmed but there is a better fix to do, see my comment https://sou...
Thanks for reporting this bug and sorry for that. I appreciate also that you proposed...
Make _extractCorePluginInfo accept Unicode filenames
Sets error if it fails to construct the object
Allow plugins to be run in separate process
Merge Python2 and Python3 branch With Flask fix
code coverage of plugins
superfluous shebangs
VersionedPluginManager needs to call _prepareAttic after setCategoriesFilter
PluginManagerDecorator.__init__ defines a list and dict as default values in its arg list
New feature release for Yapsy 1.11.023
New feature release for Yapsy 1.11.023
Merge Python2 and Python3 branch With Flask fix
merge Python2 and Python3 branch With Flask fix
Install dev version with pep
I've added this info to the doc (development section).
After a little checking, there is no need to change anything to yapsy's source layout,...
PluginManagerDecorator.__init__ defines a list and dict as default values in its arg list
VersionedPluginManager needs to call _prepareAttic after setCategoriesFilter
actually chaning the categories filter after plugins have been collected will create...
actually chaning the categories filter after plugins have been collected will create...
Implementing a class-based Plugin Manager
The change I was refering to was merged, you can look at the instanciateElement method...
Ticket moved from /p/yapsy/bugs/28/
superfluous shebangs
changes pushed
Merged
Allow plugins to be run in separate process
Sets error if it fails to construct the object
Merged
Sets error if it fails to construct the object