commit
stringlengths
40
40
old_file
stringlengths
4
118
new_file
stringlengths
4
118
old_contents
stringlengths
0
2.94k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
444
message
stringlengths
16
3.45k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
5
43.2k
prompt
stringlengths
17
4.58k
response
stringlengths
1
4.43k
prompt_tagged
stringlengths
58
4.62k
response_tagged
stringlengths
1
4.43k
text
stringlengths
132
7.29k
text_tagged
stringlengths
173
7.33k
120225323011a53d4a0564d0fcfe834d9ac27062
build.py
build.py
import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') args = parser.parse_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content)
import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) def get_args(): parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') return parser.parse_args() if __name__ == '__main__': args = get_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content)
Split arg parsing into function
Split arg parsing into function
Python
mit
centos-livepatching/kpatch-package-builder
import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') args = parser.parse_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content) Split arg parsing into function
import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) def get_args(): parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') return parser.parse_args() if __name__ == '__main__': args = get_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content)
<commit_before>import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') args = parser.parse_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content) <commit_msg>Split arg parsing into function<commit_after>
import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) def get_args(): parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') return parser.parse_args() if __name__ == '__main__': args = get_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content)
import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') args = parser.parse_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content) Split arg parsing into functionimport argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) def get_args(): parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') return parser.parse_args() if __name__ == '__main__': args = get_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content)
<commit_before>import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') args = parser.parse_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content) <commit_msg>Split arg parsing into function<commit_after>import argparse import os import string def generate_rpm_spec(template, patch_file): spec_template = string.Template(template) base_name, _ = os.path.splitext(patch_file) values = { 'name': 'kpatch-module-{}'.format(base_name), 'patch_file': patch_file, 'kmod_filename': 'kpatch-{}.ko'.format(base_name), 'description': 'Package generated from {} by ' 'kpatch-package-builder'.format(patch_file), 'target_kernel': '3.10.0-229.el7', 'target_arch': 'x86_64', } return spec_template.substitute(values) def get_args(): parser = argparse.ArgumentParser(description='Generate RPM spec file to ' 'build a kpatch package') parser.add_argument('patch', metavar='PATCH', help='patch file from which to build the livepatch ' 'module') parser.add_argument('-o', '--output', metavar='FILE', default=None, help='name of output spec file') return parser.parse_args() if __name__ == '__main__': args = get_args() with open('kpatch-patch.spec') as f: template = f.read() spec_content = generate_rpm_spec(template, args.patch) with open(args.output, 'w') as f: f.write(spec_content)
511030652f4f411b4a97e3412899c6c7980348d4
dailydevo/cac_actions.py
dailydevo/cac_actions.py
# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) def get(): return [ CACDevoAction() ]
# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) return True def get(): return [ CACDevoAction() ]
Fix for CACDevo hidden functionality
Fix for CACDevo hidden functionality
Python
mit
julwrites/biblicabot
# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) def get(): return [ CACDevoAction() ]Fix for CACDevo hidden functionality
# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) return True def get(): return [ CACDevoAction() ]
<commit_before># coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) def get(): return [ CACDevoAction() ]<commit_msg>Fix for CACDevo hidden functionality<commit_after>
# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) return True def get(): return [ CACDevoAction() ]
# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) def get(): return [ CACDevoAction() ]Fix for CACDevo hidden functionality# coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) return True def get(): return [ CACDevoAction() ]
<commit_before># coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) def get(): return [ CACDevoAction() ]<commit_msg>Fix for CACDevo hidden functionality<commit_after># coding=utf8 # Local modules from common import debug from common.action import action_classes from common.telegram import telegram_utils from dailydevo import cac_utils class CACDevoAction(action_classes.Action): def identifier(self): return "/cacdevo" def name(self): return "Center for Action and Contemplation Devotional" def resolve(self, userObj): passage = cac_utils.get_cacdevo(userObj.get_version()) if passage is not None: telegram_utils.send_msg(passage, userObj.get_uid()) return True def get(): return [ CACDevoAction() ]
b2d2f4e4bde02570e51537d4db72cebcba63c1f5
malcolm/modules/builtin/parts/labelpart.py
malcolm/modules/builtin/parts/labelpart.py
from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self.registrar.report(LabelInfo(self.initial_value)) def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self.registrar.report(LabelInfo(value))
from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def _report(self): self.registrar.report(LabelInfo(self.attr.value)) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self._report() def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self._report()
Fix LabelPart to always report the validated set value
Fix LabelPart to always report the validated set value
Python
apache-2.0
dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm
from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self.registrar.report(LabelInfo(self.initial_value)) def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self.registrar.report(LabelInfo(value)) Fix LabelPart to always report the validated set value
from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def _report(self): self.registrar.report(LabelInfo(self.attr.value)) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self._report() def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self._report()
<commit_before>from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self.registrar.report(LabelInfo(self.initial_value)) def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self.registrar.report(LabelInfo(value)) <commit_msg>Fix LabelPart to always report the validated set value<commit_after>
from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def _report(self): self.registrar.report(LabelInfo(self.attr.value)) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self._report() def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self._report()
from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self.registrar.report(LabelInfo(self.initial_value)) def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self.registrar.report(LabelInfo(value)) Fix LabelPart to always report the validated set valuefrom annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def _report(self): self.registrar.report(LabelInfo(self.attr.value)) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self._report() def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self._report()
<commit_before>from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self.registrar.report(LabelInfo(self.initial_value)) def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self.registrar.report(LabelInfo(value)) <commit_msg>Fix LabelPart to always report the validated set value<commit_after>from annotypes import Anno from malcolm.core import Part, PartRegistrar, StringMeta from ..infos import LabelInfo from ..util import set_tags with Anno("Initial value of Block label"): ALabelValue = str class LabelPart(Part): """Part representing a the title of the Block a GUI should display""" def __init__(self, value=None): # type: (ALabelValue) -> None super(LabelPart, self).__init__("label") meta = StringMeta("Label for the block") set_tags(meta, writeable=True) self.initial_value = value self.attr = meta.create_attribute_model(self.initial_value) def _report(self): self.registrar.report(LabelInfo(self.attr.value)) def setup(self, registrar): # type: (PartRegistrar) -> None super(LabelPart, self).setup(registrar) registrar.add_attribute_model(self.name, self.attr, self.set_label) self._report() def set_label(self, value, ts=None): self.attr.set_value(value, ts=ts) self._report()
8aec91209521d7f2701e63c681f4b765c1b2c6bb
src/program/lwaftr/tests/subcommands/run_test.py
src/program/lwaftr/tests/subcommands/run_test.py
""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) if __name__ == '__main__': unittest.main()
""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) def test_run_on_a_stick_migration(self): # The LwAFTR should be abel to migrate from non-on-a-stick -> on-a-stick run_cmd = list(self.cmd_args)[:-4] run_cmd.extend(( "--on-a-stick", SNABB_PCI0 )) # The best way to check is to see if it's what it's saying it'll do. output = self.run_cmd(run_cmd).decode(ENC) self.assertIn("Migrating instance", output) migration_line = [l for l in output.split("\n") if "Migrating" in l][0] self.assertIn(SNABB_PCI0, migration_line) if __name__ == '__main__': unittest.main()
Add test for migration using --on-a-stick command
Add test for migration using --on-a-stick command When --on-a-stick command is used with a single instance defined it should migrate the instance to work in a stick (replace the device with the one provided in the flag and remove the device in `external-device`). It just checks that it works by not crashing and says it's going to do it in the output.
Python
apache-2.0
alexandergall/snabbswitch,Igalia/snabbswitch,snabbco/snabb,snabbco/snabb,snabbco/snabb,dpino/snabbswitch,dpino/snabb,eugeneia/snabb,Igalia/snabb,dpino/snabb,eugeneia/snabb,eugeneia/snabbswitch,eugeneia/snabb,SnabbCo/snabbswitch,eugeneia/snabb,Igalia/snabb,eugeneia/snabb,snabbco/snabb,eugeneia/snabb,Igalia/snabb,dpino/snabbswitch,Igalia/snabb,alexandergall/snabbswitch,alexandergall/snabbswitch,Igalia/snabb,snabbco/snabb,dpino/snabb,alexandergall/snabbswitch,dpino/snabb,Igalia/snabbswitch,Igalia/snabb,eugeneia/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,Igalia/snabbswitch,dpino/snabb,Igalia/snabb,dpino/snabbswitch,Igalia/snabbswitch,Igalia/snabb,snabbco/snabb,alexandergall/snabbswitch,eugeneia/snabbswitch,Igalia/snabbswitch,SnabbCo/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,eugeneia/snabb,alexandergall/snabbswitch,SnabbCo/snabbswitch,dpino/snabb,dpino/snabb,SnabbCo/snabbswitch,dpino/snabbswitch,eugeneia/snabb,eugeneia/snabbswitch
""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) if __name__ == '__main__': unittest.main() Add test for migration using --on-a-stick command When --on-a-stick command is used with a single instance defined it should migrate the instance to work in a stick (replace the device with the one provided in the flag and remove the device in `external-device`). It just checks that it works by not crashing and says it's going to do it in the output.
""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) def test_run_on_a_stick_migration(self): # The LwAFTR should be abel to migrate from non-on-a-stick -> on-a-stick run_cmd = list(self.cmd_args)[:-4] run_cmd.extend(( "--on-a-stick", SNABB_PCI0 )) # The best way to check is to see if it's what it's saying it'll do. output = self.run_cmd(run_cmd).decode(ENC) self.assertIn("Migrating instance", output) migration_line = [l for l in output.split("\n") if "Migrating" in l][0] self.assertIn(SNABB_PCI0, migration_line) if __name__ == '__main__': unittest.main()
<commit_before>""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) if __name__ == '__main__': unittest.main() <commit_msg>Add test for migration using --on-a-stick command When --on-a-stick command is used with a single instance defined it should migrate the instance to work in a stick (replace the device with the one provided in the flag and remove the device in `external-device`). It just checks that it works by not crashing and says it's going to do it in the output.<commit_after>
""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) def test_run_on_a_stick_migration(self): # The LwAFTR should be abel to migrate from non-on-a-stick -> on-a-stick run_cmd = list(self.cmd_args)[:-4] run_cmd.extend(( "--on-a-stick", SNABB_PCI0 )) # The best way to check is to see if it's what it's saying it'll do. output = self.run_cmd(run_cmd).decode(ENC) self.assertIn("Migrating instance", output) migration_line = [l for l in output.split("\n") if "Migrating" in l][0] self.assertIn(SNABB_PCI0, migration_line) if __name__ == '__main__': unittest.main()
""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) if __name__ == '__main__': unittest.main() Add test for migration using --on-a-stick command When --on-a-stick command is used with a single instance defined it should migrate the instance to work in a stick (replace the device with the one provided in the flag and remove the device in `external-device`). It just checks that it works by not crashing and says it's going to do it in the output.""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) def test_run_on_a_stick_migration(self): # The LwAFTR should be abel to migrate from non-on-a-stick -> on-a-stick run_cmd = list(self.cmd_args)[:-4] run_cmd.extend(( "--on-a-stick", SNABB_PCI0 )) # The best way to check is to see if it's what it's saying it'll do. output = self.run_cmd(run_cmd).decode(ENC) self.assertIn("Migrating instance", output) migration_line = [l for l in output.split("\n") if "Migrating" in l][0] self.assertIn(SNABB_PCI0, migration_line) if __name__ == '__main__': unittest.main()
<commit_before>""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) if __name__ == '__main__': unittest.main() <commit_msg>Add test for migration using --on-a-stick command When --on-a-stick command is used with a single instance defined it should migrate the instance to work in a stick (replace the device with the one provided in the flag and remove the device in `external-device`). It just checks that it works by not crashing and says it's going to do it in the output.<commit_after>""" Test the "snabb lwaftr run" subcommand. Needs NIC names. """ import unittest from test_env import DATA_DIR, SNABB_CMD, BaseTestCase, nic_names, ENC SNABB_PCI0, SNABB_PCI1 = nic_names() @unittest.skipUnless(SNABB_PCI0 and SNABB_PCI1, 'NICs not configured') class TestRun(BaseTestCase): cmd_args = ( str(SNABB_CMD), 'lwaftr', 'run', '--duration', '1', '--bench-file', '/dev/null', '--conf', str(DATA_DIR / 'icmp_on_fail.conf'), '--v4', SNABB_PCI0, '--v6', SNABB_PCI1 ) def test_run(self): output = self.run_cmd(self.cmd_args) self.assertIn(b'link report', output, b'\n'.join((b'OUTPUT', output))) def test_run_on_a_stick_migration(self): # The LwAFTR should be abel to migrate from non-on-a-stick -> on-a-stick run_cmd = list(self.cmd_args)[:-4] run_cmd.extend(( "--on-a-stick", SNABB_PCI0 )) # The best way to check is to see if it's what it's saying it'll do. output = self.run_cmd(run_cmd).decode(ENC) self.assertIn("Migrating instance", output) migration_line = [l for l in output.split("\n") if "Migrating" in l][0] self.assertIn(SNABB_PCI0, migration_line) if __name__ == '__main__': unittest.main()
2bdc9561461dbd830285ca1478f828b0b89ac727
tests/extensions/functional/show_chrome.py
tests/extensions/functional/show_chrome.py
""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() browser.get(MAPS_URL)
""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() #browser.get(MAPS_URL) print browser.capabilities
Add test to print information about chrome version
Add test to print information about chrome version
Python
apache-2.0
EndPointCorp/appctl,EndPointCorp/appctl
""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() browser.get(MAPS_URL) Add test to print information about chrome version
""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() #browser.get(MAPS_URL) print browser.capabilities
<commit_before>""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() browser.get(MAPS_URL) <commit_msg>Add test to print information about chrome version<commit_after>
""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() #browser.get(MAPS_URL) print browser.capabilities
""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() browser.get(MAPS_URL) Add test to print information about chrome version""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() #browser.get(MAPS_URL) print browser.capabilities
<commit_before>""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() browser.get(MAPS_URL) <commit_msg>Add test to print information about chrome version<commit_after>""" Show chrome with extension loaded. Useful for DOM HTML tree elements inspection with chrome extension loaded, like when running the tests. """ from tests.base import TestBaseTouchscreen from tests.base import MAPS_URL klass = TestBaseTouchscreen klass.setup_class() # if browser automatically redirects to national mutation, # our chrome extensions are loaded, yet do not work # redirection doesn't happen with MAPS_URL browser = klass.run_browser() #browser.get(MAPS_URL) print browser.capabilities
22b87959099056e8189f40805bb8320c2cfbfb57
go/api/go_api/tests/test_action_dispatcher.py
go/api/go_api/tests/test_action_dispatcher.py
"""Tests for go.api.go_api.action_dispatcher.""" from twisted.trial.unittest import TestCase from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router')
"""Tests for go.api.go_api.action_dispatcher.""" from mock import Mock from twisted.trial.unittest import TestCase from vumi.tests.utils import LogCatcher from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) def test_unknown_action(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") self.assertRaises(ActionError, dispatcher.unknown_action, obj, foo="bar") def test_dispatch_action_which_errors(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") with LogCatcher() as lc: self.assertRaises(ActionError, dispatcher.dispatch_action, obj, "weird_action", {"foo": "bar"}) [err] = lc.errors self.assertEqual(err["why"], "Action 'weird_action' on None %r (key: 'abc')" " with params {'foo': 'bar'} failed." % obj) [err] = self.flushLoggedErrors(ActionError) self.assertEqual(err.value.faultString, "Unknown action.") class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router')
Add tests for unknown_action and dispatching to action handlers that generate exceptions.
Add tests for unknown_action and dispatching to action handlers that generate exceptions.
Python
bsd-3-clause
praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go
"""Tests for go.api.go_api.action_dispatcher.""" from twisted.trial.unittest import TestCase from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router') Add tests for unknown_action and dispatching to action handlers that generate exceptions.
"""Tests for go.api.go_api.action_dispatcher.""" from mock import Mock from twisted.trial.unittest import TestCase from vumi.tests.utils import LogCatcher from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) def test_unknown_action(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") self.assertRaises(ActionError, dispatcher.unknown_action, obj, foo="bar") def test_dispatch_action_which_errors(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") with LogCatcher() as lc: self.assertRaises(ActionError, dispatcher.dispatch_action, obj, "weird_action", {"foo": "bar"}) [err] = lc.errors self.assertEqual(err["why"], "Action 'weird_action' on None %r (key: 'abc')" " with params {'foo': 'bar'} failed." % obj) [err] = self.flushLoggedErrors(ActionError) self.assertEqual(err.value.faultString, "Unknown action.") class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router')
<commit_before>"""Tests for go.api.go_api.action_dispatcher.""" from twisted.trial.unittest import TestCase from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router') <commit_msg>Add tests for unknown_action and dispatching to action handlers that generate exceptions.<commit_after>
"""Tests for go.api.go_api.action_dispatcher.""" from mock import Mock from twisted.trial.unittest import TestCase from vumi.tests.utils import LogCatcher from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) def test_unknown_action(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") self.assertRaises(ActionError, dispatcher.unknown_action, obj, foo="bar") def test_dispatch_action_which_errors(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") with LogCatcher() as lc: self.assertRaises(ActionError, dispatcher.dispatch_action, obj, "weird_action", {"foo": "bar"}) [err] = lc.errors self.assertEqual(err["why"], "Action 'weird_action' on None %r (key: 'abc')" " with params {'foo': 'bar'} failed." % obj) [err] = self.flushLoggedErrors(ActionError) self.assertEqual(err.value.faultString, "Unknown action.") class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router')
"""Tests for go.api.go_api.action_dispatcher.""" from twisted.trial.unittest import TestCase from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router') Add tests for unknown_action and dispatching to action handlers that generate exceptions."""Tests for go.api.go_api.action_dispatcher.""" from mock import Mock from twisted.trial.unittest import TestCase from vumi.tests.utils import LogCatcher from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) def test_unknown_action(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") self.assertRaises(ActionError, dispatcher.unknown_action, obj, foo="bar") def test_dispatch_action_which_errors(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") with LogCatcher() as lc: self.assertRaises(ActionError, dispatcher.dispatch_action, obj, "weird_action", {"foo": "bar"}) [err] = lc.errors self.assertEqual(err["why"], "Action 'weird_action' on None %r (key: 'abc')" " with params {'foo': 'bar'} failed." % obj) [err] = self.flushLoggedErrors(ActionError) self.assertEqual(err.value.faultString, "Unknown action.") class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router')
<commit_before>"""Tests for go.api.go_api.action_dispatcher.""" from twisted.trial.unittest import TestCase from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router') <commit_msg>Add tests for unknown_action and dispatching to action handlers that generate exceptions.<commit_after>"""Tests for go.api.go_api.action_dispatcher.""" from mock import Mock from twisted.trial.unittest import TestCase from vumi.tests.utils import LogCatcher from go.api.go_api.action_dispatcher import ( ActionDispatcher, ActionError, ConversationActionDispatcher, RouterActionDispatcher) class ActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(ActionDispatcher.dispatcher_type_name, None) def test_unknown_action(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") self.assertRaises(ActionError, dispatcher.unknown_action, obj, foo="bar") def test_dispatch_action_which_errors(self): dispatcher = ActionDispatcher(Mock()) obj = Mock(key="abc") with LogCatcher() as lc: self.assertRaises(ActionError, dispatcher.dispatch_action, obj, "weird_action", {"foo": "bar"}) [err] = lc.errors self.assertEqual(err["why"], "Action 'weird_action' on None %r (key: 'abc')" " with params {'foo': 'bar'} failed." % obj) [err] = self.flushLoggedErrors(ActionError) self.assertEqual(err.value.faultString, "Unknown action.") class ConversationAcitonDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual( ConversationActionDispatcher.dispatcher_type_name, 'conversation') class RouterActionDispatcherTestCase(TestCase): def test_dispatcher_type_name(self): self.assertEqual(RouterActionDispatcher.dispatcher_type_name, 'router')
61574797dd211773cc065c73df450e76d930b698
puzzlehunt_server/settings/env_settings.py
puzzlehunt_server/settings/env_settings.py
from .base_settings import * import dj_database_url import os DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']
from .base_settings import * import dj_database_url import os DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']
Fix for when debug isn't specified
Fix for when debug isn't specified
Python
mit
dlareau/puzzlehunt_server,dlareau/puzzlehunt_server,dlareau/puzzlehunt_server,dlareau/puzzlehunt_server
from .base_settings import * import dj_database_url import os DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']Fix for when debug isn't specified
from .base_settings import * import dj_database_url import os DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']
<commit_before>from .base_settings import * import dj_database_url import os DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']<commit_msg>Fix for when debug isn't specified<commit_after>
from .base_settings import * import dj_database_url import os DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']
from .base_settings import * import dj_database_url import os DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']Fix for when debug isn't specifiedfrom .base_settings import * import dj_database_url import os DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']
<commit_before>from .base_settings import * import dj_database_url import os DEBUG = os.environ.get("DJANGO_ENABLE_DEBUG").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']<commit_msg>Fix for when debug isn't specified<commit_after>from .base_settings import * import dj_database_url import os DEBUG = os.getenv("DJANGO_ENABLE_DEBUG", default="False").lower() == "true" SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY") DATABASES = {'default': dj_database_url.config(conn_max_age=600)} if(DATABASES['default']['ENGINE'] == 'django.db.backends.mysql'): DATABASES['default']['OPTIONS'] = {'charset': 'utf8mb4'} INTERNAL_IPS = ['127.0.0.1', 'localhost',] EMAIL_HOST_USER = os.environ.get("DJANGO_EMAIL_USER") EMAIL_HOST_PASSWORD = os.environ.get("DJANGO_EMAIL_PASSWORD") ALLOWED_HOSTS = ['*']
1c9eed527c60666f43d807be786ad3be5499282e
changes/api/project_commit_details.py
changes/api/project_commit_details.py
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.join( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context)
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.outerjoin( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context)
Correct commit details to use an outerjoin
Correct commit details to use an outerjoin
Python
apache-2.0
dropbox/changes,dropbox/changes,wfxiang08/changes,bowlofstew/changes,bowlofstew/changes,bowlofstew/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.join( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context) Correct commit details to use an outerjoin
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.outerjoin( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context)
<commit_before>from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.join( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context) <commit_msg>Correct commit details to use an outerjoin<commit_after>
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.outerjoin( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context)
from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.join( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context) Correct commit details to use an outerjoinfrom __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.outerjoin( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context)
<commit_before>from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.join( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context) <commit_msg>Correct commit details to use an outerjoin<commit_after>from __future__ import absolute_import, division, unicode_literals from changes.api.base import APIView from changes.models import Project, Revision class ProjectCommitDetailsAPIView(APIView): def get(self, project_id, commit_id): project = Project.get(project_id) if not project: return '', 404 repo = project.repository revision = Revision.query.outerjoin( 'author', ).filter( Revision.repository_id == repo.id, Revision.sha == commit_id, ).first() if not revision: return '', 404 context = self.serialize(revision) context.update({ 'repository': repo, }) return self.respond(context)
046fe99e4e2de0503c44555287eedaedc56ef280
skimage/filters/tests/test_filter_import.py
skimage/filters/tests/test_filter_import.py
from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('ignore') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__]), F.__warningregistry__
from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('always') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__])
Make sure warning is raised upon import
Make sure warning is raised upon import
Python
bsd-3-clause
bennlich/scikit-image,vighneshbirodkar/scikit-image,ofgulban/scikit-image,youprofit/scikit-image,pratapvardhan/scikit-image,robintw/scikit-image,ofgulban/scikit-image,GaZ3ll3/scikit-image,Midafi/scikit-image,Britefury/scikit-image,pratapvardhan/scikit-image,ofgulban/scikit-image,Hiyorimi/scikit-image,Britefury/scikit-image,emon10005/scikit-image,jwiggins/scikit-image,Hiyorimi/scikit-image,juliusbierk/scikit-image,ClinicalGraphics/scikit-image,rjeli/scikit-image,chriscrosscutler/scikit-image,michaelpacer/scikit-image,chriscrosscutler/scikit-image,bsipocz/scikit-image,keflavich/scikit-image,rjeli/scikit-image,oew1v07/scikit-image,youprofit/scikit-image,warmspringwinds/scikit-image,Midafi/scikit-image,paalge/scikit-image,ajaybhat/scikit-image,oew1v07/scikit-image,dpshelio/scikit-image,michaelaye/scikit-image,emon10005/scikit-image,vighneshbirodkar/scikit-image,newville/scikit-image,vighneshbirodkar/scikit-image,newville/scikit-image,paalge/scikit-image,warmspringwinds/scikit-image,michaelpacer/scikit-image,juliusbierk/scikit-image,rjeli/scikit-image,michaelaye/scikit-image,paalge/scikit-image,blink1073/scikit-image,robintw/scikit-image,blink1073/scikit-image,ClinicalGraphics/scikit-image,dpshelio/scikit-image,ajaybhat/scikit-image,WarrenWeckesser/scikits-image,keflavich/scikit-image,bennlich/scikit-image,bsipocz/scikit-image,jwiggins/scikit-image,GaZ3ll3/scikit-image,WarrenWeckesser/scikits-image
from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('ignore') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__]), F.__warningregistry__ Make sure warning is raised upon import
from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('always') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__])
<commit_before>from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('ignore') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__]), F.__warningregistry__ <commit_msg>Make sure warning is raised upon import<commit_after>
from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('always') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__])
from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('ignore') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__]), F.__warningregistry__ Make sure warning is raised upon importfrom warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('always') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__])
<commit_before>from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('ignore') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__]), F.__warningregistry__ <commit_msg>Make sure warning is raised upon import<commit_after>from warnings import catch_warnings, simplefilter def test_filter_import(): with catch_warnings(): simplefilter('always') from skimage import filter as F assert('sobel' in dir(F)) assert any(['has been renamed' in w for (w, _, _) in F.__warningregistry__])
d3f72f3ded76fb49eedb0c93c58211aab0231b97
jetson/networkTable.py
jetson/networkTable.py
import time from networktables import NetworkTables rioIP = '10.58.06.2' # this shouldn't change tableName = 'JetsonToRio' # should be same in rio's java NT program def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals)
import time from networktables import NetworkTables def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) class NetworkInterface(object): """docstring for NetworkInterface.""" rioIP = '10.58.06.2' # this shouldn't change tableName = 'SmartDashboard' # should be same in rio's java NT program table = None def __init__(self): super(NetworkInterface, self).__init__() NetworkTables.initialize(server=rioIP) self.table = NetworkTables.getTable(tableName) def pushVals(jetsonVals): table.putNumberArray("JetsonVals",jetsonVals)
Put network table interface in class format
Put network table interface in class format
Python
mit
frc5806/Steamworks,frc5806/Steamworks,frc5806/Steamworks,frc5806/Steamworks
import time from networktables import NetworkTables rioIP = '10.58.06.2' # this shouldn't change tableName = 'JetsonToRio' # should be same in rio's java NT program def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) Put network table interface in class format
import time from networktables import NetworkTables def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) class NetworkInterface(object): """docstring for NetworkInterface.""" rioIP = '10.58.06.2' # this shouldn't change tableName = 'SmartDashboard' # should be same in rio's java NT program table = None def __init__(self): super(NetworkInterface, self).__init__() NetworkTables.initialize(server=rioIP) self.table = NetworkTables.getTable(tableName) def pushVals(jetsonVals): table.putNumberArray("JetsonVals",jetsonVals)
<commit_before>import time from networktables import NetworkTables rioIP = '10.58.06.2' # this shouldn't change tableName = 'JetsonToRio' # should be same in rio's java NT program def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) <commit_msg>Put network table interface in class format<commit_after>
import time from networktables import NetworkTables def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) class NetworkInterface(object): """docstring for NetworkInterface.""" rioIP = '10.58.06.2' # this shouldn't change tableName = 'SmartDashboard' # should be same in rio's java NT program table = None def __init__(self): super(NetworkInterface, self).__init__() NetworkTables.initialize(server=rioIP) self.table = NetworkTables.getTable(tableName) def pushVals(jetsonVals): table.putNumberArray("JetsonVals",jetsonVals)
import time from networktables import NetworkTables rioIP = '10.58.06.2' # this shouldn't change tableName = 'JetsonToRio' # should be same in rio's java NT program def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) Put network table interface in class formatimport time from networktables import NetworkTables def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) class NetworkInterface(object): """docstring for NetworkInterface.""" rioIP = '10.58.06.2' # this shouldn't change tableName = 'SmartDashboard' # should be same in rio's java NT program table = None def __init__(self): super(NetworkInterface, self).__init__() NetworkTables.initialize(server=rioIP) self.table = NetworkTables.getTable(tableName) def pushVals(jetsonVals): table.putNumberArray("JetsonVals",jetsonVals)
<commit_before>import time from networktables import NetworkTables rioIP = '10.58.06.2' # this shouldn't change tableName = 'JetsonToRio' # should be same in rio's java NT program def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) <commit_msg>Put network table interface in class format<commit_after>import time from networktables import NetworkTables def initTable(): NetworkTables.initialize(server=rioIP) return NetworkTables.getTable(tableName) def pushVals(table, jetsonVals): table.putNumberArray(jetsonVals) class NetworkInterface(object): """docstring for NetworkInterface.""" rioIP = '10.58.06.2' # this shouldn't change tableName = 'SmartDashboard' # should be same in rio's java NT program table = None def __init__(self): super(NetworkInterface, self).__init__() NetworkTables.initialize(server=rioIP) self.table = NetworkTables.getTable(tableName) def pushVals(jetsonVals): table.putNumberArray("JetsonVals",jetsonVals)
e17d8f9b8bd09b1b96cad3e61961f3833d2e486c
dataverse/file.py
dataverse/file.py
from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id)
from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): try: name = json['dataFile']['filename'] file_id = json['dataFile']['id'] except KeyError: name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id)
Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/version
Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/version
Python
apache-2.0
CenterForOpenScience/dataverse-client-python,IQSS/dataverse-client-python
from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id) Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/version
from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): try: name = json['dataFile']['filename'] file_id = json['dataFile']['id'] except KeyError: name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id)
<commit_before>from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id) <commit_msg>Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/version<commit_after>
from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): try: name = json['dataFile']['filename'] file_id = json['dataFile']['id'] except KeyError: name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id)
from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id) Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/versionfrom __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): try: name = json['dataFile']['filename'] file_id = json['dataFile']['id'] except KeyError: name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id)
<commit_before>from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id) <commit_msg>Fix 'class DataverseFile' to handle old and new response format Tests were failing after swith to new server/version<commit_after>from __future__ import absolute_import from dataverse.utils import sanitize class DataverseFile(object): def __init__(self, dataset, name, file_id=None): self.dataset = dataset self.name = sanitize(name) self.id = file_id self.download_url = '{0}/access/datafile/{1}'.format( dataset.connection.native_base_url, self.id ) edit_media_base = '{0}/edit-media/file/{1}' self.edit_media_uri = edit_media_base.format( dataset.connection.sword_base_url, self.id ) @classmethod def from_json(cls, dataset, json): try: name = json['dataFile']['filename'] file_id = json['dataFile']['id'] except KeyError: name = json['datafile']['name'] file_id = json['datafile']['id'] return cls(dataset, name, file_id)
a7f5315633b5b3787593205cc7dc540023baf7ad
scripts/print_view_controller_hierarchy.py
scripts/print_view_controller_hierarchy.py
"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]') def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc')
"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result) def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc')
Update the script to grab the results. This is needed for the tests.
Update the script to grab the results. This is needed for the tests.
Python
mit
mrhappyasthma/happydebugging,mrhappyasthma/HappyDebugging
"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]') def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc') Update the script to grab the results. This is needed for the tests.
"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result) def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc')
<commit_before>"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]') def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc') <commit_msg>Update the script to grab the results. This is needed for the tests.<commit_after>
"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result) def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc')
"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]') def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc') Update the script to grab the results. This is needed for the tests."""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result) def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc')
<commit_before>"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]') def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc') <commit_msg>Update the script to grab the results. This is needed for the tests.<commit_after>"""Prints the current view controller hierarchy. Usage: pvc """ def print_view_controller_hierarchy(debugger, command, result, internal_dict): debugger.GetCommandInterpreter().HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarchy]', result) def __lldb_init_module(debugger, internal_dict): debugger.HandleCommand('command script add -f print_view_controller_hierarchy.print_view_controller_hierarchy pvc')
02ac5dcfa6bdaf9b8152ef2f49fd61afe9faf8ab
client/python/plot_request_times.py
client/python/plot_request_times.py
import requests from plotly.offline import plot import plotly.graph_objs as go r = requests.get('http://localhost:8081/monitor_results/1') print(r.json()) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 plot([go.Scatter(x = timestamps, y = request_times, name = 'THE NAME'), go.Scatter(x = timestamps, y = request_times, name = 'THE OTHER NAME')], filename='request_times.html')
import requests from plotly.offline import plot import plotly.graph_objs as go def build_data_for_monitored_url(id): '''Fetches and prepares data for plotting for the given URL id''' r = requests.get('http://localhost:8081/monitor_results/' + str(id)) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 return go.Scatter(x = timestamps, y = request_times, name = url) # get all monitored sites and fetch data for it r = requests.get('http://localhost:8081/monitored-sites') plotting_data = list() for monitored_site in r.json(): print('Fetching data for ' + monitored_site['url']) data_for_site = build_data_for_monitored_url(monitored_site['id']) plotting_data.append(data_for_site) plot(plotting_data, filename='request_times.html')
Implement fetching all monitored data
Implement fetching all monitored data
Python
mit
gernd/simple-site-mon
import requests from plotly.offline import plot import plotly.graph_objs as go r = requests.get('http://localhost:8081/monitor_results/1') print(r.json()) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 plot([go.Scatter(x = timestamps, y = request_times, name = 'THE NAME'), go.Scatter(x = timestamps, y = request_times, name = 'THE OTHER NAME')], filename='request_times.html') Implement fetching all monitored data
import requests from plotly.offline import plot import plotly.graph_objs as go def build_data_for_monitored_url(id): '''Fetches and prepares data for plotting for the given URL id''' r = requests.get('http://localhost:8081/monitor_results/' + str(id)) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 return go.Scatter(x = timestamps, y = request_times, name = url) # get all monitored sites and fetch data for it r = requests.get('http://localhost:8081/monitored-sites') plotting_data = list() for monitored_site in r.json(): print('Fetching data for ' + monitored_site['url']) data_for_site = build_data_for_monitored_url(monitored_site['id']) plotting_data.append(data_for_site) plot(plotting_data, filename='request_times.html')
<commit_before>import requests from plotly.offline import plot import plotly.graph_objs as go r = requests.get('http://localhost:8081/monitor_results/1') print(r.json()) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 plot([go.Scatter(x = timestamps, y = request_times, name = 'THE NAME'), go.Scatter(x = timestamps, y = request_times, name = 'THE OTHER NAME')], filename='request_times.html') <commit_msg>Implement fetching all monitored data<commit_after>
import requests from plotly.offline import plot import plotly.graph_objs as go def build_data_for_monitored_url(id): '''Fetches and prepares data for plotting for the given URL id''' r = requests.get('http://localhost:8081/monitor_results/' + str(id)) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 return go.Scatter(x = timestamps, y = request_times, name = url) # get all monitored sites and fetch data for it r = requests.get('http://localhost:8081/monitored-sites') plotting_data = list() for monitored_site in r.json(): print('Fetching data for ' + monitored_site['url']) data_for_site = build_data_for_monitored_url(monitored_site['id']) plotting_data.append(data_for_site) plot(plotting_data, filename='request_times.html')
import requests from plotly.offline import plot import plotly.graph_objs as go r = requests.get('http://localhost:8081/monitor_results/1') print(r.json()) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 plot([go.Scatter(x = timestamps, y = request_times, name = 'THE NAME'), go.Scatter(x = timestamps, y = request_times, name = 'THE OTHER NAME')], filename='request_times.html') Implement fetching all monitored dataimport requests from plotly.offline import plot import plotly.graph_objs as go def build_data_for_monitored_url(id): '''Fetches and prepares data for plotting for the given URL id''' r = requests.get('http://localhost:8081/monitor_results/' + str(id)) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 return go.Scatter(x = timestamps, y = request_times, name = url) # get all monitored sites and fetch data for it r = requests.get('http://localhost:8081/monitored-sites') plotting_data = list() for monitored_site in r.json(): print('Fetching data for ' + monitored_site['url']) data_for_site = build_data_for_monitored_url(monitored_site['id']) plotting_data.append(data_for_site) plot(plotting_data, filename='request_times.html')
<commit_before>import requests from plotly.offline import plot import plotly.graph_objs as go r = requests.get('http://localhost:8081/monitor_results/1') print(r.json()) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 plot([go.Scatter(x = timestamps, y = request_times, name = 'THE NAME'), go.Scatter(x = timestamps, y = request_times, name = 'THE OTHER NAME')], filename='request_times.html') <commit_msg>Implement fetching all monitored data<commit_after>import requests from plotly.offline import plot import plotly.graph_objs as go def build_data_for_monitored_url(id): '''Fetches and prepares data for plotting for the given URL id''' r = requests.get('http://localhost:8081/monitor_results/' + str(id)) # build traces for plotting from monitoring data request_times = list() timestamps = list() timestamp = 0 url = r.json()[0]['urlToMonitor']['url'] for monitoring_data in r.json(): request_time = monitoring_data['timeNeededForRequest'] request_times.append(request_time) timestamps.append(timestamp) timestamp = timestamp + 1 return go.Scatter(x = timestamps, y = request_times, name = url) # get all monitored sites and fetch data for it r = requests.get('http://localhost:8081/monitored-sites') plotting_data = list() for monitored_site in r.json(): print('Fetching data for ' + monitored_site['url']) data_for_site = build_data_for_monitored_url(monitored_site['id']) plotting_data.append(data_for_site) plot(plotting_data, filename='request_times.html')
876d995967c5f8e580fc8e89fff859860b648057
wagtail/wagtailimages/backends/pillow.py
wagtail/wagtailimages/backends/pillow.py
from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring()
from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: if 'transparency' in image.info: image = image.convert('RGBA') else: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring()
Convert P images with transparency into RGBA
Convert P images with transparency into RGBA Fixes #800
Python
bsd-3-clause
jorge-marques/wagtail,gasman/wagtail,mikedingjan/wagtail,takeflight/wagtail,nimasmi/wagtail,chimeno/wagtail,kurtrwall/wagtail,Pennebaker/wagtail,mephizzle/wagtail,zerolab/wagtail,gogobook/wagtail,inonit/wagtail,m-sanders/wagtail,mikedingjan/wagtail,nealtodd/wagtail,timorieber/wagtail,takeshineshiro/wagtail,nutztherookie/wagtail,zerolab/wagtail,JoshBarr/wagtail,thenewguy/wagtail,nilnvoid/wagtail,janusnic/wagtail,benjaoming/wagtail,jordij/wagtail,zerolab/wagtail,dresiu/wagtail,takeshineshiro/wagtail,jorge-marques/wagtail,rsalmaso/wagtail,tangentlabs/wagtail,mayapurmedia/wagtail,jorge-marques/wagtail,marctc/wagtail,marctc/wagtail,taedori81/wagtail,darith27/wagtail,nimasmi/wagtail,davecranwell/wagtail,davecranwell/wagtail,jorge-marques/wagtail,nealtodd/wagtail,chrxr/wagtail,rv816/wagtail,mayapurmedia/wagtail,serzans/wagtail,stevenewey/wagtail,mixxorz/wagtail,mayapurmedia/wagtail,torchbox/wagtail,thenewguy/wagtail,inonit/wagtail,kaedroho/wagtail,FlipperPA/wagtail,tangentlabs/wagtail,gogobook/wagtail,bjesus/wagtail,torchbox/wagtail,chrxr/wagtail,nimasmi/wagtail,kurtw/wagtail,wagtail/wagtail,WQuanfeng/wagtail,kurtw/wagtail,quru/wagtail,Tivix/wagtail,torchbox/wagtail,wagtail/wagtail,marctc/wagtail,WQuanfeng/wagtail,darith27/wagtail,kurtw/wagtail,mjec/wagtail,gasman/wagtail,mephizzle/wagtail,gasman/wagtail,nrsimha/wagtail,Toshakins/wagtail,JoshBarr/wagtail,Klaudit/wagtail,serzans/wagtail,Pennebaker/wagtail,Klaudit/wagtail,davecranwell/wagtail,stevenewey/wagtail,janusnic/wagtail,chimeno/wagtail,quru/wagtail,taedori81/wagtail,benjaoming/wagtail,jorge-marques/wagtail,mayapurmedia/wagtail,benjaoming/wagtail,iansprice/wagtail,JoshBarr/wagtail,nilnvoid/wagtail,mikedingjan/wagtail,hamsterbacke23/wagtail,gogobook/wagtail,kurtrwall/wagtail,m-sanders/wagtail,nimasmi/wagtail,kurtrwall/wagtail,inonit/wagtail,mephizzle/wagtail,chrxr/wagtail,Toshakins/wagtail,chimeno/wagtail,iansprice/wagtail,iho/wagtail,JoshBarr/wagtail,inonit/wagtail,tangentlabs/wagtail,takeflight/wagtail,wagtail/wagtail,rsalmaso/wagtail,hanpama/wagtail,WQuanfeng/wagtail,stevenewey/wagtail,Pennebaker/wagtail,jordij/wagtail,hanpama/wagtail,nilnvoid/wagtail,janusnic/wagtail,darith27/wagtail,kaedroho/wagtail,bjesus/wagtail,rv816/wagtail,torchbox/wagtail,rjsproxy/wagtail,mephizzle/wagtail,bjesus/wagtail,serzans/wagtail,taedori81/wagtail,kaedroho/wagtail,janusnic/wagtail,iansprice/wagtail,m-sanders/wagtail,mixxorz/wagtail,FlipperPA/wagtail,kaedroho/wagtail,iho/wagtail,stevenewey/wagtail,mjec/wagtail,iho/wagtail,dresiu/wagtail,chrxr/wagtail,Tivix/wagtail,chimeno/wagtail,quru/wagtail,wagtail/wagtail,mixxorz/wagtail,tangentlabs/wagtail,rjsproxy/wagtail,gogobook/wagtail,WQuanfeng/wagtail,dresiu/wagtail,taedori81/wagtail,FlipperPA/wagtail,benjaoming/wagtail,kaedroho/wagtail,nrsimha/wagtail,Toshakins/wagtail,Klaudit/wagtail,nrsimha/wagtail,mjec/wagtail,Pennebaker/wagtail,iho/wagtail,wagtail/wagtail,takeshineshiro/wagtail,rv816/wagtail,rjsproxy/wagtail,nutztherookie/wagtail,iansprice/wagtail,rsalmaso/wagtail,nutztherookie/wagtail,rsalmaso/wagtail,taedori81/wagtail,nealtodd/wagtail,zerolab/wagtail,thenewguy/wagtail,chimeno/wagtail,KimGlazebrook/wagtail-experiment,kurtw/wagtail,nutztherookie/wagtail,timorieber/wagtail,nilnvoid/wagtail,hamsterbacke23/wagtail,darith27/wagtail,hanpama/wagtail,KimGlazebrook/wagtail-experiment,hamsterbacke23/wagtail,jnns/wagtail,jordij/wagtail,rjsproxy/wagtail,mikedingjan/wagtail,marctc/wagtail,mjec/wagtail,rv816/wagtail,timorieber/wagtail,jnns/wagtail,mixxorz/wagtail,jnns/wagtail,serzans/wagtail,mixxorz/wagtail,nealtodd/wagtail,hanpama/wagtail,thenewguy/wagtail,m-sanders/wagtail,thenewguy/wagtail,nrsimha/wagtail,kurtrwall/wagtail,FlipperPA/wagtail,Klaudit/wagtail,dresiu/wagtail,gasman/wagtail,KimGlazebrook/wagtail-experiment,Tivix/wagtail,zerolab/wagtail,takeflight/wagtail,rsalmaso/wagtail,dresiu/wagtail,jordij/wagtail,Tivix/wagtail,takeshineshiro/wagtail,bjesus/wagtail,hamsterbacke23/wagtail,gasman/wagtail,timorieber/wagtail,jnns/wagtail,KimGlazebrook/wagtail-experiment,takeflight/wagtail,quru/wagtail,davecranwell/wagtail,Toshakins/wagtail
from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring() Convert P images with transparency into RGBA Fixes #800
from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: if 'transparency' in image.info: image = image.convert('RGBA') else: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring()
<commit_before>from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring() <commit_msg>Convert P images with transparency into RGBA Fixes #800<commit_after>
from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: if 'transparency' in image.info: image = image.convert('RGBA') else: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring()
from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring() Convert P images with transparency into RGBA Fixes #800from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: if 'transparency' in image.info: image = image.convert('RGBA') else: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring()
<commit_before>from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring() <commit_msg>Convert P images with transparency into RGBA Fixes #800<commit_after>from __future__ import absolute_import import PIL.Image from wagtail.wagtailimages.backends.base import BaseImageBackend class PillowBackend(BaseImageBackend): def __init__(self, params): super(PillowBackend, self).__init__(params) def open_image(self, input_file): image = PIL.Image.open(input_file) return image def save_image(self, image, output, format): image.save(output, format, quality=self.quality) def resize(self, image, size): if image.mode in ['1', 'P']: if 'transparency' in image.info: image = image.convert('RGBA') else: image = image.convert('RGB') return image.resize(size, PIL.Image.ANTIALIAS) def crop(self, image, rect): return image.crop(rect) def image_data_as_rgb(self, image): # https://github.com/thumbor/thumbor/blob/f52360dc96eedd9fc914fcf19eaf2358f7e2480c/thumbor/engines/pil.py#L206-L215 if image.mode not in ['RGB', 'RGBA']: if 'A' in image.mode: image = image.convert('RGBA') else: image = image.convert('RGB') return image.mode, image.tostring()
c9b0bfa8d7ced6b521fa4e0454e8640e11aa512b
hr_contract_reference/models/hr_contract.py
hr_contract_reference/models/hr_contract.py
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False) @api.model def create(self, vals): contract = super(hr_contract, self).create(vals) if contract: contract[0].name = self.env['ir.sequence'].next_by_code( 'contract.ref') return contract
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False, default='/') @api.model def create(self, vals): if vals.get('number', '/') == '/': vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref') return super(hr_contract, self).create(vals)
Update code as commented, update readme.
Update code as commented, update readme.
Python
agpl-3.0
OCA/hr,OCA/hr,OCA/hr
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False) @api.model def create(self, vals): contract = super(hr_contract, self).create(vals) if contract: contract[0].name = self.env['ir.sequence'].next_by_code( 'contract.ref') return contract Update code as commented, update readme.
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False, default='/') @api.model def create(self, vals): if vals.get('number', '/') == '/': vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref') return super(hr_contract, self).create(vals)
<commit_before># -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False) @api.model def create(self, vals): contract = super(hr_contract, self).create(vals) if contract: contract[0].name = self.env['ir.sequence'].next_by_code( 'contract.ref') return contract <commit_msg>Update code as commented, update readme.<commit_after>
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False, default='/') @api.model def create(self, vals): if vals.get('number', '/') == '/': vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref') return super(hr_contract, self).create(vals)
# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False) @api.model def create(self, vals): contract = super(hr_contract, self).create(vals) if contract: contract[0].name = self.env['ir.sequence'].next_by_code( 'contract.ref') return contract Update code as commented, update readme.# -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False, default='/') @api.model def create(self, vals): if vals.get('number', '/') == '/': vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref') return super(hr_contract, self).create(vals)
<commit_before># -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False) @api.model def create(self, vals): contract = super(hr_contract, self).create(vals) if contract: contract[0].name = self.env['ir.sequence'].next_by_code( 'contract.ref') return contract <commit_msg>Update code as commented, update readme.<commit_after># -*- coding:utf-8 -*- ############################################################################## # # Copyright (C) 2011,2013 Michael Telahun Makonnen <mmakonnen@gmail.com>. # All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp import models, fields, api class hr_contract(models.Model): _inherit = 'hr.contract' name = fields.Char('Contract Reference', required=False, readonly=True, copy=False, default='/') @api.model def create(self, vals): if vals.get('number', '/') == '/': vals['name'] = self.env['ir.sequence'].next_by_code('contract.ref') return super(hr_contract, self).create(vals)
a2d373ac4cedbfa556b54f8a29382554290d7532
chaos.py
chaos.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from os.path import dirname, abspath, join import time import sys import logging import subprocess import settings import schedule import cron import github_api as gh def main(): """main entry""" logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main()
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import os import sys import logging import threading import http.server import random import subprocess import settings import patch import schedule from os.path import dirname, abspath, join import cron import github_api as gh import github_api.prs import github_api.voting import github_api.repos import github_api.comments # Has a sideeffect of creating private key if one doesn't exist already import encryption from github_api import exceptions as gh_exc def main(): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") api = gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main()
Revert "Code cleanup and removed unused imports"
Revert "Code cleanup and removed unused imports" This reverts commit b4fc4f3d767c7f738dcb5cd784826dcc02c577bb.
Python
mit
mpnordland/chaos,g19fanatic/chaos,rudehn/chaos,Chaosthebot/Chaos,g19fanatic/chaos,amoffat/Chaos,mark-i-m/Chaos,chaosbot/Chaos,chaosbot/Chaos,eamanu/Chaos,amoffat/Chaos,botchaos/Chaos,phil-r/chaos,eukaryote31/chaos,Chaosthebot/Chaos,eukaryote31/chaos,hongaar/chaos,mark-i-m/Chaos,eamanu/Chaos,mark-i-m/Chaos,mark-i-m/Chaos,rudehn/chaos,amoffat/Chaos,g19fanatic/chaos,Chaosthebot/Chaos,phil-r/chaos,phil-r/chaos,botchaos/Chaos,chaosbot/Chaos,mpnordland/chaos,mpnordland/chaos,hongaar/chaos,g19fanatic/chaos,hongaar/chaos,rudehn/chaos,hongaar/chaos,Chaosthebot/Chaos,g19fanatic/chaos,eamanu/Chaos,eamanu/Chaos,phil-r/chaos,amoffat/Chaos,eukaryote31/chaos,botchaos/Chaos,hongaar/chaos,botchaos/Chaos,rudehn/chaos,eamanu/Chaos,rudehn/chaos,chaosbot/Chaos,eukaryote31/chaos,phil-r/chaos,amoffat/Chaos,mark-i-m/Chaos,botchaos/Chaos,chaosbot/Chaos,mpnordland/chaos,eukaryote31/chaos,Chaosthebot/Chaos,mpnordland/chaos
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from os.path import dirname, abspath, join import time import sys import logging import subprocess import settings import schedule import cron import github_api as gh def main(): """main entry""" logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main() Revert "Code cleanup and removed unused imports" This reverts commit b4fc4f3d767c7f738dcb5cd784826dcc02c577bb.
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import os import sys import logging import threading import http.server import random import subprocess import settings import patch import schedule from os.path import dirname, abspath, join import cron import github_api as gh import github_api.prs import github_api.voting import github_api.repos import github_api.comments # Has a sideeffect of creating private key if one doesn't exist already import encryption from github_api import exceptions as gh_exc def main(): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") api = gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main()
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os from os.path import dirname, abspath, join import time import sys import logging import subprocess import settings import schedule import cron import github_api as gh def main(): """main entry""" logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main() <commit_msg>Revert "Code cleanup and removed unused imports" This reverts commit b4fc4f3d767c7f738dcb5cd784826dcc02c577bb.<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- import time import os import sys import logging import threading import http.server import random import subprocess import settings import patch import schedule from os.path import dirname, abspath, join import cron import github_api as gh import github_api.prs import github_api.voting import github_api.repos import github_api.comments # Has a sideeffect of creating private key if one doesn't exist already import encryption from github_api import exceptions as gh_exc def main(): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") api = gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main()
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from os.path import dirname, abspath, join import time import sys import logging import subprocess import settings import schedule import cron import github_api as gh def main(): """main entry""" logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main() Revert "Code cleanup and removed unused imports" This reverts commit b4fc4f3d767c7f738dcb5cd784826dcc02c577bb.#!/usr/bin/env python # -*- coding: utf-8 -*- import time import os import sys import logging import threading import http.server import random import subprocess import settings import patch import schedule from os.path import dirname, abspath, join import cron import github_api as gh import github_api.prs import github_api.voting import github_api.repos import github_api.comments # Has a sideeffect of creating private key if one doesn't exist already import encryption from github_api import exceptions as gh_exc def main(): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") api = gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main()
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os from os.path import dirname, abspath, join import time import sys import logging import subprocess import settings import schedule import cron import github_api as gh def main(): """main entry""" logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main() <commit_msg>Revert "Code cleanup and removed unused imports" This reverts commit b4fc4f3d767c7f738dcb5cd784826dcc02c577bb.<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- import time import os import sys import logging import threading import http.server import random import subprocess import settings import patch import schedule from os.path import dirname, abspath, join import cron import github_api as gh import github_api.prs import github_api.voting import github_api.repos import github_api.comments # Has a sideeffect of creating private key if one doesn't exist already import encryption from github_api import exceptions as gh_exc def main(): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M') logging.getLogger("requests").propagate = False logging.getLogger("sh").propagate = False log = logging.getLogger("chaosbot") api = gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET) log.info("starting up and entering event loop") os.system("pkill chaos_server") server_dir = join(dirname(abspath(__file__)), "server") subprocess.Popen([sys.executable, "server.py"], cwd=server_dir) # Schedule all cron jobs to be run cron.schedule_jobs() while True: # Run any scheduled jobs on the next second. schedule.run_pending() time.sleep(1) if __name__ == "__main__": main()
00cffc4197d393e6fc8d8031a4d1f8e78d5c532c
IPython/config/profile/pysh/ipython_config.py
IPython/config/profile/pysh/ipython_config.py
c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' c.InteractiveShell.prompt_in2 = r'\C_Green|\C_LightGreen\D\C_Green> ' c.InteractiveShell.prompt_out = r'<\#> ' c.InteractiveShell.prompts_pad_left = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines]
c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]{color.Green}|\#> ' c.PromptManager.in2_template = r'{color.Green}|{color.LightGreen}\D{color.Green}> ' c.PromptManager.out_template = r'<\#> ' c.PromptManager.justify = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines]
Update prompt config for pysh profile.
Update prompt config for pysh profile.
Python
bsd-3-clause
ipython/ipython,ipython/ipython
c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' c.InteractiveShell.prompt_in2 = r'\C_Green|\C_LightGreen\D\C_Green> ' c.InteractiveShell.prompt_out = r'<\#> ' c.InteractiveShell.prompts_pad_left = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines] Update prompt config for pysh profile.
c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]{color.Green}|\#> ' c.PromptManager.in2_template = r'{color.Green}|{color.LightGreen}\D{color.Green}> ' c.PromptManager.out_template = r'<\#> ' c.PromptManager.justify = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines]
<commit_before>c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' c.InteractiveShell.prompt_in2 = r'\C_Green|\C_LightGreen\D\C_Green> ' c.InteractiveShell.prompt_out = r'<\#> ' c.InteractiveShell.prompts_pad_left = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines] <commit_msg>Update prompt config for pysh profile.<commit_after>
c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]{color.Green}|\#> ' c.PromptManager.in2_template = r'{color.Green}|{color.LightGreen}\D{color.Green}> ' c.PromptManager.out_template = r'<\#> ' c.PromptManager.justify = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines]
c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' c.InteractiveShell.prompt_in2 = r'\C_Green|\C_LightGreen\D\C_Green> ' c.InteractiveShell.prompt_out = r'<\#> ' c.InteractiveShell.prompts_pad_left = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines] Update prompt config for pysh profile.c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]{color.Green}|\#> ' c.PromptManager.in2_template = r'{color.Green}|{color.LightGreen}\D{color.Green}> ' c.PromptManager.out_template = r'<\#> ' c.PromptManager.justify = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines]
<commit_before>c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.InteractiveShell.prompt_in1 = r'\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' c.InteractiveShell.prompt_in2 = r'\C_Green|\C_LightGreen\D\C_Green> ' c.InteractiveShell.prompt_out = r'<\#> ' c.InteractiveShell.prompts_pad_left = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines] <commit_msg>Update prompt config for pysh profile.<commit_after>c = get_config() app = c.InteractiveShellApp # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py', profile='default') c.PromptManager.in_template = r'{color.LightGreen}\u@\h{color.LightBlue}[{color.LightCyan}\Y1{color.LightBlue}]{color.Green}|\#> ' c.PromptManager.in2_template = r'{color.Green}|{color.LightGreen}\D{color.Green}> ' c.PromptManager.out_template = r'<\#> ' c.PromptManager.justify = True c.InteractiveShell.separate_in = '' c.InteractiveShell.separate_out = '' c.InteractiveShell.separate_out2 = '' c.PrefilterManager.multi_line_specials = True lines = """ %rehashx """ # You have to make sure that attributes that are containers already # exist before using them. Simple assigning a new list will override # all previous values. if hasattr(app, 'exec_lines'): app.exec_lines.append(lines) else: app.exec_lines = [lines]
24e9cd06f56f4b825a9e22b1974e573b34edb8b9
ec2_security_group_list.py
ec2_security_group_list.py
#!/usr/bin/env python import boto print 'Security group information:\n' ec2 = boto.connect_ec2() sgs = ec2.get_all_security_groups() for sg in sgs: instances = sg.instances() print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances)) for inst in instances: tag_name = 'UNKNOWN' if inst.tags is not None and 'Name' in inst.tags: tag_name = inst.tags['Name'] print '\tid: %s, name: %s' % (inst.id, tag_name)
#!/usr/bin/env python import boto3 print 'Security group information:\n' ec2 = boto3.resource('ec2') sgs = ec2.security_groups.all() for sg in sgs: tag_name = sg.group_name if sg.tags is not None: for tag in sg.tags: if tag['Key'] == 'Name' and tag['Value'] != '': tag_name = tag['Value'] print 'id: %s, name: %s, vpc_id: %s' % (sg.id, tag_name, sg.vpc_id)
Update script to use boto3 instead of boto2
Update script to use boto3 instead of boto2
Python
mit
thinhpham/aws-tools
#!/usr/bin/env python import boto print 'Security group information:\n' ec2 = boto.connect_ec2() sgs = ec2.get_all_security_groups() for sg in sgs: instances = sg.instances() print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances)) for inst in instances: tag_name = 'UNKNOWN' if inst.tags is not None and 'Name' in inst.tags: tag_name = inst.tags['Name'] print '\tid: %s, name: %s' % (inst.id, tag_name) Update script to use boto3 instead of boto2
#!/usr/bin/env python import boto3 print 'Security group information:\n' ec2 = boto3.resource('ec2') sgs = ec2.security_groups.all() for sg in sgs: tag_name = sg.group_name if sg.tags is not None: for tag in sg.tags: if tag['Key'] == 'Name' and tag['Value'] != '': tag_name = tag['Value'] print 'id: %s, name: %s, vpc_id: %s' % (sg.id, tag_name, sg.vpc_id)
<commit_before>#!/usr/bin/env python import boto print 'Security group information:\n' ec2 = boto.connect_ec2() sgs = ec2.get_all_security_groups() for sg in sgs: instances = sg.instances() print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances)) for inst in instances: tag_name = 'UNKNOWN' if inst.tags is not None and 'Name' in inst.tags: tag_name = inst.tags['Name'] print '\tid: %s, name: %s' % (inst.id, tag_name) <commit_msg>Update script to use boto3 instead of boto2<commit_after>
#!/usr/bin/env python import boto3 print 'Security group information:\n' ec2 = boto3.resource('ec2') sgs = ec2.security_groups.all() for sg in sgs: tag_name = sg.group_name if sg.tags is not None: for tag in sg.tags: if tag['Key'] == 'Name' and tag['Value'] != '': tag_name = tag['Value'] print 'id: %s, name: %s, vpc_id: %s' % (sg.id, tag_name, sg.vpc_id)
#!/usr/bin/env python import boto print 'Security group information:\n' ec2 = boto.connect_ec2() sgs = ec2.get_all_security_groups() for sg in sgs: instances = sg.instances() print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances)) for inst in instances: tag_name = 'UNKNOWN' if inst.tags is not None and 'Name' in inst.tags: tag_name = inst.tags['Name'] print '\tid: %s, name: %s' % (inst.id, tag_name) Update script to use boto3 instead of boto2#!/usr/bin/env python import boto3 print 'Security group information:\n' ec2 = boto3.resource('ec2') sgs = ec2.security_groups.all() for sg in sgs: tag_name = sg.group_name if sg.tags is not None: for tag in sg.tags: if tag['Key'] == 'Name' and tag['Value'] != '': tag_name = tag['Value'] print 'id: %s, name: %s, vpc_id: %s' % (sg.id, tag_name, sg.vpc_id)
<commit_before>#!/usr/bin/env python import boto print 'Security group information:\n' ec2 = boto.connect_ec2() sgs = ec2.get_all_security_groups() for sg in sgs: instances = sg.instances() print 'id: %s, name: %s, count: %s' % (sg.id, sg.name, len(instances)) for inst in instances: tag_name = 'UNKNOWN' if inst.tags is not None and 'Name' in inst.tags: tag_name = inst.tags['Name'] print '\tid: %s, name: %s' % (inst.id, tag_name) <commit_msg>Update script to use boto3 instead of boto2<commit_after>#!/usr/bin/env python import boto3 print 'Security group information:\n' ec2 = boto3.resource('ec2') sgs = ec2.security_groups.all() for sg in sgs: tag_name = sg.group_name if sg.tags is not None: for tag in sg.tags: if tag['Key'] == 'Name' and tag['Value'] != '': tag_name = tag['Value'] print 'id: %s, name: %s, vpc_id: %s' % (sg.id, tag_name, sg.vpc_id)
1324bec259bc8c0dd041d293a2ef60350c7a1f3c
db/alembic/versions/71213454a09a_7_remove_name_from_measurement.py
db/alembic/versions/71213454a09a_7_remove_name_from_measurement.py
"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' UPDATE measurement SET key = name ''') op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass
"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass
Fix migration: measurement did not have column key.
Fix migration: measurement did not have column key.
Python
mit
atlefren/pitilt-api,atlefren/pitilt-api,atlefren/pitilt-api,atlefren/pitilt-api
"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' UPDATE measurement SET key = name ''') op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass Fix migration: measurement did not have column key.
"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass
<commit_before>"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' UPDATE measurement SET key = name ''') op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass <commit_msg>Fix migration: measurement did not have column key.<commit_after>
"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass
"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' UPDATE measurement SET key = name ''') op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass Fix migration: measurement did not have column key."""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass
<commit_before>"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' UPDATE measurement SET key = name ''') op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass <commit_msg>Fix migration: measurement did not have column key.<commit_after>"""7_remove_name_from_measurement Revision ID: 71213454a09a Revises: f16c6875f138 Create Date: 2017-05-11 14:25:08.256463 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '71213454a09a' down_revision = 'f16c6875f138' branch_labels = None depends_on = None def upgrade(): op.execute(''' ALTER TABLE measurement DROP COLUMN name; ''') def downgrade(): pass
b79108c849b5b729eaf35c9c217e04e974474753
tree.py
tree.py
from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True)
from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() # Connect the selection changed signal # selmodel = self.listing.selectionModel() # self.selectionChanged.connect(self.handleSelectionChanged) def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) def selectionChanged(self, selected, deselected): """ Event handler for selection changes. """ print "In selectionChanged" indexes = selected.indexes() if indexes: print('row: %d' % indexes[0].row()) # print selected.value(indexes[0].row()) print self.model().data(indexes[0])
Print selection in selectionChanged handler.
Print selection in selectionChanged handler.
Python
bsd-3-clause
techdragon/sphinx-gui,audreyr/sphinx-gui,audreyr/sphinx-gui,techdragon/sphinx-gui
from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) Print selection in selectionChanged handler.
from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() # Connect the selection changed signal # selmodel = self.listing.selectionModel() # self.selectionChanged.connect(self.handleSelectionChanged) def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) def selectionChanged(self, selected, deselected): """ Event handler for selection changes. """ print "In selectionChanged" indexes = selected.indexes() if indexes: print('row: %d' % indexes[0].row()) # print selected.value(indexes[0].row()) print self.model().data(indexes[0])
<commit_before>from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) <commit_msg>Print selection in selectionChanged handler.<commit_after>
from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() # Connect the selection changed signal # selmodel = self.listing.selectionModel() # self.selectionChanged.connect(self.handleSelectionChanged) def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) def selectionChanged(self, selected, deselected): """ Event handler for selection changes. """ print "In selectionChanged" indexes = selected.indexes() if indexes: print('row: %d' % indexes[0].row()) # print selected.value(indexes[0].row()) print self.model().data(indexes[0])
from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) Print selection in selectionChanged handler.from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() # Connect the selection changed signal # selmodel = self.listing.selectionModel() # self.selectionChanged.connect(self.handleSelectionChanged) def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) def selectionChanged(self, selected, deselected): """ Event handler for selection changes. """ print "In selectionChanged" indexes = selected.indexes() if indexes: print('row: %d' % indexes[0].row()) # print selected.value(indexes[0].row()) print self.model().data(indexes[0])
<commit_before>from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) <commit_msg>Print selection in selectionChanged handler.<commit_after>from PySide import QtGui, QtCore class Tree(QtGui.QTreeView): def __init__(self, parent=None): super(Tree, self).__init__(parent) def load_from_path(self, path): """ Load directory containing file into the tree. """ # Link the tree to a model model = QtGui.QFileSystemModel() model.setRootPath(path) self.setModel(model) # Set the tree's index to the root of the model indexRoot = model.index(model.rootPath()) self.setRootIndex(indexRoot) # Display tree cleanly self.hide_unwanted_info() # Connect the selection changed signal # selmodel = self.listing.selectionModel() # self.selectionChanged.connect(self.handleSelectionChanged) def hide_unwanted_info(self): """ Hides unneeded columns and header. """ # Hide tree size and date columns self.hideColumn(1) self.hideColumn(2) self.hideColumn(3) # Hide tree header self.setHeaderHidden(True) def selectionChanged(self, selected, deselected): """ Event handler for selection changes. """ print "In selectionChanged" indexes = selected.indexes() if indexes: print('row: %d' % indexes[0].row()) # print selected.value(indexes[0].row()) print self.model().data(indexes[0])
ac088c3278e509bfaf6fa7b86af1831c7fbb010d
argyle/postgres.py
argyle/postgres.py
from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres')
from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql, use_sudo=True) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres')
Use sudo to change db user password.
Use sudo to change db user password.
Python
bsd-2-clause
mlavin/argyle,mlavin/argyle,mlavin/argyle
from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres') Use sudo to change db user password.
from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql, use_sudo=True) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres')
<commit_before>from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres') <commit_msg>Use sudo to change db user password.<commit_after>
from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql, use_sudo=True) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres')
from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres') Use sudo to change db user password.from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql, use_sudo=True) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres')
<commit_before>from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres') <commit_msg>Use sudo to change db user password.<commit_after>from argyle.base import upload_template from fabric.api import sudo, task @task def create_db_user(username, password=None, flags=None): """Create a databse user.""" flags = flags or u'-D -A -R' sudo(u'createuser %s %s' % (flags, username), user=u'postgres') if password: change_db_user_password(username, password) @task def excute_query(query, db=None, flags=None, use_sudo=False): """Execute remote psql query.""" flags = flags or u'' if db: flags = u"%s -d %s" % (flags, db) command = u'psql %s -c "%s"' % (flags, query) if use_sudo: sudo(command, user='postgres') else: run(command) @task def change_db_user_password(username, password): """Change a db user's password.""" sql = "ALTER USER %s WITH PASSWORD '%s'" % (username, password) excute_query(sql, use_sudo=True) @task def create_db(name, owner=None, encoding=u'UTF-8'): """Create a Postgres database.""" flags = u'' if encoding: flags = u'-E %s' % encoding if owner: flags = u'%s -O %s' % (flags, owner) sudo('createdb %s %s' % (flags, name), user='postgres')
725b3a9db33c90187b913123deefeb180c7fee4c
client/app.py
client/app.py
#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) def run(self): runner = CommandRunner() command = self.server.get() while command is not None: response = runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()
#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: server = None runner = None def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) self.runner = CommandRunner() def run(self): command = self.server.get() while command is not None: response = self.runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()
Add DI to App object
Add DI to App object
Python
mit
CaminsTECH/owncloud-test
#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) def run(self): runner = CommandRunner() command = self.server.get() while command is not None: response = runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()Add DI to App object
#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: server = None runner = None def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) self.runner = CommandRunner() def run(self): command = self.server.get() while command is not None: response = self.runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()
<commit_before>#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) def run(self): runner = CommandRunner() command = self.server.get() while command is not None: response = runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()<commit_msg>Add DI to App object<commit_after>
#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: server = None runner = None def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) self.runner = CommandRunner() def run(self): command = self.server.get() while command is not None: response = self.runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()
#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) def run(self): runner = CommandRunner() command = self.server.get() while command is not None: response = runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()Add DI to App object#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: server = None runner = None def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) self.runner = CommandRunner() def run(self): command = self.server.get() while command is not None: response = self.runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()
<commit_before>#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) def run(self): runner = CommandRunner() command = self.server.get() while command is not None: response = runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()<commit_msg>Add DI to App object<commit_after>#!/usr/bin/env python3 import argparse from server import * from commandRunner import * class App: server = None runner = None def __init__(self, baseurl, clientid): self.server = Server(baseurl, clientid) self.runner = CommandRunner() def run(self): command = self.server.get() while command is not None: response = self.runner.run(command) self.server.send(response) command = self.server.get() def parseCommandLine(): parser = argparse.ArgumentParser() parser.add_argument("--baseurl", required=True) parser.add_argument("--clientid", required=True) return parser.parse_args() if __name__ == '__main__': args = parseCommandLine() app = App(args.baseurl, args.clientid); app.run()
42b797b5a8eca483f68ca9b8e6fc123bc8f4cf9c
taOonja/taOonja/urls.py
taOonja/taOonja/urls.py
"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin from game.views import LocationListView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^location/$', LocationListView.as_view(), name='location-list') ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Add Basic URL for Project
Add Basic URL for Project
Python
mit
Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja
"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Add Basic URL for Project
"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin from game.views import LocationListView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^location/$', LocationListView.as_view(), name='location-list') ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
<commit_before>"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) <commit_msg>Add Basic URL for Project<commit_after>
"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin from game.views import LocationListView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^location/$', LocationListView.as_view(), name='location-list') ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Add Basic URL for Project"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin from game.views import LocationListView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^location/$', LocationListView.as_view(), name='location-list') ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
<commit_before>"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) <commit_msg>Add Basic URL for Project<commit_after>"""taOonja URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf import settings from django.conf.urls.static import static from django.conf.urls import url from django.contrib import admin from game.views import LocationListView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^location/$', LocationListView.as_view(), name='location-list') ] if settings.DEBUG is True: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
bf557dc589a776b432c1a43a96a09d93aa2b0a1e
tca/chat/serializers.py
tca/chat/serializers.py
from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',)
from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): messages = serializers.SerializerMethodField('get_messages_url') def get_messages_url(self, chat_room): return reverse( 'message-list', kwargs={'chat_room': chat_room.pk}, request=self.context.get('request', None) ) class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',)
Add a link to the messages of a ChatRoom in its representation
Add a link to the messages of a ChatRoom in its representation The ChatRoom resource should provide a way for clients to access its subordinate resource ``Message``.
Python
bsd-3-clause
mlalic/TumCampusAppBackend,mlalic/TumCampusAppBackend
from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',) Add a link to the messages of a ChatRoom in its representation The ChatRoom resource should provide a way for clients to access its subordinate resource ``Message``.
from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): messages = serializers.SerializerMethodField('get_messages_url') def get_messages_url(self, chat_room): return reverse( 'message-list', kwargs={'chat_room': chat_room.pk}, request=self.context.get('request', None) ) class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',)
<commit_before>from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',) <commit_msg>Add a link to the messages of a ChatRoom in its representation The ChatRoom resource should provide a way for clients to access its subordinate resource ``Message``.<commit_after>
from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): messages = serializers.SerializerMethodField('get_messages_url') def get_messages_url(self, chat_room): return reverse( 'message-list', kwargs={'chat_room': chat_room.pk}, request=self.context.get('request', None) ) class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',)
from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',) Add a link to the messages of a ChatRoom in its representation The ChatRoom resource should provide a way for clients to access its subordinate resource ``Message``.from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): messages = serializers.SerializerMethodField('get_messages_url') def get_messages_url(self, chat_room): return reverse( 'message-list', kwargs={'chat_room': chat_room.pk}, request=self.context.get('request', None) ) class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',)
<commit_before>from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',) <commit_msg>Add a link to the messages of a ChatRoom in its representation The ChatRoom resource should provide a way for clients to access its subordinate resource ``Message``.<commit_after>from rest_framework import serializers from rest_framework.reverse import reverse from chat.models import Member from chat.models import Message from chat.models import ChatRoom class MemberSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Member class ChatRoomSerializer(serializers.HyperlinkedModelSerializer): messages = serializers.SerializerMethodField('get_messages_url') def get_messages_url(self, chat_room): return reverse( 'message-list', kwargs={'chat_room': chat_room.pk}, request=self.context.get('request', None) ) class Meta: model = ChatRoom class MessageSerializer(serializers.HyperlinkedModelSerializer): url = serializers.SerializerMethodField('get_url') def get_url(self, message): """Customized version of obtaining the object's URL. Necessary because the resource is a subordinate of a chatroom resource, so it is necessary to include the parent's ID in the URL. """ return reverse( 'message-detail', kwargs={ 'chat_room': message.chat_room.pk, 'pk': message.pk, }, request=self.context.get('request', None) ) class Meta: model = Message exclude = ('chat_room',)
5ac6e5db05a81cc6f5b1b1fc4850424d526774c8
flash_services/__init__.py
flash_services/__init__.py
"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.1' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services
"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.2' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services
Tag builds in the correct order
Tag builds in the correct order
Python
isc
textbook/flash_services,textbook/flash_services,textbook/flash_services
"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.1' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services Tag builds in the correct order
"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.2' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services
<commit_before>"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.1' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services <commit_msg>Tag builds in the correct order<commit_after>
"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.2' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services
"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.1' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services Tag builds in the correct order"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.2' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services
<commit_before>"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.1' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services <commit_msg>Tag builds in the correct order<commit_after>"""The services that can be shown on a Flash dashboard.""" from collections import OrderedDict import logging from uuid import uuid4 from flask import Blueprint from .codeship import Codeship from .github import GitHub from .tracker import Tracker from .travis import TravisOS __author__ = 'Jonathan Sharpe' __version__ = '0.1.2' blueprint = Blueprint('services', __name__, template_folder='templates') logger = logging.getLogger(__name__) SERVICES = dict( codeship=Codeship, github=GitHub, tracker=Tracker, travis=TravisOS, ) """:py:class:`dict`: The services available to the application.""" def define_services(config): """Define the service settings for the current app. Arguments: config (:py:class:`list`): The service configuration required. Returns: :py:class:`collections.OrderedDict`: Configured services. Raises: :py:class:`ValueError`: If a non-existent service is requested. """ services = OrderedDict() for settings in config: name = settings['name'] if name not in SERVICES: logger.warning('unknown service %r', name) continue services[uuid4().hex] = SERVICES[name].from_config(**settings) return services
b214a69136225459b514cbf6f3eb503228ae4ec4
server/openslides/saml/management/commands/create-saml-settings.py
server/openslides/saml/management/commands/create-saml-settings.py
import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_path): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path)
import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_dir): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path)
Fix check on wrong variable
Fix check on wrong variable
Python
mit
jwinzer/OpenSlides,CatoTH/OpenSlides,jwinzer/OpenSlides,jwinzer/OpenSlides,FinnStutzenstein/OpenSlides,FinnStutzenstein/OpenSlides,FinnStutzenstein/OpenSlides,jwinzer/OpenSlides,CatoTH/OpenSlides,CatoTH/OpenSlides,jwinzer/OpenSlides,CatoTH/OpenSlides,FinnStutzenstein/OpenSlides
import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_path): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path) Fix check on wrong variable
import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_dir): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path)
<commit_before>import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_path): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path) <commit_msg>Fix check on wrong variable<commit_after>
import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_dir): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path)
import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_path): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path) Fix check on wrong variableimport os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_dir): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path)
<commit_before>import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_path): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path) <commit_msg>Fix check on wrong variable<commit_after>import os from django.core.management.base import BaseCommand from ...settings import create_saml_settings, get_settings_dir_and_path class Command(BaseCommand): """ Command to create the saml_settings.json file. """ help = "Create the saml_settings.json settings file." def add_arguments(self, parser): parser.add_argument( "-d", "--dir", default=None, help="Directory for the saml_settings.json file.", ) def handle(self, *args, **options): settings_dir = options.get("dir") if settings_dir is not None: settings_path = os.path.join(settings_dir, "saml_settings.json") if not os.path.isdir(settings_dir): print(f"The directory '{settings_dir}' does not exist. Aborting...") return else: _, settings_path = get_settings_dir_and_path() create_saml_settings(settings_path)
7d4f345443575974825ebc9bac8a274632ccb99d
python/brica1/__init__.py
python/brica1/__init__.py
# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .unit import * from .utils import *
# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .supervisor import * from .unit import * from .utils import *
Add supervisor to default modules
Add supervisor to default modules
Python
apache-2.0
wbap/BriCA1
# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .unit import * from .utils import * Add supervisor to default modules
# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .supervisor import * from .unit import * from .utils import *
<commit_before># -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .unit import * from .utils import * <commit_msg>Add supervisor to default modules<commit_after>
# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .supervisor import * from .unit import * from .utils import *
# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .unit import * from .utils import * Add supervisor to default modules# -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .supervisor import * from .unit import * from .utils import *
<commit_before># -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .unit import * from .utils import * <commit_msg>Add supervisor to default modules<commit_after># -*- coding: utf-8 -*- """ BriCA ===== Brain-inspired Cognitive Architecture A scalable, general purpose computing platform for cognitive architectures. """ __all__ = ["component", "connection", "module", "port", "ros", "scheduler", "supervisor", "unit", "utils"] from .component import * from .connection import * from .module import * from .port import * from .scheduler import * from .supervisor import * from .unit import * from .utils import *
222ac5f16004f45b17b0b04f71104eac9b2fd3d4
jarvis.py
jarvis.py
import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)
import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def about(): return 'Just A Rather Very Intelligent System, now on Messenger!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)
Add description on root route
Add description on root route
Python
mit
ZuZuD/JARVIS-on-Messenger,jaskaransarkaria/JARVIS-on-Messenger,swapagarwal/JARVIS-on-Messenger,edadesd/JARVIS-on-Messenger
import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True) Add description on root route
import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def about(): return 'Just A Rather Very Intelligent System, now on Messenger!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)
<commit_before>import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True) <commit_msg>Add description on root route<commit_after>
import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def about(): return 'Just A Rather Very Intelligent System, now on Messenger!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)
import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True) Add description on root routeimport config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def about(): return 'Just A Rather Very Intelligent System, now on Messenger!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)
<commit_before>import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True) <commit_msg>Add description on root route<commit_after>import config from flask import Flask, request import json import os import requests import modules ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN) VERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKEN) app = Flask(__name__) @app.route('/') def about(): return 'Just A Rather Very Intelligent System, now on Messenger!' @app.route('/webhook/', methods=['GET', 'POST']) def webhook(): if request.method == 'POST': data = request.get_json(force=True) messaging_events = data['entry'][0]['messaging'] for event in messaging_events: sender = event['sender']['id'] if 'message' in event and 'text' in event['message']: text = event['message']['text'] payload = { 'recipient': { 'id': sender }, 'message': { 'text': modules.search(text) } } r = requests.post('https://graph.facebook.com/v2.6/me/messages', params={'access_token': ACCESS_TOKEN}, json=payload) return '' # 200 OK elif request.method == 'GET': # Verification if request.args.get('hub.verify_token') == VERIFY_TOKEN: return request.args.get('hub.challenge') else: return 'Error, wrong validation token' if __name__ == '__main__': app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 5000)), debug=True)
9516621f2b4cfc5b541c3328df95b62111e77463
app/main/__init__.py
app/main/__init__.py
from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists )
from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists )
Delete reference to removed view
Delete reference to removed view
Python
mit
alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend
from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists ) Delete reference to removed view
from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists )
<commit_before>from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists ) <commit_msg>Delete reference to removed view<commit_after>
from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists )
from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists ) Delete reference to removed viewfrom flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists )
<commit_before>from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists ) <commit_msg>Delete reference to removed view<commit_after>from flask import Blueprint main = Blueprint('main', __name__) from . import errors from .views import ( crown_hosting, g_cloud, login, marketplace, suppliers, digital_outcomes_and_specialists )
a0f31dc83ce36823022b5e26c85ad03fe639e79f
src/main/python/alppaca/compat.py
src/main/python/alppaca/compat.py
from __future__ import print_function, absolute_import, unicode_literals, division """ Compatability module for different Python versions. """ try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict
""" Compatability module for different Python versions. """ from __future__ import print_function, absolute_import, unicode_literals, division try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict
Move string above the import so it becomes a docstring
Move string above the import so it becomes a docstring
Python
apache-2.0
ImmobilienScout24/afp-alppaca,ImmobilienScout24/afp-alppaca,ImmobilienScout24/alppaca,ImmobilienScout24/alppaca
from __future__ import print_function, absolute_import, unicode_literals, division """ Compatability module for different Python versions. """ try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict Move string above the import so it becomes a docstring
""" Compatability module for different Python versions. """ from __future__ import print_function, absolute_import, unicode_literals, division try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict
<commit_before>from __future__ import print_function, absolute_import, unicode_literals, division """ Compatability module for different Python versions. """ try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict <commit_msg>Move string above the import so it becomes a docstring<commit_after>
""" Compatability module for different Python versions. """ from __future__ import print_function, absolute_import, unicode_literals, division try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict
from __future__ import print_function, absolute_import, unicode_literals, division """ Compatability module for different Python versions. """ try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict Move string above the import so it becomes a docstring""" Compatability module for different Python versions. """ from __future__ import print_function, absolute_import, unicode_literals, division try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict
<commit_before>from __future__ import print_function, absolute_import, unicode_literals, division """ Compatability module for different Python versions. """ try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict <commit_msg>Move string above the import so it becomes a docstring<commit_after>""" Compatability module for different Python versions. """ from __future__ import print_function, absolute_import, unicode_literals, division try: import unittest2 as unittest except ImportError: # pragma: no cover import unittest try: from ordereddict import OrderedDict except ImportError: # pragma: no cover from collections import OrderedDict
34d10f364518805f7e7918e62d4f7aecc4f472dc
corehq/apps/change_feed/connection.py
corehq/apps/change_feed/connection.py
from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, request_timeout_ms=1000 ))
from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, ))
Remove hard request timeout on kafka consumer
Remove hard request timeout on kafka consumer
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, request_timeout_ms=1000 )) Remove hard request timeout on kafka consumer
from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, ))
<commit_before>from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, request_timeout_ms=1000 )) <commit_msg>Remove hard request timeout on kafka consumer<commit_after>
from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, ))
from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, request_timeout_ms=1000 )) Remove hard request timeout on kafka consumerfrom django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, ))
<commit_before>from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, request_timeout_ms=1000 )) <commit_msg>Remove hard request timeout on kafka consumer<commit_after>from django.conf import settings from corehq.util.io import ClosingContextProxy from kafka import KafkaConsumer from kafka.client import KafkaClient, SimpleClient GENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client' def get_simple_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): # this uses the old SimpleClient because we are using the old SimpleProducer interface return ClosingContextProxy(SimpleClient( hosts=settings.KAFKA_BROKERS, client_id=client_id, timeout=30, # seconds )) def get_kafka_client(client_id=GENERIC_KAFKA_CLIENT_ID): return ClosingContextProxy(KafkaClient( bootstrap_servers=settings.KAFKA_BROKERS, client_id=client_id, api_version=settings.KAFKA_API_VERSION )) def get_kafka_consumer(): return ClosingContextProxy(KafkaConsumer( client_id='pillowtop_utils', bootstrap_servers=settings.KAFKA_BROKERS, ))
bfbe61ed014ad80ca80cd9fc15d961f4b969eeb8
solum/tests/uploaders/test_common.py
solum/tests/uploaders/test_common.py
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploader import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count)
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploaders import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count)
Fix typo in uploader tests
Fix typo in uploader tests Change-Id: Ife7685d6113309d20bf90a24d73f793be2837314
Python
apache-2.0
stackforge/solum,ed-/solum,openstack/solum,ed-/solum,devdattakulkarni/test-solum,ed-/solum,stackforge/solum,openstack/solum,devdattakulkarni/test-solum,ed-/solum
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploader import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count) Fix typo in uploader tests Change-Id: Ife7685d6113309d20bf90a24d73f793be2837314
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploaders import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count)
<commit_before># Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploader import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count) <commit_msg>Fix typo in uploader tests Change-Id: Ife7685d6113309d20bf90a24d73f793be2837314<commit_after>
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploaders import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count)
# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploader import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count) Fix typo in uploader tests Change-Id: Ife7685d6113309d20bf90a24d73f793be2837314# Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploaders import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count)
<commit_before># Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploader import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count) <commit_msg>Fix typo in uploader tests Change-Id: Ife7685d6113309d20bf90a24d73f793be2837314<commit_after># Copyright 2014 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. from solum.tests import base from solum.tests import utils from solum.uploaders import common as uploader class CommonTest(base.BaseTestCase): def setUp(self): super(CommonTest, self).setUp() def test_upload(self): ctxt = utils.dummy_context() orig_path = "original path" assembly_id = "1234" build_id = "5678" baseuploader = uploader.UploaderBase(ctxt, orig_path, assembly_id, build_id, "fakestage") self.assertEqual(0, baseuploader.write_userlog_row.call_count)
907a09311718859184a8e4015b35bde62efe47f7
graphene/types/datetime.py
graphene/types/datetime.py
from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, datetime.datetime) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, (datetime.datetime, datetime.date)), 'Received not compatible datetime "{}"'.format(repr(dt)) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
Allow dates in Datetime scalar
Allow dates in Datetime scalar
Python
mit
graphql-python/graphene,graphql-python/graphene,Globegitter/graphene,Globegitter/graphene,sjhewitt/graphene,sjhewitt/graphene
from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, datetime.datetime) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f") Allow dates in Datetime scalar
from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, (datetime.datetime, datetime.date)), 'Received not compatible datetime "{}"'.format(repr(dt)) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
<commit_before>from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, datetime.datetime) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f") <commit_msg>Allow dates in Datetime scalar<commit_after>
from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, (datetime.datetime, datetime.date)), 'Received not compatible datetime "{}"'.format(repr(dt)) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, datetime.datetime) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f") Allow dates in Datetime scalarfrom __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, (datetime.datetime, datetime.date)), 'Received not compatible datetime "{}"'.format(repr(dt)) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
<commit_before>from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, datetime.datetime) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f") <commit_msg>Allow dates in Datetime scalar<commit_after>from __future__ import absolute_import import datetime try: import iso8601 except: raise ImportError("iso8601 package is required for DateTime Scalar.\nYou can install it using: pip install iso8601.") from graphql.language import ast from .scalars import Scalar class DateTime(Scalar): @staticmethod def serialize(dt): assert isinstance(dt, (datetime.datetime, datetime.date)), 'Received not compatible datetime "{}"'.format(repr(dt)) return dt.isoformat() @staticmethod def parse_literal(node): if isinstance(node, ast.StringValue): return iso8601.parse_date(node.value) @staticmethod def parse_value(value): return datetime.datetime.strptime(value, "%Y-%m-%dT%H:%M:%S.%f")
d050210f3e5d8a6f119c89f24751604956af3e16
setup.py
setup.py
from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'msgpack-python', 'psycopg2', 'zmq' ], include_package_data=True, zip_safe=False)
from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'inflection', 'msgpack-python', 'psycopg2', 'toml', 'zmq' ], include_package_data=True, zip_safe=False)
Add inflection and toml as dependencies for the project
Add inflection and toml as dependencies for the project
Python
bsd-3-clause
kchoudhu/openarc
from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'msgpack-python', 'psycopg2', 'zmq' ], include_package_data=True, zip_safe=False) Add inflection and toml as dependencies for the project
from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'inflection', 'msgpack-python', 'psycopg2', 'toml', 'zmq' ], include_package_data=True, zip_safe=False)
<commit_before>from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'msgpack-python', 'psycopg2', 'zmq' ], include_package_data=True, zip_safe=False) <commit_msg>Add inflection and toml as dependencies for the project<commit_after>
from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'inflection', 'msgpack-python', 'psycopg2', 'toml', 'zmq' ], include_package_data=True, zip_safe=False)
from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'msgpack-python', 'psycopg2', 'zmq' ], include_package_data=True, zip_safe=False) Add inflection and toml as dependencies for the projectfrom setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'inflection', 'msgpack-python', 'psycopg2', 'toml', 'zmq' ], include_package_data=True, zip_safe=False)
<commit_before>from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'msgpack-python', 'psycopg2', 'zmq' ], include_package_data=True, zip_safe=False) <commit_msg>Add inflection and toml as dependencies for the project<commit_after>from setuptools import setup setup(name='openarc', version='0.5.0', description='Functional reactive graph backed by PostgreSQL', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 2.7', 'Topic :: Database', ], keywords='graph orm frp finance trading', url='http://github.com/kchoudhu/openarc', author='Kamil Choudhury', author_email='kamil.choudhury@anserinae.net', license='BSD', packages=['openarc'], install_requires=[ 'gevent', 'inflection', 'msgpack-python', 'psycopg2', 'toml', 'zmq' ], include_package_data=True, zip_safe=False)
ba063bd052284571ab6e51b0fcebe238c415071f
setup.py
setup.py
import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } )
import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: OpenStack', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } )
Add OpenStack trove classifier for PyPI
Add OpenStack trove classifier for PyPI Add trove classifier to have the client listed among the other OpenStack-related projets on PyPI. Change-Id: I1ddae8d1272a2b1c5e4c666c9aa4e4a274431415 Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com>
Python
apache-2.0
jamielennox/keystoneauth,sileht/keystoneauth,citrix-openstack-build/keystoneauth
import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } ) Add OpenStack trove classifier for PyPI Add trove classifier to have the client listed among the other OpenStack-related projets on PyPI. Change-Id: I1ddae8d1272a2b1c5e4c666c9aa4e4a274431415 Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com>
import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: OpenStack', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } )
<commit_before>import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } ) <commit_msg>Add OpenStack trove classifier for PyPI Add trove classifier to have the client listed among the other OpenStack-related projets on PyPI. Change-Id: I1ddae8d1272a2b1c5e4c666c9aa4e4a274431415 Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com><commit_after>
import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: OpenStack', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } )
import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } ) Add OpenStack trove classifier for PyPI Add trove classifier to have the client listed among the other OpenStack-related projets on PyPI. Change-Id: I1ddae8d1272a2b1c5e4c666c9aa4e4a274431415 Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com>import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: OpenStack', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } )
<commit_before>import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } ) <commit_msg>Add OpenStack trove classifier for PyPI Add trove classifier to have the client listed among the other OpenStack-related projets on PyPI. Change-Id: I1ddae8d1272a2b1c5e4c666c9aa4e4a274431415 Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com><commit_after>import os import sys import setuptools from keystoneclient.openstack.common import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() requires = setup.parse_requirements() depend_links = setup.parse_dependency_links() tests_require = setup.parse_requirements(['tools/test-requires']) setuptools.setup( name="python-keystoneclient", version=setup.get_post_version('keystoneclient'), description="Client library for OpenStack Keystone API", long_description=read('README.rst'), url='https://github.com/openstack/python-keystoneclient', license='Apache', author='Nebula Inc, based on work by Rackspace and Jacob Kaplan-Moss', author_email='gabriel.hurley@nebula.com', packages=setuptools.find_packages(exclude=['tests', 'tests.*']), classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Environment :: OpenStack', 'Intended Audience :: Developers', 'Intended Audience :: Information Technology', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], install_requires=requires, dependency_links=depend_links, cmdclass=setup.get_cmdclass(), tests_require=tests_require, test_suite="nose.collector", entry_points={ 'console_scripts': ['keystone = keystoneclient.shell:main'] } )
3bb0f94161966d04ab29fd1cd0b3e4ec34586c8c
setup.py
setup.py
#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, )
#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'numpy>=1.11.2', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, )
Add bumpy requirement for rtd
Add bumpy requirement for rtd
Python
mit
MaxHalford/Prince
#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, ) Add bumpy requirement for rtd
#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'numpy>=1.11.2', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, )
<commit_before>#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, ) <commit_msg>Add bumpy requirement for rtd<commit_after>
#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'numpy>=1.11.2', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, )
#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, ) Add bumpy requirement for rtd#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'numpy>=1.11.2', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, )
<commit_before>#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, ) <commit_msg>Add bumpy requirement for rtd<commit_after>#!/usr/bin/python from setuptools import setup, find_packages from prince import __author__, __license__, __title__, __version__ setup( author=__author__, author_email='maxhalford25@gmail.com', description='Factor analysis for in-memory datasets in Python', install_requires=[ 'fbpca>=1.0', 'matplotlib>=1.5', 'numpy>=1.11.2', 'pandas>=0.19.0' ], license=__license__, long_description=open('README.md', 'r').read(), name=__title__, packages=find_packages(exclude=['tests']), url='https://github.com/MaxHalford/Prince', version=__version__, )
301f23067dde512f56ba5bf2201b666d125ffc96
setup.py
setup.py
import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('whacked4') build_exe_options = { 'packages': [], 'path': paths, 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } build_exe_options['path'].append('src') base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] )
import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('src') build_exe_options = { 'path': paths, 'packages': ['whacked4'], 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] )
Update distutils script. Release builds still twice the size though...
Update distutils script. Release builds still twice the size though...
Python
bsd-2-clause
GitExl/WhackEd4,GitExl/WhackEd4
import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('whacked4') build_exe_options = { 'packages': [], 'path': paths, 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } build_exe_options['path'].append('src') base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] ) Update distutils script. Release builds still twice the size though...
import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('src') build_exe_options = { 'path': paths, 'packages': ['whacked4'], 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] )
<commit_before>import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('whacked4') build_exe_options = { 'packages': [], 'path': paths, 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } build_exe_options['path'].append('src') base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] ) <commit_msg>Update distutils script. Release builds still twice the size though...<commit_after>
import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('src') build_exe_options = { 'path': paths, 'packages': ['whacked4'], 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] )
import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('whacked4') build_exe_options = { 'packages': [], 'path': paths, 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } build_exe_options['path'].append('src') base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] ) Update distutils script. Release builds still twice the size though...import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('src') build_exe_options = { 'path': paths, 'packages': ['whacked4'], 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] )
<commit_before>import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('whacked4') build_exe_options = { 'packages': [], 'path': paths, 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } build_exe_options['path'].append('src') base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] ) <commit_msg>Update distutils script. Release builds still twice the size though...<commit_after>import sys import os from cx_Freeze import setup, Executable paths = [] paths.extend(sys.path) paths.append('src') build_exe_options = { 'path': paths, 'packages': ['whacked4'], 'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'], 'optimize': 2, 'include_msvcr': True } base = None if sys.platform == 'win32': base = 'Win32GUI' exe = Executable( 'src/main.py', base=base, targetName=os.environ['app_name_lower'] + '.exe', icon='res/icon-hatchet.ico' ) setup( name = os.environ['app_title'], version = os.environ['app_version_value'], description = os.environ['app_description'], options = {'build_exe': build_exe_options}, executables = [exe] )
eb95c0f631e9f309aa6bbde82df84c05b55a357d
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.10.0,<=0.10.999', 'yelp-cheetah>=0.13.0,<=0.13.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, )
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.11.0,<=0.11.999', 'yelp-cheetah>=0.15.0,<=0.15.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, )
Upgrade the versions of things
Upgrade the versions of things
Python
mit
asottile/cheetah_lint
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.10.0,<=0.10.999', 'yelp-cheetah>=0.13.0,<=0.13.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, ) Upgrade the versions of things
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.11.0,<=0.11.999', 'yelp-cheetah>=0.15.0,<=0.15.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, )
<commit_before># -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.10.0,<=0.10.999', 'yelp-cheetah>=0.13.0,<=0.13.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, ) <commit_msg>Upgrade the versions of things<commit_after>
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.11.0,<=0.11.999', 'yelp-cheetah>=0.15.0,<=0.15.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, )
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.10.0,<=0.10.999', 'yelp-cheetah>=0.13.0,<=0.13.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, ) Upgrade the versions of things# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.11.0,<=0.11.999', 'yelp-cheetah>=0.15.0,<=0.15.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, )
<commit_before># -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.10.0,<=0.10.999', 'yelp-cheetah>=0.13.0,<=0.13.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, ) <commit_msg>Upgrade the versions of things<commit_after># -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup setup( name='cheetah_lint', description='Linting tools for the Cheetah templating language.', url='https://github.com/asottile/cheetah_lint', version='0.2.1', author='Anthony Sottile', author_email='asottile@umich.edu', classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: Implementation :: CPython', ], packages=find_packages('.', exclude=('tests*', 'testing*')), install_requires=[ 'aspy.refactor_imports>=0.2.1', 'cached-property', 'flake8', 'refactorlib[cheetah]>=0.11.0,<=0.11.999', 'yelp-cheetah>=0.15.0,<=0.15.999', ], entry_points={ 'console_scripts': [ 'cheetah-reorder-imports = cheetah_lint.reorder_imports:main', 'cheetah-flake = cheetah_lint.flake:main', ], }, )
ca3366bfdec91797c0a5406a5ba8094c4d13a233
comics/feedback/forms.py
comics/feedback/forms.py
from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Remember to sign with you mail address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Sign with your email address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
Fix typo in feedback form help text
Fix typo in feedback form help text
Python
agpl-3.0
datagutten/comics,jodal/comics,jodal/comics,jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,datagutten/comics
from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Remember to sign with you mail address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100})) Fix typo in feedback form help text
from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Sign with your email address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
<commit_before>from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Remember to sign with you mail address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100})) <commit_msg>Fix typo in feedback form help text<commit_after>
from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Sign with your email address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Remember to sign with you mail address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100})) Fix typo in feedback form help textfrom bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Sign with your email address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
<commit_before>from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Remember to sign with you mail address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100})) <commit_msg>Fix typo in feedback form help text<commit_after>from bootstrap.forms import BootstrapForm from django import forms class FeedbackForm(BootstrapForm): message = forms.CharField(label="What's on your heart", help_text='Sign with your email address if you want a reply.', widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
cff9bc4b1967ded65ca580ec74842de0d3774cd3
tddspry/django/settings.py
tddspry/django/settings.py
from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8080) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase)
from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8088) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase)
Fix default tddspry port for Twill journeys.
Fix default tddspry port for Twill journeys.
Python
bsd-3-clause
playpauseandstop/tddspry,playpauseandstop/tddspry
from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8080) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase) Fix default tddspry port for Twill journeys.
from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8088) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase)
<commit_before>from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8080) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase) <commit_msg>Fix default tddspry port for Twill journeys.<commit_after>
from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8088) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase)
from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8080) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase) Fix default tddspry port for Twill journeys.from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8088) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase)
<commit_before>from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8080) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase) <commit_msg>Fix default tddspry port for Twill journeys.<commit_after>from django.conf import settings from django.test import TransactionTestCase from nose.util import resolve_name __all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase') IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1') PORT = getattr(settings, 'TDDSPRY_PORT', 8088) SITE = 'http://%s:%s/' % (IP, PORT) DjangoTestCase = getattr(settings, 'TDDSPRY_TEST_CASE', TransactionTestCase) if isinstance(DjangoTestCase, basestring): DjangoTestCase = resolve_name(DjangoTestCase)
3c722947d8ece448dec7ce9f82c2a477c667c4a8
setup.py
setup.py
from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='0.22', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v0.22.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, )
from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='1.0.0', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v1.0.0.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, )
Upgrade to 1.0.0 (switch to semantic versioning)
Upgrade to 1.0.0 (switch to semantic versioning)
Python
mit
schollz/playlistfromsong
from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='0.22', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v0.22.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, ) Upgrade to 1.0.0 (switch to semantic versioning)
from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='1.0.0', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v1.0.0.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, )
<commit_before>from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='0.22', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v0.22.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, ) <commit_msg>Upgrade to 1.0.0 (switch to semantic versioning)<commit_after>
from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='1.0.0', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v1.0.0.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, )
from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='0.22', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v0.22.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, ) Upgrade to 1.0.0 (switch to semantic versioning)from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='1.0.0', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v1.0.0.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, )
<commit_before>from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='0.22', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v0.22.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, ) <commit_msg>Upgrade to 1.0.0 (switch to semantic versioning)<commit_after>from setuptools import setup setup( name='playlistfromsong', packages=['playlistfromsong'], version='1.0.0', description='An offline music station generator', author='schollz', url='https://github.com/schollz/playlistfromsong', author_email='hypercube.platforms@gmail.com', download_url='https://github.com/schollz/playlistfromsong/archive/v1.0.0.tar.gz', keywords=['music', 'youtube', 'playlist'], classifiers=[], install_requires=[ "requests", "youtube_dl", 'appdirs', 'pyyaml', 'beautifulsoup4', ], setup_requires=['pytest-runner'], tests_require=[ 'pytest-flake8', 'pytest', 'pytest-cov' ], entry_points={'console_scripts': [ 'playlistfromsong = playlistfromsong.__main__:main', ], }, )
431d3e960962543fd162770475a488bd9e21217e
setup.py
setup.py
from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], install_requires=['Django>=1.4.2', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Fix requirements so pip correctly installs Django and Unidecode.
Fix requirements so pip correctly installs Django and Unidecode.
Python
bsd-3-clause
karyon/django-sendfile,nathanielvarona/django-sendfile,joshcartme/django-sendfile,NotSqrt/django-sendfile,johnsensible/django-sendfile,joshcartme/django-sendfile
from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) Fix requirements so pip correctly installs Django and Unidecode.
from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], install_requires=['Django>=1.4.2', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
<commit_before>from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) <commit_msg>Fix requirements so pip correctly installs Django and Unidecode.<commit_after>
from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], install_requires=['Django>=1.4.2', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) Fix requirements so pip correctly installs Django and Unidecode.from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], install_requires=['Django>=1.4.2', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
<commit_before>from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], ) <commit_msg>Fix requirements so pip correctly installs Django and Unidecode.<commit_after>from distutils.core import setup version=__import__('sendfile').__version__ setup( name='django-sendfile', version=version, description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.', long_description=open('README.rst').read(), author='John Montgomery', author_email='john@sensibledevelopment.com', url='https://github.com/johnsensible/django-sendfile', download_url='https://github.com/johnsensible/django-sendfile/archive/v%s.zip#egg=django-sendfile-%s' % (version, version), license='BSD', requires=['Django (>=1.4.2)', 'Unidecode'], install_requires=['Django>=1.4.2', 'Unidecode'], packages=['sendfile', 'sendfile.backends'], package_dir={ 'sendfile': 'sendfile', 'sendfile.backends': 'sendfile/backends', }, package_data = { 'sendfile': ['testfile.txt'], }, zip_safe=True, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
3fc93588ad319d8f709d89b32782e530725db1ca
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', install_requires=['django', 'oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA)
#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', #install_requires=['django', 'oauth2', 'python-openid'], install_requires=['oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA)
Remove django requirement to prevent installing two versions of django
Remove django requirement to prevent installing two versions of django
Python
mit
coxmediagroup/django-socialregistration,coxmediagroup/django-socialregistration
#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', install_requires=['django', 'oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA) Remove django requirement to prevent installing two versions of django
#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', #install_requires=['django', 'oauth2', 'python-openid'], install_requires=['oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA)
<commit_before>#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', install_requires=['django', 'oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA) <commit_msg>Remove django requirement to prevent installing two versions of django<commit_after>
#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', #install_requires=['django', 'oauth2', 'python-openid'], install_requires=['oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA)
#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', install_requires=['django', 'oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA) Remove django requirement to prevent installing two versions of django#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', #install_requires=['django', 'oauth2', 'python-openid'], install_requires=['oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA)
<commit_before>#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', install_requires=['django', 'oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA) <commit_msg>Remove django requirement to prevent installing two versions of django<commit_after>#!/usr/bin/env python from setuptools import setup,find_packages METADATA = dict( name='django-socialregistration', version='0.4.2', author='Alen Mujezinovic', author_email='alen@caffeinehit.com', description='Django application enabling registration through a variety of APIs', long_description=open('README.rst').read(), url='http://github.com/flashingpumpkin/django-socialregistration', keywords='django facebook twitter oauth openid registration', #install_requires=['django', 'oauth2', 'python-openid'], install_requires=['oauth2', 'python-openid'], include_package_data=True, classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Software Development :: Libraries :: Python Modules', 'Environment :: Web Environment', 'Topic :: Internet', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], packages=find_packages(), package_data={'socialregistration': ['templates/socialregistration/*.html'], } ) if __name__ == '__main__': setup(**METADATA)
7c5518b8aa6c1f4421aac7b8a652d737a17c4e86
setup.py
setup.py
from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.' long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, )
from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.', long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, )
Make it into a package
Make it into a package
Python
bsd-3-clause
Version2beta/passphrase
from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.' long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, ) Make it into a package
from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.', long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, )
<commit_before>from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.' long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, ) <commit_msg>Make it into a package<commit_after>
from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.', long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, )
from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.' long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, ) Make it into a packagefrom distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.', long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, )
<commit_before>from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.' long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, ) <commit_msg>Make it into a package<commit_after>from distutils.core import setup setup( name='passphrase', version='0.0.2', author='Rob Martin @version2beta', author_email='rob@version2beta.com', packages=['passphrase'], scripts=[], url='http://pypi.python.org/pypi/passphrase/', license='LICENSE.txt', description='List a series of words for selection of a secure and rememberable passphrase.', long_description=open('README.md').read(), install_requires=[], package_data={ '': ['*.dist'], }, entry_points={ 'console_scripts': [ 'passphrase = passphrase:main', ], }, )
4fa59bf4e68f01613c80eb584c15c882606019e7
setup.py
setup.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run """)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run generate-informant-report = tools.generate_report:cli """)
Add entry point for generating reports
Add entry point for generating reports
Python
mpl-2.0
ahal/test-informant,mozilla/test-informant,ahal/test-informant,mozilla/test-informant
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run """) Add entry point for generating reports
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run generate-informant-report = tools.generate_report:cli """)
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run """) <commit_msg>Add entry point for generating reports<commit_after>
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run generate-informant-report = tools.generate_report:cli """)
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run """) Add entry point for generating reports# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run generate-informant-report = tools.generate_report:cli """)
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run """) <commit_msg>Add entry point for generating reports<commit_after># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages PACKAGE_VERSION = '0.1' deps = [ 'flask', 'Jinja2', 'manifestparser', 'mongoengine', 'mozfile', 'mozillapulse', 'mozlog', ] setup(name='test-informant', version=PACKAGE_VERSION, description='A web service for monitoring and reporting the state of test manifests.', long_description='See https://github.com/ahal/test-informant', classifiers=['Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='mozilla', author='Andrew Halberstadt', author_email='ahalberstadt@mozilla.com', url='https://github.com/ahal/test-informant', license='MPL 2.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=deps, entry_points=""" [console_scripts] test-informant = informant.pulse_listener:run generate-informant-report = tools.generate_report:cli """)
882dc508a864d22ffb6879d9d8ed35012c13b656
lifx/listen.py
lifx/listen.py
from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print addr, unicode(packet) pprint(packet.payload.data)
from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print(addr, unicode(packet)) pprint(packet.payload.data)
Print in python 3 requires parens
Print in python 3 requires parens
Python
agpl-3.0
sharph/lifx-python
from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print addr, unicode(packet) pprint(packet.payload.data) Print in python 3 requires parens
from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print(addr, unicode(packet)) pprint(packet.payload.data)
<commit_before> from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print addr, unicode(packet) pprint(packet.payload.data) <commit_msg>Print in python 3 requires parens<commit_after>
from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print(addr, unicode(packet)) pprint(packet.payload.data)
from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print addr, unicode(packet) pprint(packet.payload.data) Print in python 3 requires parens from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print(addr, unicode(packet)) pprint(packet.payload.data)
<commit_before> from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print addr, unicode(packet) pprint(packet.payload.data) <commit_msg>Print in python 3 requires parens<commit_after> from pprint import pprint import socket import packetcodec from binascii import hexlify UDP_IP = "0.0.0.0" UDP_PORT = 56700 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) packet = packetcodec.decode_packet(data) print(addr, unicode(packet)) pprint(packet.payload.data)
fda08d81e3b6a4aae5610973053890bf8b283bf0
buffer/tests/test_profile.py
buffer/tests/test_profile.py
import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&')
import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') def test_profile_updates(): ''' Test updates relationship with a profile ''' mocked_api = MagicMock() with patch('buffer.models.profile.Updates') as mocked_updates: profile = Profile(api=mocked_api, raw_response={'id': 1}) updates = profile.updates mocked_updates.assert_called_once_with(api=mocked_api, profile_id=1)
Test profile's relationship with updates
Test profile's relationship with updates
Python
mit
vtemian/buffpy,bufferapp/buffer-python
import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') Test profile's relationship with updates
import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') def test_profile_updates(): ''' Test updates relationship with a profile ''' mocked_api = MagicMock() with patch('buffer.models.profile.Updates') as mocked_updates: profile = Profile(api=mocked_api, raw_response={'id': 1}) updates = profile.updates mocked_updates.assert_called_once_with(api=mocked_api, profile_id=1)
<commit_before>import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') <commit_msg>Test profile's relationship with updates<commit_after>
import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') def test_profile_updates(): ''' Test updates relationship with a profile ''' mocked_api = MagicMock() with patch('buffer.models.profile.Updates') as mocked_updates: profile = Profile(api=mocked_api, raw_response={'id': 1}) updates = profile.updates mocked_updates.assert_called_once_with(api=mocked_api, profile_id=1)
import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') Test profile's relationship with updatesimport json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') def test_profile_updates(): ''' Test updates relationship with a profile ''' mocked_api = MagicMock() with patch('buffer.models.profile.Updates') as mocked_updates: profile = Profile(api=mocked_api, raw_response={'id': 1}) updates = profile.updates mocked_updates.assert_called_once_with(api=mocked_api, profile_id=1)
<commit_before>import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') <commit_msg>Test profile's relationship with updates<commit_after>import json from nose.tools import eq_, raises from mock import MagicMock, patch from buffer.models.profile import Profile, PATHS mocked_response = { 'name': 'me', 'service': 'twiter', 'id': 1 } def test_profile_schedules_getter(): ''' Test schedules gettering from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) eq_(profile.schedules, '123') mocked_api.get.assert_called_once_with(url = PATHS['GET_SCHEDULES'] % 1) def test_profile_schedules_setter(): ''' Test schedules setter from buffer api ''' mocked_api = MagicMock() mocked_api.get.return_value = '123' profile = Profile(mocked_api, mocked_response) profile.schedules = { 'times': ['mo'] } mocked_api.post.assert_called_once_with(url=PATHS['UPDATE_SCHEDULES'] % 1, data='schedules[0][times][]=mo&') def test_profile_updates(): ''' Test updates relationship with a profile ''' mocked_api = MagicMock() with patch('buffer.models.profile.Updates') as mocked_updates: profile = Profile(api=mocked_api, raw_response={'id': 1}) updates = profile.updates mocked_updates.assert_called_once_with(api=mocked_api, profile_id=1)
232bffd6e41b87b05d9e0c65401ace3163bfc799
djedi/templatetags/djedi_admin.py
djedi/templatetags/djedi_admin.py
import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) return output
import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) # Clear pipeline pipeline.clear() return output
Clear content-io pipeline after rendering admin panel
Clear content-io pipeline after rendering admin panel
Python
bsd-3-clause
joar/djedi-cms,andreif/djedi-cms,joar/djedi-cms,5monkeys/djedi-cms,andreif/djedi-cms,5monkeys/djedi-cms,joar/djedi-cms,andreif/djedi-cms,5monkeys/djedi-cms
import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) return output Clear content-io pipeline after rendering admin panel
import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) # Clear pipeline pipeline.clear() return output
<commit_before>import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) return output <commit_msg>Clear content-io pipeline after rendering admin panel<commit_after>
import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) # Clear pipeline pipeline.clear() return output
import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) return output Clear content-io pipeline after rendering admin panelimport json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) # Clear pipeline pipeline.clear() return output
<commit_before>import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) return output <commit_msg>Clear content-io pipeline after rendering admin panel<commit_after>import json import logging from django import template from django.template.loader import render_to_string from cio.pipeline import pipeline from ..auth import has_permission register = template.Library() logger = logging.getLogger(__name__) @register.simple_tag(takes_context=True) def djedi_admin(context): output = u'' if has_permission(context.get('user')): defaults = dict((node.uri.clone(version=None), node.initial) for node in pipeline.history.list('get')) output = render_to_string('djedi/cms/embed.html', { 'json_nodes': json.dumps(defaults).replace('</', '\\x3C/'), }) # Clear pipeline pipeline.clear() return output
54d06439fd21f58208ddcf8583d070aba2674243
linter.py
linter.py
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint.""" syntax = 'matlab' cmd = 'mlint @' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%'
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint, the standalone MATLAB linter""" syntax = 'matlab' cmd = 'mlint' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%'
Remove unnecessary '@' flag from command
Remove unnecessary '@' flag from command
Python
mit
rdeits/SublimeLinter-contrib-mlint
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint.""" syntax = 'matlab' cmd = 'mlint @' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%' Remove unnecessary '@' flag from command
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint, the standalone MATLAB linter""" syntax = 'matlab' cmd = 'mlint' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%'
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint.""" syntax = 'matlab' cmd = 'mlint @' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%' <commit_msg>Remove unnecessary '@' flag from command<commit_after>
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint, the standalone MATLAB linter""" syntax = 'matlab' cmd = 'mlint' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%'
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint.""" syntax = 'matlab' cmd = 'mlint @' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%' Remove unnecessary '@' flag from command# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint, the standalone MATLAB linter""" syntax = 'matlab' cmd = 'mlint' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%'
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint.""" syntax = 'matlab' cmd = 'mlint @' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%' <commit_msg>Remove unnecessary '@' flag from command<commit_after># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Robin Deits # Copyright (c) 2014 Robin Deits # # License: MIT # """This module exports the Mlint plugin class.""" from SublimeLinter.lint import Linter, util, highlight class Mlint(Linter): """Provides an interface to mlint, the standalone MATLAB linter""" syntax = 'matlab' cmd = 'mlint' regex = r'L (?P<line>\d+) \(C (?P<col>\d+)-?(?P<c_end>\d+)?\): (?P<message>.*)' tempfile_suffix = '-' default_type = highlight.WARNING comment_re = r'\s*%'
d600cea1c86c3c3e56b41a7b57191ae35fea51b9
linter.py
linter.py
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript') executable = 'jscs' cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True # currently jscs does not accept stdin so this does not work # selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js'
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript', 'html', 'html 5') cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js'
Enable plugin for inline js in html files
Enable plugin for inline js in html files
Python
mit
SublimeLinter/SublimeLinter-jscs,roberthoog/SublimeLinter-jscs
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript') executable = 'jscs' cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True # currently jscs does not accept stdin so this does not work # selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js' Enable plugin for inline js in html files
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript', 'html', 'html 5') cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js'
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript') executable = 'jscs' cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True # currently jscs does not accept stdin so this does not work # selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js' <commit_msg>Enable plugin for inline js in html files<commit_after>
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript', 'html', 'html 5') cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js'
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript') executable = 'jscs' cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True # currently jscs does not accept stdin so this does not work # selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js' Enable plugin for inline js in html files# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript', 'html', 'html 5') cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js'
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript') executable = 'jscs' cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True # currently jscs does not accept stdin so this does not work # selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js' <commit_msg>Enable plugin for inline js in html files<commit_after># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Ilya Akhmadullin # Copyright (c) 2013 Ilya Akhmadullin # # License: MIT # """This module exports the jscs plugin class.""" from SublimeLinter.lint import Linter class Jscs(Linter): """Provides an interface to jscs.""" syntax = ('javascript', 'html', 'html 5') cmd = 'jscs -r checkstyle' regex = ( r'^\s+?\<error line=\"(?P<line>\d+)\" ' r'column=\"(?P<col>\d+)\" ' # jscs always reports with error severity; show as warning r'severity=\"(?P<warning>error)\" ' r'message=\"(?P<message>.+)\" source=\"jscs\" />' ) multiline = True selectors = {'html': 'source.js.embedded.html'} tempfile_suffix = 'js'
4346c52d8ec3497279fa4ce16b4ab2e4e51c82bd
Demo/parser/test_parser.py
Demo/parser/test_parser.py
#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test() # # end of file
#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") args.sort() map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test()
Sort the list of files processed before running the test on each.
Sort the list of files processed before running the test on each.
Python
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test() # # end of file Sort the list of files processed before running the test on each.
#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") args.sort() map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test()
<commit_before>#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test() # # end of file <commit_msg>Sort the list of files processed before running the test on each.<commit_after>
#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") args.sort() map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test()
#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test() # # end of file Sort the list of files processed before running the test on each.#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") args.sort() map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test()
<commit_before>#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test() # # end of file <commit_msg>Sort the list of files processed before running the test on each.<commit_after>#! /usr/bin/env python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: ast = parser.suite(t) tup = parser.ast2tuple(ast) # this discards the first AST; a huge memory savings when running # against a large source file like Tkinter.py. ast = None new = parser.tuple2ast(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.ast2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") args.sort() map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test()
5f64b609b621626e04516cac1c3313a3f948f19e
main.py
main.py
import logging import telebot import timer import bot import os logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") while True: try: tgBot.polling() except Exception as e: logging.error(e.message) # # import api # # print api.TrackerApi.getPackageInformation(3325607157191, "shentong")
import logging import telebot import timer import bot import os logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") tgBot.polling(none_stop=True)
Change While True Try to none_stop=True
Change While True Try to none_stop=True
Python
mit
ITelegramBot/PackageTrackerBot
import logging import telebot import timer import bot import os logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") while True: try: tgBot.polling() except Exception as e: logging.error(e.message) # # import api # # print api.TrackerApi.getPackageInformation(3325607157191, "shentong") Change While True Try to none_stop=True
import logging import telebot import timer import bot import os logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") tgBot.polling(none_stop=True)
<commit_before>import logging import telebot import timer import bot import os logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") while True: try: tgBot.polling() except Exception as e: logging.error(e.message) # # import api # # print api.TrackerApi.getPackageInformation(3325607157191, "shentong") <commit_msg>Change While True Try to none_stop=True<commit_after>
import logging import telebot import timer import bot import os logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") tgBot.polling(none_stop=True)
import logging import telebot import timer import bot import os logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") while True: try: tgBot.polling() except Exception as e: logging.error(e.message) # # import api # # print api.TrackerApi.getPackageInformation(3325607157191, "shentong") Change While True Try to none_stop=Trueimport logging import telebot import timer import bot import os logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") tgBot.polling(none_stop=True)
<commit_before>import logging import telebot import timer import bot import os logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") while True: try: tgBot.polling() except Exception as e: logging.error(e.message) # # import api # # print api.TrackerApi.getPackageInformation(3325607157191, "shentong") <commit_msg>Change While True Try to none_stop=True<commit_after>import logging import telebot import timer import bot import os logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logging.info("Begin start server.") tgBot = telebot.TeleBot(os.getenv("BOT_ID", "")) bot.getTracker(tgBot, logging)() timer.getTimer(tgBot, logging)("Timer").start() logging.info("Start polling") tgBot.polling(none_stop=True)
13d8160aecb8abbd981b62cd3a06d5b2b6c964f8
kokki/cookbooks/cloudera/recipes/default.py
kokki/cookbooks/cloudera/recipes/default.py
from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"])])
from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"], True)])
Make sure to immediately do apt-get update when adding a repository
Make sure to immediately do apt-get update when adding a repository
Python
bsd-3-clause
samuel/kokki
from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"])]) Make sure to immediately do apt-get update when adding a repository
from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"], True)])
<commit_before> from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"])]) <commit_msg>Make sure to immediately do apt-get update when adding a repository<commit_after>
from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"], True)])
from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"])]) Make sure to immediately do apt-get update when adding a repository from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"], True)])
<commit_before> from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"])]) <commit_msg>Make sure to immediately do apt-get update when adding a repository<commit_after> from kokki import * apt_list_path = '/etc/apt/sources.list.d/cloudera.list' apt = ( "deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" "deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\n" ).format(distro=env.system.lsb['codename']) Execute("apt-get update", action="nothing") Execute("curl -s http://archive.cloudera.com/debian/archive.key | sudo apt-key add -", not_if = "(apt-key list | grep Cloudera > /dev/null)") File(apt_list_path, owner = "root", group ="root", mode = 0644, content = apt, notifies = [("run", env.resources["Execute"]["apt-get update"], True)])
c7761a3b8a090e24b68b1318f1451752e34078e9
alexandria/decorators.py
alexandria/decorators.py
from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass else: #abort(405) pass return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function
from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) else: abort(405) return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function
Abort with appropriate status codes in the decorator
Abort with appropriate status codes in the decorator
Python
mit
citruspi/Alexandria,citruspi/Alexandria
from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass else: #abort(405) pass return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function Abort with appropriate status codes in the decorator
from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) else: abort(405) return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function
<commit_before>from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass else: #abort(405) pass return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function <commit_msg>Abort with appropriate status codes in the decorator<commit_after>
from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) else: abort(405) return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function
from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass else: #abort(405) pass return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function Abort with appropriate status codes in the decoratorfrom functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) else: abort(405) return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function
<commit_before>from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): #abort(403) pass else: #abort(405) pass return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function <commit_msg>Abort with appropriate status codes in the decorator<commit_after>from functools import wraps from flask import session, redirect, url_for, request, abort from alexandria import mongo def not_even_one(f): @wraps(f) def decorated_function(*args, **kwargs): if mongo.Books.find_one() is None: return redirect(url_for('upload')) return f(*args, **kwargs) return decorated_function def authenticated(f): @wraps(f) def decorated_function(*args, **kwargs): print request.method if request.method == 'GET': token = request.args.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) elif request.method == 'POST': token = request.form.get('token') user = mongo.Users.find_one({'tokens.token': token}) if not (token and user): abort(403) else: abort(405) return f(*args, **kwargs) return decorated_function def administrator(f): @wraps(f) def decorated_function(*args, **kwargs): user = mongo.Users.find_one({'username': session.get('username')}) if user['role'] != 0: return redirect(url_for('index')) return f(*args, **kwargs) return decorated_function
5dd81b09db46927cb7710b21ab682a6c3ecc182e
esios/__init__.py
esios/__init__.py
try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
from __future__ import absolute_import try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
Enforce absolute imports through __future__
Enforce absolute imports through __future__
Python
mit
gisce/esios
try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios Enforce absolute imports through __future__
from __future__ import absolute_import try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
<commit_before>try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios <commit_msg>Enforce absolute imports through __future__<commit_after>
from __future__ import absolute_import try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios Enforce absolute imports through __future__from __future__ import absolute_import try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
<commit_before>try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios <commit_msg>Enforce absolute imports through __future__<commit_after>from __future__ import absolute_import try: VERSION = __import__('pkg_resources') \ .get_distribution(__name__).version except Exception as e: VERSION = 'unknown' from .service import Esios
d2764161f0f11b07a28d64517cd0315a90aa8856
moref.py
moref.py
#!/bin/env python2 """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main()
#!/bin/env python """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main()
Remove explicit python2 call -- works with Python 3
Remove explicit python2 call -- works with Python 3
Python
bsd-2-clause
khughitt/cats
#!/bin/env python2 """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main() Remove explicit python2 call -- works with Python 3
#!/bin/env python """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main()
<commit_before>#!/bin/env python2 """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main() <commit_msg>Remove explicit python2 call -- works with Python 3<commit_after>
#!/bin/env python """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main()
#!/bin/env python2 """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main() Remove explicit python2 call -- works with Python 3#!/bin/env python """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main()
<commit_before>#!/bin/env python2 """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main() <commit_msg>Remove explicit python2 call -- works with Python 3<commit_after>#!/bin/env python """ moref: more for FASTA files """ import sys import os from Bio import SeqIO def main(): """moref main""" # Check for input file if len(sys.argv) < 2: print("No input file specified") sys.exit() filepath = os.path.expanduser(sys.argv[1]) if not os.path.isfile(filepath): print("No input file specified") sys.exit() # Read in FASTA file seqs = SeqIO.parse(filepath, 'fasta') # Generate list of colors to use for printing, ex: # regular - \033[032m # emphasized - \033[1;032m # bright - \033[092m colors = ['\033[0%dm' % i for i in range(91, 95)] # DNA dna = dict((x, colors[i] + x) for i, x in enumerate(('A', 'C', 'G', 'T'))) # bold text regular = '\033[0;090m' bold = '\033[1;090m' # loop through and print seqs for seq in seqs: print(bold + seq.description) pretty = regular for letter in seq.seq: pretty += dna[letter] print(pretty + "\n") if __name__ == "__main__": main()
da67df77831223692176088373a99cb02fe948ab
examples/basic.py
examples/basic.py
# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest(b'GET', b'/') conn.putheader(b'user-agent', b'spdypy') conn.putheader(b'accept', b'*/*') conn.putheader(b'accept-encoding', b'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5)
# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest('GET', '/') conn.putheader('user-agent', 'spdypy') conn.putheader('accept', '*/*') conn.putheader('accept-encoding', 'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5)
Remove bytes from the example.
Remove bytes from the example.
Python
mit
Lukasa/spdypy
# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest(b'GET', b'/') conn.putheader(b'user-agent', b'spdypy') conn.putheader(b'accept', b'*/*') conn.putheader(b'accept-encoding', b'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5) Remove bytes from the example.
# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest('GET', '/') conn.putheader('user-agent', 'spdypy') conn.putheader('accept', '*/*') conn.putheader('accept-encoding', 'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5)
<commit_before># -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest(b'GET', b'/') conn.putheader(b'user-agent', b'spdypy') conn.putheader(b'accept', b'*/*') conn.putheader(b'accept-encoding', b'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5) <commit_msg>Remove bytes from the example.<commit_after>
# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest('GET', '/') conn.putheader('user-agent', 'spdypy') conn.putheader('accept', '*/*') conn.putheader('accept-encoding', 'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5)
# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest(b'GET', b'/') conn.putheader(b'user-agent', b'spdypy') conn.putheader(b'accept', b'*/*') conn.putheader(b'accept-encoding', b'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5) Remove bytes from the example.# -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest('GET', '/') conn.putheader('user-agent', 'spdypy') conn.putheader('accept', '*/*') conn.putheader('accept-encoding', 'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5)
<commit_before># -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest(b'GET', b'/') conn.putheader(b'user-agent', b'spdypy') conn.putheader(b'accept', b'*/*') conn.putheader(b'accept-encoding', b'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5) <commit_msg>Remove bytes from the example.<commit_after># -*- coding: utf-8 -*- """ A basic example of how to use SPDY. This example is currently incomplete, but should remain current to the state of the library. This means that it enumerates the full state of everything SPDYPy can do. """ import sys sys.path.append('.') import spdypy conn = spdypy.SPDYConnection('www.google.com') conn.putrequest('GET', '/') conn.putheader('user-agent', 'spdypy') conn.putheader('accept', '*/*') conn.putheader('accept-encoding', 'gzip,deflate') conn.endheaders() # Debugging output for now. frame_list = conn._read_outstanding(timeout=0.5) while frame_list: for frame in frame_list: print(frame) frame_list = conn._read_outstanding(timeout=0.5)
5fbcce3feffb63dbd50623f8d6cb0e354bce7add
fedora/release.py
fedora/release.py
''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://fedorahosted.org/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+'
''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://github.com/fedora-infra/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+'
Fix the URL in the metadata of the package
Fix the URL in the metadata of the package Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr>
Python
lgpl-2.1
fedora-infra/python-fedora
''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://fedorahosted.org/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+' Fix the URL in the metadata of the package Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr>
''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://github.com/fedora-infra/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+'
<commit_before>''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://fedorahosted.org/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+' <commit_msg>Fix the URL in the metadata of the package Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr><commit_after>
''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://github.com/fedora-infra/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+'
''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://fedorahosted.org/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+' Fix the URL in the metadata of the package Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr>''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://github.com/fedora-infra/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+'
<commit_before>''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://fedorahosted.org/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+' <commit_msg>Fix the URL in the metadata of the package Signed-off-by: Pierre-Yves Chibon <0e23e1aa25183634677db757f9f5e912e5bb8b8c@pingoured.fr><commit_after>''' Information about this python-fedora release ''' NAME = 'python-fedora' VERSION = '0.10.0' DESCRIPTION = 'Python modules for interacting with Fedora Services' LONG_DESCRIPTION = ''' The Fedora Project runs many different services. These services help us to package software, develop new programs, and generally put together the distro. This package contains software that helps us do that. ''' AUTHOR = 'Toshio Kuratomi, Luke Macken, Ricky Elrod, Ralph Bean, Patrick Uiterwijk' EMAIL = 'admin@fedoraproject.org' COPYRIGHT = '2007-2018 Red Hat, Inc.' URL = 'https://github.com/fedora-infra/python-fedora' DOWNLOAD_URL = 'https://pypi.python.org/pypi/python-fedora' LICENSE = 'LGPLv2+'
ddc184cdced8c393822ce4ec14900db7fe16a492
pucas/management/commands/createcasuser.py
pucas/management/commands/createcasuser.py
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') # TODO: add options to set give new user account superuser/staff # permissions def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid))
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') parser.add_argument( '--admin', help='Make a superuser from CAS, equivalent to createsuperuser', action='store_true' ) def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) # If the admin flag is called, make the user an admin if options['admin']: user.is_superuser = True user.is_admin = True user.is_staff = True user.save() except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid))
Add --admin flag to create superusers from cas
Add --admin flag to create superusers from cas
Python
apache-2.0
Princeton-CDH/django-pucas,Princeton-CDH/django-pucas
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') # TODO: add options to set give new user account superuser/staff # permissions def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid)) Add --admin flag to create superusers from cas
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') parser.add_argument( '--admin', help='Make a superuser from CAS, equivalent to createsuperuser', action='store_true' ) def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) # If the admin flag is called, make the user an admin if options['admin']: user.is_superuser = True user.is_admin = True user.is_staff = True user.save() except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid))
<commit_before>from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') # TODO: add options to set give new user account superuser/staff # permissions def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid)) <commit_msg>Add --admin flag to create superusers from cas<commit_after>
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') parser.add_argument( '--admin', help='Make a superuser from CAS, equivalent to createsuperuser', action='store_true' ) def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) # If the admin flag is called, make the user an admin if options['admin']: user.is_superuser = True user.is_admin = True user.is_staff = True user.save() except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid))
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') # TODO: add options to set give new user account superuser/staff # permissions def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid)) Add --admin flag to create superusers from casfrom django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') parser.add_argument( '--admin', help='Make a superuser from CAS, equivalent to createsuperuser', action='store_true' ) def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) # If the admin flag is called, make the user an admin if options['admin']: user.is_superuser = True user.is_admin = True user.is_staff = True user.save() except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid))
<commit_before>from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') # TODO: add options to set give new user account superuser/staff # permissions def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid)) <commit_msg>Add --admin flag to create superusers from cas<commit_after>from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand from pucas.ldap import LDAPSearch, LDAPSearchException, \ user_info_from_ldap class Command(BaseCommand): help = 'Initialize a new CAS user account' def add_arguments(self, parser): parser.add_argument('netid') parser.add_argument( '--admin', help='Make a superuser from CAS, equivalent to createsuperuser', action='store_true' ) def handle(self, *args, **options): User = get_user_model() ldap_search = LDAPSearch() netid = options['netid'] try: # make sure we can find the netid in LDAP first ldap_search.find_user(netid) user, created = User.objects.get_or_create(username=netid) # NOTE: should we re-init data from ldap even if user # already exists, or error? user_info_from_ldap(user) # If the admin flag is called, make the user an admin if options['admin']: user.is_superuser = True user.is_admin = True user.is_staff = True user.save() except LDAPSearchException: self.stderr.write( self.style.ERROR("LDAP information for '%s' not found" \ % netid))
36a7588db397954f89032e90e7568605db27d055
setup.py
setup.py
#!/usr/bin/python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder )
#!/usr/bin/env python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder )
Change shebang to /usr/bin/env for better venv support
Change shebang to /usr/bin/env for better venv support
Python
bsd-3-clause
campenr/dirbrowser
#!/usr/bin/python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder ) Change shebang to /usr/bin/env for better venv support
#!/usr/bin/env python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder )
<commit_before>#!/usr/bin/python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder ) <commit_msg>Change shebang to /usr/bin/env for better venv support<commit_after>
#!/usr/bin/env python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder )
#!/usr/bin/python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder ) Change shebang to /usr/bin/env for better venv support#!/usr/bin/env python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder )
<commit_before>#!/usr/bin/python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder ) <commit_msg>Change shebang to /usr/bin/env for better venv support<commit_after>#!/usr/bin/env python3 """Setup.py for dirbrowser.""" from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name="dirbrowser", version="1.0b1", description="Command line based directory browser", long_description=long_description, url="https://github.com/campenr/dirbrowser", author="Richard Campen", author_email="richard@campen.co", license="BSD License", # TODO add more classifiers (e.g. platform) classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Software Development :: User Interfaces", "License :: OSI Approved :: BSD License", 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], keywords="directory browser interface", packages=find_packages(), include_package_data=True # TODO add entry into scripts folder )
79254ad18a68dc85c84f65a7382e58357833046e
setup.py
setup.py
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
import sys from setuptools import find_packages, setup VERSION = '2.0a1' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
Prepare first 2.0 alpha release
Prepare first 2.0 alpha release
Python
mit
wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], ) Prepare first 2.0 alpha release
import sys from setuptools import find_packages, setup VERSION = '2.0a1' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
<commit_before>import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], ) <commit_msg>Prepare first 2.0 alpha release<commit_after>
import sys from setuptools import find_packages, setup VERSION = '2.0a1' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], ) Prepare first 2.0 alpha releaseimport sys from setuptools import find_packages, setup VERSION = '2.0a1' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
<commit_before>import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], ) <commit_msg>Prepare first 2.0 alpha release<commit_after>import sys from setuptools import find_packages, setup VERSION = '2.0a1' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU-OIT-ARC/django-arcutils', author='PSU - OIT - ARC', author_email='consultants@pdx.edu', description='Common utilities used in ARC Django projects', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=install_requires, extras_require={ 'ldap': [ 'certifi>=2015.11.20.1', 'ldap3>=1.0.3', ], 'dev': [ 'django>=1.7,<1.9', 'djangorestframework>3.3', 'flake8', 'ldap3', ], }, entry_points=""" [console_scripts] arcutils = arcutils.__main__:main """, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
2c0cc47936204cdadf3f4dd5ce3b1535e2fb14b7
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) )
#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', 'fright=fright:run_fright', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) )
Add fright script back in, just in case
Add fright script back in, just in case
Python
isc
sesh/ghostly,sesh/ghostly
#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) ) Add fright script back in, just in case
#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', 'fright=fright:run_fright', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) ) <commit_msg>Add fright script back in, just in case<commit_after>
#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', 'fright=fright:run_fright', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) )
#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) ) Add fright script back in, just in case#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', 'fright=fright:run_fright', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) )
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) ) <commit_msg>Add fright script back in, just in case<commit_after>#!/usr/bin/env python from setuptools import setup setup( name='ghostly', version='0.7.1', description='Create simple browser tests', author='Brenton Cleeland', url='https://github.com/sesh/ghostly', install_requires=['click', 'colorama', 'pillow', 'PyYAML', 'selenium'], py_modules=['ghostly', 'fright'], entry_points={ 'console_scripts': [ 'ghostly=ghostly:run_ghostly', 'fright=fright:run_fright', ] }, classifiers=( 'Intended Audience :: Developers', 'License :: OSI Approved :: ISC License (ISCL)', 'Programming Language :: Python', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ) )
d6f4afa82118d8c1ced7ddc8152f7b31b4cb898a
setup.py
setup.py
# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'GPL', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], )
# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'BSD', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], )
Change license to BSD. 1.4
Change license to BSD. 1.4
Python
bsd-2-clause
zzzsochi/trans
# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'GPL', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], ) Change license to BSD. 1.4
# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'BSD', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], )
<commit_before># coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'GPL', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], ) <commit_msg>Change license to BSD. 1.4<commit_after>
# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'BSD', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], )
# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'GPL', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], ) Change license to BSD. 1.4# coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'BSD', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], )
<commit_before># coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'GPL', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], ) <commit_msg>Change license to BSD. 1.4<commit_after># coding: utf-8 from distutils.core import setup # python setup.py sdist --formats=bztar # python setup.py sdist --formats=bztar upload description = 'National characters transcription module.' import trans long_description = open('documentation.rst', 'rb').read() version = trans.__version__ setup( name = 'trans', version = version, description = description, long_description = long_description, author = 'Zelenyak Aleksandr aka ZZZ', author_email = 'ZZZ.Sochi@GMail.com', url = 'http://www.python.org/pypi/trans/', license = 'BSD', platforms = 'any', classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.4', 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], py_modules = ['trans'], )
827daa59517fcc3712c079c29a4ef6342412668d
setup.py
setup.py
import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', )
import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, extra_require={ 'tests': ['py.test'], }, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', )
Add py.test to the tests requirements
Add py.test to the tests requirements
Python
mit
novafloss/populous
import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', ) Add py.test to the tests requirements
import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, extra_require={ 'tests': ['py.test'], }, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', )
<commit_before>import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', ) <commit_msg>Add py.test to the tests requirements<commit_after>
import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, extra_require={ 'tests': ['py.test'], }, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', )
import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', ) Add py.test to the tests requirementsimport sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, extra_require={ 'tests': ['py.test'], }, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', )
<commit_before>import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', ) <commit_msg>Add py.test to the tests requirements<commit_after>import sys from setuptools import setup, find_packages import populous requirements = [ "click", "cached-property", "fake-factory", "dateutils" ] if sys.version_info < (3, 2): requirements.append('functools32') setup( name="populous", version=populous.__version__, url=populous.__url__, description=populous.__doc__, author=populous.__author__, license=populous.__license__, long_description="TODO", packages=find_packages(), install_requires=requirements, extra_require={ 'tests': ['py.test'], }, entry_points={ 'console_scripts': [ 'populous = populous.__main__:cli' ] }, classifiers=[ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities", ], keywords='populous populate database', )
c0169c5073e4a83120f4d6860258c3085b4c1cf5
setup.py
setup.py
import subprocess as sp print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') sp.check_call(['flit', 'install', '--deps', 'production'])
import subprocess as sp import sys import os print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') flit = os.path.join(os.path.dirname(sys.executable), 'flit') cmd = [flit, 'install', '--deps', 'production'] print(" ".join(cmd)) sp.check_call(cmd)
Use flit that's been installed in the virtualenv
Use flit that's been installed in the virtualenv
Python
bsd-3-clause
jupyter/nbgrader,jupyter/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,EdwardJKim/nbgrader,dementrock/nbgrader,jupyter/nbgrader,MatKallada/nbgrader,MatKallada/nbgrader,jupyter/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,jhamrick/nbgrader,ellisonbg/nbgrader,jupyter/nbgrader,modulexcite/nbgrader,dementrock/nbgrader,ellisonbg/nbgrader,EdwardJKim/nbgrader,modulexcite/nbgrader
import subprocess as sp print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') sp.check_call(['flit', 'install', '--deps', 'production']) Use flit that's been installed in the virtualenv
import subprocess as sp import sys import os print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') flit = os.path.join(os.path.dirname(sys.executable), 'flit') cmd = [flit, 'install', '--deps', 'production'] print(" ".join(cmd)) sp.check_call(cmd)
<commit_before>import subprocess as sp print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') sp.check_call(['flit', 'install', '--deps', 'production']) <commit_msg>Use flit that's been installed in the virtualenv<commit_after>
import subprocess as sp import sys import os print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') flit = os.path.join(os.path.dirname(sys.executable), 'flit') cmd = [flit, 'install', '--deps', 'production'] print(" ".join(cmd)) sp.check_call(cmd)
import subprocess as sp print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') sp.check_call(['flit', 'install', '--deps', 'production']) Use flit that's been installed in the virtualenvimport subprocess as sp import sys import os print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') flit = os.path.join(os.path.dirname(sys.executable), 'flit') cmd = [flit, 'install', '--deps', 'production'] print(" ".join(cmd)) sp.check_call(cmd)
<commit_before>import subprocess as sp print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') sp.check_call(['flit', 'install', '--deps', 'production']) <commit_msg>Use flit that's been installed in the virtualenv<commit_after>import subprocess as sp import sys import os print('Warning: this setup.py uses flit, not setuptools.') print('Behavior may not be exactly what you expect. Use at your own risk!') flit = os.path.join(os.path.dirname(sys.executable), 'flit') cmd = [flit, 'install', '--deps', 'production'] print(" ".join(cmd)) sp.check_call(cmd)
f4d894222d596760a62f22d43379f93a827e9ef2
setup.py
setup.py
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, )
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", "py-bcrypt" ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, )
Add dependency for python bcrypt
Add dependency for python bcrypt
Python
apache-2.0
kopf/porick,kopf/porick,kopf/porick
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, ) Add dependency for python bcrypt
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", "py-bcrypt" ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, )
<commit_before>try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, ) <commit_msg>Add dependency for python bcrypt<commit_after>
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", "py-bcrypt" ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, )
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, ) Add dependency for python bcrypttry: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", "py-bcrypt" ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, )
<commit_before>try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, ) <commit_msg>Add dependency for python bcrypt<commit_after>try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='porick', version='0.1', description='', author='', author_email='', url='', install_requires=[ "Pylons>=1.0.1rc1", "SQLAlchemy==0.7.7", "py-bcrypt" ], setup_requires=["PasteScript>=1.6.3"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', package_data={'porick': ['i18n/*/LC_MESSAGES/*.mo']}, #message_extractors={'porick': [ # ('**.py', 'python', None), # ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}), # ('public/**', 'ignore', None)]}, zip_safe=False, paster_plugins=['PasteScript', 'Pylons'], entry_points=""" [paste.app_factory] main = porick.config.middleware:make_app [paste.app_install] main = pylons.util:PylonsInstaller """, )
d8ea2e73e3085541256288a4b65c8659918cdf33
setup.py
setup.py
from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.2', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] )
from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.3', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] )
Update version number to 0.1.3
Update version number to 0.1.3
Python
mit
tobiasfeistmantl/python-actioncable-zwei
from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.2', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] ) Update version number to 0.1.3
from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.3', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] )
<commit_before>from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.2', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] ) <commit_msg>Update version number to 0.1.3<commit_after>
from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.3', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] )
from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.2', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] ) Update version number to 0.1.3from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.3', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] )
<commit_before>from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.2', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] ) <commit_msg>Update version number to 0.1.3<commit_after>from setuptools import find_packages, setup setup( name='ActionCableZwei', version='0.1.3', license='MIT', description='Action Cable Client for Python 3', author='Tobias Feistmantl', author_email='tobias@myhome-automations.com', url='https://github.com/tobiasfeistmantl/python-actioncable-zwei', packages=find_packages(), install_requires=['websocket-client'] )
f15ff23d706b035e045fd8fc653ca9996565526b
setup.py
setup.py
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"])
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"])
Tag for Python 3 support.
Tag for Python 3 support.
Python
mit
albfan/pudb,albfan/pudb,amigrave/pudb,amigrave/pudb
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"]) Tag for Python 3 support.
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"])
<commit_before>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"]) <commit_msg>Tag for Python 3 support.<commit_after>
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"])
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"]) Tag for Python 3 support.#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"])
<commit_before>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"]) <commit_msg>Tag for Python 3 support.<commit_after>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from pudb import VERSION try: readme = open("README.rst") long_description = str(readme.read()) finally: readme.close() setup(name='pudb', version=VERSION, description='A full-screen, console-based Python debugger', long_description=long_description, author='Andreas Kloeckner', author_email='inform@tiker.net', install_requires=[ "urwid>=0.9.9.2", "pygments>=1.0", ], url='http://pypi.python.org/pypi/pudb', classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: Console :: Curses", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Debuggers", "Topic :: Software Development :: Quality Assurance", "Topic :: System :: Recovery Tools", "Topic :: System :: Software Distribution", "Topic :: Terminals", "Topic :: Utilities", ], packages=["pudb"])
d27d90b71378eaac1f9be6bdf683ddb7a800759d
setup.py
setup.py
import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ], )
import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], python_requires='>=3.6', classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
Update project metadata with supported Python versions
Update project metadata with supported Python versions
Python
mit
nocarryr/python-dispatch
import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ], ) Update project metadata with supported Python versions
import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], python_requires='>=3.6', classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
<commit_before>import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ], ) <commit_msg>Update project metadata with supported Python versions<commit_after>
import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], python_requires='>=3.6', classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ], ) Update project metadata with supported Python versionsimport sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], python_requires='>=3.6', classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
<commit_before>import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', ], ) <commit_msg>Update project metadata with supported Python versions<commit_after>import sys from setuptools import setup, find_packages setup( name = "python-dispatch", version = "v0.1.31", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = "Lightweight Event Handling", url='https://github.com/nocarryr/python-dispatch', license='MIT', packages=find_packages(exclude=['tests*']), include_package_data=True, keywords='event properties dispatch', platforms=['any'], python_requires='>=3.6', classifiers = [ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', ], )
bda09e9dbf00dc164cb1d6b108da3d5982ad668a
setup.py
setup.py
#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'future', 'numpy>=1.7', 'six', 'vectormath>=0.1.0', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, )
#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'numpy>=1.7', 'six', 'vectormath>=0.1.1', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, )
Remove future, bump vectormath dependencies
Remove future, bump vectormath dependencies
Python
mit
3ptscience/properties,aranzgeo/properties
#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'future', 'numpy>=1.7', 'six', 'vectormath>=0.1.0', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, ) Remove future, bump vectormath dependencies
#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'numpy>=1.7', 'six', 'vectormath>=0.1.1', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, )
<commit_before>#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'future', 'numpy>=1.7', 'six', 'vectormath>=0.1.0', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, ) <commit_msg>Remove future, bump vectormath dependencies<commit_after>
#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'numpy>=1.7', 'six', 'vectormath>=0.1.1', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, )
#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'future', 'numpy>=1.7', 'six', 'vectormath>=0.1.0', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, ) Remove future, bump vectormath dependencies#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'numpy>=1.7', 'six', 'vectormath>=0.1.1', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, )
<commit_before>#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'future', 'numpy>=1.7', 'six', 'vectormath>=0.1.0', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, ) <commit_msg>Remove future, bump vectormath dependencies<commit_after>#!/usr/bin/env python """ properties: Fancy properties for Python. """ from distutils.core import setup from setuptools import find_packages CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Scientific/Engineering :: Mathematics', 'Topic :: Scientific/Engineering :: Physics', 'Operating System :: Microsoft :: Windows', 'Operating System :: POSIX', 'Operating System :: Unix', 'Operating System :: MacOS', 'Natural Language :: English', ] with open("README.rst") as f: LONG_DESCRIPTION = ''.join(f.readlines()) setup( name="properties", version="0.2.3", packages=find_packages(exclude=('tests',)), install_requires=[ 'numpy>=1.7', 'six', 'vectormath>=0.1.1', ], author="3point Science", author_email="info@3ptscience.com", description="properties", long_description=LONG_DESCRIPTION, keywords="property", url="http://steno3d.com/", download_url="http://github.com/3ptscience/properties", classifiers=CLASSIFIERS, platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], use_2to3=False, )
1fc8690d0d8929f9ede38aca01ad928ce64589cb
setup.py
setup.py
from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker==1.3', 'flask-mongoengine>=0.7.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1' ], zip_safe=False)
from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker>=1.3', 'cssmin>=0.2.0', 'flask-mongoengine>=0.7.0,<0.8.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1,<0.12.0' ], zip_safe=False)
Update requirements to things that work
Update requirements to things that work
Python
mit
danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum
from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker==1.3', 'flask-mongoengine>=0.7.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1' ], zip_safe=False) Update requirements to things that work
from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker>=1.3', 'cssmin>=0.2.0', 'flask-mongoengine>=0.7.0,<0.8.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1,<0.12.0' ], zip_safe=False)
<commit_before>from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker==1.3', 'flask-mongoengine>=0.7.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1' ], zip_safe=False) <commit_msg>Update requirements to things that work<commit_after>
from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker>=1.3', 'cssmin>=0.2.0', 'flask-mongoengine>=0.7.0,<0.8.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1,<0.12.0' ], zip_safe=False)
from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker==1.3', 'flask-mongoengine>=0.7.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1' ], zip_safe=False) Update requirements to things that workfrom setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker>=1.3', 'cssmin>=0.2.0', 'flask-mongoengine>=0.7.0,<0.8.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1,<0.12.0' ], zip_safe=False)
<commit_before>from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker==1.3', 'flask-mongoengine>=0.7.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1' ], zip_safe=False) <commit_msg>Update requirements to things that work<commit_after>from setuptools import setup setup(name='eventum', version='0.2.6', description='A content management system for event-driven Flask apps', url='http://github.com/danrschlosser/eventum', author='Dan Schlosser', author_email='dan@schlosser.io', license='MIT', packages=['eventum'], include_package_data=True, install_requires=[ 'Flask>=0.10.1', 'Flask-Assets>=0.11', 'Flask-WTF>=0.9.5', 'Jinja2>=2.7.2', 'Markdown>=2.4', 'WTForms>=1.0.5', 'argparse>=1.2.1', 'blinker>=1.3', 'cssmin>=0.2.0', 'flask-mongoengine>=0.7.0,<0.8.0', 'gaenv>=0.1.7', 'google-api-python-client>=1.2', 'gunicorn>=19.2.1', 'httplib2>=0.8', 'mongoengine>=0.8.7', 'pyRFC3339>=0.2', 'pymongo>=2.7.2', 'python-gflags>=2.0', 'pytz>=2015.2', 'requests>=2.3.0', 'webassets>=0.11.1,<0.12.0' ], zip_safe=False)
7f41bffe2f1d838331c3d4340f4b46e816e779b7
setup.py
setup.py
from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } )
from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator==0.1.0b5', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } )
Update schemavalidator version to 0.1.0b5
Update schemavalidator version to 0.1.0b5
Python
mit
wendbv/shampoo,wendbv/shampoo
from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } ) Update schemavalidator version to 0.1.0b5
from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator==0.1.0b5', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } )
<commit_before>from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } ) <commit_msg>Update schemavalidator version to 0.1.0b5<commit_after>
from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator==0.1.0b5', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } )
from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } ) Update schemavalidator version to 0.1.0b5from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator==0.1.0b5', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } )
<commit_before>from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } ) <commit_msg>Update schemavalidator version to 0.1.0b5<commit_after>from distutils.core import setup setup( name='shampoo', packages=['shampoo'], package_data={'shampoo': ['schemas/*.json']}, version='0.1.0b7', description='Shampoo is a asyncio websocket protocol implementation for Autobahn', author='Daan Porru (Wend)', author_email='daan@wend.nl', license='MIT', url='https://github.com/wendbv/shampoo', keywords=['websocket', 'protocol'], classifiers=[ 'Development Status :: 4 - Beta', 'Programming Language :: Python :: 3.5', ], install_requires=['schemavalidator==0.1.0b5', 'autobahn==0.13.0'], extras_require={ 'test': ['pytest', 'pytest-cov', 'coverage', 'pytest-mock', 'coveralls'], } )
ae3fd153350c9ef8faef73d257fffee4d3abdf0f
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', tests_require=test_requirements )
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=test_requirements )
Add Python 3.6 tag to package
Add Python 3.6 tag to package
Python
mit
kdelwat/boomerang
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', tests_require=test_requirements ) Add Python 3.6 tag to package
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=test_requirements )
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', tests_require=test_requirements ) <commit_msg>Add Python 3.6 tag to package<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=test_requirements )
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', tests_require=test_requirements ) Add Python 3.6 tag to package#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=test_requirements )
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], test_suite='tests', tests_require=test_requirements ) <commit_msg>Add Python 3.6 tag to package<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'sanic', 'aiohttp' ] test_requirements = [ # TODO: put package test requirements here ] setup( name='boomerang', version='0.1.0', description="An asynchronous Python library for building services on the Facebook Messenger Platform", long_description=readme + '\n\n' + history, author="Cadel Watson", author_email='cadel@cadelwatson.com', url='https://github.com/kdelwat/boomerang', packages=[ 'boomerang', ], package_dir={'boomerang': 'boomerang'}, include_package_data=True, install_requires=requirements, license="MIT license", zip_safe=False, keywords='boomerang', classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], test_suite='tests', tests_require=test_requirements )
e3479ec893cf525642bdd94f0a6dd32d897465a4
setup.py
setup.py
#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.6', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" )
#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.7', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" )
Drop support for end-of-life Python 3.6
Drop support for end-of-life Python 3.6
Python
mit
husl-colors/husl.py,hsluv/hsluv-python
#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.6', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" ) Drop support for end-of-life Python 3.6
#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.7', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" )
<commit_before>#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.6', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" ) <commit_msg>Drop support for end-of-life Python 3.6<commit_after>
#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.7', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" )
#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.6', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" ) Drop support for end-of-life Python 3.6#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.7', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" )
<commit_before>#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.6', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" ) <commit_msg>Drop support for end-of-life Python 3.6<commit_after>#! /usr/bin/env python3 from setuptools import setup from hsluv import __version__ setup( name='hsluv', version=__version__, description='Human-friendly HSL', long_description=open('README.md').read(), long_description_content_type='text/markdown', license="MIT", author_email="alexei@boronine.com", url="https://www.hsluv.org", keywords="color hsl cie cieluv colorwheel hsluv hpluv", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.7', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], py_modules=["hsluv"], test_suite="tests.test_hsluv" )
e6c4d40f0eaa6c93cac88582d862aa8393a3cc10
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] )
#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', install_requires=[ 'six', ], extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] )
Add install_requires six for universal Python support
Add install_requires six for universal Python support
Python
mit
vilcans/screenplain,vilcans/screenplain,vilcans/screenplain
#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] ) Add install_requires six for universal Python support
#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', install_requires=[ 'six', ], extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] )
<commit_before>#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] ) <commit_msg>Add install_requires six for universal Python support<commit_after>
#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', install_requires=[ 'six', ], extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] )
#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] ) Add install_requires six for universal Python support#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', install_requires=[ 'six', ], extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] )
<commit_before>#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] ) <commit_msg>Add install_requires six for universal Python support<commit_after>#!/usr/bin/env python from distutils.core import setup setup( name='screenplain', version='0.7.0', description='Convert text file to viewable screenplay.', author='Martin Vilcans', author_email='screenplain@librador.com', url='http://www.screenplain.com/', install_requires=[ 'six', ], extras_require={ 'PDF': 'reportlab' }, packages=[ 'screenplain', 'screenplain.export', 'screenplain.parsers', ], package_data={ 'screenplain.export': ['default.css'] }, scripts=[ 'bin/screenplain' ] )
56519d58cc98ddce4f9a887d1fc4646e7614b712
setup.py
setup.py
import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3' ] )
import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3', 'py>=1.4.29' ] )
Set up Travis tests with pytest for all versions
Set up Travis tests with pytest for all versions
Python
apache-2.0
ByteCommander/ChatExchange6,ByteCommander/ChatExchange6,Charcoal-SE/ChatExchange,Charcoal-SE/ChatExchange
import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3' ] ) Set up Travis tests with pytest for all versions
import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3', 'py>=1.4.29' ] )
<commit_before>import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3' ] ) <commit_msg>Set up Travis tests with pytest for all versions<commit_after>
import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3', 'py>=1.4.29' ] )
import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3' ] ) Set up Travis tests with pytest for all versionsimport setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3', 'py>=1.4.29' ] )
<commit_before>import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3' ] ) <commit_msg>Set up Travis tests with pytest for all versions<commit_after>import setuptools setuptools.setup( name='ChatExchange6', version='0.0.1', url='https://github.com/ByteCommander/ChatExchange6', packages=[ 'chatexchange6' ], install_requires=[ 'beautifulsoup4>=4.3.2', 'requests>=2.2.1', 'websocket-client>=0.13.0', # only for dev: 'coverage>=3.7.1', 'epydoc>=3.0.1', 'httmock>=1.2.2', 'pytest-capturelog>=0.7', 'pytest-timeout>=0.3', 'pytest>=2.7.3', 'py>=1.4.29' ] )
dc6ea10b3da3f84280d8f8b41cf665440d60b12e
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent==1.1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.19', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, )
# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent>=1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.20', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, )
Upgrade gevent to 1.2 and bump version to 0.1.20
Upgrade gevent to 1.2 and bump version to 0.1.20
Python
mit
faith0811/makiki,faith0811/makiki
# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent==1.1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.19', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, ) Upgrade gevent to 1.2 and bump version to 0.1.20
# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent>=1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.20', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, )
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent==1.1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.19', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, ) <commit_msg>Upgrade gevent to 1.2 and bump version to 0.1.20<commit_after>
# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent>=1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.20', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, )
# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent==1.1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.19', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, ) Upgrade gevent to 1.2 and bump version to 0.1.20# -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent>=1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.20', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, )
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent==1.1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.19', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, ) <commit_msg>Upgrade gevent to 1.2 and bump version to 0.1.20<commit_after># -*- coding: utf-8 -*- from setuptools import setup, find_packages console_scripts = [ 'makiki = makiki.cli:main_parser', ] requires = [ 'blinker>=1.4', 'gevent>=1.2', 'gunicorn>=19.0', 'Jinja2>=2.8.1', 'psycogreen>=1.0.0', 'psycopg2>=2.6.2', 'hug>=2.1.2', ] setup( name='makiki', version='0.1.20', description='Web service utils and generator.', long_description='', author='Wang Yanqing', author_email='me@oreki.moe', packages=find_packages(), url='http://github.com/faith0811/makiki', include_package_data=True, entry_points={ 'console_scripts': console_scripts, }, zip_safe=False, install_requires=requires, )
b64d1a7948759eb22d6c5ddbfb2521ad07962c08
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.0', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'scikit-learn == 0.18.1', 'numpy', 'freki', 'riples-classifier', ], dependency_links = [ 'https://github.com/xigt/freki/tarball/master#egg=freki-0.1.0', 'https://github.com/xigt/riples-classifier/tarball/master#egg=riples-classifier-0.1.0', ], )
#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.1', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'wheel', 'setuptools>=53', 'scikit-learn>=0.18.1', 'numpy', 'freki@https://github.com/xigt/freki/archive/v0.3.0.tar.gz', 'riples-classifier@https://github.com/xigt/riples-classifier/archive/0.1.0.tar.gz', ] )
Fix for dependencies using pip
Fix for dependencies using pip
Python
mit
xigt/igtdetect
#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.0', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'scikit-learn == 0.18.1', 'numpy', 'freki', 'riples-classifier', ], dependency_links = [ 'https://github.com/xigt/freki/tarball/master#egg=freki-0.1.0', 'https://github.com/xigt/riples-classifier/tarball/master#egg=riples-classifier-0.1.0', ], ) Fix for dependencies using pip
#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.1', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'wheel', 'setuptools>=53', 'scikit-learn>=0.18.1', 'numpy', 'freki@https://github.com/xigt/freki/archive/v0.3.0.tar.gz', 'riples-classifier@https://github.com/xigt/riples-classifier/archive/0.1.0.tar.gz', ] )
<commit_before>#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.0', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'scikit-learn == 0.18.1', 'numpy', 'freki', 'riples-classifier', ], dependency_links = [ 'https://github.com/xigt/freki/tarball/master#egg=freki-0.1.0', 'https://github.com/xigt/riples-classifier/tarball/master#egg=riples-classifier-0.1.0', ], ) <commit_msg>Fix for dependencies using pip<commit_after>
#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.1', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'wheel', 'setuptools>=53', 'scikit-learn>=0.18.1', 'numpy', 'freki@https://github.com/xigt/freki/archive/v0.3.0.tar.gz', 'riples-classifier@https://github.com/xigt/riples-classifier/archive/0.1.0.tar.gz', ] )
#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.0', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'scikit-learn == 0.18.1', 'numpy', 'freki', 'riples-classifier', ], dependency_links = [ 'https://github.com/xigt/freki/tarball/master#egg=freki-0.1.0', 'https://github.com/xigt/riples-classifier/tarball/master#egg=riples-classifier-0.1.0', ], ) Fix for dependencies using pip#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.1', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'wheel', 'setuptools>=53', 'scikit-learn>=0.18.1', 'numpy', 'freki@https://github.com/xigt/freki/archive/v0.3.0.tar.gz', 'riples-classifier@https://github.com/xigt/riples-classifier/archive/0.1.0.tar.gz', ] )
<commit_before>#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.0', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'scikit-learn == 0.18.1', 'numpy', 'freki', 'riples-classifier', ], dependency_links = [ 'https://github.com/xigt/freki/tarball/master#egg=freki-0.1.0', 'https://github.com/xigt/riples-classifier/tarball/master#egg=riples-classifier-0.1.0', ], ) <commit_msg>Fix for dependencies using pip<commit_after>#!/usr/bin/env python from setuptools import setup setup(name='igtdetect', version='1.1.1', description='Line-level classifier for IGT instances, part of RiPLEs pipeline.', author='Ryan Georgi', author_email='rgeorgi@uw.edu', url='https://github.com/xigt/igtdetect', scripts=['detect-igt'], packages=['igtdetect'], install_requires = [ 'wheel', 'setuptools>=53', 'scikit-learn>=0.18.1', 'numpy', 'freki@https://github.com/xigt/freki/archive/v0.3.0.tar.gz', 'riples-classifier@https://github.com/xigt/riples-classifier/archive/0.1.0.tar.gz', ] )
6f4f0b636844c6e6b555e73c69f846507cb49608
setup.py
setup.py
"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='1.0.0', zip_safe=False, )
"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='0.3.0', zip_safe=False, )
Set a correct version number.
Set a correct version number.
Python
bsd-2-clause
joe-antognini/kozai
"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='1.0.0', zip_safe=False, ) Set a correct version number.
"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='0.3.0', zip_safe=False, )
<commit_before>"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='1.0.0', zip_safe=False, ) <commit_msg>Set a correct version number.<commit_after>
"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='0.3.0', zip_safe=False, )
"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='1.0.0', zip_safe=False, ) Set a correct version number."""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='0.3.0', zip_safe=False, )
<commit_before>"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='1.0.0', zip_safe=False, ) <commit_msg>Set a correct version number.<commit_after>"""Setup script for `kozai`.""" from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( author='Joseph O\'Brien Antognini', author_email='joe.antognini@gmail.com', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Topic :: Scientific/Engineering :: Astronomy', 'Topic :: Scientific/Engineering :: Physics', ], description='Evolve hierarchical triples.', install_requires=['numpy>=1.18.4', 'scipy>=1.4.1'], keywords='kozai lidov triple dynamics orbit star', license='MIT', long_description=readme(), name='kozai', packages=['kozai'], python_requires='>=3.6', scripts=[ 'scripts/kozai', 'scripts/kozai-test-particle', 'scripts/kozai-ekm', ], tests_require=['pytest>=5.4.2'], url='https://github.com/joe-antognini/kozai', version='0.3.0', zip_safe=False, )
7bdf12d0b54b0b6c628acfee1a2fadda2ba542af
setup.py
setup.py
#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['https://github.com/vingd/libxml2-python/archive/libxml2-python-2.7.8.zip'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
Change dependency to libxml2-python-2.7.8 (github).
Change dependency to libxml2-python-2.7.8 (github).
Python
mit
vingd/fiscal-hr-python
#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] ) Change dependency to libxml2-python-2.7.8 (github).
#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['https://github.com/vingd/libxml2-python/archive/libxml2-python-2.7.8.zip'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
<commit_before>#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] ) <commit_msg>Change dependency to libxml2-python-2.7.8 (github).<commit_after>
#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['https://github.com/vingd/libxml2-python/archive/libxml2-python-2.7.8.zip'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] ) Change dependency to libxml2-python-2.7.8 (github).#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['https://github.com/vingd/libxml2-python/archive/libxml2-python-2.7.8.zip'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
<commit_before>#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] ) <commit_msg>Change dependency to libxml2-python-2.7.8 (github).<commit_after>#!/usr/bin/env python '''FiscalHr Setup''' from distutils.core import setup import fiscalhr setup( name=fiscalhr.__title__, version=fiscalhr.__version__, author=fiscalhr.__author__, author_email=fiscalhr.__author_email__, url=fiscalhr.__url__, license=fiscalhr.__license__, description=fiscalhr.__doc__, long_description=open('README.rst').read(), packages=['fiscalhr'], package_data={ 'fiscalhr': [ 'fiskalizacija_service/certs/*.pem', 'fiskalizacija_service/wsdl/*.wsdl', 'fiskalizacija_service/schema/*.xsd', ], }, dependency_links=['https://github.com/vingd/libxml2-python/archive/libxml2-python-2.7.8.zip'], install_requires=[i.strip() for i in open('requirements.txt').readlines()], platforms=['OS Independent'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Programming Language :: Python', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Internet', 'Topic :: Software Development :: Libraries :: Python Modules', ] )
335033e9542f0d69ef6612a5b37d0b41f68b99b7
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', )
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ 'sure', ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', )
Add 'sure' to package reqs
Add 'sure' to package reqs Change-Id: Ie08d1a8b23e4fc8f4f18d53403fff8145022af32
Python
bsd-3-clause
vmalyi/adb_android
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', ) Add 'sure' to package reqs Change-Id: Ie08d1a8b23e4fc8f4f18d53403fff8145022af32
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ 'sure', ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', )
<commit_before>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', ) <commit_msg>Add 'sure' to package reqs Change-Id: Ie08d1a8b23e4fc8f4f18d53403fff8145022af32<commit_after>
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ 'sure', ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', )
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', ) Add 'sure' to package reqs Change-Id: Ie08d1a8b23e4fc8f4f18d53403fff8145022af32#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ 'sure', ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', )
<commit_before>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', ) <commit_msg>Add 'sure' to package reqs Change-Id: Ie08d1a8b23e4fc8f4f18d53403fff8145022af32<commit_after>#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup requirements = [ 'sure', ] test_requirements = [ ] setup( name='adb_android', version='1.0.0', description="Enable android adb in your python script", long_description='This python package is a wrapper for standard android adb\ implementation. It allows you to execute android adb commands in your \ python script.', author='Viktor Malyi', author_email='v.stratus@gmail.com', url='https://github.com/vmalyi/adb_android', packages=[ 'adb_android', ], package_dir={'adb_android':'adb_android'}, include_package_data=True, install_requires=requirements, license="GNU", keywords='adb, android', classifiers=[ 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 'Topic :: Software Development :: Testing', 'Intended Audience :: Developers' ], test_suite='tests', )
f0bd3c9ffffa69f5b8851cecdb1375d94e51a965
setup.py
setup.py
#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7.0", "tox>=1.8,<1.9.0", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], )
#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7", "pytest-cov>=1.8,<1.9", "tox>=1.8,<1.9", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], )
Add `pytest-cov` to collect test coverages
Add `pytest-cov` to collect test coverages
Python
apache-2.0
treasure-data/td-client-python
#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7.0", "tox>=1.8,<1.9.0", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], ) Add `pytest-cov` to collect test coverages
#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7", "pytest-cov>=1.8,<1.9", "tox>=1.8,<1.9", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], )
<commit_before>#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7.0", "tox>=1.8,<1.9.0", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], ) <commit_msg>Add `pytest-cov` to collect test coverages<commit_after>
#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7", "pytest-cov>=1.8,<1.9", "tox>=1.8,<1.9", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], )
#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7.0", "tox>=1.8,<1.9.0", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], ) Add `pytest-cov` to collect test coverages#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7", "pytest-cov>=1.8,<1.9", "tox>=1.8,<1.9", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], )
<commit_before>#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7.0", "tox>=1.8,<1.9.0", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], ) <commit_msg>Add `pytest-cov` to collect test coverages<commit_after>#!/usr/bin/env python from __future__ import with_statement from setuptools import setup, find_packages import re version = "0.0.1.dev.0" with open("tdclient/version.py") as fp: m = re.search(r"^__version__ *= *\"([^\"]*)\" *$", fp.read(), re.MULTILINE) if m is not None: version = m.group(1) setup( name="td-client", version=version, description="Treasure Data API library for Python", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=[ "msgpack-python>=0.4,<0.5", "pytest>=2.6,<2.7", "pytest-cov>=1.8,<1.9", "tox>=1.8,<1.9", ], packages=find_packages(), test_suite="tdclient.test", license="Apache Software License", platforms="Posix; MacOS X; Windows", classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Internet", ], )
d544510736b132d81f774f60fe3729a128ed2e26
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='djc.ochtman@kentyde.com', license='BSD', url='http://source.kentyde.com/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', )
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', license='BSD', url='https://github.com/djc/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', )
Change package owner and homepage
Change package owner and homepage
Python
bsd-3-clause
djc/fixlib
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='djc.ochtman@kentyde.com', license='BSD', url='http://source.kentyde.com/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', ) Change package owner and homepage
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', license='BSD', url='https://github.com/djc/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', )
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='djc.ochtman@kentyde.com', license='BSD', url='http://source.kentyde.com/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', ) <commit_msg>Change package owner and homepage<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', license='BSD', url='https://github.com/djc/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', )
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='djc.ochtman@kentyde.com', license='BSD', url='http://source.kentyde.com/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', ) Change package owner and homepage#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', license='BSD', url='https://github.com/djc/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', )
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='djc.ochtman@kentyde.com', license='BSD', url='http://source.kentyde.com/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', ) <commit_msg>Change package owner and homepage<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), 'README')).read() setup( name='fixlib', version='0.5', description='Pythonic library for dealing with the FIX protocol', long_description=desc, author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', license='BSD', url='https://github.com/djc/fixlib', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Financial and Insurance Industry', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], packages=['fixlib'], test_suite='fixlib.tests.suite', )
07800eb26817458d2d12afeb3f670a2119533639
setup.py
setup.py
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/woutervanwijk/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], )
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/pimusicbox/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], )
Update URL to github repository.
Update URL to github repository.
Python
apache-2.0
pimusicbox/mopidy-musicbox-webclient,woutervanwijk/Mopidy-MusicBox-Webclient,woutervanwijk/Mopidy-MusicBox-Webclient,pimusicbox/mopidy-musicbox-webclient,woutervanwijk/Mopidy-MusicBox-Webclient,pimusicbox/mopidy-musicbox-webclient
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/woutervanwijk/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], ) Update URL to github repository.
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/pimusicbox/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], )
<commit_before>from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/woutervanwijk/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], ) <commit_msg>Update URL to github repository.<commit_after>
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/pimusicbox/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], )
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/woutervanwijk/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], ) Update URL to github repository.from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/pimusicbox/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], )
<commit_before>from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/woutervanwijk/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], ) <commit_msg>Update URL to github repository.<commit_after>from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): content = open(filename).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", content)) return metadata['version'] setup( name='Mopidy-MusicBox-Webclient', version=get_version('mopidy_musicbox_webclient/__init__.py'), url='https://github.com/pimusicbox/mopidy-musicbox-webclient', license='Apache License, Version 2.0', author='Wouter van Wijk', author_email='woutervanwijk@gmail.com', description='Mopidy MusicBox web extension', long_description=open('README.rst').read(), packages=find_packages(exclude=['tests', 'tests.*']), zip_safe=False, include_package_data=True, install_requires=[ 'setuptools', 'Mopidy >= 1.1.0', ], entry_points={ 'mopidy.ext': [ 'musicbox_webclient = mopidy_musicbox_webclient:Extension', ], }, classifiers=[ 'Environment :: No Input/Output (Daemon)', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', 'Topic :: Multimedia :: Sound/Audio :: Players', ], )
1dfcf90a70faaf8e202674fd82f59b603a9c2400
setup.py
setup.py
import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.2" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False )
import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.3" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False )
Update DUA requirement to support Django 1.9
Update DUA requirement to support Django 1.9
Python
unknown
pinax/pinax-invitations,jacobwegner/pinax-invitations,eldarion/kaleo
import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.2" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False ) Update DUA requirement to support Django 1.9
import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.3" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False )
<commit_before>import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.2" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False ) <commit_msg>Update DUA requirement to support Django 1.9<commit_after>
import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.3" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False )
import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.2" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False ) Update DUA requirement to support Django 1.9import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.3" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False )
<commit_before>import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.2" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False ) <commit_msg>Update DUA requirement to support Django 1.9<commit_after>import codecs from os import path from setuptools import find_packages, setup def read(*parts): filename = path.join(path.dirname(__file__), *parts) with codecs.open(filename, encoding="utf-8") as fp: return fp.read() setup( author="Pinax Team", author_email="team@pinaxproject.com", description="a user to user join invitations app", name="pinax-invitations", long_description=read("README.rst"), version="3.0.0", url="http://github.com/pinax/pinax-invitations/", license="MIT", packages=find_packages(), package_data={ "invitations": [] }, test_suite="runtests.runtests", install_requires=[ "django-appconf>=1.0.1", "django-user-accounts>=1.3" ], tests_require=[ ], classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ], zip_safe=False )
3085dc4992cf31c061d9cee5a9b6ff5abbf85e42
bernard/browser.py
bernard/browser.py
import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (mod_report[0], mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after()
import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (str(mod_report[0]), mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after()
Fix crash on empty report by converting to string
Fix crash on empty report by converting to string
Python
mit
leviroth/bernard
import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (mod_report[0], mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after() Fix crash on empty report by converting to string
import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (str(mod_report[0]), mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after()
<commit_before>import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (mod_report[0], mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after() <commit_msg>Fix crash on empty report by converting to string<commit_after>
import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (str(mod_report[0]), mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after()
import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (mod_report[0], mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after() Fix crash on empty report by converting to stringimport logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (str(mod_report[0]), mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after()
<commit_before>import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (mod_report[0], mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after() <commit_msg>Fix crash on empty report by converting to string<commit_after>import logging class Browser: def __init__(self, actors, subreddit, db, cursor): self.actors = actors self.subreddit = subreddit self.db = db self.cursor = cursor def check_command(self, command, mod, post): for actor in self.actors: actor.parse(command, mod, post) def scan_reports(self): try: for post in self.subreddit.mod.reports(limit=None): for mod_report in post.mod_reports: yield (str(mod_report[0]), mod_report[1], post) except Exception as e: logging.error("Error fetching reports: {err}".format(err=e)) def run(self): for command, mod, post in self.scan_reports(): self.check_command(command, mod, post) for actor in self.actors: actor.after()
6ba8e942edaf424c7b20983a5e829736c38b8110
froide/foiidea/tasks.py
froide/foiidea/tasks.py
import sys from celery.task import task from django.conf import settings from django.utils import translation from django.db import transaction from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) def run(source_id): try: crawl_source_by_id(int(source_id)) except Exception: transaction.rollback() return sys.exc_info() else: transaction.commit() return None run = transaction.commit_manually(run) exc_info = run(source_id) if exc_info is not None: from sentry.client.models import client client.create_from_exception(exc_info=exc_info, view="froide.foiidea.tasks.fetch_articles") @task def recalculate_order(): Article.objects.recalculate_order()
from celery.task import task from django.conf import settings from django.utils import translation from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) crawl_source_by_id(int(source_id)) @task def recalculate_order(): Article.objects.recalculate_order()
Remove complex exception mechanism for celery task
Remove complex exception mechanism for celery task
Python
mit
ryankanno/froide,stefanw/froide,ryankanno/froide,CodeforHawaii/froide,LilithWittmann/froide,ryankanno/froide,CodeforHawaii/froide,stefanw/froide,LilithWittmann/froide,fin/froide,LilithWittmann/froide,catcosmo/froide,catcosmo/froide,stefanw/froide,CodeforHawaii/froide,ryankanno/froide,fin/froide,stefanw/froide,catcosmo/froide,stefanw/froide,okfse/froide,okfse/froide,LilithWittmann/froide,CodeforHawaii/froide,ryankanno/froide,okfse/froide,fin/froide,catcosmo/froide,okfse/froide,okfse/froide,LilithWittmann/froide,catcosmo/froide,CodeforHawaii/froide,fin/froide
import sys from celery.task import task from django.conf import settings from django.utils import translation from django.db import transaction from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) def run(source_id): try: crawl_source_by_id(int(source_id)) except Exception: transaction.rollback() return sys.exc_info() else: transaction.commit() return None run = transaction.commit_manually(run) exc_info = run(source_id) if exc_info is not None: from sentry.client.models import client client.create_from_exception(exc_info=exc_info, view="froide.foiidea.tasks.fetch_articles") @task def recalculate_order(): Article.objects.recalculate_order() Remove complex exception mechanism for celery task
from celery.task import task from django.conf import settings from django.utils import translation from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) crawl_source_by_id(int(source_id)) @task def recalculate_order(): Article.objects.recalculate_order()
<commit_before>import sys from celery.task import task from django.conf import settings from django.utils import translation from django.db import transaction from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) def run(source_id): try: crawl_source_by_id(int(source_id)) except Exception: transaction.rollback() return sys.exc_info() else: transaction.commit() return None run = transaction.commit_manually(run) exc_info = run(source_id) if exc_info is not None: from sentry.client.models import client client.create_from_exception(exc_info=exc_info, view="froide.foiidea.tasks.fetch_articles") @task def recalculate_order(): Article.objects.recalculate_order() <commit_msg>Remove complex exception mechanism for celery task<commit_after>
from celery.task import task from django.conf import settings from django.utils import translation from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) crawl_source_by_id(int(source_id)) @task def recalculate_order(): Article.objects.recalculate_order()
import sys from celery.task import task from django.conf import settings from django.utils import translation from django.db import transaction from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) def run(source_id): try: crawl_source_by_id(int(source_id)) except Exception: transaction.rollback() return sys.exc_info() else: transaction.commit() return None run = transaction.commit_manually(run) exc_info = run(source_id) if exc_info is not None: from sentry.client.models import client client.create_from_exception(exc_info=exc_info, view="froide.foiidea.tasks.fetch_articles") @task def recalculate_order(): Article.objects.recalculate_order() Remove complex exception mechanism for celery taskfrom celery.task import task from django.conf import settings from django.utils import translation from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) crawl_source_by_id(int(source_id)) @task def recalculate_order(): Article.objects.recalculate_order()
<commit_before>import sys from celery.task import task from django.conf import settings from django.utils import translation from django.db import transaction from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) def run(source_id): try: crawl_source_by_id(int(source_id)) except Exception: transaction.rollback() return sys.exc_info() else: transaction.commit() return None run = transaction.commit_manually(run) exc_info = run(source_id) if exc_info is not None: from sentry.client.models import client client.create_from_exception(exc_info=exc_info, view="froide.foiidea.tasks.fetch_articles") @task def recalculate_order(): Article.objects.recalculate_order() <commit_msg>Remove complex exception mechanism for celery task<commit_after>from celery.task import task from django.conf import settings from django.utils import translation from .crawler import crawl_source_by_id from .models import Article @task def fetch_articles(source_id): translation.activate(settings.LANGUAGE_CODE) crawl_source_by_id(int(source_id)) @task def recalculate_order(): Article.objects.recalculate_order()
f0f8652f67f0b09a1133f477b27b6d399621790f
pywxsb.py
pywxsb.py
import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: print '%s processing %s:' % (e.__class__, file) traceback.print_exception(*sys.exc_info())
import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: sys.stderr.write("%s processing %s:\n" % (e.__class__, file)) traceback.print_exception(*sys.exc_info())
Put whole message out to stderr, not just part of it
Put whole message out to stderr, not just part of it
Python
apache-2.0
jonfoster/pyxb2,CantemoInternal/pyxb,jonfoster/pyxb-upstream-mirror,balanced/PyXB,jonfoster/pyxb2,CantemoInternal/pyxb,pabigot/pyxb,balanced/PyXB,CantemoInternal/pyxb,jonfoster/pyxb1,balanced/PyXB,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb1,pabigot/pyxb,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb2
import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: print '%s processing %s:' % (e.__class__, file) traceback.print_exception(*sys.exc_info()) Put whole message out to stderr, not just part of it
import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: sys.stderr.write("%s processing %s:\n" % (e.__class__, file)) traceback.print_exception(*sys.exc_info())
<commit_before>import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: print '%s processing %s:' % (e.__class__, file) traceback.print_exception(*sys.exc_info()) <commit_msg>Put whole message out to stderr, not just part of it<commit_after>
import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: sys.stderr.write("%s processing %s:\n" % (e.__class__, file)) traceback.print_exception(*sys.exc_info())
import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: print '%s processing %s:' % (e.__class__, file) traceback.print_exception(*sys.exc_info()) Put whole message out to stderr, not just part of itimport PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: sys.stderr.write("%s processing %s:\n" % (e.__class__, file)) traceback.print_exception(*sys.exc_info())
<commit_before>import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: print '%s processing %s:' % (e.__class__, file) traceback.print_exception(*sys.exc_info()) <commit_msg>Put whole message out to stderr, not just part of it<commit_after>import PyWXSB.XMLSchema as xs import sys import traceback from xml.dom import minidom from xml.dom import Node files = sys.argv[1:] if 0 == len(files): files = [ 'schemas/XMLSchema.xsd' ] for file in files: wxs = xs.schema() try: wxs.processDocument(minidom.parse(file)) except Exception, e: sys.stderr.write("%s processing %s:\n" % (e.__class__, file)) traceback.print_exception(*sys.exc_info())
9f0618d39dad2438a29964e706d916953a96a5fb
shivyc.py
shivyc.py
#!/usr/bin/env python3 """Main executable for ShivyC compiler """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main()
#!/usr/bin/env python3 """Main executable for ShivyC compiler For usage, run "./shivyc.py --help". """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main()
Add usage info to comment
Add usage info to comment
Python
mit
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
#!/usr/bin/env python3 """Main executable for ShivyC compiler """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main() Add usage info to comment
#!/usr/bin/env python3 """Main executable for ShivyC compiler For usage, run "./shivyc.py --help". """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main()
<commit_before>#!/usr/bin/env python3 """Main executable for ShivyC compiler """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main() <commit_msg>Add usage info to comment<commit_after>
#!/usr/bin/env python3 """Main executable for ShivyC compiler For usage, run "./shivyc.py --help". """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main()
#!/usr/bin/env python3 """Main executable for ShivyC compiler """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main() Add usage info to comment#!/usr/bin/env python3 """Main executable for ShivyC compiler For usage, run "./shivyc.py --help". """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main()
<commit_before>#!/usr/bin/env python3 """Main executable for ShivyC compiler """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main() <commit_msg>Add usage info to comment<commit_after>#!/usr/bin/env python3 """Main executable for ShivyC compiler For usage, run "./shivyc.py --help". """ import argparse def get_arguments(): """Set up the argument parser and return an object storing the argument values. return - An object storing argument values, as returned by argparse.parse_args() """ parser = argparse.ArgumentParser(description="Compile C files.") # The C file to compile parser.add_argument("file_name") return parser.parse_args() def main(): """Run the compiler """ arguments = get_arguments() print(arguments) if __name__ == "__main__": main()
c544afed5c8d961db0d34b7f73313699ce3bf656
test/ocookie_test.py
test/ocookie_test.py
import unittest, time import ocookie class OcookieTest(unittest.TestCase): def test_foo(self): pass class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main()
import unittest, time import ocookie class CookieTest(unittest.TestCase): def test_construction(self): cookie = ocookie.Cookie('foo', 'bar', httponly=True) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertTrue(cookie.httponly) self.assertFalse(cookie.secure) class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main()
Add a cookie class test
Add a cookie class test
Python
bsd-2-clause
p/ocookie
import unittest, time import ocookie class OcookieTest(unittest.TestCase): def test_foo(self): pass class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main() Add a cookie class test
import unittest, time import ocookie class CookieTest(unittest.TestCase): def test_construction(self): cookie = ocookie.Cookie('foo', 'bar', httponly=True) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertTrue(cookie.httponly) self.assertFalse(cookie.secure) class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main()
<commit_before>import unittest, time import ocookie class OcookieTest(unittest.TestCase): def test_foo(self): pass class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main() <commit_msg>Add a cookie class test<commit_after>
import unittest, time import ocookie class CookieTest(unittest.TestCase): def test_construction(self): cookie = ocookie.Cookie('foo', 'bar', httponly=True) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertTrue(cookie.httponly) self.assertFalse(cookie.secure) class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main()
import unittest, time import ocookie class OcookieTest(unittest.TestCase): def test_foo(self): pass class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main() Add a cookie class testimport unittest, time import ocookie class CookieTest(unittest.TestCase): def test_construction(self): cookie = ocookie.Cookie('foo', 'bar', httponly=True) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertTrue(cookie.httponly) self.assertFalse(cookie.secure) class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main()
<commit_before>import unittest, time import ocookie class OcookieTest(unittest.TestCase): def test_foo(self): pass class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main() <commit_msg>Add a cookie class test<commit_after>import unittest, time import ocookie class CookieTest(unittest.TestCase): def test_construction(self): cookie = ocookie.Cookie('foo', 'bar', httponly=True) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertTrue(cookie.httponly) self.assertFalse(cookie.secure) class CookieParserTest(unittest.TestCase): def test_parsing(self): text = 'foo=bar' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) def test_parsing_with_attributes(self): text = 'foo=bar; domain=.cc.edu; path=/; expires=Mon Jul 11 10:41:15 EDT 2011' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals('.cc.edu', cookie.domain) self.assertEquals('/', cookie.path) self.assertEquals('Mon Jul 11 10:41:15 EDT 2011', cookie.expires) def test_parsing_with_valueless_attributes(self): text = 'foo=bar; httponly' cookie = ocookie.CookieParser.parse_set_cookie_value(text) self.assertEquals('foo', cookie.name) self.assertEquals('bar', cookie.value) self.assertEquals(True, cookie.httponly) if __name__ == '__main__': unittest.main()
edd4783d5f277e8bc456f662e66ac65eb62419b7
base/components/views.py
base/components/views.py
from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, View): def get(self, request, *args, **kwargs): sqs = SearchQuerySet().autocomplete(text=request.GET.get('q', ''))[:5] suggestions = [result.pk for result in sqs] json = {'results': suggestions} return self.render_json_response(json)
from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet from haystack.inputs import AutoQuery, Exact, Clean class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, AjaxResponseMixin, View): def get_ajax(self, request, *args, **kwargs): query = request.GET.get('q', '') sqs = SearchQuerySet().autocomplete(text=query).load_all()[:5] suggestions = [] for result in sqs: suggestions.append({ 'text': result.text, 'pk': result.pk, 'model': result.model_name, 'name': result.object.name if result.object.name != result.object.romanized_name else None, 'romanized_name': result.object.romanized_name, 'url': result.object.get_absolute_url(), }) # suggestions = [result.pk for result in sqs] json = {'query': query, 'results': suggestions} return self.render_json_response(json)
Throw more data into the autocomplete view.
Throw more data into the autocomplete view.
Python
apache-2.0
hello-base/web,hello-base/web,hello-base/web,hello-base/web
from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, View): def get(self, request, *args, **kwargs): sqs = SearchQuerySet().autocomplete(text=request.GET.get('q', ''))[:5] suggestions = [result.pk for result in sqs] json = {'results': suggestions} return self.render_json_response(json) Throw more data into the autocomplete view.
from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet from haystack.inputs import AutoQuery, Exact, Clean class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, AjaxResponseMixin, View): def get_ajax(self, request, *args, **kwargs): query = request.GET.get('q', '') sqs = SearchQuerySet().autocomplete(text=query).load_all()[:5] suggestions = [] for result in sqs: suggestions.append({ 'text': result.text, 'pk': result.pk, 'model': result.model_name, 'name': result.object.name if result.object.name != result.object.romanized_name else None, 'romanized_name': result.object.romanized_name, 'url': result.object.get_absolute_url(), }) # suggestions = [result.pk for result in sqs] json = {'query': query, 'results': suggestions} return self.render_json_response(json)
<commit_before>from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, View): def get(self, request, *args, **kwargs): sqs = SearchQuerySet().autocomplete(text=request.GET.get('q', ''))[:5] suggestions = [result.pk for result in sqs] json = {'results': suggestions} return self.render_json_response(json) <commit_msg>Throw more data into the autocomplete view.<commit_after>
from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet from haystack.inputs import AutoQuery, Exact, Clean class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, AjaxResponseMixin, View): def get_ajax(self, request, *args, **kwargs): query = request.GET.get('q', '') sqs = SearchQuerySet().autocomplete(text=query).load_all()[:5] suggestions = [] for result in sqs: suggestions.append({ 'text': result.text, 'pk': result.pk, 'model': result.model_name, 'name': result.object.name if result.object.name != result.object.romanized_name else None, 'romanized_name': result.object.romanized_name, 'url': result.object.get_absolute_url(), }) # suggestions = [result.pk for result in sqs] json = {'query': query, 'results': suggestions} return self.render_json_response(json)
from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, View): def get(self, request, *args, **kwargs): sqs = SearchQuerySet().autocomplete(text=request.GET.get('q', ''))[:5] suggestions = [result.pk for result in sqs] json = {'results': suggestions} return self.render_json_response(json) Throw more data into the autocomplete view.from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet from haystack.inputs import AutoQuery, Exact, Clean class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, AjaxResponseMixin, View): def get_ajax(self, request, *args, **kwargs): query = request.GET.get('q', '') sqs = SearchQuerySet().autocomplete(text=query).load_all()[:5] suggestions = [] for result in sqs: suggestions.append({ 'text': result.text, 'pk': result.pk, 'model': result.model_name, 'name': result.object.name if result.object.name != result.object.romanized_name else None, 'romanized_name': result.object.romanized_name, 'url': result.object.get_absolute_url(), }) # suggestions = [result.pk for result in sqs] json = {'query': query, 'results': suggestions} return self.render_json_response(json)
<commit_before>from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, View): def get(self, request, *args, **kwargs): sqs = SearchQuerySet().autocomplete(text=request.GET.get('q', ''))[:5] suggestions = [result.pk for result in sqs] json = {'results': suggestions} return self.render_json_response(json) <commit_msg>Throw more data into the autocomplete view.<commit_after>from django.views.generic import View from django.views.generic.base import TemplateView from braces.views import AjaxResponseMixin, JSONResponseMixin from haystack.query import SearchQuerySet from haystack.inputs import AutoQuery, Exact, Clean class SiteView(TemplateView): template_name = 'landings/home_site.html' class AutocompleteView(JSONResponseMixin, AjaxResponseMixin, View): def get_ajax(self, request, *args, **kwargs): query = request.GET.get('q', '') sqs = SearchQuerySet().autocomplete(text=query).load_all()[:5] suggestions = [] for result in sqs: suggestions.append({ 'text': result.text, 'pk': result.pk, 'model': result.model_name, 'name': result.object.name if result.object.name != result.object.romanized_name else None, 'romanized_name': result.object.romanized_name, 'url': result.object.get_absolute_url(), }) # suggestions = [result.pk for result in sqs] json = {'query': query, 'results': suggestions} return self.render_json_response(json)
c89e9cee709790d99013d77889bac208a8bdeb12
tests/test_arpreq.py
tests/test_arpreq.py
import sys from socket import htonl, inet_ntoa import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big')) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None
import sys from socket import htonl, inet_ntoa from struct import pack import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(pack(">I", htonl(int(value, base=16)))) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None
Use struct.pack instead of int.to_bytes
Use struct.pack instead of int.to_bytes int.to_bytes is not available on Python 2
Python
mit
sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq
import sys from socket import htonl, inet_ntoa import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big')) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None Use struct.pack instead of int.to_bytes int.to_bytes is not available on Python 2
import sys from socket import htonl, inet_ntoa from struct import pack import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(pack(">I", htonl(int(value, base=16)))) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None
<commit_before>import sys from socket import htonl, inet_ntoa import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big')) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None <commit_msg>Use struct.pack instead of int.to_bytes int.to_bytes is not available on Python 2<commit_after>
import sys from socket import htonl, inet_ntoa from struct import pack import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(pack(">I", htonl(int(value, base=16)))) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None
import sys from socket import htonl, inet_ntoa import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big')) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None Use struct.pack instead of int.to_bytes int.to_bytes is not available on Python 2import sys from socket import htonl, inet_ntoa from struct import pack import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(pack(">I", htonl(int(value, base=16)))) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None
<commit_before>import sys from socket import htonl, inet_ntoa import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(htonl(int(value, base=16)).to_bytes(4, 'big')) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None <commit_msg>Use struct.pack instead of int.to_bytes int.to_bytes is not available on Python 2<commit_after>import sys from socket import htonl, inet_ntoa from struct import pack import pytest from arpreq import arpreq def test_localhost(): assert arpreq('127.0.0.1') == '00:00:00:00:00:00' def decode_address(value): return inet_ntoa(pack(">I", htonl(int(value, base=16)))) def decode_flags(value): return int(value, base=16) def get_default_gateway(): with open("/proc/net/route") as f: next(f) for line in f: fields = line.strip().split() destination = decode_address(fields[1]) mask = decode_address(fields[7]) gateway = decode_address(fields[2]) flags = decode_flags(fields[3]) if destination == '0.0.0.0' and mask == '0.0.0.0' and flags & 0x2: return gateway return None def test_default_gateway(): gateway = get_default_gateway() if not gateway: pytest.skip("No default gateway present.") assert arpreq(gateway) is not None
179bd5a7df7858eda2674b7913b6e446ab12d9bb
grammpy/Rules/InstantiableRule.py
grammpy/Rules/InstantiableRule.py
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from weakreflist import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from ..WeakList import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms
Switch from weakreflist library to own implementation
Switch from weakreflist library to own implementation
Python
mit
PatrikValkovic/grammpy
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from weakreflist import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nontermsSwitch from weakreflist library to own implementation
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from ..WeakList import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from weakreflist import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms<commit_msg>Switch from weakreflist library to own implementation<commit_after>
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from ..WeakList import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms
#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from weakreflist import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nontermsSwitch from weakreflist library to own implementation#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from ..WeakList import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms
<commit_before>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from weakreflist import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms<commit_msg>Switch from weakreflist library to own implementation<commit_after>#!/usr/bin/env python """ :Author Patrik Valkovic :Created 31.08.2017 11:18 :Licence GNUv3 Part of grammpy """ from ..WeakList import WeakList from .IsMethodsRuleExtension import IsMethodsRuleExtension class InstantiableRule(IsMethodsRuleExtension): def __init__(self): self._from_nonterms = WeakList() self._to_nonterms = list() @property def from_nonterms(self): return self._from_nonterms @property def to_nonterms(self): return self._to_nonterms
67f3d3db568921f8deca0f68447498b84077e13c
tests/test_runner.py
tests/test_runner.py
from pytest import mark, raises from oshino.run import main from mock import patch @mark.integration @patch("oshino.core.heart.forever", lambda: False) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", ))
import asyncio from pytest import mark, raises from oshino.run import main from mock import patch def create_loop(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) return loop @mark.integration @patch("oshino.core.heart.forever", lambda: False) @patch("oshino.core.heart.create_loop", create_loop) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", ))
Make event loop work for runner
Make event loop work for runner
Python
mit
CodersOfTheNight/oshino
from pytest import mark, raises from oshino.run import main from mock import patch @mark.integration @patch("oshino.core.heart.forever", lambda: False) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", )) Make event loop work for runner
import asyncio from pytest import mark, raises from oshino.run import main from mock import patch def create_loop(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) return loop @mark.integration @patch("oshino.core.heart.forever", lambda: False) @patch("oshino.core.heart.create_loop", create_loop) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", ))
<commit_before>from pytest import mark, raises from oshino.run import main from mock import patch @mark.integration @patch("oshino.core.heart.forever", lambda: False) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", )) <commit_msg>Make event loop work for runner<commit_after>
import asyncio from pytest import mark, raises from oshino.run import main from mock import patch def create_loop(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) return loop @mark.integration @patch("oshino.core.heart.forever", lambda: False) @patch("oshino.core.heart.create_loop", create_loop) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", ))
from pytest import mark, raises from oshino.run import main from mock import patch @mark.integration @patch("oshino.core.heart.forever", lambda: False) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", )) Make event loop work for runnerimport asyncio from pytest import mark, raises from oshino.run import main from mock import patch def create_loop(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) return loop @mark.integration @patch("oshino.core.heart.forever", lambda: False) @patch("oshino.core.heart.create_loop", create_loop) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", ))
<commit_before>from pytest import mark, raises from oshino.run import main from mock import patch @mark.integration @patch("oshino.core.heart.forever", lambda: False) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", )) <commit_msg>Make event loop work for runner<commit_after>import asyncio from pytest import mark, raises from oshino.run import main from mock import patch def create_loop(): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) return loop @mark.integration @patch("oshino.core.heart.forever", lambda: False) @patch("oshino.core.heart.create_loop", create_loop) def test_startup(): with raises(SystemExit): main(("--config", "tests/data/test_config.yml", ))
4c20c2137eb1cee69511ecd8a83a499147b42373
tests/thread-test.py
tests/thread-test.py
#!/usr/bin/python2 import pstack import json threads, text = pstack.JSON(["tests/thread"]) result = json.loads(text) # we have 10 threads + main assert len(threads) == 11 entryThreads = 0 for thread in threads: assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"]) assert thread["ti_tid"] in result["threads"], "thread %d not in %s" % (thread["ti_lid"], result["threads"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': entryThreads += 1 # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == result["assert_at"] assert entryThreads == 10
#!/usr/bin/python2 import pstack import json pstack, text = pstack.JSON(["tests/thread"]) result = json.loads(text) threads = result["threads"] lwps = result["lwps"] assert_at = result["assert_at"] # we have 10 threads + main assert len(threads) == 11 for thread in pstack: # this will throw an error if the thread or LWP is not in the output for # the command, indicating a thread or LWP id from pstack was wrong. threads.remove(thread["ti_tid"]) lwps.remove(thread["ti_lid"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == assert_at # When we are finished, pstack should have found all the threads and lwps that # reported in the output from the command. assert not lwps assert not threads
Clean up changes to thread test
Clean up changes to thread test
Python
bsd-2-clause
peadar/pstack,peadar/pstack,peadar/pstack,peadar/pstack
#!/usr/bin/python2 import pstack import json threads, text = pstack.JSON(["tests/thread"]) result = json.loads(text) # we have 10 threads + main assert len(threads) == 11 entryThreads = 0 for thread in threads: assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"]) assert thread["ti_tid"] in result["threads"], "thread %d not in %s" % (thread["ti_lid"], result["threads"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': entryThreads += 1 # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == result["assert_at"] assert entryThreads == 10 Clean up changes to thread test
#!/usr/bin/python2 import pstack import json pstack, text = pstack.JSON(["tests/thread"]) result = json.loads(text) threads = result["threads"] lwps = result["lwps"] assert_at = result["assert_at"] # we have 10 threads + main assert len(threads) == 11 for thread in pstack: # this will throw an error if the thread or LWP is not in the output for # the command, indicating a thread or LWP id from pstack was wrong. threads.remove(thread["ti_tid"]) lwps.remove(thread["ti_lid"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == assert_at # When we are finished, pstack should have found all the threads and lwps that # reported in the output from the command. assert not lwps assert not threads
<commit_before>#!/usr/bin/python2 import pstack import json threads, text = pstack.JSON(["tests/thread"]) result = json.loads(text) # we have 10 threads + main assert len(threads) == 11 entryThreads = 0 for thread in threads: assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"]) assert thread["ti_tid"] in result["threads"], "thread %d not in %s" % (thread["ti_lid"], result["threads"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': entryThreads += 1 # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == result["assert_at"] assert entryThreads == 10 <commit_msg>Clean up changes to thread test<commit_after>
#!/usr/bin/python2 import pstack import json pstack, text = pstack.JSON(["tests/thread"]) result = json.loads(text) threads = result["threads"] lwps = result["lwps"] assert_at = result["assert_at"] # we have 10 threads + main assert len(threads) == 11 for thread in pstack: # this will throw an error if the thread or LWP is not in the output for # the command, indicating a thread or LWP id from pstack was wrong. threads.remove(thread["ti_tid"]) lwps.remove(thread["ti_lid"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == assert_at # When we are finished, pstack should have found all the threads and lwps that # reported in the output from the command. assert not lwps assert not threads
#!/usr/bin/python2 import pstack import json threads, text = pstack.JSON(["tests/thread"]) result = json.loads(text) # we have 10 threads + main assert len(threads) == 11 entryThreads = 0 for thread in threads: assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"]) assert thread["ti_tid"] in result["threads"], "thread %d not in %s" % (thread["ti_lid"], result["threads"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': entryThreads += 1 # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == result["assert_at"] assert entryThreads == 10 Clean up changes to thread test#!/usr/bin/python2 import pstack import json pstack, text = pstack.JSON(["tests/thread"]) result = json.loads(text) threads = result["threads"] lwps = result["lwps"] assert_at = result["assert_at"] # we have 10 threads + main assert len(threads) == 11 for thread in pstack: # this will throw an error if the thread or LWP is not in the output for # the command, indicating a thread or LWP id from pstack was wrong. threads.remove(thread["ti_tid"]) lwps.remove(thread["ti_lid"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == assert_at # When we are finished, pstack should have found all the threads and lwps that # reported in the output from the command. assert not lwps assert not threads
<commit_before>#!/usr/bin/python2 import pstack import json threads, text = pstack.JSON(["tests/thread"]) result = json.loads(text) # we have 10 threads + main assert len(threads) == 11 entryThreads = 0 for thread in threads: assert thread["ti_lid"] in result["lwps"], "LWP %d not in %s" % (thread["ti_lid"], result["lwps"]) assert thread["ti_tid"] in result["threads"], "thread %d not in %s" % (thread["ti_lid"], result["threads"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': entryThreads += 1 # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == result["assert_at"] assert entryThreads == 10 <commit_msg>Clean up changes to thread test<commit_after>#!/usr/bin/python2 import pstack import json pstack, text = pstack.JSON(["tests/thread"]) result = json.loads(text) threads = result["threads"] lwps = result["lwps"] assert_at = result["assert_at"] # we have 10 threads + main assert len(threads) == 11 for thread in pstack: # this will throw an error if the thread or LWP is not in the output for # the command, indicating a thread or LWP id from pstack was wrong. threads.remove(thread["ti_tid"]) lwps.remove(thread["ti_lid"]) for frame in thread["ti_stack"]: if frame['die'] == 'entry': # the soruce for "entry" should be thread.c if not frame['source']: print "warning: no source info to test" else: assert frame['source'][0]['file'].endswith( 'thread.cc' ) lineNo = frame['source'][0]['line'] # we should be between unlocking the mutex and pausing assert lineNo == assert_at # When we are finished, pstack should have found all the threads and lwps that # reported in the output from the command. assert not lwps assert not threads
20b1505a316fc47049470f998741f00569df818f
rail-fence-cipher/rail_fence_cipher.py
rail-fence-cipher/rail_fence_cipher.py
# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM
# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM class Rail(): """Implementation of Rail Fence Cipher.""" def __init__(self, text, rail_count): self.text = text self.rail_count = rail_count def imaginary_fence(self): fence = [[None] * len(self.text) for num in range(self.rail_count)] print (fence) f = Rail('helloworld', 3) f.imaginary_fence()
Add imaginary fence list comprehension
Add imaginary fence list comprehension
Python
mit
amalshehu/exercism-python
# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM Add imaginary fence list comprehension
# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM class Rail(): """Implementation of Rail Fence Cipher.""" def __init__(self, text, rail_count): self.text = text self.rail_count = rail_count def imaginary_fence(self): fence = [[None] * len(self.text) for num in range(self.rail_count)] print (fence) f = Rail('helloworld', 3) f.imaginary_fence()
<commit_before># File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM <commit_msg>Add imaginary fence list comprehension<commit_after>
# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM class Rail(): """Implementation of Rail Fence Cipher.""" def __init__(self, text, rail_count): self.text = text self.rail_count = rail_count def imaginary_fence(self): fence = [[None] * len(self.text) for num in range(self.rail_count)] print (fence) f = Rail('helloworld', 3) f.imaginary_fence()
# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM Add imaginary fence list comprehension# File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM class Rail(): """Implementation of Rail Fence Cipher.""" def __init__(self, text, rail_count): self.text = text self.rail_count = rail_count def imaginary_fence(self): fence = [[None] * len(self.text) for num in range(self.rail_count)] print (fence) f = Rail('helloworld', 3) f.imaginary_fence()
<commit_before># File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM <commit_msg>Add imaginary fence list comprehension<commit_after># File: rail_fence_cipher.py # Purpose: Implement encoding and decoding for the rail fence cipher. # Programmer: Amal Shehu # Course: Exercism # Date: Friday 30 September 2016, 08:35 PM class Rail(): """Implementation of Rail Fence Cipher.""" def __init__(self, text, rail_count): self.text = text self.rail_count = rail_count def imaginary_fence(self): fence = [[None] * len(self.text) for num in range(self.rail_count)] print (fence) f = Rail('helloworld', 3) f.imaginary_fence()
9d2d41f8450f6f3735b8ff9a0041f9bf5d80e5ec
config/template.py
config/template.py
DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = ''
DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' TWILIO_NUMBERS = ['']
Allow for representative view display with sample configuration
Allow for representative view display with sample configuration
Python
mit
PeterTheOne/ueberwachungspaket.at,PeterTheOne/ueberwachungspaket.at,PeterTheOne/ueberwachungspaket.at
DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' Allow for representative view display with sample configuration
DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' TWILIO_NUMBERS = ['']
<commit_before>DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' <commit_msg>Allow for representative view display with sample configuration<commit_after>
DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' TWILIO_NUMBERS = ['']
DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' Allow for representative view display with sample configurationDB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' TWILIO_NUMBERS = ['']
<commit_before>DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' <commit_msg>Allow for representative view display with sample configuration<commit_after>DB_USER = '' DB_HOST = '' DB_PASSWORD = '' DB_NAME = '' TWILIO_NUMBERS = ['']
2ee2ab8cc0b9b0fd9776571c1f4b7715d11c2ad6
src/WhiteLibrary/keywords/items/textbox.py
src/WhiteLibrary/keywords/items/textbox.py
from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.Text = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text
from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.BulkText = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text
Use BulkText instead of Text in input keyword
Use BulkText instead of Text in input keyword Fixes #164
Python
apache-2.0
Omenia/robotframework-whitelibrary,Omenia/robotframework-whitelibrary
from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.Text = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text Use BulkText instead of Text in input keyword Fixes #164
from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.BulkText = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text
<commit_before>from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.Text = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text <commit_msg>Use BulkText instead of Text in input keyword Fixes #164<commit_after>
from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.BulkText = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text
from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.Text = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text Use BulkText instead of Text in input keyword Fixes #164from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.BulkText = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text
<commit_before>from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.Text = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text <commit_msg>Use BulkText instead of Text in input keyword Fixes #164<commit_after>from TestStack.White.UIItems import TextBox from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TextBoxKeywords(LibraryComponent): @keyword def input_text_to_textbox(self, locator, input_value): """Writes text to a textbox. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``input_value`` is the text to write. """ text_box = self.state._get_typed_item_by_locator(TextBox, locator) text_box.BulkText = input_value @keyword def verify_text_in_textbox(self, locator, expected): """Verifies text in a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. ``expected`` is the expected text of the text box. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) self.state._verify_value(expected, textbox.Text) @keyword def get_text_from_textbox(self, locator): """Returns the text of a text box. ``locator`` is the locator of the text box or Textbox item object. Locator syntax is explained in `Item locators`. """ textbox = self.state._get_typed_item_by_locator(TextBox, locator) return textbox.Text
cb461f4422e43058cf12c2605a8a1312ffd79c04
app/__init__.py
app/__init__.py
import mongoengine # Open a connection to the MongoDB database, to be shared throughout the # application. db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
Add shared db connection to the package
Add shared db connection to the package
Python
mit
Zillolo/lazy-todo
Add shared db connection to the package
import mongoengine # Open a connection to the MongoDB database, to be shared throughout the # application. db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
<commit_before><commit_msg>Add shared db connection to the package<commit_after>
import mongoengine # Open a connection to the MongoDB database, to be shared throughout the # application. db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
Add shared db connection to the packageimport mongoengine # Open a connection to the MongoDB database, to be shared throughout the # application. db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
<commit_before><commit_msg>Add shared db connection to the package<commit_after>import mongoengine # Open a connection to the MongoDB database, to be shared throughout the # application. db = mongoengine.connect('lazy', host='127.0.0.1', port=27017)
426521115d62c664dc9139956f092a92705f7795
events.py
events.py
class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs)
class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) class TestClass(EventSource): def __init__(self): super(TestClass, self).__init__() print("ready") def event_occurs(self): # parameters for fire are 'event name' followed by anything you want to pass to the listener self.fire("big bang event", "what a blast!") def simple_listener(self, payload): print("Payload : {0}".format(payload)) def demo(): t = TestClass() # takes an event (any valid python object) and a listener (any valid python function) t.add_listener("big bang event", t.simple_listener) t.event_occurs() #when the event is fired in this method, the listener is informed if __name__ == '__main__': demo()
Add an example for event usage
Add an example for event usage
Python
mit
kashifrazzaqui/again
class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) Add an example for event usage
class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) class TestClass(EventSource): def __init__(self): super(TestClass, self).__init__() print("ready") def event_occurs(self): # parameters for fire are 'event name' followed by anything you want to pass to the listener self.fire("big bang event", "what a blast!") def simple_listener(self, payload): print("Payload : {0}".format(payload)) def demo(): t = TestClass() # takes an event (any valid python object) and a listener (any valid python function) t.add_listener("big bang event", t.simple_listener) t.event_occurs() #when the event is fired in this method, the listener is informed if __name__ == '__main__': demo()
<commit_before>class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) <commit_msg>Add an example for event usage<commit_after>
class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) class TestClass(EventSource): def __init__(self): super(TestClass, self).__init__() print("ready") def event_occurs(self): # parameters for fire are 'event name' followed by anything you want to pass to the listener self.fire("big bang event", "what a blast!") def simple_listener(self, payload): print("Payload : {0}".format(payload)) def demo(): t = TestClass() # takes an event (any valid python object) and a listener (any valid python function) t.add_listener("big bang event", t.simple_listener) t.event_occurs() #when the event is fired in this method, the listener is informed if __name__ == '__main__': demo()
class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) Add an example for event usageclass ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) class TestClass(EventSource): def __init__(self): super(TestClass, self).__init__() print("ready") def event_occurs(self): # parameters for fire are 'event name' followed by anything you want to pass to the listener self.fire("big bang event", "what a blast!") def simple_listener(self, payload): print("Payload : {0}".format(payload)) def demo(): t = TestClass() # takes an event (any valid python object) and a listener (any valid python function) t.add_listener("big bang event", t.simple_listener) t.event_occurs() #when the event is fired in this method, the listener is informed if __name__ == '__main__': demo()
<commit_before>class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) <commit_msg>Add an example for event usage<commit_after>class ListenerRegister(object): def __init__(self): self._register = {} def add_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, set()) listeners.add(listener) self._register[event] = listeners def remove_listener(self, event, listener): event = event.upper() listeners = self._register.get(event, None) if listeners: listeners.remove(listener) def remove_event(self, event): event = event.upper() del self._register[event] def get_listeners(self, event): event = event.upper() return self._register.get(event, set()) class EventSource(ListenerRegister): def __init__(self): super(EventSource, self).__init__() def fire(self, event, *args, **kwargs): for each in self.get_listeners(event): each(*args, **kwargs) class TestClass(EventSource): def __init__(self): super(TestClass, self).__init__() print("ready") def event_occurs(self): # parameters for fire are 'event name' followed by anything you want to pass to the listener self.fire("big bang event", "what a blast!") def simple_listener(self, payload): print("Payload : {0}".format(payload)) def demo(): t = TestClass() # takes an event (any valid python object) and a listener (any valid python function) t.add_listener("big bang event", t.simple_listener) t.event_occurs() #when the event is fired in this method, the listener is informed if __name__ == '__main__': demo()