LernaeanHydra / pyactivemq

Automatically exported from code.google.com/p/pyactivemq
Apache License 2.0
1 stars 0 forks source link

Provide version number #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to have a version number to check.

$ python
>>> import pyactivemq
>>> print pyactivemq.version
(0, 0, 3)

Original issue reported on code.google.com by thijs.triemstra@gmail.com on 26 May 2008 at 9:52

GoogleCodeExporter commented 8 years ago
Sure thing. I'll cook up something soon. I think NumPy has some nice ideas, 
which
includes the version for "release" builds, or some info about the SVN revision 
when
one builds from trunk.

Original comment by fullung@gmail.com on 26 May 2008 at 10:06

GoogleCodeExporter commented 8 years ago
Sounds good. setup.py should also be updated and point to 0.1.0 instead of 
0.0.3.. or should I open a new ticket 
for that? :)

Original comment by thijs.triemstra@gmail.com on 26 May 2008 at 10:13

GoogleCodeExporter commented 8 years ago
Added pyactivemq.__version__ as a string, which is what NumPy does. Also 
updated the
version in setup.py.

You could turn it into a tuple using

tuple(map(int,pyactivemq.__version__.split('.')))

I didn't doing anything fancy about the SVN revision for now.

Can I close this issue?

Original comment by fullung@gmail.com on 27 May 2008 at 6:57

GoogleCodeExporter commented 8 years ago
Works for me, thx.

Original comment by thijs.triemstra@gmail.com on 27 May 2008 at 8:32

GoogleCodeExporter commented 8 years ago
Cool. Closing.

Original comment by fullung@gmail.com on 27 May 2008 at 8:53