Metadata-Version: 1.1
Name: mock_chroot
Version: 0.0.1.dev4
Summary: Python library for using the Mock chroot-based build tool
Home-page: https://github.com/ifireball/python-mockchroot
Author: Barak Korren
Author-email: bkorren@redhat.com
License: 'MIT'
Description: # python-mockchroot
        Python library for using Mock (the chroot-based build tool, not the mockup library)
        
        ## How do I use this?
        
        Here is a quick example for building an EPEL7 RPM packge from a sources
        dircetory and a spec file, where the build configuration comes from
        Fedora Koji:
        
            out_dir = '/tmp/results'
            mock = MockChroot(config=mock_config.compose(
                mock_config.from_koji(target='epel7-build', koji_profile='koji'),
                mock_config.to['resultdir'].set(out_dir),
                mock_config.to['root_cache_enable'].set(True),
                mock_config.to['yum_cache_enable'].set(True)
            ))
            print('Building SRPM in Mock')
            mock.buildsrpm(
                spec='/path/to/package.spec',
                sources='/path/to/package/sources'
            )
            srpms = glob('{0}/*.src.rpm'.format(out_dir))
            if len(srpms) == 0:
                raise RuntimeError('no srpms found in {0}'.format(out_dir))
            elif len(srpms) > 1:
                raise RuntimeError('multiple srpms found in {0}'.format(out_dir))
            else:
                srpm = srpms[0]
            print('Building RPM in Mock')
            mock.rebuild(src_rpm=srpm, no_clean=True)
        
        ## Tell me more!
        
        Please see the comprehensive documentation at [readthedocs][1]
        
        [1]: http://python-mockchroot.readthedocs.org/
        
        ## How do I install this?
        
        You can use *pip*:
        
            pip install mock-chroot
        
        
Keywords: development
build
chroot
mock
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
