Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-63

mariadb package should have more dunders such as __version__

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 0.9.58
    • 0.9.59
    • Generic
    • None

    Description

      It would be useful if the mariadb package had dunders such as:

      • __version__
      • __version_info__
      • __all__

      I'm far from an expert, but there are some relevant PEPs on version, e.g.:
      https://www.python.org/dev/peps/pep-0396/
      https://www.python.org/dev/peps/pep-0440/

      As always, StackOverflow is also useful:
      https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package

      Attachments

        Activity

          karll Karl Levik created issue -
          karll Karl Levik made changes -
          Field Original Value New Value
          Description It would be useful if the mariadb package had dunders such as:
          * {noformat}__version__{noformat}
          * {noformat}__version_info__{noformat}
          * Maybe also {noformat}__all__{noformat}

          I'm far from an expert, but there are some relevant PEPs on version, e.g.:
          https://www.python.org/dev/peps/pep-0396/
          https://www.python.org/dev/peps/pep-0440/

          As always, StackOverflow is also useful:
          https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
          It would be useful if the mariadb package had dunders such as:
          * ___version___
          * {noformat}__version_info__{noformat}
          * Maybe also {noformat}__all__{noformat}

          I'm far from an expert, but there are some relevant PEPs on version, e.g.:
          https://www.python.org/dev/peps/pep-0396/
          https://www.python.org/dev/peps/pep-0440/

          As always, StackOverflow is also useful:
          https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
          karll Karl Levik made changes -
          Description It would be useful if the mariadb package had dunders such as:
          * ___version___
          * {noformat}__version_info__{noformat}
          * Maybe also {noformat}__all__{noformat}

          I'm far from an expert, but there are some relevant PEPs on version, e.g.:
          https://www.python.org/dev/peps/pep-0396/
          https://www.python.org/dev/peps/pep-0440/

          As always, StackOverflow is also useful:
          https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
          It would be useful if the mariadb package had dunders such as:
          * __version__
          * {noformat}__version_info__{noformat}
          * Maybe also {noformat}__all__{noformat}

          I'm far from an expert, but there are some relevant PEPs on version, e.g.:
          https://www.python.org/dev/peps/pep-0396/
          https://www.python.org/dev/peps/pep-0440/

          As always, StackOverflow is also useful:
          https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
          karll Karl Levik made changes -
          Description It would be useful if the mariadb package had dunders such as:
          * __version__
          * {noformat}__version_info__{noformat}
          * Maybe also {noformat}__all__{noformat}

          I'm far from an expert, but there are some relevant PEPs on version, e.g.:
          https://www.python.org/dev/peps/pep-0396/
          https://www.python.org/dev/peps/pep-0440/

          As always, StackOverflow is also useful:
          https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
          It would be useful if the mariadb package had dunders such as:
          * \_\_version\_\_
          * \_\_version_info\_\_
          * \_\_all\_\_

          I'm far from an expert, but there are some relevant PEPs on version, e.g.:
          https://www.python.org/dev/peps/pep-0396/
          https://www.python.org/dev/peps/pep-0440/

          As always, StackOverflow is also useful:
          https://stackoverflow.com/questions/458550/standard-way-to-embed-version-into-python-package
          georg Georg Richter made changes -
          Fix Version/s 0.9.59 [ 24428 ]
          georg Georg Richter made changes -
          Affects Version/s 0.9.58 [ 24326 ]
          georg Georg Richter added a comment -

          Added _version_ and _version_info_ for mariadb module.

          Please correct me if I'm wrong, but _all_ isn't needed for CPython modules (and is also not mandatory anymore for Python3.x )

          georg Georg Richter added a comment - Added _ version _ and _ version_info _ for mariadb module. Please correct me if I'm wrong, but _ all _ isn't needed for CPython modules (and is also not mandatory anymore for Python3.x )
          georg Georg Richter made changes -
          issue.field.resolutiondate 2020-05-12 15:05:10.0 2020-05-12 15:05:10.058
          georg Georg Richter made changes -
          Component/s Generic [ 14515 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 108438 ] MariaDB v4 [ 135637 ]

          People

            georg Georg Richter
            karll Karl Levik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.