Skip to content

PyGMT version is not dynamic in develop mode? #912

Closed

Description

@seisman

Full code that generated the error

I have the full git repository of the PyGMT project, and then run the following commands:

# Checkout master branch and install it
$ cd pygmt/
$ git checkout master
$ make install

# Check current PyGMT version
$ python -c "import pygmt; print(pygmt.__version__)"
v0.3.1.dev3+g27c09271

# Checkout the v0.3.0 tag and check the PyGMT version
$ git checkout v0.3.0
HEAD is now at 65b099a5 Changelog entry for v0.3.0 (#887)
$ python -c "import pygmt; print(pygmt.__version__)"
v0.3.1.dev3+g27c09271

As shown above, should the version string to v0.3.0 when I checked out the v0.3.0 tag?

Activity

  1. added
    bug
    on Feb 16, 2021
  2. seisman commented on Feb 21, 2021

    @seisman
    MemberAuthor
  3. weiji14 commented on Nov 3, 2021

    @weiji14
    Member

    Don't think there's much we can do with this, other than using post commit/checkout hooks as mentioned in pypa/setuptools-scm#518 (comment). Maybe something that could be added to #1593.

    Closing for now.

  4. added
    wontfix
    on Nov 3, 2021
  5. reopened this on Apr 8, 2024
  6. seisman commented on Apr 10, 2024

    @seisman
    MemberAuthor

    Changed my mind and I think we should use the more official setuptools_scm although it has some limitations. Close again.

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

    bugwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions