from setuptools import setup
-setup(name = "repa_namespace_package",
- version = '0.0.1',
- author = 'Ed Bartosh',
- author_email = 'eduard.bartosh@intel.com',
- packages = ['repa'],
- namespace_packages = ['repa']
+setup(name="repa_namespace_package",
+ version='0.0.1',
+ author='Ed Bartosh',
+ author_email='eduard.bartosh@intel.com',
+ packages=['repa'],
+ namespace_packages=['repa']
)
from setuptools import setup
-setup(name = "repa_plugin",
- version = '0.0.1',
- author = 'Ed Bartosh',
- author_email = 'eduard.bartosh@intel.com',
- packages = ['repa_plugin'],
- entry_points = {
- 'repa_commands': ['repa_plugin = repa_plugin.plugin:Test']
+setup(name="repa_plugin",
+ version='0.0.1',
+ author='Ed Bartosh',
+ author_email='eduard.bartosh@intel.com',
+ packages=['repa_plugin'],
+ entry_points={
+ 'repa_commands': ['repa_plugin = repa_plugin.plugin:Test']
}
)
return wrap
return decorator
-class Colorizer:
+class Colorizer(object):
"""Colorize text with ANSI colors."""
colors = {'black': '\033[90m', 'red': '\033[91m',
'green': '\033[92m', 'yellow': '\033[93m',
"""Aggregate packages into group project."""
def notify(out, submission, result):
"""Callback, called by apply_async."""
- pkg = result[1]
+ pkg = result[1]
out.write('aggregated: %s/%s\n' % (submission, pkg))
aggregated = set()
obs.set_global_flag('publish', 'disable', gproject)
parser.add_argument('-c', '--comment', help='comment', default='')
parser.add_argument('-f', '--force', action='store_true',
help='force group creation')
- parser.add_argument('--noaggregate', default=config.get('noaggregate', ''),
+ parser.add_argument('--noaggregate',
+ default=config.get('noaggregate', ''),
help='do not aggregate packages matching regexp')
@staticmethod
"""
import sys
-import os
from collections import defaultdict
if 'images' in meta:
print
print 'Images:'
- for img in meta ['images']:
+ for img in meta['images']:
print ' %-40s %s' % (img['name'], img['status'])
if build_results:
url = core.makeurl(self.apiurl, ['request'], query)
root = ET.parse(self.core_http(core.http_GET, url))
- for sr in root.findall('request'):
- yield sr.get('id'), sr.find('state').get('name'), \
- sr.find('description').text
+ for req in root.findall('request'):
+ yield req.get('id'), req.find('state').get('name'), \
+ req.find('description').text
def set_global_flag(self, flag, value, prj, pkg=None):
"""
import os
from setuptools import setup
-setup(name = "repa",
- version = '0.3~0.dev',
- author = 'Ed Bartosh',
- author_email = 'eduard.bartosh@intel.com',
- packages = ['repa'],
- namespace_packages = ['repa'],
- data_files = [
+setup(name="repa",
+ version='0.3~0.dev',
+ author='Ed Bartosh',
+ author_email='eduard.bartosh@intel.com',
+ packages=['repa'],
+ namespace_packages=['repa'],
+ data_files=[
('share/doc/packages/repa/', ['README']),
('share/man/man1/', ['repa.1']),
(['/etc', 'etc'][bool(os.getenv('VIRTUAL_ENV'))], ['repa.conf'])],
- entry_points = {
+ entry_points={
'console_scripts': ['repa = repa.main:main'],
'repa_commands': ['list = repa.list:List',
'group = repa.group:Group',