[CONPY-63] mariadb package should have more dunders such as __version__ Created: 2020-05-08  Updated: 2020-05-12  Resolved: 2020-05-12

Status: Closed
Project: MariaDB Connector/Python
Component/s: Generic
Affects Version/s: 0.9.58
Fix Version/s: 0.9.59

Type: New Feature Priority: Minor
Reporter: Karl Levik Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: 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



 Comments   
Comment by Georg Richter [ 2020-05-12 ]

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 )

Generated at Thu Feb 08 03:29:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.