-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of PasteScript depenedency. #6
Comments
I was unaware that the pyramid scaffolds had simply pulled the parts of PasteScript they needed out of that package and into their own. At the BBQ sprint a few years back this was heavily discussed and then abandoned as it was too large a project for us to accomplish in the short space of time we had available. However, there are a huge number of issues and problems that the dependency on PasteScript causes us. I agree with this entirely. It would also make the idea of using Jinja2 templates (or any other template system that comes along later) much easier if we were to be rid of PasteScript. Could someone take a look into this? Perhaps a branch or fork of this repo to start work on this? All the dependencies of the templer system on PasteScript should be localized to this one package, so we should not need to do more than fix this, leaving the API of this package untouched and we'll have it. |
The branch is started. All that remains is getting localcommands back. And most of that is actually just command-line management. See the drop_pastescript_dependency branch of this repo |
Are you still working on localcommands? That's all we need to make a new release, right? |
I am, yes. But it's not going swiftly. Time is not easy to find. I would like to delay a new full release of all templer packages until I can get that working. It'd be really really nice to have that in place. Basically, I am in the midst of trying to make the original command-line syntax work without having paster at all. This means that we need to support the following use-cases (after creating package foo.bar which has localcommands available):
So the 'templer' command needs to be able to support this second-level command syntax. It has to be able to know if The proper handling of this command-line interaction is where I'm hung up at the moment. Once this is working, then refining the actual running scripts is a fairly simple thing (at least I hope so). |
Roger. I'm currently swamped with work, in free time working on Nevertheless, I can help with thinking. Maybe if we detect 'templer add' in sys.argv, different arguments parser is used? That would make our life easier? |
So totally understand the swamped thing. I like that idea. I hadn't considered swapping out arg parsers. That bears some serious consideration. Thanks, @iElectric |
This issue on templer.dexterity highlights our continuing pain with the Paste dependency. Because local commands are implemented as Paste plugins, a package generated by templer needs to be 'installed' in order for local commands to work. However, if that package declares a dependency on some package (like the dexterity package does on plone.app.dexterity), then that package would also need to be 'installed' in order for the newly created package to properly load Paste plugins. Effectively, this means you have to install your package in a full buildout before you can even try to run local commands, and it probably means that even that won't work, as the dependencies of the package would not necessarily exist in the working set that Paste sees. We have to fix this. It is becoming more and more urgent |
Checking in, any progress with this bug? The localcommands Paste dependency "circle" is killing me at the moment. How many hours would one need to dedicate to fixing this? |
PasteScript/PasteDeploy are dying because noone wants to maintain it. Pyramid actually stripped off templating functionality into
pyramid.scaffolds
, we could steal their code and integrate intotempler.core
. Maybe then someday pyramid also depends ontempler.core
. Opinions?PS: This could be a nice todo for ploneconf2012 sprints :)
The text was updated successfully, but these errors were encountered: