How to use the distro.build_number function in distro

To help you get started, we’ve selected a few distro 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 nir0s / distro / tests / test_ld.py View on Github external
MODULE_DISTROI.major_version(best=False))
        self.assertEqual(distro.major_version(best=False),
            MODULE_DISTROI.major_version())
        self.assertEqual(distro.major_version(best=True),
            MODULE_DISTROI.major_version(best=True))

        self.assertEqual(distro.minor_version(),
            MODULE_DISTROI.minor_version(best=False))
        self.assertEqual(distro.minor_version(best=False),
            MODULE_DISTROI.minor_version())
        self.assertEqual(distro.minor_version(best=True),
            MODULE_DISTROI.minor_version(best=True))

        self.assertEqual(distro.build_number(),
            MODULE_DISTROI.build_number(best=False))
        self.assertEqual(distro.build_number(best=False),
            MODULE_DISTROI.build_number())
        self.assertEqual(distro.build_number(best=True),
            MODULE_DISTROI.build_number(best=True))

        self.assertEqual(distro.like(),
            MODULE_DISTROI.like())

        self.assertEqual(distro.codename(),
            MODULE_DISTROI.codename())

        self.assertEqual(distro.info(),
            MODULE_DISTROI.info(best=False))
        self.assertEqual(distro.info(best=False),
            MODULE_DISTROI.info())
        self.assertEqual(distro.info(best=True),
            MODULE_DISTROI.info(best=True))
github nir0s / distro / tests / test_ld.py View on Github external
self.assertEqual(distro.major_version(),
            MODULE_DISTROI.major_version(best=False))
        self.assertEqual(distro.major_version(best=False),
            MODULE_DISTROI.major_version())
        self.assertEqual(distro.major_version(best=True),
            MODULE_DISTROI.major_version(best=True))

        self.assertEqual(distro.minor_version(),
            MODULE_DISTROI.minor_version(best=False))
        self.assertEqual(distro.minor_version(best=False),
            MODULE_DISTROI.minor_version())
        self.assertEqual(distro.minor_version(best=True),
            MODULE_DISTROI.minor_version(best=True))

        self.assertEqual(distro.build_number(),
            MODULE_DISTROI.build_number(best=False))
        self.assertEqual(distro.build_number(best=False),
            MODULE_DISTROI.build_number())
        self.assertEqual(distro.build_number(best=True),
            MODULE_DISTROI.build_number(best=True))

        self.assertEqual(distro.like(),
            MODULE_DISTROI.like())

        self.assertEqual(distro.codename(),
            MODULE_DISTROI.codename())

        self.assertEqual(distro.info(),
            MODULE_DISTROI.info(best=False))
        self.assertEqual(distro.info(best=False),
            MODULE_DISTROI.info())
github nir0s / distro / tests / test_ld.py View on Github external
MODULE_DISTROI.major_version())
        self.assertEqual(distro.major_version(best=True),
            MODULE_DISTROI.major_version(best=True))

        self.assertEqual(distro.minor_version(),
            MODULE_DISTROI.minor_version(best=False))
        self.assertEqual(distro.minor_version(best=False),
            MODULE_DISTROI.minor_version())
        self.assertEqual(distro.minor_version(best=True),
            MODULE_DISTROI.minor_version(best=True))

        self.assertEqual(distro.build_number(),
            MODULE_DISTROI.build_number(best=False))
        self.assertEqual(distro.build_number(best=False),
            MODULE_DISTROI.build_number())
        self.assertEqual(distro.build_number(best=True),
            MODULE_DISTROI.build_number(best=True))

        self.assertEqual(distro.like(),
            MODULE_DISTROI.like())

        self.assertEqual(distro.codename(),
            MODULE_DISTROI.codename())

        self.assertEqual(distro.info(),
            MODULE_DISTROI.info(best=False))
        self.assertEqual(distro.info(best=False),
            MODULE_DISTROI.info())
        self.assertEqual(distro.info(best=True),
            MODULE_DISTROI.info(best=True))
        self.assertEqual(distro.info(),
            MODULE_DISTROI.info(pretty=False))
github nir0s / distro / query_local_distro.py View on Github external
print('lsb_release_info:')
pprint(distro.lsb_release_info())
print('distro_release_info:')
pprint(distro.distro_release_info())
print('id: {0}'.format(distro.id()))
print('name: {0}'.format(distro.name()))
print('name_pretty: {0}'.format(distro.name(True)))
print('version: {0}'.format(distro.version()))
print('version_pretty: {0}'.format(distro.version(True)))
print('like: {0}'.format(distro.like()))
print('codename: {0}'.format(distro.codename()))
print('linux_distribution_full: {0}'.format(distro.linux_distribution()))
print('linux_distribution: {0}'.format(distro.linux_distribution(False)))
print('major_version: {0}'.format(distro.major_version()))
print('minor_version: {0}'.format(distro.minor_version()))
print('build_number: {0}'.format(distro.build_number()))