wmjie / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

ibm_db.__version__ attribute not set (PEP 396) #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

>>> ibm_db_dbi.__version__ 
Traceback (most recent call last):  File "<stdin>", line 1, in <module> 
AttributeError: 'module' object has no attribute '__version__' 
>>> import ibm_db
>>> ibm_db.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__' 

Module version string should be returned.

>>> ibm_db.__version__
'1.0.5'

Attribute should be set as described in 
http://www.python.org/dev/peps/pep-0396/

However, this worked
>>> pkg_resources.get_distribution("ibm_db").version
'1.0.5' 

Original issue reported on code.google.com by south.mi...@gmail.com on 9 Apr 2012 at 1:50

GoogleCodeExporter commented 9 years ago
We will add this feature in our modules in next release.

Original comment by rahul.pr...@in.ibm.com on 12 Apr 2012 at 8:43

GoogleCodeExporter commented 9 years ago
Fixed and released with ibm_db-1.0.6

Original comment by rahul.pr...@in.ibm.com on 25 May 2012 at 6:51

GoogleCodeExporter commented 9 years ago
Thank you all, great job.

Original comment by south.mi...@gmail.com on 25 May 2012 at 10:39