Skip to content

Provide dockerpty.__version__  #75

Open

Description

@yarikoptic

I guess ATM should be assigned "0.4.1"
Unfortunately there is no canonical way to setup version to be maintained in a single location but used within module and setup.py (although there are a bunch of versioneers projects), so please choose your favorite way ;) I found simplest is to have module/version.py to be imported into __init__.py and either parse or exec it. if you would like -- can do it that way for dockerpty

Activity

  1. graingert commented on Jun 12, 2017

    @graingert

    @yarikoptic __version__ is redundant. Use pkg_resources.get_distribution('dockerpty').version

  2. yarikoptic commented on Jun 14, 2017

    @yarikoptic
    Author

    good point! So is it just historically happened that majority of modules provide it ? or may be to provide version information for naive / not-installed deployments where you merely point PYTHONPATH to the location of the module (hence no pkg_resources info)?

  3. graingert commented on Jun 14, 2017

    @graingert

    Yeah __version__ predates pkg_resources and packaging being good

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions