grin icon indicating copy to clipboard operation
grin copied to clipboard

MAINT: Python 3 compatibility and travis testing

Open matthew-brett opened this issue 9 years ago • 15 comments

Use futurize and some hand editing to update code for Python3.

Add .travis.yml file for travis-ci testing.

matthew-brett avatar Sep 06 '16 22:09 matthew-brett

Sorry, I didn't notice #1 before I did this.

Here I took the approach of always opening files in binary mode, and converting to latin1 before doing the regex searches. I guess that is what grin is doing, effectively, under Python 2, but I'm happy to be corrected.

matthew-brett avatar Sep 06 '16 23:09 matthew-brett

Just started on the same thing - glad I checked here first. Thanks @matthew-brett and @jvkersch.

I tested both PRs, both work as expected for my use cases.

rgommers avatar Sep 18 '16 04:09 rgommers

@rkern perhaps you can hit the green button here? Would make installing a lot easier ....

rgommers avatar May 03 '19 08:05 rgommers

I still think this is the right fix - and this appears to be the last man standing. Robert - what do you think? I'm using this branch fairly often on my machines.

matthew-brett avatar Jun 11 '19 18:06 matthew-brett

I just tested this out on Python3.6 and it worked seemlessly. @rkern any bandwidth to take a look?

jonathanrocher avatar Sep 27 '19 18:09 jonathanrocher

@matthew-brett : @rkern commented offline that he won't be maintaining this repository anymore, and has switched to using https://github.com/BurntSushi/ripgrep . That implementation is amazing (and very fast) but is non-trivial to install for Windows users. Would you consider merging your branch into your fork's master, so a py3 supported version exists in a master branch somewhere?

jonathanrocher avatar Oct 22 '20 18:10 jonathanrocher

@rkern - would you mind giving me upload rights to PyPI, user matthew.brett, so I can upload the Python 3 version? I'm happy to take responsibility for any errors I've introduced.

matthew-brett avatar Oct 23 '20 10:10 matthew-brett

~There might be a new release of grin soon (https://github.com/rkern/grin/pull/4)~

itziakos avatar Dec 02 '20 16:12 itziakos

@itziakos - do you know something we don't? Yes, a new release would be great.

matthew-brett avatar Dec 02 '20 16:12 matthew-brett

@itziakos - do you know something we don't? Yes, a new release would be great.

oops, I was actually trying to reference your comment and added my comment here by mistake. I do not have any additional information. Sorry for the confusion.

itziakos avatar Dec 02 '20 16:12 itziakos

@itziakos - no problem - just hoping that you'd heard some news :)

matthew-brett avatar Dec 02 '20 16:12 matthew-brett

@matthew-brett Invitation sent. When you have your fork set up, I'll lock this one. Thank you!

rkern avatar Dec 02 '20 16:12 rkern

Thanks Robert - invitation accepted. I have a fork with a master branch - is there something else I should do?

matthew-brett avatar Dec 02 '20 17:12 matthew-brett

You'll want to update the metadata and URLs in the setup.py and README.

rkern avatar Dec 03 '20 00:12 rkern

Done, I think. I've left you as the 'author_email' and added myself as 'maintainer'.

matthew-brett avatar Dec 03 '20 00:12 matthew-brett