Skip to content

Rename the project #263

Closed
Closed

Description

@leouieda

Right now, this project is called "GMT/Python". But that's not a valid package name so we import gmt. But we can't call our repository, PyPI and conda packages gmt so they'll have to be gmt-python. This is kind of crazy. Plus, import gmt confuses a lot of beginners.

Clearly we need a new name.

Both pygmt and gmtpy have been used before but they were never registered on PyPI so we can still use those names. I don't really like those two options much but they are certainly better than what we have right now.

Are there any other suggestions?

Activity

  1. added
    question
    help wanted
    on Jan 17, 2019
  2. leouieda commented on Jan 17, 2019

    @leouieda
    MemberAuthor

    Pinging @GenericMappingTools/gmt-python @liamtoney @weiji14 @akshmakov @mjziebarth

  3. weiji14 commented on Jan 17, 2019

    @weiji14
    Member

    Why not just go with GMT-Python? Use gmt-python as the PyPI package name just to be consistent with conda, and import gmtpython to import the package (no hyphen). This is about the same as scikit-image and scikit-learn which uses import skimage and import sklearn respectively (note no hyphen also).

    Oh, and for reference on package naming, there's PEP8.

  4. leouieda commented on Jan 17, 2019

    @leouieda
    MemberAuthor

    That's a fair point but then we're not any better off. It's still confusing that you install one thing and import another. That's something I really dislike about scikit-learn and scikit-image. I'm sure they'd rename if they could but they've already been around for too long. We don't have an official release yet so it's the perfect time to do this right. I would prefer to have the repository, import, and PyPI package names be the same.

    If we go with gmtpython then I'd prefer to never have the hyphen in there. We can always import gmtpython as gp or import gmtpython as gmt to keep things short. This isn't a bad idea actually and would be minimally disruptive.

  5. liamtoney commented on Jan 17, 2019

    @liamtoney
    Member

    This option would be shorter, and could allow for a repo name that is also consistent:

    conda install pygmt
    
    import pygmt

    GenericMappingTools/PyGMT

    PyGMT

    A Python interface to the Generic Mapping Tools (GMT)

  6. liamtoney commented on Jan 17, 2019

    @liamtoney
    Member

    Or, taking @weiji14's idea above and making it entirely consistent, even with case. The title is less stylish, but then things are truly unambiguous, which is valuable in my opinion...

    conda install gmtpython
    
    import gmtpython as gmt

    GenericMappingTools/gmtpython

    gmtpython

    A Python interface to the Generic Mapping Tools (GMT)

  7. leouieda commented on Jan 17, 2019

    @leouieda
    MemberAuthor

    @liamtoney that's my favorite between pygmt and gmtpy. I'm still hoping for some clever/funny name to come along, though 😉

    I know @PaulWessel is a Monty Python fan so something related to that might be interesting. Are there any Monty Python jokes related to mapping?

  8. liamtoney commented on Jan 18, 2019

    @liamtoney
    Member

    @leouieda I think I've found the answer. For reference, see here. 😜

    conda install airspeedvelocityofanunladenswallow
    
    import airspeedvelocityofanunladenswallow as gmt

    GenericMappingTools/airspeedvelocityofanunladenswallow

    airspeedvelocityofanunladenswallow

    A Python interface to the Generic Mapping Tools (GMT)

  9. leouieda commented on Jan 18, 2019

    @leouieda
    MemberAuthor
  10. liamtoney commented on Jan 18, 2019

    @liamtoney
    Member

    And that above comment was in jest, anyhow. :)

    On a more serious note, while I like the idea of a "punny" name, isn't it important to have a short package name that gives some indication of the package topic?

  11. leouieda commented on Jan 18, 2019

    @leouieda
    MemberAuthor

    Yeah, having a clear and concise name would be optimal. Just putting it out there in case anyone has a good idea :)

  12. leouieda commented on Jan 21, 2019

    @leouieda
    MemberAuthor

    I'm leaning towards pygmt. Can I get a 👍 or 👎 on that?

  13. weiji14 commented on Jan 21, 2019

    @weiji14
    Member

    @liamtoney that's my favorite between pygmt and gmtpy. I'm still hoping for some clever/funny name to come along, though 😉

    No idea why, but I had this dream this morning and woke up with this name "GMighTy". Since GMT is a powerful and awesome library, mighty seems like a good word for it 😄 And as you've all mentioned, we could do something like:

    import gmighty as gmt
    

    I did consider something like gmightpy or gmighpy, just to have the Py of Python in it, but they're hard to pronounce and Ty sounds enough like Py 🤷‍♂️.

  14. leouieda commented on Jan 21, 2019

    @leouieda
    MemberAuthor

    @weiji14 🤣 that was certainly very different from all other suggestions! +1 for creativity and thinking outside the box 🥇

  15. weiji14 commented on Jan 21, 2019

    @weiji14
    Member

    Shall we put this to vote? There's a Probot app at https://probot.github.io/apps/polls/ we can install to use. @leouieda maybe add the poll to the first comment?

  16. leouieda commented on Jan 21, 2019

    @leouieda
    MemberAuthor

    @weiji14 thanks for setting that up! These Github apps are really helpful.

    OK, so can we get a vote on these names:

    (sorry @weiji14, I have a really hard time reading gmighty and pronouncing it in my head :)

  17. leouieda commented on Jan 21, 2019

    @leouieda
    MemberAuthor

    /polls pygmt gmtpy gmtpython

  18. leouieda commented on Jan 21, 2019

    @leouieda
    MemberAuthor

    The bot is not working for some reason. So let's not go with a full democracy. Instead, I propose using pygmt. Please add a reaction to this comment with either 👍 or 👎 (click on the + 😃 button).

  19. leouieda commented on Jan 22, 2019

    @leouieda
    MemberAuthor

    Well that sucks, someone took pygmt.org since yesterday.

  20. liamtoney commented on Jan 22, 2019

    @liamtoney
    Member

    How about a domain hack like pyg.mt?

  21. seisman commented on Jan 22, 2019

    @seisman
    Member
  22. added a commit that references this issue on Jan 22, 2019
    bf49e46
  23. leouieda commented on Jan 22, 2019

    @leouieda
    MemberAuthor

    Yeah, it was my mistake. I had it on my cart and it showed up as unavailable.

  24. added a commit that references this issue on Jan 22, 2019
    a23f44a
  25. leouieda commented on Jan 22, 2019

    @leouieda
    MemberAuthor

    The rename was successful! Please update your github links. The docs are now hosted on http://www.pygmt.org/ and the name is register on PyPI. Still waiting for SSL certificates to enable https and the gitter room to rename fully. I'm setting up forwarding from the old gmtpython.xyz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions