Skip to content
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

[tracker] External dependencies that need python 3 porting #2104

Closed
18 of 20 tasks
gforcada opened this issue Jul 12, 2017 · 14 comments
Closed
18 of 20 tasks

[tracker] External dependencies that need python 3 porting #2104

gforcada opened this issue Jul 12, 2017 · 14 comments

Comments

@gforcada
Copy link
Sponsor Member

gforcada commented Jul 12, 2017

If we ever want to move Plone to Python 3 (I guess we all want 😄), one of the very first tasks that we need to do is make sure that our external dependencies (i.e. python distributions that we rely on that are not Zope nor Plone controlled) are already python 2 and python 3 compatible.

Background
For that during the Plone Conference 2016 in Boston I shamelessly copied the code from zope on python 3, (actual code and my fork), to Plone status on python 3.

The main difference between the two pages is that the Plone packages listing takes as an input the packages from buildout.coredev 5.1 test script (i.e. after running bin/buildout what's on the sys.path on bin/test.

With this list we are supposed to know the exact amount of packages that are needed for being able to run the Plone test suite.

Call to action
As these dependencies are external, anyone can potentially work on them, and they can be worked in parallel.

Quick check list for contributors to this effort:

  • update this story with a pull request/issue whenever you start working on it (or find an existing one)
  • put your github id and the date you start working on it, so we can keep an overview of who is doing what and the chances of an effort being stalled
  • review the usage of that dependency within Plone, maybe it can be dropped and thus we don't need that specific dependency to be ported?
  • when the changes are merged, ask for a release on pypi!

Packages list
Without further ado, the external dependencies that need porting.

@jamadden
Copy link

zope.broken is entirely obsolete. It was merged into ZODB back in 2010. Its current distribution is just a shim that imports ZODB.interfaces.IBroken. That known, classifiers aside, the BWC shim it provides should be Py3 compatible (though I would urge dropping any dependency on it).

I've recently been working on moving older/less maintained zope packages to Py3, and it was for those reasons I skipped zope.broken.

@hvelarde
Copy link
Member

cssmin and slimit can be removed from the list if we drop the minifying feature from the core; I think we all must agree that this is not a feature we want to keep/maintain.

@jamadden
Copy link

I can’t speak definitvely, but seeing mechanize on python 3 also seems remote. The maintainers of zope.testbrowser have long since moved on to WebTest. I believe that was because no one wanted to move mechanize to python 3.

@datakurre
Copy link
Member

datakurre commented Jul 13, 2017

@gforcada robotframework_ride should not a required dependency, and should probably be cleaned from our buildouts (it's probably only included in tests.cfg of buildout.coredev with plone.app.robotframework [ride]). It's an IDE for editing robot tests, but AFAIK core devs are fine with writing tests with their favourite text editors.

@datakurre
Copy link
Member

datakurre commented Jul 13, 2017

The next release robotframework_selenium2library is about to support Python 3: https://groups.google.com/forum/m/#!topic/robotframework-users/McYQ81MakM8 https://github.com/robotframework/Selenium2Library/milestone/17

@datakurre
Copy link
Member

futures just backport features from Python 3. It should be handled somehow conditionally.

@gforcada
Copy link
Sponsor Member Author

😮 thanks a lot to all for this quick feedback. Open mental note to everyone: again, if we get organized, things can start rolling, so please keep organizing!

@loechel
Copy link
Member

loechel commented Jul 16, 2017

#2107 will remove cssmin as dependency

mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Jul 17, 2017
Branch: refs/heads/master
Date: 2017-07-14T13:23:49+02:00
Author: Gil Forcada (gforcada) <gil.gnome@gmail.com>
Commit: plone/plone.app.contenttypes@81b2391

Remove plone.app.robotframework 'reload' extra

Related to plone/Products.CMFPlone#2104

Files changed:
M CHANGES.rst
M setup.py
Repository: plone.app.contenttypes
Branch: refs/heads/master
Date: 2017-07-17T10:21:05+02:00
Author: Philip Bauer (pbauer) <bauer@starzel.de>
Commit: plone/plone.app.contenttypes@b2dbc6e

Merge pull request #416 from plone/gforcada-remove-reload-extra

Remove plone.app.robotframework 'reload' extra

Files changed:
M CHANGES.rst
M setup.py
@metatoaster
Copy link
Member

I don't think slimit is maintained anymore, as there have been no release for about three years now and there are a number of outstanding bugs, a couple of them will result in wrong code being generated when run through the minifier (others just simply slimit lexer breaking on ES5 keywords when it shouldn't). If Plone intends to keep js minification in core, I will have a replacement ready when the mangling capabilities are added to calmjs.parse which is being worked on. It will be a drop-in replacement.

@metatoaster
Copy link
Member

metatoaster commented Oct 3, 2018

Since issues related to slimit release for Python 3 is raised again (well rather the lack of a release, as per rspivak/slimit#65 and rspivak/slimit#102), I have a fork of Products.CMFPlone with this change to show that this change is basically a drop-in replacement using calmjs.parse - this also fixes a huge list of issues that breaks the minifier (including fixes for some script that would become malformed after running through slimit). I can turn that into a pull request if needed.

Unless this JS compression feature is to be removed in favor of whatever Node.js method that Plone is currently embracing, a decision should be made to accept a solution that does not result in malformed JS being generated (changelog for calmjs.parse lists all the fixes done).

@esteele
Copy link
Sponsor Member

esteele commented Nov 4, 2018

@metatoaster Would you be willing to create a PR for that to get merged into CMFPlone? I'd hate for 5.2 to be held up over this one package.

@gforcada
Copy link
Sponsor Member Author

gforcada commented Nov 4, 2018

The other problematic package is z3c.zcmlhook is only in Pyrenees github org

@jensens
Copy link
Sponsor Member

jensens commented Mar 13, 2023

this was all done and fixed

@jensens jensens closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants