def pykka_info(): if hasattr(pykka, '__version__'): # Pykka >= 0.14 version = pykka.__version__ else: # Pykka < 0.14 version = pykka.get_version() return { 'name': 'Pykka', 'version': version, 'path': pykka.__file__, }
from distutils.core import setup import pykka setup( name='Pykka', version=pykka.get_version(), author='Stein Magnus Jodal', author_email='*****@*****.**', packages=['pykka'], url='http://pykka.readthedocs.org/', license='Apache License, Version 2.0', description='Pykka is easy to use concurrency using the actor model', long_description=open('README.rst').read(), classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries', ], )
def test_version_with_three_components(self): pykka.VERSION = (1, 2, 3) self.assertEqual('1.2.3', pykka.get_version())
def test_version_with_two_components(self): pykka.VERSION = (1, 2) self.assertEqual('1.2', pykka.get_version())