Skip to content

Provide/document a way how to find out the current version of GitPython #311

Description

Because of the problem which I've described under 96c6ab4, I'd like to ask you to provide this information so that one can use the GitPython version to write a software which must be compatible with different GitPython versions.

Activity

  1. added this to the v1.0.2 - Fixes milestone on Jul 14, 2015
  2. Byron commented on Jul 14, 2015

    @Byron
    Member

    If GitPython was installed from Pypi, you can access version information like so:

    import git
    git.__version__
    

    If a version from GitHub is used, the said variable will hold the value git though, which would make it hard to make a decision unless one would be willing to assume it is the very latest dev version.

    Do you find this information helpful ?

  3. PonteIneptique commented on Dec 2, 2015

    @PonteIneptique
    Contributor

    Sorry to join without being invited, but wouldn't if be possible with normal tools such as :

    from distutils.version import LooseVersion, StrictVersion
    LooseVersion("2.3.1") < LooseVersion("10.1.2")
    StrictVersion("2.3.1") < StrictVersion("10.1.2")

    http://stackoverflow.com/questions/11887762/how-to-compare-version-style-strings

  4. Byron commented on Feb 11, 2016

    @Byron
    Member

    A new release was just made to pypi 😁 (see #298) !

  5. modified the milestones: v1.0.2 - Fixes, on Feb 13, 2016
  6. modified the milestones: v2.0.0 - Features and Fixes, on Apr 24, 2016
  7. 39 remaining items

  8. modified the milestones: , v2.1.1 - Bugfixes on Dec 8, 2016
  9. modified the milestones: , on Mar 8, 2017
  10. added a commit that references this issue on May 5, 2019
    8d545a0
  11. stsewd commented on May 5, 2019

    @stsewd
    Contributor

    Agreed with #311 (comment), this just needs documentation

  12. added a commit that references this issue on Jul 20, 2019
    1bb0b17
  13. added this to the v2.1.12 - Bugfixes milestone on Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions