Flake8: In Transition

Sun 21 September 2014 by Ian Cordasco

tl;dr Flake8 development has moved to GitLab and has a mirror on GitHub. Please send all further bug reports and pull requests to the GitLab repository.

Changing to Git

Recently I started a discussion on the code quality mailing list about moving Flake8 from Mercurial to Git and to a different hosted service. There wasn't a great deal of objection to the idea and it's a request that we have received several times over the last couple years. The one idea that came up that interested me most was the idea of using an Open Source platform to continue development instead of using GitHub or BitBucket.

Choosing a Open Source Service

In this case, there are two prominent open source git hosting services: Gitorious and GitLab. I chose GitLab for two reasons:

  1. It is similar in design and function to GitHub
  2. It allows users to sign in with GitHub

Gitorious, on the other hand, allows users to create their own account or use OpenID to sign in, but doesn't allow users with GitHub accounts to sign in with them. This made the choice rather easy for me.

Mirroring on GitHub

The choice to mirror the repository on GitHub was also a fairly easy one. Most developers prefer to use GitHub to other services. We hope that mirroring our development there will make the project more discoverable for new developers.

The GitHub Support Team was wonderfully helpful in helping us set up mirroring for this repository last weekend (Saturday, 13 September 2014). Once a day, the mirror will sync from the GitLab repository.

Unfortunately, there is no way to disable pull requests to GitHub. All pull requests received on GitHub will be asked to move to GitLab for review and discussion. No one on the project wants to end up reviewing pull requests in two separate places so we would ask that you plan accordingly when contributing.

Project History and Future

The mercurial history has already been exported to git using hg-fast-export. I have also downloaded a history of all of the issues opened on the old mercurial repository. The last two things left to do are

  1. to convert all of the tags from mercurial tags to git tags
  2. to import the issues from BitBucket

Unfortunately, there's no way to preserve the pull request history from BitBucket. We will soon archive the project on BitBucket to prevent any further confusion.


Designing and Building OSAP

Mon 09 September 2013 by Ian Cordasco

Initial Success

Following the advice of Jim "Big Tiger" Remsik, I made the Google Docs Forms that have started OSAP as a service. Thankfully, I have a more manageable way of helping apprentices find mentors than people emailing me directly. Due to those forms working so well, we already have ...

read more

Starting OSAP

Mon 26 August 2013 by Ian Cordasco

This past weekend was Madison Ruby and it was fantastic. After it finished on Saturday, I went to dinner with some super awesome people and we eventually started discussing open source. A couple of the people at the table expressed concerns and fears about contributing to existing open soure projects ...

read more

Requests 1.2.0

Sun 31 March 2013 by Ian Cordasco

tl;dr dispatch_hook now sends the keyword arguments that were originally sent with the request. Hook authors should modify their hooks to accept them and resend them.

This morning Kenneth published (on PyPI and Crate) requests 1.2.0 which included a lot of very important changes. One, which will ...

read more

Showing bash some love

Sun 06 January 2013 by Ian Cordasco

So in my last post I discussed my pyserv bash function that looks and behaves like a program. I didn't exactly disect it, but I have a different one that I will disect.

Meet my nifty function called sandbox:

sandbox(){
    if [[ -z "$1" ]] ; then
        echo "sandbox: No directory provided ...
read more

One-liners

Mon 26 November 2012 by Ian Cordasco

I'm just going to collect some useful one-liners that I've either made myself or found elsewhere. I think some of these might benefit some people I know, so there may be follow up posts to add more.

What's my IP? (python)

This requires requests but it could ...

read more

Unittests in github3.py

Tue 18 September 2012 by Ian Cordasco

After mostly finishing github3.py[1] I started writing the unittests for the library. I waited until the end because I knew I wanted to test directly against the API. To do that, I needed to make sure I had all the functionality that would return the proper objects to ...

read more

Weirdness in python2

Wed 22 August 2012 by Ian Cordasco

So a friend of mine is learning python and was fooling around in the interactive console. They accidentally ran:

'str' > 19
# But they meant to run
'str' > '19'

Can you guess what that evaluated to? Conventional thought would suggest a TypeError, but in fact that evaluates to True. Odd right ...

read more

A Few Thoughts

Mon 20 August 2012 by Ian Cordasco

I've just had a few things kicking around in my head lately and I thought I'd jot them down.

github3.py

With the exception of paginated calls, github3.py is essentially feature complete but is lacking tests for everything. My plan as of this point in time is ...

read more

github3.py (update)

Thu 02 August 2012 by Ian Cordasco

I previously mentioned my work on github3.py and how I was having trouble creating downloads on GitHub because they use Amazon's S3 service for the uploaded files. What this means is that first you have to "create" the download on GitHub then you have to upload the actual ...

read more