-
Notifications
You must be signed in to change notification settings - Fork 35
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
Python 3 todo list #5
Comments
I would also like to do a big (edit: automated) pep8 cleanup, but really that requires downing-tools on the main pattern repo (until this effort is ready to merge back in), as merge-conflicts after a pep8 storm can be expensive (so you want to do it quickly). Need confirmation that this is the game plan. |
One big problem IMO is vendorising all these modules, which are clearly dependancies e.g. beautiful soup, simplejson, feedparser?!!? Waaat. These should all be removed and added as dependencies. We don't want to port those or manage them... at all.
|
@tom-de-smedt I have a branch with this running all 485 tests in python3 (and passing in python 2 as well, obviously the python 3 tests fail). Would be great if you could look at / merge the pending PRs. I ripped out all the dependancies (as discussed above), it was less painful than I thought it would be (as well as being "the right thing to do"). As such the upcoming PR is somewhat larger (and potentially more controversial)... |
Thanks @hayd! You've done an impressive amount of stuff in the past couple of days! I'll take a look at those pull requests tomorrow morning and get them merged in. |
Fab, thanks! I just want to clarify my thoughts for moving forward, since it's still unclear how large a job it'll be to fully migrate we want to minimize git-pain later on...
This way any bug fixing merged/PRd on clips/pattern during python 3 development can be merged cleanly (after the 1000s of lines py3 syntax and pep8 changes). Update: I feel less strongly about this now. |
Hi, I'm interested in helping the port. I routinely work in python3 and I'm really interested in a "modern" version of this library. Any suggestion on where to start from? |
@EnricoGiampieri I think getting |
fix sgmllib is depreciated in python 3 #21 |
hi, there was no action in this repo during the last year. anyone still working on this? |
Hi, I would like to contribute to the Project by fixing some skipped tests. How do I start? |
@souravsingh see the comments in #3. larger projects are test_web and test_db. #17 was waiting on @tom-de-smedt, so this port has stalled. |
@hayd for mysql, I would just add in mysqlclient as a requirement, so in travis.yml add in install: pip3 install mysqlclient (or add it to requirements.txt) mysqlclient is a drop in replacement for MySQLdb and even imports the same way as import MySQLdb. |
@hayd how best for me to do this part myself? fork and pull request it for that specific issue? |
As part of the process of running Gensim in py3.5 Win64 Windows10, I made a few changes to pattern3 Update [1st Dec 2016] @i git clone https://github.com/pattern3/pattern; python setup.py develop in MiniConda py3.5 Win64 FYI: I have not done all test yet! |
Is the project still on? I'd love to join in? |
Update: As part of Google Summer of Code 2017, Markus Beuckelmann (@markus-beuckelmann) will be working on the future of Pattern (porting it to Python 3 is first on our list). Markus is admin of the main repo now and can handle pull requests and invite collaborators. Be sure to reach out to him and include him in discussions about the port. We'll focus on the main repo, and reintegrate what we can from the work done by @hayd here. Hopefully we can make some progress over the summer. |
I've broken up python 3 migration (#1) into the following independent tasks.
Fix the (python 2) skipped tests see #3:
Python 3 stuff
test files passing on python 3
e.g. via
nosetests test/test_xx.py
General stuff
suite
functions (just usetest_main
).__future__ print_statement
being sensitive to unicode) i.e. make all the things unicode. See Unicode all the things #12Performace
The text was updated successfully, but these errors were encountered: