How to use the greenlet.__version__ function in greenlet

To help you get started, we’ve selected a few greenlet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github python-greenlet / greenlet / tests / test_version.py View on Github external
def test_version(self):
        upfile = lambda p: os.path.join(os.path.dirname(__file__), "..", p)
        hversion, = re.findall('GREENLET_VERSION "(.*)"', readfile(upfile("greenlet.h")))
        sversion = readclose(os.popen("%s %s --version" % (sys.executable, upfile("setup.py")))).strip()
        self.assertFalse(sversion != hversion)
        self.assertFalse(sversion != greenlet.__version__)
github ajenti / ajenti / ajenti / util.py View on Github external
Log content:

%s
            """ % (
        version,
        platform, platform_unmapped, platform_string.strip(),
        subprocess.check_output(['uname', '-mp']).strip(),
        '.'.join([str(x) for x in _platform.python_version_tuple()]),
        installation_uid,
        debug,
        catcher_url or 'Failed to upload traceback',
        ', '.join(sorted(manager.get_order())),

        gevent.__version__,
        greenlet.__version__,
        reconfigure.__version__,
        requests.__version__,
        psutil.__version__,

        tb,
        log,
    )
github ajenti / ajenti / ajenti-core / aj / util / misc.py View on Github external
greenlet | %s
psutil | %s


%s

            """ % (
            version,
            platform, platform_unmapped, platform_string,
            subprocess.check_output(['uname', '-mp']).strip(),
            '.'.join([str(x) for x in _platform.python_version_tuple()]),
            debug,
            ', '.join(sorted(PluginManager.get(aj.context).get_loaded_plugins_list())),

            gevent.__version__,
            greenlet.__version__,
            psutil.__version__,

            tb,
        )
github Eugeny / ajenti / ajenti / util.py View on Github external
Log content:

%s
            """ % (
        version,
        platform, platform_unmapped, platform_string.strip(),
        subprocess.check_output(['uname', '-mp']).strip(),
        '.'.join([str(x) for x in _platform.python_version_tuple()]),
        installation_uid,
        debug,
        catcher_url or 'Failed to upload traceback',
        ', '.join(sorted(manager.get_order())),

        gevent.__version__,
        greenlet.__version__,
        reconfigure.__version__,
        requests.__version__,
        psutil.__version__,

        tb,
        log,
    )