aleaxit / gmpy

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)
https://gmpy2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
510 stars 86 forks source link

Add __version__ module attribute #440

Closed skirpichev closed 10 months ago

skirpichev commented 10 months ago

This is a more standard way to embed version info. Recognized, e.g. by pytest.importorskip.

Also, simplify version handling in docs/conf.py.

Probably, we could also deprecate gmpy2.version() function. @casevh, what do you think?

casevh commented 10 months ago

Thanks for adding version. I think we should keep gmpy2.verison(). I don't think it is worth the disruption.