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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92dc2888c52bf6f73c5a4924c7e10dcc450e3897
|
api/v2/serializers/details/boot_script.py
|
api/v2/serializers/details/boot_script.py
|
from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all())
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
|
from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all(),
required=False)
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
|
Fix 'boot script' serializer to allow 'created_by' to be inferred as the request.user
|
Fix 'boot script' serializer to allow 'created_by' to be inferred as the request.user
|
Python
|
apache-2.0
|
CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend
|
from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all())
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
Fix 'boot script' serializer to allow 'created_by' to be inferred as the request.user
|
from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all(),
required=False)
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
|
<commit_before>from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all())
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
<commit_msg>Fix 'boot script' serializer to allow 'created_by' to be inferred as the request.user<commit_after>
|
from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all(),
required=False)
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
|
from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all())
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
Fix 'boot script' serializer to allow 'created_by' to be inferred as the request.userfrom core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all(),
required=False)
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
|
<commit_before>from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all())
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
<commit_msg>Fix 'boot script' serializer to allow 'created_by' to be inferred as the request.user<commit_after>from core.models.boot_script import BootScript, ScriptType
from core.models.user import AtmosphereUser
from rest_framework import serializers
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
slug_field='username', queryset=AtmosphereUser.objects.all(),
required=False)
text = serializers.CharField(source='script_text')
type = serializers.SlugRelatedField(
source='script_type',
slug_field='name',
queryset=ScriptType.objects.all())
def create(self, validated_data):
if 'created_by' not in validated_data:
request = self.context.get('request')
if request and request.user:
validated_data['created_by'] = request.user
return super(BootScriptSerializer, self).create(validated_data)
class Meta:
model = BootScript
# view_name = 'api:v2:boot_script-detail' -- not needed?
fields = ('id', 'created_by', 'title', 'text', 'type')
|
6b696435b83bd6e69c3fa1d7ba987f13952a574f
|
monasca_setup/detection/plugins/keystone.py
|
monasca_setup/detection/plugins/keystone.py
|
import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3.0.*'
}
super(Keystone, self).__init__(service_params)
|
import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3\..*'
}
super(Keystone, self).__init__(service_params)
|
Update search pattern for Keystone setup plugin
|
Update search pattern for Keystone setup plugin
Devstack (and possibly elsewhere) is using a newer version of keystone,
v3.4, so the match_pattern generated by the detection plugin (v3.0) was
failing. This patch changes the patter to match any "v3." version.
Change-Id: I68e77f5a4df511e5d61d82f57f8b6b5a0beaca62
|
Python
|
bsd-3-clause
|
sapcc/monasca-agent,sapcc/monasca-agent,sapcc/monasca-agent
|
import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3.0.*'
}
super(Keystone, self).__init__(service_params)
Update search pattern for Keystone setup plugin
Devstack (and possibly elsewhere) is using a newer version of keystone,
v3.4, so the match_pattern generated by the detection plugin (v3.0) was
failing. This patch changes the patter to match any "v3." version.
Change-Id: I68e77f5a4df511e5d61d82f57f8b6b5a0beaca62
|
import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3\..*'
}
super(Keystone, self).__init__(service_params)
|
<commit_before>import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3.0.*'
}
super(Keystone, self).__init__(service_params)
<commit_msg>Update search pattern for Keystone setup plugin
Devstack (and possibly elsewhere) is using a newer version of keystone,
v3.4, so the match_pattern generated by the detection plugin (v3.0) was
failing. This patch changes the patter to match any "v3." version.
Change-Id: I68e77f5a4df511e5d61d82f57f8b6b5a0beaca62<commit_after>
|
import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3\..*'
}
super(Keystone, self).__init__(service_params)
|
import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3.0.*'
}
super(Keystone, self).__init__(service_params)
Update search pattern for Keystone setup plugin
Devstack (and possibly elsewhere) is using a newer version of keystone,
v3.4, so the match_pattern generated by the detection plugin (v3.0) was
failing. This patch changes the patter to match any "v3." version.
Change-Id: I68e77f5a4df511e5d61d82f57f8b6b5a0beaca62import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3\..*'
}
super(Keystone, self).__init__(service_params)
|
<commit_before>import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3.0.*'
}
super(Keystone, self).__init__(service_params)
<commit_msg>Update search pattern for Keystone setup plugin
Devstack (and possibly elsewhere) is using a newer version of keystone,
v3.4, so the match_pattern generated by the detection plugin (v3.0) was
failing. This patch changes the patter to match any "v3." version.
Change-Id: I68e77f5a4df511e5d61d82f57f8b6b5a0beaca62<commit_after>import monasca_setup.detection
class Keystone(monasca_setup.detection.ServicePlugin):
"""Detect Keystone daemons and setup configuration to monitor them.
"""
def __init__(self, template_dir, overwrite=True, args=None):
service_params = {
'template_dir': template_dir,
'overwrite': overwrite,
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
'search_pattern': '.*v3\..*'
}
super(Keystone, self).__init__(service_params)
|
d18ae9c3e767e5b98db15731a03aad610aae4510
|
robber/matchers/contain.py
|
robber/matchers/contain.py
|
from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
for expected in expected_list:
if expected not in self.actual:
self.expected_arg = expected
return False
return True
else:
# As this is the negative case, we have to flip the return value.
for expected in expected_list:
if expected in self.actual:
self.expected_arg = expected
return True
return False
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
|
from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
excluded_args = set(expected_list).difference(self.actual)
try:
self.expected_arg = excluded_args.pop()
except KeyError:
return True
else:
return False
else:
# As this is the negative case, we have to flip the return value.
included_args = set(expected_list).intersection(self.actual)
try:
self.expected_arg = included_args.pop()
except KeyError:
return False
else:
return True
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
|
Use set's intersection and difference for better readability
|
[r] Use set's intersection and difference for better readability
|
Python
|
mit
|
vesln/robber.py
|
from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
for expected in expected_list:
if expected not in self.actual:
self.expected_arg = expected
return False
return True
else:
# As this is the negative case, we have to flip the return value.
for expected in expected_list:
if expected in self.actual:
self.expected_arg = expected
return True
return False
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
[r] Use set's intersection and difference for better readability
|
from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
excluded_args = set(expected_list).difference(self.actual)
try:
self.expected_arg = excluded_args.pop()
except KeyError:
return True
else:
return False
else:
# As this is the negative case, we have to flip the return value.
included_args = set(expected_list).intersection(self.actual)
try:
self.expected_arg = included_args.pop()
except KeyError:
return False
else:
return True
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
|
<commit_before>from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
for expected in expected_list:
if expected not in self.actual:
self.expected_arg = expected
return False
return True
else:
# As this is the negative case, we have to flip the return value.
for expected in expected_list:
if expected in self.actual:
self.expected_arg = expected
return True
return False
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
<commit_msg>[r] Use set's intersection and difference for better readability<commit_after>
|
from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
excluded_args = set(expected_list).difference(self.actual)
try:
self.expected_arg = excluded_args.pop()
except KeyError:
return True
else:
return False
else:
# As this is the negative case, we have to flip the return value.
included_args = set(expected_list).intersection(self.actual)
try:
self.expected_arg = included_args.pop()
except KeyError:
return False
else:
return True
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
|
from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
for expected in expected_list:
if expected not in self.actual:
self.expected_arg = expected
return False
return True
else:
# As this is the negative case, we have to flip the return value.
for expected in expected_list:
if expected in self.actual:
self.expected_arg = expected
return True
return False
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
[r] Use set's intersection and difference for better readabilityfrom robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
excluded_args = set(expected_list).difference(self.actual)
try:
self.expected_arg = excluded_args.pop()
except KeyError:
return True
else:
return False
else:
# As this is the negative case, we have to flip the return value.
included_args = set(expected_list).intersection(self.actual)
try:
self.expected_arg = included_args.pop()
except KeyError:
return False
else:
return True
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
|
<commit_before>from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
for expected in expected_list:
if expected not in self.actual:
self.expected_arg = expected
return False
return True
else:
# As this is the negative case, we have to flip the return value.
for expected in expected_list:
if expected in self.actual:
self.expected_arg = expected
return True
return False
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
<commit_msg>[r] Use set's intersection and difference for better readability<commit_after>from robber import expect
from robber.explanation import Explanation
from robber.matchers.base import Base
class Contain(Base):
"""
expect({'key': value}).to.contain('key 1', 'key 2', 'key n')
expect([1, 2, 3]).to.contain(1, 2, 3)
"""
def matches(self):
expected_list = list(self.args)
expected_list.insert(0, self.expected)
if not self.is_negative:
excluded_args = set(expected_list).difference(self.actual)
try:
self.expected_arg = excluded_args.pop()
except KeyError:
return True
else:
return False
else:
# As this is the negative case, we have to flip the return value.
included_args = set(expected_list).intersection(self.actual)
try:
self.expected_arg = included_args.pop()
except KeyError:
return False
else:
return True
@property
def explanation(self):
return Explanation(self.actual, self.is_negative, 'contain', self.expected_arg, negative_action='exclude')
expect.register('contain', Contain)
expect.register('exclude', Contain, is_negative=True)
|
ad70c54f2cd5a66d62f61b26e12b18c3bbfba45d
|
cms/migrations/0012_auto_20150607_2207.py
|
cms/migrations/0012_auto_20150607_2207.py
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import django.contrib.auth.models
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterModelManagers(
name='pageuser',
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
),
]
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
preserve_default=True,
),
]
|
Format migration for Django 1.7
|
Format migration for Django 1.7
|
Python
|
bsd-3-clause
|
rryan/django-cms,mkoistinen/django-cms,netzkolchose/django-cms,jeffreylu9/django-cms,Vegasvikk/django-cms,youprofit/django-cms,saintbird/django-cms,memnonila/django-cms,irudayarajisawa/django-cms,cyberintruder/django-cms,czpython/django-cms,Jaccorot/django-cms,jeffreylu9/django-cms,qnub/django-cms,frnhr/django-cms,memnonila/django-cms,rscnt/django-cms,rsalmaso/django-cms,sznekol/django-cms,czpython/django-cms,jeffreylu9/django-cms,SmithsonianEnterprises/django-cms,FinalAngel/django-cms,chkir/django-cms,sznekol/django-cms,evildmp/django-cms,rsalmaso/django-cms,datakortet/django-cms,netzkolchose/django-cms,jeffreylu9/django-cms,SachaMPS/django-cms,rsalmaso/django-cms,farhaadila/django-cms,bittner/django-cms,datakortet/django-cms,FinalAngel/django-cms,jproffitt/django-cms,dhorelik/django-cms,SofiaReis/django-cms,vxsx/django-cms,frnhr/django-cms,takeshineshiro/django-cms,leture/django-cms,SofiaReis/django-cms,jsma/django-cms,FinalAngel/django-cms,divio/django-cms,irudayarajisawa/django-cms,jproffitt/django-cms,nimbis/django-cms,petecummings/django-cms,SmithsonianEnterprises/django-cms,timgraham/django-cms,cyberintruder/django-cms,benzkji/django-cms,evildmp/django-cms,dhorelik/django-cms,saintbird/django-cms,mkoistinen/django-cms,chkir/django-cms,robmagee/django-cms,rryan/django-cms,irudayarajisawa/django-cms,chkir/django-cms,josjevv/django-cms,owers19856/django-cms,owers19856/django-cms,benzkji/django-cms,yakky/django-cms,wyg3958/django-cms,jsma/django-cms,yakky/django-cms,jsma/django-cms,SmithsonianEnterprises/django-cms,youprofit/django-cms,AlexProfi/django-cms,webu/django-cms,Jaccorot/django-cms,dhorelik/django-cms,takeshineshiro/django-cms,robmagee/django-cms,josjevv/django-cms,AlexProfi/django-cms,SachaMPS/django-cms,timgraham/django-cms,AlexProfi/django-cms,divio/django-cms,sznekol/django-cms,divio/django-cms,SachaMPS/django-cms,kk9599/django-cms,rryan/django-cms,benzkji/django-cms,petecummings/django-cms,Vegasvikk/django-cms,kk9599/django-cms,keimlink/django-cms,rscnt/django-cms,keimlink/django-cms,evildmp/django-cms,liuyisiyisi/django-cms,bittner/django-cms,petecummings/django-cms,jproffitt/django-cms,nimbis/django-cms,SofiaReis/django-cms,memnonila/django-cms,divio/django-cms,jproffitt/django-cms,benzkji/django-cms,philippze/django-cms,bittner/django-cms,farhaadila/django-cms,leture/django-cms,frnhr/django-cms,wyg3958/django-cms,iddqd1/django-cms,robmagee/django-cms,liuyisiyisi/django-cms,jsma/django-cms,owers19856/django-cms,evildmp/django-cms,youprofit/django-cms,netzkolchose/django-cms,chmberl/django-cms,yakky/django-cms,wyg3958/django-cms,philippze/django-cms,czpython/django-cms,yakky/django-cms,timgraham/django-cms,webu/django-cms,philippze/django-cms,takeshineshiro/django-cms,Vegasvikk/django-cms,datakortet/django-cms,liuyisiyisi/django-cms,vxsx/django-cms,farhaadila/django-cms,vxsx/django-cms,saintbird/django-cms,FinalAngel/django-cms,Jaccorot/django-cms,netzkolchose/django-cms,mkoistinen/django-cms,czpython/django-cms,iddqd1/django-cms,mkoistinen/django-cms,kk9599/django-cms,iddqd1/django-cms,bittner/django-cms,chmberl/django-cms,nimbis/django-cms,vxsx/django-cms,josjevv/django-cms,chmberl/django-cms,rscnt/django-cms,qnub/django-cms,nimbis/django-cms,leture/django-cms,rryan/django-cms,frnhr/django-cms,webu/django-cms,qnub/django-cms,datakortet/django-cms,rsalmaso/django-cms,keimlink/django-cms,cyberintruder/django-cms
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import django.contrib.auth.models
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterModelManagers(
name='pageuser',
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
),
]
Format migration for Django 1.7
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
preserve_default=True,
),
]
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import django.contrib.auth.models
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterModelManagers(
name='pageuser',
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
),
]
<commit_msg>Format migration for Django 1.7<commit_after>
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
preserve_default=True,
),
]
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import django.contrib.auth.models
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterModelManagers(
name='pageuser',
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
),
]
Format migration for Django 1.7# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
preserve_default=True,
),
]
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import django.contrib.auth.models
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterModelManagers(
name='pageuser',
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
),
]
<commit_msg>Format migration for Django 1.7<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('cms', '0011_auto_20150419_1006'),
]
operations = [
migrations.AlterField(
model_name='globalpagepermission',
name='sites',
field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='usersettings',
name='user',
field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
preserve_default=True,
),
]
|
fe15498e745ce3a5f5e4c47f229ca6dbd5e921c5
|
tests/test_product_tags.py
|
tests/test_product_tags.py
|
from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/product-image-placeholder.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
|
from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/placeholder60x60.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
|
Replace placeholder image in tests
|
Replace placeholder image in tests
|
Python
|
bsd-3-clause
|
KenMutemi/saleor,itbabu/saleor,HyperManTT/ECommerceSaleor,HyperManTT/ECommerceSaleor,maferelo/saleor,maferelo/saleor,tfroehlich82/saleor,KenMutemi/saleor,jreigel/saleor,itbabu/saleor,jreigel/saleor,UITools/saleor,HyperManTT/ECommerceSaleor,KenMutemi/saleor,itbabu/saleor,mociepka/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,UITools/saleor,tfroehlich82/saleor,tfroehlich82/saleor,UITools/saleor,mociepka/saleor,jreigel/saleor
|
from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/product-image-placeholder.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
Replace placeholder image in tests
|
from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/placeholder60x60.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
|
<commit_before>from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/product-image-placeholder.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
<commit_msg>Replace placeholder image in tests<commit_after>
|
from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/placeholder60x60.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
|
from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/product-image-placeholder.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
Replace placeholder image in testsfrom mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/placeholder60x60.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
|
<commit_before>from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/product-image-placeholder.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
<commit_msg>Replace placeholder image in tests<commit_after>from mock import Mock
from django.contrib.staticfiles.templatetags.staticfiles import static
from saleor.product.templatetags.product_images import (
get_thumbnail, product_first_image)
def test_get_thumbnail():
instance = Mock()
cropped_value = Mock(url='crop.jpg')
thumbnail_value = Mock(url='thumb.jpg')
instance.crop = {'10x10': cropped_value}
instance.thumbnail = {'10x10': thumbnail_value}
cropped = get_thumbnail(instance, '10x10', method='crop')
assert cropped == cropped_value.url
thumb = get_thumbnail(instance, '10x10', method='thumbnail')
assert thumb == thumbnail_value.url
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
assert output == static('images/placeholder60x60.png')
def test_product_first_image():
mock_product_image = Mock()
mock_product_image.image = Mock()
mock_product_image.image.crop = {'10x10': Mock(url='crop.jpg')}
mock_queryset = Mock()
mock_queryset.all.return_value = [mock_product_image]
mock_product = Mock(images=mock_queryset)
out = product_first_image(mock_product, '10x10', method='crop')
assert out == 'crop.jpg'
|
c28de968845f98c6590784df1fe5beff7b3d021e
|
workshops/templatetags/training_progress.py
|
workshops/templatetags/training_progress.py
|
from django import template
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
|
from django import template
from django.template.defaultfilters import escape
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
|
Fix unescaped content in training progress description templatetag
|
Fix unescaped content in training progress description templatetag
This template tag was using content from entry notes directly. In cases
of some users this messed up the display of label in the templates.
|
Python
|
mit
|
pbanaszkiewicz/amy,pbanaszkiewicz/amy,swcarpentry/amy,swcarpentry/amy,pbanaszkiewicz/amy,swcarpentry/amy
|
from django import template
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
Fix unescaped content in training progress description templatetag
This template tag was using content from entry notes directly. In cases
of some users this messed up the display of label in the templates.
|
from django import template
from django.template.defaultfilters import escape
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
|
<commit_before>from django import template
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
<commit_msg>Fix unescaped content in training progress description templatetag
This template tag was using content from entry notes directly. In cases
of some users this messed up the display of label in the templates.<commit_after>
|
from django import template
from django.template.defaultfilters import escape
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
|
from django import template
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
Fix unescaped content in training progress description templatetag
This template tag was using content from entry notes directly. In cases
of some users this messed up the display of label in the templates.from django import template
from django.template.defaultfilters import escape
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
|
<commit_before>from django import template
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(progress.notes) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
<commit_msg>Fix unescaped content in training progress description templatetag
This template tag was using content from entry notes directly. In cases
of some users this messed up the display of label in the templates.<commit_after>from django import template
from django.template.defaultfilters import escape
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
register = template.Library()
@register.simple_tag
def progress_label(progress):
assert isinstance(progress, TrainingProgress)
if progress.discarded:
additional_label = 'default'
else:
switch = {
'n': 'warning',
'f': 'danger',
'p': 'success',
}
additional_label = switch[progress.state]
fmt = 'label label-{}'.format(additional_label)
return mark_safe(fmt)
@register.simple_tag
def progress_description(progress):
assert isinstance(progress, TrainingProgress)
text = '{discarded}{state} {type}<br />{evaluated_by}<br />on {day}.{notes}'.format(
discarded='discarded ' if progress.discarded else '',
state=progress.get_state_display(),
type=progress.requirement,
evaluated_by=('evaluated by {}'.format(
progress.evaluated_by.full_name)
if progress.evaluated_by is not None else 'submitted'),
day=progress.created_at.strftime('%A %d %B %Y at %H:%M'),
notes='<br />Notes: {}'.format(escape(progress.notes)) if progress.notes else '',
)
text = text[0].upper() + text[1:]
return mark_safe(text)
|
9a2d3c2a576597730b7316ddbf7169ed3164a690
|
rtgraph/core/constants.py
|
rtgraph/core/constants.py
|
from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "../data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
|
from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
|
Update export path to new structure
|
Update export path to new structure
|
Python
|
mit
|
ssepulveda/RTGraph
|
from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "../data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
Update export path to new structure
|
from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
|
<commit_before>from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "../data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
<commit_msg>Update export path to new structure<commit_after>
|
from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
|
from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "../data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
Update export path to new structurefrom enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
|
<commit_before>from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "../data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
<commit_msg>Update export path to new structure<commit_after>from enum import Enum
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
app_export_path = "data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
plot_update_ms = 16
plot_xlabel_title = "Time"
plot_xlabel_unit = "s"
plot_colors = ['#0072bd', '#d95319', '#edb120', '#7e2f8e', '#77ac30', '#4dbeee', '#a2142f']
process_join_timeout_ms = 1000
argument_default_samples = 500
serial_default_speed = 115200
serial_timeout_ms = 0.5
simulator_default_speed = 0.002
csv_default_filename = "%Y-%m-%d_%H-%M-%S"
csv_delimiter = ","
csv_extension = "csv"
parser_timeout_ms = 0.05
log_filename = "{}.log".format(app_title)
log_max_bytes = 5120
log_default_level = 1
log_default_console_log = False
class MinimalPython:
major = 3
minor = 2
release = 0
class SourceType(Enum):
simulator = 1
serial = 0
|
e85bfff982d14b556d2cab5d3b5535c37333cc3e
|
normandy/control/views.py
|
normandy/control/views.py
|
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.order_by('-start_time')[:5]
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
|
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.all()
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
|
Remove limit on recipe list object
|
Remove limit on recipe list object
|
Python
|
mpl-2.0
|
Osmose/normandy,mozilla/normandy,mozilla/normandy,Osmose/normandy,Osmose/normandy,mozilla/normandy,mozilla/normandy,Osmose/normandy
|
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.order_by('-start_time')[:5]
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
Remove limit on recipe list object
|
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.all()
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
|
<commit_before>from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.order_by('-start_time')[:5]
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
<commit_msg>Remove limit on recipe list object<commit_after>
|
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.all()
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
|
from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.order_by('-start_time')[:5]
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
Remove limit on recipe list objectfrom django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.all()
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
|
<commit_before>from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.order_by('-start_time')[:5]
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
<commit_msg>Remove limit on recipe list object<commit_after>from django.views import generic
from django.contrib.auth.mixins import LoginRequiredMixin
from normandy.recipes.models import Recipe
class IndexView(LoginRequiredMixin, generic.ListView):
template_name = 'control/index.html'
context_object_name = 'all_recipes_list'
login_url = '/control/login/'
def get_queryset(self):
return Recipe.objects.all()
class EditView(LoginRequiredMixin, generic.DetailView):
model = Recipe
template_name = 'control/edit_recipe.html'
login_url = '/control/login/'
|
8013e6b297ac79933a49760c7ba868a5419689b2
|
models/work_in_progress/src/train_ping.py
|
models/work_in_progress/src/train_ping.py
|
import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay)
|
import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
save = False
## save model
#data = 'iOS',
#models = 'full',
#plot_dir = ''
#save = True
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay,
save=save)
|
Add option to save model in script
|
Add option to save model in script
|
Python
|
bsd-3-clause
|
lisa-lab/pings,lisa-lab/pings,lisa-lab/pings,lisa-lab/pings
|
import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay)
Add option to save model in script
|
import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
save = False
## save model
#data = 'iOS',
#models = 'full',
#plot_dir = ''
#save = True
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay,
save=save)
|
<commit_before>import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay)
<commit_msg>Add option to save model in script<commit_after>
|
import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
save = False
## save model
#data = 'iOS',
#models = 'full',
#plot_dir = ''
#save = True
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay,
save=save)
|
import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay)
Add option to save model in scriptimport graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
save = False
## save model
#data = 'iOS',
#models = 'full',
#plot_dir = ''
#save = True
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay,
save=save)
|
<commit_before>import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay)
<commit_msg>Add option to save model in script<commit_after>import graph
# default
data = ('iOS', 'iOS-wifi', 'AC', 'IC2012')
models = ('constant', 'distance', 'countries', 'full')
plot_dir = '../../report2/figures'
show_plots = False
oa_max_delay = [5000.]
save = False
## save model
#data = 'iOS',
#models = 'full',
#plot_dir = ''
#save = True
for d in data:
print '#' * 70
print '#' * 3, d
print '#' * 70
for m in models:
print
print '#' * 4, m
graph.train_model(model=m,
data=d,
plot_dir=plot_dir,
plot_accuracy=True,
show_plots=show_plots,
oa_max_delay=oa_max_delay,
save=save)
|
933b6f7881877726e28de352adb166f8355122aa
|
Lib/test/test_pep263.py
|
Lib/test/test_pep263.py
|
#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
|
#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
b'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
|
Fix the test; solution found by Christian Heimes. Thanks!
|
Fix the test; solution found by Christian Heimes. Thanks!
|
Python
|
mit
|
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
|
#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
Fix the test; solution found by Christian Heimes. Thanks!
|
#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
b'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
|
<commit_before>#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
<commit_msg>Fix the test; solution found by Christian Heimes. Thanks!<commit_after>
|
#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
b'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
|
#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
Fix the test; solution found by Christian Heimes. Thanks!#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
b'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
|
<commit_before>#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
<commit_msg>Fix the test; solution found by Christian Heimes. Thanks!<commit_after>#! -*- coding: koi8-r -*-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
import unittest
from test import test_support
class PEP263Test(unittest.TestCase):
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
b'\\\xd0\x9f'
)
def test_main():
test_support.run_unittest(PEP263Test)
if __name__=="__main__":
test_main()
|
b0dbd7029f003538ddef9f3a5f8035f8691bf4d7
|
shuup/core/utils/shops.py
|
shuup/core/utils/shops.py
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop and ":" in host:
shop = Shop.objects.filter(domain=host.rsplit(":")[0]).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
|
Make handle ports better when choosing shop
|
Make handle ports better when choosing shop
Refs EE-235
|
Python
|
agpl-3.0
|
shoopio/shoop,shoopio/shoop,shoopio/shoop
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
Make handle ports better when choosing shop
Refs EE-235
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop and ":" in host:
shop = Shop.objects.filter(domain=host.rsplit(":")[0]).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
|
<commit_before># -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
<commit_msg>Make handle ports better when choosing shop
Refs EE-235<commit_after>
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop and ":" in host:
shop = Shop.objects.filter(domain=host.rsplit(":")[0]).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
|
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
Make handle ports better when choosing shop
Refs EE-235# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop and ":" in host:
shop = Shop.objects.filter(domain=host.rsplit(":")[0]).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
|
<commit_before># -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
<commit_msg>Make handle ports better when choosing shop
Refs EE-235<commit_after># -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from shuup.core.models import Shop
def get_shop_from_host(host):
"""
Try to find a shop that matches a `host`
e.g: shop.domain.com, domain.com, localhost:8000
:type host str
"""
shop = Shop.objects.filter(domain=host).first()
if not shop and ":" in host:
shop = Shop.objects.filter(domain=host.rsplit(":")[0]).first()
if not shop:
subdomain = host.split(".")[0]
shop = Shop.objects.filter(domain=subdomain).first()
return shop
|
864ca84558e9984399dd02fba611afdafd2d5015
|
silver/tests/factories.py
|
silver/tests/factories.py
|
import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
|
import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
name = factory.Sequence(lambda n: 'Provider{cnt}'.format(cnt=n))
company = factory.Sequence(lambda n: 'Company{cnt}'.format(cnt=n))
address_1 = factory.Sequence(lambda n: 'Address_1{cnt}'.format(cnt=n))
country = 'RO'
city = factory.Sequence(lambda n: 'City{cnt}'.format(cnt=n))
zip_code = factory.Sequence(lambda n: '{cnt}'.format(cnt=n))
|
Update the factory for Provider
|
Update the factory for Provider
|
Python
|
apache-2.0
|
PressLabs/silver,PressLabs/silver,PressLabs/silver
|
import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
Update the factory for Provider
|
import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
name = factory.Sequence(lambda n: 'Provider{cnt}'.format(cnt=n))
company = factory.Sequence(lambda n: 'Company{cnt}'.format(cnt=n))
address_1 = factory.Sequence(lambda n: 'Address_1{cnt}'.format(cnt=n))
country = 'RO'
city = factory.Sequence(lambda n: 'City{cnt}'.format(cnt=n))
zip_code = factory.Sequence(lambda n: '{cnt}'.format(cnt=n))
|
<commit_before>import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
<commit_msg>Update the factory for Provider<commit_after>
|
import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
name = factory.Sequence(lambda n: 'Provider{cnt}'.format(cnt=n))
company = factory.Sequence(lambda n: 'Company{cnt}'.format(cnt=n))
address_1 = factory.Sequence(lambda n: 'Address_1{cnt}'.format(cnt=n))
country = 'RO'
city = factory.Sequence(lambda n: 'City{cnt}'.format(cnt=n))
zip_code = factory.Sequence(lambda n: '{cnt}'.format(cnt=n))
|
import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
Update the factory for Providerimport factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
name = factory.Sequence(lambda n: 'Provider{cnt}'.format(cnt=n))
company = factory.Sequence(lambda n: 'Company{cnt}'.format(cnt=n))
address_1 = factory.Sequence(lambda n: 'Address_1{cnt}'.format(cnt=n))
country = 'RO'
city = factory.Sequence(lambda n: 'City{cnt}'.format(cnt=n))
zip_code = factory.Sequence(lambda n: '{cnt}'.format(cnt=n))
|
<commit_before>import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
<commit_msg>Update the factory for Provider<commit_after>import factory
from silver.models import Provider
class ProviderFactory(factory.django.DjangoModelFactory):
class Meta:
model = Provider
name = factory.Sequence(lambda n: 'Provider{cnt}'.format(cnt=n))
company = factory.Sequence(lambda n: 'Company{cnt}'.format(cnt=n))
address_1 = factory.Sequence(lambda n: 'Address_1{cnt}'.format(cnt=n))
country = 'RO'
city = factory.Sequence(lambda n: 'City{cnt}'.format(cnt=n))
zip_code = factory.Sequence(lambda n: '{cnt}'.format(cnt=n))
|
55e8d525d7e06deeb6450eb5706f1f4ccbb11e66
|
index.py
|
index.py
|
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:i
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if input_file_b == None or input_file_t == None or output_file == None:
usage()
sys.exit(2)
|
from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if dir_doc == None or dict_file == None or postings_file == None:
usage()
sys.exit(2)
|
Add missing imports, correct indentation
|
Add missing imports, correct indentation
|
Python
|
mit
|
ikaruswill/boolean-retrieval,ikaruswill/vector-space-model
|
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:i
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if input_file_b == None or input_file_t == None or output_file == None:
usage()
sys.exit(2)Add missing imports, correct indentation
|
from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if dir_doc == None or dict_file == None or postings_file == None:
usage()
sys.exit(2)
|
<commit_before>
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:i
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if input_file_b == None or input_file_t == None or output_file == None:
usage()
sys.exit(2)<commit_msg>Add missing imports, correct indentation<commit_after>
|
from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if dir_doc == None or dict_file == None or postings_file == None:
usage()
sys.exit(2)
|
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:i
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if input_file_b == None or input_file_t == None or output_file == None:
usage()
sys.exit(2)Add missing imports, correct indentationfrom nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if dir_doc == None or dict_file == None or postings_file == None:
usage()
sys.exit(2)
|
<commit_before>
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:i
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if input_file_b == None or input_file_t == None or output_file == None:
usage()
sys.exit(2)<commit_msg>Add missing imports, correct indentation<commit_after>from nltk.tokenize import word_tokenize, sent_tokenize
import getopt
import sys
import os
import io
def usage():
print("usage: " + sys.argv[0] + " -i directory-of-documents -d dictionary-file -p postings-file")
if __name__ == '__main__':
dir_doc = dict_file = postings_file = None
try:
opts, args = getopt.getopt(sys.argv[1:], 'i:d:p:')
except getopt.GetoptError as err:
usage()
sys.exit(2)
for o, a in opts:
if o == '-i':
dir_doc = a
elif o == '-d':
dict_file = a
elif o == '-p':
postings_file = a
else:
assert False, "unhandled option"
if dir_doc == None or dict_file == None or postings_file == None:
usage()
sys.exit(2)
|
4416b7ce97ccf6d9b1abab59cd5a404cf5bfe3e9
|
linter.py
|
linter.py
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# Copyright (c) 2015 jfcherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
error_stream = util.STREAM_BOTH
# what kind of message should be caught?
if sublime.platform() == 'windows':
regex = (
r'^([^:]+):.*:(?P<line>\d*):'
r'.((?P<error>error)|(?P<warning>warning))?'
r'(?P<message>.*)'
)
else:
regex = (
r'^([^:]+):(?P<line>\d+): '
r'(?:(?P<error>error)|(?P<warning>warning): )?'
r'(?P<message>.+)'
)
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
# Copyright (c) 2015 jfcherng
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
multiline = False
error_stream = util.STREAM_BOTH
# there is a ":" in the filepath under Windows
# like C:\SOME_FOLDERS\...\FILE
if sublime.platform() == 'windows':
filepath = r'[^:]+:[^:]+'
else:
filepath = r'[^:]+'
# what kind of message should be caught?
regex = (
r'(?P<file>{0}):(?P<line>\d+): '
r'((?P<warning>warning: )|(?P<error>error: |))'
r'(?P<message>.*)'
.format(filepath)
)
|
Add match error msg pattern like "<file>:<line>: syntax error"
|
Add match error msg pattern like "<file>:<line>: syntax error"
This error msg is available in iverilog 0.10.0 (devel).
|
Python
|
mit
|
jfcherng/SublimeLinter-contrib-iverilog,jfcherng/SublimeLinter-contrib-iverilog
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# Copyright (c) 2015 jfcherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
error_stream = util.STREAM_BOTH
# what kind of message should be caught?
if sublime.platform() == 'windows':
regex = (
r'^([^:]+):.*:(?P<line>\d*):'
r'.((?P<error>error)|(?P<warning>warning))?'
r'(?P<message>.*)'
)
else:
regex = (
r'^([^:]+):(?P<line>\d+): '
r'(?:(?P<error>error)|(?P<warning>warning): )?'
r'(?P<message>.+)'
)
Add match error msg pattern like "<file>:<line>: syntax error"
This error msg is available in iverilog 0.10.0 (devel).
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
# Copyright (c) 2015 jfcherng
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
multiline = False
error_stream = util.STREAM_BOTH
# there is a ":" in the filepath under Windows
# like C:\SOME_FOLDERS\...\FILE
if sublime.platform() == 'windows':
filepath = r'[^:]+:[^:]+'
else:
filepath = r'[^:]+'
# what kind of message should be caught?
regex = (
r'(?P<file>{0}):(?P<line>\d+): '
r'((?P<warning>warning: )|(?P<error>error: |))'
r'(?P<message>.*)'
.format(filepath)
)
|
<commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# Copyright (c) 2015 jfcherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
error_stream = util.STREAM_BOTH
# what kind of message should be caught?
if sublime.platform() == 'windows':
regex = (
r'^([^:]+):.*:(?P<line>\d*):'
r'.((?P<error>error)|(?P<warning>warning))?'
r'(?P<message>.*)'
)
else:
regex = (
r'^([^:]+):(?P<line>\d+): '
r'(?:(?P<error>error)|(?P<warning>warning): )?'
r'(?P<message>.+)'
)
<commit_msg>Add match error msg pattern like "<file>:<line>: syntax error"
This error msg is available in iverilog 0.10.0 (devel).<commit_after>
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
# Copyright (c) 2015 jfcherng
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
multiline = False
error_stream = util.STREAM_BOTH
# there is a ":" in the filepath under Windows
# like C:\SOME_FOLDERS\...\FILE
if sublime.platform() == 'windows':
filepath = r'[^:]+:[^:]+'
else:
filepath = r'[^:]+'
# what kind of message should be caught?
regex = (
r'(?P<file>{0}):(?P<line>\d+): '
r'((?P<warning>warning: )|(?P<error>error: |))'
r'(?P<message>.*)'
.format(filepath)
)
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# Copyright (c) 2015 jfcherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
error_stream = util.STREAM_BOTH
# what kind of message should be caught?
if sublime.platform() == 'windows':
regex = (
r'^([^:]+):.*:(?P<line>\d*):'
r'.((?P<error>error)|(?P<warning>warning))?'
r'(?P<message>.*)'
)
else:
regex = (
r'^([^:]+):(?P<line>\d+): '
r'(?:(?P<error>error)|(?P<warning>warning): )?'
r'(?P<message>.+)'
)
Add match error msg pattern like "<file>:<line>: syntax error"
This error msg is available in iverilog 0.10.0 (devel).#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
# Copyright (c) 2015 jfcherng
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
multiline = False
error_stream = util.STREAM_BOTH
# there is a ":" in the filepath under Windows
# like C:\SOME_FOLDERS\...\FILE
if sublime.platform() == 'windows':
filepath = r'[^:]+:[^:]+'
else:
filepath = r'[^:]+'
# what kind of message should be caught?
regex = (
r'(?P<file>{0}):(?P<line>\d+): '
r'((?P<warning>warning: )|(?P<error>error: |))'
r'(?P<message>.*)'
.format(filepath)
)
|
<commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# Copyright (c) 2015 jfcherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
error_stream = util.STREAM_BOTH
# what kind of message should be caught?
if sublime.platform() == 'windows':
regex = (
r'^([^:]+):.*:(?P<line>\d*):'
r'.((?P<error>error)|(?P<warning>warning))?'
r'(?P<message>.*)'
)
else:
regex = (
r'^([^:]+):(?P<line>\d+): '
r'(?:(?P<error>error)|(?P<warning>warning): )?'
r'(?P<message>.+)'
)
<commit_msg>Add match error msg pattern like "<file>:<line>: syntax error"
This error msg is available in iverilog 0.10.0 (devel).<commit_after>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Jack Cherng
# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
# Copyright (c) 2015 jfcherng
#
# License: MIT
#
import sublime
from SublimeLinter.lint import Linter, util
class Iverilog(Linter):
# linter basic settings
syntax = ('verilog')
cmd = 'iverilog -t null'
tempfile_suffix = 'verilog'
multiline = False
error_stream = util.STREAM_BOTH
# there is a ":" in the filepath under Windows
# like C:\SOME_FOLDERS\...\FILE
if sublime.platform() == 'windows':
filepath = r'[^:]+:[^:]+'
else:
filepath = r'[^:]+'
# what kind of message should be caught?
regex = (
r'(?P<file>{0}):(?P<line>\d+): '
r'((?P<warning>warning: )|(?P<error>error: |))'
r'(?P<message>.*)'
.format(filepath)
)
|
9d78bc8bbe8d0065debd8b4e5e72ed73f135ed63
|
linter.py
|
linter.py
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
comment_re = r'\s*#'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
check_version = False
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
|
Remove deprecated attributes comment_re and check_version
|
Remove deprecated attributes comment_re and check_version
|
Python
|
mit
|
maristgeek/SublimeLinter-contrib-bashate
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
comment_re = r'\s*#'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
check_version = False
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
Remove deprecated attributes comment_re and check_version
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
|
<commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
comment_re = r'\s*#'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
check_version = False
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
<commit_msg>Remove deprecated attributes comment_re and check_version<commit_after>
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
|
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
comment_re = r'\s*#'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
check_version = False
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
Remove deprecated attributes comment_re and check_version#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
|
<commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
comment_re = r'\s*#'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
check_version = False
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
<commit_msg>Remove deprecated attributes comment_re and check_version<commit_after>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Ben Stoutenburgh
# Copyright (c) 2016 Ben Stoutenburgh
#
# License: MIT
#
"""This module exports the Bashate plugin class."""
from SublimeLinter.lint import Linter
import os
class Bashate(Linter):
"""Provides an interface to bashate."""
cmd = 'bashate'
regex = (
r'^.+:(?P<line>\d+):1: (?:(?P<error>E)|(?P<warning>W))\d{3} (?P<message>.+)'
)
defaults = {
'selector': 'source.shell.bash',
'--ignore=,': '',
'--warn=,': '',
'--error=,': ''
}
tempfile_suffix = 'sh'
def tmpfile(self, cmd, code, suffix=''):
"""
Run an external executable using a temp file to pass code and return its output.
We override this to have the tmpfile extension match what is being
linted so E005 is valid.
"""
filename, extension = os.path.splitext(self.filename)
extension = '.missingextension' if not extension else extension
return super().tmpfile(cmd, code, extension)
|
8563b63c94d30a0032ffcfa3e7a5bc1e72c2a42e
|
services/myspace.py
|
services/myspace.py
|
import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
|
import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
|
Remove an unnecessary blank line
|
Remove an unnecessary blank line
|
Python
|
bsd-3-clause
|
foauth/foauth.org,foauth/foauth.org,foauth/foauth.org,foauth/oauth-proxy
|
import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
Remove an unnecessary blank line
|
import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
|
<commit_before>import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
<commit_msg>Remove an unnecessary blank line<commit_after>
|
import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
|
import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
Remove an unnecessary blank lineimport foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
|
<commit_before>import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
<commit_msg>Remove an unnecessary blank line<commit_after>import foauth.providers
class MySpace(foauth.providers.OAuth1):
# General info about the provider
provider_url = 'http://www.myspace.com/'
docs_url = 'http://developerwiki.myspace.com/index.php?title=RESTful_API_Overview'
category = 'Social'
# URLs to interact with the API
request_token_url = 'http://api.myspace.com/request_token'
authorize_url = 'http://api.myspace.com/authorize'
access_token_url = 'http://api.myspace.com/access_token'
api_domain = 'api.myspace.com'
available_permissions = [
(None, 'read and write your social information'),
]
|
6cfd296a86c1b475101c179a45a7453b76dcbfd5
|
riak/util.py
|
riak/util.py
|
import collections
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, collections.Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
|
try:
from collections import Mapping
except ImportError:
# compatibility with Python 2.5
Mapping = dict
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
|
Adjust for compatibility with Python 2.5
|
Adjust for compatibility with Python 2.5
|
Python
|
apache-2.0
|
basho/riak-python-client,GabrielNicolasAvellaneda/riak-python-client,GabrielNicolasAvellaneda/riak-python-client,bmess/riak-python-client,basho/riak-python-client,basho/riak-python-client,bmess/riak-python-client
|
import collections
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, collections.Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
Adjust for compatibility with Python 2.5
|
try:
from collections import Mapping
except ImportError:
# compatibility with Python 2.5
Mapping = dict
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
|
<commit_before>import collections
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, collections.Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
<commit_msg>Adjust for compatibility with Python 2.5<commit_after>
|
try:
from collections import Mapping
except ImportError:
# compatibility with Python 2.5
Mapping = dict
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
|
import collections
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, collections.Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
Adjust for compatibility with Python 2.5try:
from collections import Mapping
except ImportError:
# compatibility with Python 2.5
Mapping = dict
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
|
<commit_before>import collections
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, collections.Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
<commit_msg>Adjust for compatibility with Python 2.5<commit_after>try:
from collections import Mapping
except ImportError:
# compatibility with Python 2.5
Mapping = dict
def quacks_like_dict(object):
"""Check if object is dict-like"""
return isinstance(object, Mapping)
def deep_merge(a, b):
"""Merge two deep dicts non-destructively
Uses a stack to avoid maximum recursion depth exceptions
>>> a = {'a': 1, 'b': {1: 1, 2: 2}, 'd': 6}
>>> b = {'c': 3, 'b': {2: 7}, 'd': {'z': [1, 2, 3]}}
>>> c = merge(a, b)
>>> from pprint import pprint; pprint(c)
{'a': 1, 'b': {1: 1, 2: 7}, 'c': 3, 'd': {'z': [1, 2, 3]}}
"""
assert quacks_like_dict(a), quacks_like_dict(b)
dst = a.copy()
stack = [(dst, b)]
while stack:
current_dst, current_src = stack.pop()
for key in current_src:
if key not in current_dst:
current_dst[key] = current_src[key]
else:
if quacks_like_dict(current_src[key]) and quacks_like_dict(current_dst[key]) :
stack.append((current_dst[key], current_src[key]))
else:
current_dst[key] = current_src[key]
return dst
|
6dc561a0ec435d43105be7a71be6344888429f8c
|
plugins/LocalFileOutputDevice/__init__.py
|
plugins/LocalFileOutputDevice/__init__.py
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files"),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files."),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
|
Add period at end of description
|
Add period at end of description
This is in line with other plug-ins.
Contributes to issue CURA-1190.
|
Python
|
agpl-3.0
|
onitake/Uranium,onitake/Uranium
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files"),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
Add period at end of description
This is in line with other plug-ins.
Contributes to issue CURA-1190.
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files."),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
|
<commit_before># Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files"),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
<commit_msg>Add period at end of description
This is in line with other plug-ins.
Contributes to issue CURA-1190.<commit_after>
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files."),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files"),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
Add period at end of description
This is in line with other plug-ins.
Contributes to issue CURA-1190.# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files."),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
|
<commit_before># Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files"),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
<commit_msg>Add period at end of description
This is in line with other plug-ins.
Contributes to issue CURA-1190.<commit_after># Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import LocalFileOutputDevicePlugin
from UM.i18n import i18nCatalog
catalog = i18nCatalog("uranium")
def getMetaData():
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
"description": catalog.i18nc("@info:whatsthis", "Enables saving to local files."),
"author": "Ultimaker B.V.",
"version": "1.0",
"api": 2,
}
}
def register(app):
return { "output_device": LocalFileOutputDevicePlugin.LocalFileOutputDevicePlugin() }
|
05c31095ee828bfe455ad93befc5d189b9d0edc5
|
wallace/__init__.py
|
wallace/__init__.py
|
from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents',
'sources', 'networks', 'processes']
|
from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents', 'sources', 'networks',
'processes', 'transformations']
|
Add transformations to Wallace init
|
Add transformations to Wallace init
|
Python
|
mit
|
Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,berkeley-cocosci/Wallace,berkeley-cocosci/Wallace,suchow/Wallace,Dallinger/Dallinger,Dallinger/Dallinger,suchow/Wallace,Dallinger/Dallinger,berkeley-cocosci/Wallace,jcpeterson/Dallinger,suchow/Wallace,Dallinger/Dallinger
|
from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents',
'sources', 'networks', 'processes']
Add transformations to Wallace init
|
from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents', 'sources', 'networks',
'processes', 'transformations']
|
<commit_before>from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents',
'sources', 'networks', 'processes']
<commit_msg>Add transformations to Wallace init<commit_after>
|
from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents', 'sources', 'networks',
'processes', 'transformations']
|
from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents',
'sources', 'networks', 'processes']
Add transformations to Wallace initfrom . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents', 'sources', 'networks',
'processes', 'transformations']
|
<commit_before>from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents',
'sources', 'networks', 'processes']
<commit_msg>Add transformations to Wallace init<commit_after>from . import models, information, agents, networks, processes
__all__ = ['models', 'information', 'agents', 'sources', 'networks',
'processes', 'transformations']
|
1faaf698ca3fc33eb4bf8fc9e8ae87d4ec582486
|
spacy/fr/language_data.py
|
spacy/fr/language_data.py
|
# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
|
# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .punctuation import ELISION
from ..symbols import *
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
ABBREVIATIONS = {
"janv.": [
{LEMMA: "janvier", ORTH: "janv."}
],
"févr.": [
{LEMMA: "février", ORTH: "févr."}
],
"avr.": [
{LEMMA: "avril", ORTH: "avr."}
],
"juill.": [
{LEMMA: "juillet", ORTH: "juill."}
],
"sept.": [
{LEMMA: "septembre", ORTH: "sept."}
],
"oct.": [
{LEMMA: "octobre", ORTH: "oct."}
],
"nov.": [
{LEMMA: "novembre", ORTH: "nov."}
],
"déc.": [
{LEMMA: "décembre", ORTH: "déc."}
],
}
INFIXES_EXCEPTIONS_BASE = ["aujourd'hui",
"prud'homme", "prud'hommes",
"prud'homal", "prud'homaux", "prud'homale",
"prud'homales",
"prud'hommal", "prud'hommaux", "prud'hommale",
"prud'hommales",
"prud'homie", "prud'homies",
"prud'hommesque", "prud'hommesques",
"prud'hommesquement"]
INFIXES_EXCEPTIONS = []
for elision_char in ELISION:
INFIXES_EXCEPTIONS += [infix.replace("'", elision_char)
for infix in INFIXES_EXCEPTIONS_BASE]
INFIXES_EXCEPTIONS += [word.capitalize() for word in INFIXES_EXCEPTIONS]
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(INFIXES_EXCEPTIONS))
update_exc(TOKENIZER_EXCEPTIONS, ABBREVIATIONS)
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
|
Add infixes and abbreviation exceptions (fr)
|
Add infixes and abbreviation exceptions (fr)
|
Python
|
mit
|
recognai/spaCy,Gregory-Howard/spaCy,aikramer2/spaCy,recognai/spaCy,aikramer2/spaCy,recognai/spaCy,explosion/spaCy,explosion/spaCy,aikramer2/spaCy,explosion/spaCy,raphael0202/spaCy,recognai/spaCy,honnibal/spaCy,Gregory-Howard/spaCy,raphael0202/spaCy,explosion/spaCy,oroszgy/spaCy.hu,oroszgy/spaCy.hu,banglakit/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,Gregory-Howard/spaCy,spacy-io/spaCy,raphael0202/spaCy,raphael0202/spaCy,banglakit/spaCy,raphael0202/spaCy,aikramer2/spaCy,banglakit/spaCy,spacy-io/spaCy,Gregory-Howard/spaCy,banglakit/spaCy,oroszgy/spaCy.hu,spacy-io/spaCy,honnibal/spaCy,Gregory-Howard/spaCy,recognai/spaCy,spacy-io/spaCy,spacy-io/spaCy,aikramer2/spaCy,banglakit/spaCy,explosion/spaCy,aikramer2/spaCy,oroszgy/spaCy.hu,banglakit/spaCy,oroszgy/spaCy.hu,Gregory-Howard/spaCy,honnibal/spaCy,honnibal/spaCy,oroszgy/spaCy.hu,raphael0202/spaCy
|
# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
Add infixes and abbreviation exceptions (fr)
|
# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .punctuation import ELISION
from ..symbols import *
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
ABBREVIATIONS = {
"janv.": [
{LEMMA: "janvier", ORTH: "janv."}
],
"févr.": [
{LEMMA: "février", ORTH: "févr."}
],
"avr.": [
{LEMMA: "avril", ORTH: "avr."}
],
"juill.": [
{LEMMA: "juillet", ORTH: "juill."}
],
"sept.": [
{LEMMA: "septembre", ORTH: "sept."}
],
"oct.": [
{LEMMA: "octobre", ORTH: "oct."}
],
"nov.": [
{LEMMA: "novembre", ORTH: "nov."}
],
"déc.": [
{LEMMA: "décembre", ORTH: "déc."}
],
}
INFIXES_EXCEPTIONS_BASE = ["aujourd'hui",
"prud'homme", "prud'hommes",
"prud'homal", "prud'homaux", "prud'homale",
"prud'homales",
"prud'hommal", "prud'hommaux", "prud'hommale",
"prud'hommales",
"prud'homie", "prud'homies",
"prud'hommesque", "prud'hommesques",
"prud'hommesquement"]
INFIXES_EXCEPTIONS = []
for elision_char in ELISION:
INFIXES_EXCEPTIONS += [infix.replace("'", elision_char)
for infix in INFIXES_EXCEPTIONS_BASE]
INFIXES_EXCEPTIONS += [word.capitalize() for word in INFIXES_EXCEPTIONS]
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(INFIXES_EXCEPTIONS))
update_exc(TOKENIZER_EXCEPTIONS, ABBREVIATIONS)
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
|
<commit_before># encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
<commit_msg>Add infixes and abbreviation exceptions (fr)<commit_after>
|
# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .punctuation import ELISION
from ..symbols import *
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
ABBREVIATIONS = {
"janv.": [
{LEMMA: "janvier", ORTH: "janv."}
],
"févr.": [
{LEMMA: "février", ORTH: "févr."}
],
"avr.": [
{LEMMA: "avril", ORTH: "avr."}
],
"juill.": [
{LEMMA: "juillet", ORTH: "juill."}
],
"sept.": [
{LEMMA: "septembre", ORTH: "sept."}
],
"oct.": [
{LEMMA: "octobre", ORTH: "oct."}
],
"nov.": [
{LEMMA: "novembre", ORTH: "nov."}
],
"déc.": [
{LEMMA: "décembre", ORTH: "déc."}
],
}
INFIXES_EXCEPTIONS_BASE = ["aujourd'hui",
"prud'homme", "prud'hommes",
"prud'homal", "prud'homaux", "prud'homale",
"prud'homales",
"prud'hommal", "prud'hommaux", "prud'hommale",
"prud'hommales",
"prud'homie", "prud'homies",
"prud'hommesque", "prud'hommesques",
"prud'hommesquement"]
INFIXES_EXCEPTIONS = []
for elision_char in ELISION:
INFIXES_EXCEPTIONS += [infix.replace("'", elision_char)
for infix in INFIXES_EXCEPTIONS_BASE]
INFIXES_EXCEPTIONS += [word.capitalize() for word in INFIXES_EXCEPTIONS]
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(INFIXES_EXCEPTIONS))
update_exc(TOKENIZER_EXCEPTIONS, ABBREVIATIONS)
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
|
# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
Add infixes and abbreviation exceptions (fr)# encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .punctuation import ELISION
from ..symbols import *
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
ABBREVIATIONS = {
"janv.": [
{LEMMA: "janvier", ORTH: "janv."}
],
"févr.": [
{LEMMA: "février", ORTH: "févr."}
],
"avr.": [
{LEMMA: "avril", ORTH: "avr."}
],
"juill.": [
{LEMMA: "juillet", ORTH: "juill."}
],
"sept.": [
{LEMMA: "septembre", ORTH: "sept."}
],
"oct.": [
{LEMMA: "octobre", ORTH: "oct."}
],
"nov.": [
{LEMMA: "novembre", ORTH: "nov."}
],
"déc.": [
{LEMMA: "décembre", ORTH: "déc."}
],
}
INFIXES_EXCEPTIONS_BASE = ["aujourd'hui",
"prud'homme", "prud'hommes",
"prud'homal", "prud'homaux", "prud'homale",
"prud'homales",
"prud'hommal", "prud'hommaux", "prud'hommale",
"prud'hommales",
"prud'homie", "prud'homies",
"prud'hommesque", "prud'hommesques",
"prud'hommesquement"]
INFIXES_EXCEPTIONS = []
for elision_char in ELISION:
INFIXES_EXCEPTIONS += [infix.replace("'", elision_char)
for infix in INFIXES_EXCEPTIONS_BASE]
INFIXES_EXCEPTIONS += [word.capitalize() for word in INFIXES_EXCEPTIONS]
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(INFIXES_EXCEPTIONS))
update_exc(TOKENIZER_EXCEPTIONS, ABBREVIATIONS)
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
|
<commit_before># encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
<commit_msg>Add infixes and abbreviation exceptions (fr)<commit_after># encoding: utf8
from __future__ import unicode_literals
from .. import language_data as base
from ..language_data import strings_to_exc, update_exc
from .punctuation import ELISION
from ..symbols import *
from .stop_words import STOP_WORDS
STOP_WORDS = set(STOP_WORDS)
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(base.ABBREVIATIONS))
ABBREVIATIONS = {
"janv.": [
{LEMMA: "janvier", ORTH: "janv."}
],
"févr.": [
{LEMMA: "février", ORTH: "févr."}
],
"avr.": [
{LEMMA: "avril", ORTH: "avr."}
],
"juill.": [
{LEMMA: "juillet", ORTH: "juill."}
],
"sept.": [
{LEMMA: "septembre", ORTH: "sept."}
],
"oct.": [
{LEMMA: "octobre", ORTH: "oct."}
],
"nov.": [
{LEMMA: "novembre", ORTH: "nov."}
],
"déc.": [
{LEMMA: "décembre", ORTH: "déc."}
],
}
INFIXES_EXCEPTIONS_BASE = ["aujourd'hui",
"prud'homme", "prud'hommes",
"prud'homal", "prud'homaux", "prud'homale",
"prud'homales",
"prud'hommal", "prud'hommaux", "prud'hommale",
"prud'hommales",
"prud'homie", "prud'homies",
"prud'hommesque", "prud'hommesques",
"prud'hommesquement"]
INFIXES_EXCEPTIONS = []
for elision_char in ELISION:
INFIXES_EXCEPTIONS += [infix.replace("'", elision_char)
for infix in INFIXES_EXCEPTIONS_BASE]
INFIXES_EXCEPTIONS += [word.capitalize() for word in INFIXES_EXCEPTIONS]
update_exc(TOKENIZER_EXCEPTIONS, strings_to_exc(INFIXES_EXCEPTIONS))
update_exc(TOKENIZER_EXCEPTIONS, ABBREVIATIONS)
__all__ = ["TOKENIZER_EXCEPTIONS", "STOP_WORDS"]
|
ad9711725ee0396133c75e34a0ba2f9b4cf7af6e
|
test/functional/config.py
|
test/functional/config.py
|
import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2) / 1000
self.data = data
testConfig = TestConfig().data
|
import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2000) / 1000
self.data = data
testConfig = TestConfig().data
|
Fix default wait timeout calculation to add extra time correctly
|
Fix default wait timeout calculation to add extra time correctly
|
Python
|
mpl-2.0
|
mozilla/talkilla,mozilla/talkilla,mozilla/talkilla
|
import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2) / 1000
self.data = data
testConfig = TestConfig().data
Fix default wait timeout calculation to add extra time correctly
|
import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2000) / 1000
self.data = data
testConfig = TestConfig().data
|
<commit_before>import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2) / 1000
self.data = data
testConfig = TestConfig().data
<commit_msg>Fix default wait timeout calculation to add extra time correctly<commit_after>
|
import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2000) / 1000
self.data = data
testConfig = TestConfig().data
|
import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2) / 1000
self.data = data
testConfig = TestConfig().data
Fix default wait timeout calculation to add extra time correctlyimport json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2000) / 1000
self.data = data
testConfig = TestConfig().data
|
<commit_before>import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2) / 1000
self.data = data
testConfig = TestConfig().data
<commit_msg>Fix default wait timeout calculation to add extra time correctly<commit_after>import json
class TestConfig():
def __init__(self):
configFile = open('config/test.json')
data = json.load(configFile)
configFile.close()
# Add calculated configuration options
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
data['PENDING_CALL_TIMEOUT'] + 2000) / 1000
self.data = data
testConfig = TestConfig().data
|
c69e74e229420161350eaf33e040dc00cd537b0b
|
tools/dev/wc-format.py
|
tools/dev/wc-format.py
|
#!/usr/bin/env python
import os
import sqlite3
import sys
# helper
def usage():
sys.stderr.write("USAGE: %s [PATH]\n" + \
"\n" + \
"Prints to stdout the format of the working copy at PATH.\n")
# parse argv
wc = (sys.argv[1:] + ['.'])[0]
# main()
entries = os.path.join(wc, '.svn', 'entries')
wc_db = os.path.join(wc, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
formatno = sqlite3.connect(wc_db).execute('pragma user_version;').fetchone()[0]
else:
usage()
sys.exit(1)
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print("%s: %d" % (wc, formatno))
|
#!/usr/bin/env python
import os
import sqlite3
import sys
def print_format(wc_path):
entries = os.path.join(wc_path, '.svn', 'entries')
wc_db = os.path.join(wc_path, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
conn = sqlite3.connect(wc_db)
curs = conn.cursor()
curs.execute('pragma user_version;')
formatno = curs.fetchone()[0]
else:
formatno = 'not under version control'
# see subversion/libsvn_wc/wc.h for format values and information
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print '%s: %s' % (wc_path, formatno)
if __name__ == '__main__':
paths = sys.argv[1:]
if not paths:
paths = ['.']
for wc_path in paths:
print_format(wc_path)
|
Allow script to take multiple paths, and adjust to standard __main__ idiom for cmdline scripts.
|
Allow script to take multiple paths, and adjust to standard __main__ idiom
for cmdline scripts.
* tools/dev/wc-format.py:
(usage): remove. all paths are allowed.
(print_format): move guts of format fetching and printing into this
function. print 'not under version control' for such a path, rather
than bailing with USAGE. expand sqlite stuff to use normal pydb idioms
(eg. execute is not supposed to return anything)
(__main__): invoke print_format for each path provided
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1001109 13f79535-47bb-0310-9956-ffa450edef68
|
Python
|
apache-2.0
|
wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion
|
#!/usr/bin/env python
import os
import sqlite3
import sys
# helper
def usage():
sys.stderr.write("USAGE: %s [PATH]\n" + \
"\n" + \
"Prints to stdout the format of the working copy at PATH.\n")
# parse argv
wc = (sys.argv[1:] + ['.'])[0]
# main()
entries = os.path.join(wc, '.svn', 'entries')
wc_db = os.path.join(wc, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
formatno = sqlite3.connect(wc_db).execute('pragma user_version;').fetchone()[0]
else:
usage()
sys.exit(1)
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print("%s: %d" % (wc, formatno))
Allow script to take multiple paths, and adjust to standard __main__ idiom
for cmdline scripts.
* tools/dev/wc-format.py:
(usage): remove. all paths are allowed.
(print_format): move guts of format fetching and printing into this
function. print 'not under version control' for such a path, rather
than bailing with USAGE. expand sqlite stuff to use normal pydb idioms
(eg. execute is not supposed to return anything)
(__main__): invoke print_format for each path provided
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1001109 13f79535-47bb-0310-9956-ffa450edef68
|
#!/usr/bin/env python
import os
import sqlite3
import sys
def print_format(wc_path):
entries = os.path.join(wc_path, '.svn', 'entries')
wc_db = os.path.join(wc_path, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
conn = sqlite3.connect(wc_db)
curs = conn.cursor()
curs.execute('pragma user_version;')
formatno = curs.fetchone()[0]
else:
formatno = 'not under version control'
# see subversion/libsvn_wc/wc.h for format values and information
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print '%s: %s' % (wc_path, formatno)
if __name__ == '__main__':
paths = sys.argv[1:]
if not paths:
paths = ['.']
for wc_path in paths:
print_format(wc_path)
|
<commit_before>#!/usr/bin/env python
import os
import sqlite3
import sys
# helper
def usage():
sys.stderr.write("USAGE: %s [PATH]\n" + \
"\n" + \
"Prints to stdout the format of the working copy at PATH.\n")
# parse argv
wc = (sys.argv[1:] + ['.'])[0]
# main()
entries = os.path.join(wc, '.svn', 'entries')
wc_db = os.path.join(wc, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
formatno = sqlite3.connect(wc_db).execute('pragma user_version;').fetchone()[0]
else:
usage()
sys.exit(1)
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print("%s: %d" % (wc, formatno))
<commit_msg>Allow script to take multiple paths, and adjust to standard __main__ idiom
for cmdline scripts.
* tools/dev/wc-format.py:
(usage): remove. all paths are allowed.
(print_format): move guts of format fetching and printing into this
function. print 'not under version control' for such a path, rather
than bailing with USAGE. expand sqlite stuff to use normal pydb idioms
(eg. execute is not supposed to return anything)
(__main__): invoke print_format for each path provided
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1001109 13f79535-47bb-0310-9956-ffa450edef68<commit_after>
|
#!/usr/bin/env python
import os
import sqlite3
import sys
def print_format(wc_path):
entries = os.path.join(wc_path, '.svn', 'entries')
wc_db = os.path.join(wc_path, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
conn = sqlite3.connect(wc_db)
curs = conn.cursor()
curs.execute('pragma user_version;')
formatno = curs.fetchone()[0]
else:
formatno = 'not under version control'
# see subversion/libsvn_wc/wc.h for format values and information
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print '%s: %s' % (wc_path, formatno)
if __name__ == '__main__':
paths = sys.argv[1:]
if not paths:
paths = ['.']
for wc_path in paths:
print_format(wc_path)
|
#!/usr/bin/env python
import os
import sqlite3
import sys
# helper
def usage():
sys.stderr.write("USAGE: %s [PATH]\n" + \
"\n" + \
"Prints to stdout the format of the working copy at PATH.\n")
# parse argv
wc = (sys.argv[1:] + ['.'])[0]
# main()
entries = os.path.join(wc, '.svn', 'entries')
wc_db = os.path.join(wc, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
formatno = sqlite3.connect(wc_db).execute('pragma user_version;').fetchone()[0]
else:
usage()
sys.exit(1)
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print("%s: %d" % (wc, formatno))
Allow script to take multiple paths, and adjust to standard __main__ idiom
for cmdline scripts.
* tools/dev/wc-format.py:
(usage): remove. all paths are allowed.
(print_format): move guts of format fetching and printing into this
function. print 'not under version control' for such a path, rather
than bailing with USAGE. expand sqlite stuff to use normal pydb idioms
(eg. execute is not supposed to return anything)
(__main__): invoke print_format for each path provided
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1001109 13f79535-47bb-0310-9956-ffa450edef68#!/usr/bin/env python
import os
import sqlite3
import sys
def print_format(wc_path):
entries = os.path.join(wc_path, '.svn', 'entries')
wc_db = os.path.join(wc_path, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
conn = sqlite3.connect(wc_db)
curs = conn.cursor()
curs.execute('pragma user_version;')
formatno = curs.fetchone()[0]
else:
formatno = 'not under version control'
# see subversion/libsvn_wc/wc.h for format values and information
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print '%s: %s' % (wc_path, formatno)
if __name__ == '__main__':
paths = sys.argv[1:]
if not paths:
paths = ['.']
for wc_path in paths:
print_format(wc_path)
|
<commit_before>#!/usr/bin/env python
import os
import sqlite3
import sys
# helper
def usage():
sys.stderr.write("USAGE: %s [PATH]\n" + \
"\n" + \
"Prints to stdout the format of the working copy at PATH.\n")
# parse argv
wc = (sys.argv[1:] + ['.'])[0]
# main()
entries = os.path.join(wc, '.svn', 'entries')
wc_db = os.path.join(wc, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
formatno = sqlite3.connect(wc_db).execute('pragma user_version;').fetchone()[0]
else:
usage()
sys.exit(1)
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print("%s: %d" % (wc, formatno))
<commit_msg>Allow script to take multiple paths, and adjust to standard __main__ idiom
for cmdline scripts.
* tools/dev/wc-format.py:
(usage): remove. all paths are allowed.
(print_format): move guts of format fetching and printing into this
function. print 'not under version control' for such a path, rather
than bailing with USAGE. expand sqlite stuff to use normal pydb idioms
(eg. execute is not supposed to return anything)
(__main__): invoke print_format for each path provided
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@1001109 13f79535-47bb-0310-9956-ffa450edef68<commit_after>#!/usr/bin/env python
import os
import sqlite3
import sys
def print_format(wc_path):
entries = os.path.join(wc_path, '.svn', 'entries')
wc_db = os.path.join(wc_path, '.svn', 'wc.db')
if os.path.exists(entries):
formatno = int(open(entries).readline())
elif os.path.exists(wc_db):
conn = sqlite3.connect(wc_db)
curs = conn.cursor()
curs.execute('pragma user_version;')
formatno = curs.fetchone()[0]
else:
formatno = 'not under version control'
# see subversion/libsvn_wc/wc.h for format values and information
# 1.0.x -> 1.3.x: format 4
# 1.4.x: format 8
# 1.5.x: format 9
# 1.6.x: format 10
# 1.7.x: format XXX
print '%s: %s' % (wc_path, formatno)
if __name__ == '__main__':
paths = sys.argv[1:]
if not paths:
paths = ['.']
for wc_path in paths:
print_format(wc_path)
|
cb35c28ac04c4cfb6170d44b602403dc3cbf7205
|
avocado/management/base.py
|
avocado/management/base.py
|
from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '(app | app.model | app.model.field)*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
if not labels:
raise CommandError('At least one label for looking up DataFields must be specified.')
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
|
from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '[app | app.model | app.model.field]*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
|
Remove requirement in DataFieldCommand to pass labels
|
Remove requirement in DataFieldCommand to pass labels
The behavior is now (naturally) defaults to all datafields
|
Python
|
bsd-2-clause
|
murphyke/avocado,murphyke/avocado,murphyke/avocado,murphyke/avocado
|
from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '(app | app.model | app.model.field)*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
if not labels:
raise CommandError('At least one label for looking up DataFields must be specified.')
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
Remove requirement in DataFieldCommand to pass labels
The behavior is now (naturally) defaults to all datafields
|
from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '[app | app.model | app.model.field]*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
|
<commit_before>from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '(app | app.model | app.model.field)*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
if not labels:
raise CommandError('At least one label for looking up DataFields must be specified.')
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
<commit_msg>Remove requirement in DataFieldCommand to pass labels
The behavior is now (naturally) defaults to all datafields<commit_after>
|
from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '[app | app.model | app.model.field]*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
|
from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '(app | app.model | app.model.field)*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
if not labels:
raise CommandError('At least one label for looking up DataFields must be specified.')
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
Remove requirement in DataFieldCommand to pass labels
The behavior is now (naturally) defaults to all datafieldsfrom django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '[app | app.model | app.model.field]*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
|
<commit_before>from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '(app | app.model | app.model.field)*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
if not labels:
raise CommandError('At least one label for looking up DataFields must be specified.')
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
<commit_msg>Remove requirement in DataFieldCommand to pass labels
The behavior is now (naturally) defaults to all datafields<commit_after>from django.core.management.base import BaseCommand, CommandError
from .utils import get_fields_by_label
class DataFieldCommand(BaseCommand):
args = '[app | app.model | app.model.field]*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *labels, **kwargs):
try:
fields = get_fields_by_label(labels)
except Exception, e:
raise CommandError(e.message)
return self.handle_fields(fields, **kwargs)
|
a06e6cc3c0b0440d3adedd1ccce78309d8fae9a9
|
feincms/module/page/extensions/navigationgroups.py
|
feincms/module/page/extensions/navigationgroups.py
|
"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
|
"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
blank=True,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
|
Allow navigationgroup to be blank
|
Allow navigationgroup to be blank
|
Python
|
bsd-3-clause
|
joshuajonah/feincms,feincms/feincms,joshuajonah/feincms,joshuajonah/feincms,feincms/feincms,joshuajonah/feincms,feincms/feincms,mjl/feincms,mjl/feincms,mjl/feincms
|
"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
Allow navigationgroup to be blank
|
"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
blank=True,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
|
<commit_before>"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
<commit_msg>Allow navigationgroup to be blank<commit_after>
|
"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
blank=True,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
|
"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
Allow navigationgroup to be blank"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
blank=True,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
|
<commit_before>"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
<commit_msg>Allow navigationgroup to be blank<commit_after>"""
Page navigation groups allow assigning pages to differing navigation lists
such as header, footer and what else.
"""
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from feincms import extensions
class Extension(extensions.Extension):
ident = 'navigationgroups'
groups = [
('default', _('Default')),
('footer', _('Footer')),
]
def handle_model(self):
self.model.add_to_class(
'navigation_group',
models.CharField(
_('navigation group'),
choices=self.groups,
default=self.groups[0][0],
max_length=20,
blank=True,
db_index=True))
def handle_modeladmin(self, modeladmin):
modeladmin.add_extension_options('navigation_group')
modeladmin.extend_list('list_display', ['navigation_group'])
modeladmin.extend_list('list_filter', ['navigation_group'])
|
3c1e90761bf6d046c3b462dcdddb75335c259433
|
rnacentral/portal/tests/rna_type_tests.py
|
rnacentral/portal/tests/rna_type_tests.py
|
from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
|
from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
class HumanTests(GenericRnaTypeTest):
def test_if_has_both_anti_and_lnc_likes_lnc(self):
self.assertRnaTypeIs(
'lncRNA',
'URS0000732D5D',
taxid=9606)
|
Add test showing issue with rna_type
|
Add test showing issue with rna_type
|
Python
|
apache-2.0
|
RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode
|
from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
Add test showing issue with rna_type
|
from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
class HumanTests(GenericRnaTypeTest):
def test_if_has_both_anti_and_lnc_likes_lnc(self):
self.assertRnaTypeIs(
'lncRNA',
'URS0000732D5D',
taxid=9606)
|
<commit_before>from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
<commit_msg>Add test showing issue with rna_type<commit_after>
|
from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
class HumanTests(GenericRnaTypeTest):
def test_if_has_both_anti_and_lnc_likes_lnc(self):
self.assertRnaTypeIs(
'lncRNA',
'URS0000732D5D',
taxid=9606)
|
from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
Add test showing issue with rna_typefrom django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
class HumanTests(GenericRnaTypeTest):
def test_if_has_both_anti_and_lnc_likes_lnc(self):
self.assertRnaTypeIs(
'lncRNA',
'URS0000732D5D',
taxid=9606)
|
<commit_before>from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
<commit_msg>Add test showing issue with rna_type<commit_after>from django.test import TestCase
from portal.models import Rna
class GenericRnaTypeTest(TestCase):
def rna_type_of(self, upi, taxid=None):
return Rna.objects.\
get(upi=upi).\
get_rna_type(taxid=taxid, recompute=True)
def assertRnaTypeIs(self, description, upi, taxid=None):
self.assertEquals(description, self.description_of(upi, taxid=taxid))
class WormTests(GenericRnaTypeTest):
def test_gets_mirna_over_pirna(self):
self.assertRnaTypeIs(
'miRNA',
'URS0000016972',
taxid=6239)
class HumanTests(GenericRnaTypeTest):
def test_if_has_both_anti_and_lnc_likes_lnc(self):
self.assertRnaTypeIs(
'lncRNA',
'URS0000732D5D',
taxid=9606)
|
7a39265a5a902746dc341f99ac79727702f967c5
|
lwr/messaging/bind_amqp.py
|
lwr/messaging/bind_amqp.py
|
from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = True
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
|
from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = False
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
|
Make thread non-daemon so we don't partially process message.
|
Make thread non-daemon so we don't partially process message.
LWR should still stop properly since loop is tracking if manager is alive.
|
Python
|
apache-2.0
|
ssorgatem/pulsar,jmchilton/pulsar,jmchilton/lwr,galaxyproject/pulsar,natefoo/pulsar,natefoo/pulsar,jmchilton/pulsar,galaxyproject/pulsar,ssorgatem/pulsar,jmchilton/lwr
|
from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = True
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
Make thread non-daemon so we don't partially process message.
LWR should still stop properly since loop is tracking if manager is alive.
|
from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = False
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
|
<commit_before>from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = True
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
<commit_msg>Make thread non-daemon so we don't partially process message.
LWR should still stop properly since loop is tracking if manager is alive.<commit_after>
|
from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = False
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
|
from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = True
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
Make thread non-daemon so we don't partially process message.
LWR should still stop properly since loop is tracking if manager is alive.from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = False
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
|
<commit_before>from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = True
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
<commit_msg>Make thread non-daemon so we don't partially process message.
LWR should still stop properly since loop is tracking if manager is alive.<commit_after>from lwr.managers import status
from lwr.lwr_client import amqp_exchange
from lwr import manager_endpoint_util
import threading
import logging
log = logging.getLogger(__name__)
def bind_manager_to_queue(manager, queue_state, connection_string):
lwr_exchange = amqp_exchange.LwrExchange(connection_string, manager.name)
def process_messages(body, message):
__process_message(manager, body, message)
def drain():
__drain(queue_state, lwr_exchange, process_messages)
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
thread.daemon = False
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind
# has occurred.
def bind_on_status_change(new_status, job_id):
payload = manager_endpoint_util.full_status(manager, new_status, job_id)
lwr_exchange.publish("status_update", payload)
manager.set_state_change_callback(bind_on_status_change)
def __drain(queue_state, lwr_exchange, callback):
lwr_exchange.consume("setup", callback=callback, check=queue_state)
def __process_message(manager, body, message):
manager_endpoint_util.submit_job(manager, body)
message.ack()
|
bd22996e282328a72f3995a62078ce6867a158fc
|
tests/test_register.py
|
tests/test_register.py
|
import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
|
import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_primary_key_in_fields(register):
assert register in registers[register].fields
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
|
Test primary key in register fields
|
Test primary key in register fields
|
Python
|
mit
|
openregister/registry-data
|
import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
Test primary key in register fields
|
import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_primary_key_in_fields(register):
assert register in registers[register].fields
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
|
<commit_before>import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
<commit_msg>Test primary key in register fields<commit_after>
|
import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_primary_key_in_fields(register):
assert register in registers[register].fields
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
|
import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
Test primary key in register fieldsimport pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_primary_key_in_fields(register):
assert register in registers[register].fields
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
|
<commit_before>import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
<commit_msg>Test primary key in register fields<commit_after>import pytest
from data import registers, fields, phases
@pytest.mark.parametrize('register', registers)
def test_register_key_matches_filename(register):
assert registers[register].register == register
@pytest.mark.parametrize('register', registers)
def test_register_primary_key_in_fields(register):
assert register in registers[register].fields
@pytest.mark.parametrize('register', registers)
def test_register_keys_are_known_fields(register):
for field in registers[register].keys:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_register_fields(register):
for field in registers[register].keys:
assert field in registers['register'].fields
@pytest.mark.parametrize('register', registers)
def test_register_text_trailing_characters(register):
text = registers[register].text
assert text == text.rstrip(' \n\r.')
@pytest.mark.parametrize('register', registers)
def test_register_phase(register):
assert registers[register].phase in phases
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_known(register):
item = registers[register]
for field in item.fields:
assert field in fields
@pytest.mark.parametrize('register', registers)
def test_register_fields_are_the_right_phase(register):
item = registers[register]
register_phase = phases.index(item.phase)
for field in item.fields:
field_phase = phases.index(fields[field].phase)
assert field_phase >= register_phase
|
9305caf0bf2479b098703c8c7fb3b139f95576ec
|
vectorTiling.py
|
vectorTiling.py
|
import json
import os
from urlparse import urlparse
import zipfile
import click
import adapters
from filters import BasicFilterer
import utils
import subprocess
@click.command()
@click.argument('file', type=click.Path(exists=True), required=True)
def vectorTiling(file):
""" Function that creates vector tiles
INPUT: geojson file generated by process.py
OUTPUT: mbtiles file containing vector tiles
"""
# Variables to change in production
path = '/Users/athissen/Documents/'
min_zoom = 0
max_zoom = 14
paths_string = ''
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += path + item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + 'result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
|
import json
import click
import subprocess
import utils
import os
import logging
@click.command()
@click.argument('sources', type=click.Path(exists=True), required=True)
@click.argument('output', type=click.Path(exists=True), required=True)
@click.argument('min_zoom', default=5)
@click.argument('max_zoom', default=14)
def vectorTiling(sources, output, min_zoom, max_zoom):
""" Function that creates vector tiles
PARAMS:
- sources : directory where the geojson file(s) are
- output : directory for the generated data
"""
files = []
for file in utils.get_files(sources):
if not os.path.isdir(file):
if file.split('.')[1] == 'geojson':
files.append(file)
logging.info("{} geojson found".format(len(files)))
paths_string = ''
for file in files:
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + output + '/result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
|
Change of arguments, remove unused modules, source is now a directory
|
Change of arguments, remove unused modules, source is now a directory
|
Python
|
mit
|
OpenBounds/Processing
|
import json
import os
from urlparse import urlparse
import zipfile
import click
import adapters
from filters import BasicFilterer
import utils
import subprocess
@click.command()
@click.argument('file', type=click.Path(exists=True), required=True)
def vectorTiling(file):
""" Function that creates vector tiles
INPUT: geojson file generated by process.py
OUTPUT: mbtiles file containing vector tiles
"""
# Variables to change in production
path = '/Users/athissen/Documents/'
min_zoom = 0
max_zoom = 14
paths_string = ''
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += path + item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + 'result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
Change of arguments, remove unused modules, source is now a directory
|
import json
import click
import subprocess
import utils
import os
import logging
@click.command()
@click.argument('sources', type=click.Path(exists=True), required=True)
@click.argument('output', type=click.Path(exists=True), required=True)
@click.argument('min_zoom', default=5)
@click.argument('max_zoom', default=14)
def vectorTiling(sources, output, min_zoom, max_zoom):
""" Function that creates vector tiles
PARAMS:
- sources : directory where the geojson file(s) are
- output : directory for the generated data
"""
files = []
for file in utils.get_files(sources):
if not os.path.isdir(file):
if file.split('.')[1] == 'geojson':
files.append(file)
logging.info("{} geojson found".format(len(files)))
paths_string = ''
for file in files:
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + output + '/result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
|
<commit_before>
import json
import os
from urlparse import urlparse
import zipfile
import click
import adapters
from filters import BasicFilterer
import utils
import subprocess
@click.command()
@click.argument('file', type=click.Path(exists=True), required=True)
def vectorTiling(file):
""" Function that creates vector tiles
INPUT: geojson file generated by process.py
OUTPUT: mbtiles file containing vector tiles
"""
# Variables to change in production
path = '/Users/athissen/Documents/'
min_zoom = 0
max_zoom = 14
paths_string = ''
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += path + item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + 'result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
<commit_msg>Change of arguments, remove unused modules, source is now a directory<commit_after>
|
import json
import click
import subprocess
import utils
import os
import logging
@click.command()
@click.argument('sources', type=click.Path(exists=True), required=True)
@click.argument('output', type=click.Path(exists=True), required=True)
@click.argument('min_zoom', default=5)
@click.argument('max_zoom', default=14)
def vectorTiling(sources, output, min_zoom, max_zoom):
""" Function that creates vector tiles
PARAMS:
- sources : directory where the geojson file(s) are
- output : directory for the generated data
"""
files = []
for file in utils.get_files(sources):
if not os.path.isdir(file):
if file.split('.')[1] == 'geojson':
files.append(file)
logging.info("{} geojson found".format(len(files)))
paths_string = ''
for file in files:
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + output + '/result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
|
import json
import os
from urlparse import urlparse
import zipfile
import click
import adapters
from filters import BasicFilterer
import utils
import subprocess
@click.command()
@click.argument('file', type=click.Path(exists=True), required=True)
def vectorTiling(file):
""" Function that creates vector tiles
INPUT: geojson file generated by process.py
OUTPUT: mbtiles file containing vector tiles
"""
# Variables to change in production
path = '/Users/athissen/Documents/'
min_zoom = 0
max_zoom = 14
paths_string = ''
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += path + item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + 'result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
Change of arguments, remove unused modules, source is now a directory
import json
import click
import subprocess
import utils
import os
import logging
@click.command()
@click.argument('sources', type=click.Path(exists=True), required=True)
@click.argument('output', type=click.Path(exists=True), required=True)
@click.argument('min_zoom', default=5)
@click.argument('max_zoom', default=14)
def vectorTiling(sources, output, min_zoom, max_zoom):
""" Function that creates vector tiles
PARAMS:
- sources : directory where the geojson file(s) are
- output : directory for the generated data
"""
files = []
for file in utils.get_files(sources):
if not os.path.isdir(file):
if file.split('.')[1] == 'geojson':
files.append(file)
logging.info("{} geojson found".format(len(files)))
paths_string = ''
for file in files:
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + output + '/result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
|
<commit_before>
import json
import os
from urlparse import urlparse
import zipfile
import click
import adapters
from filters import BasicFilterer
import utils
import subprocess
@click.command()
@click.argument('file', type=click.Path(exists=True), required=True)
def vectorTiling(file):
""" Function that creates vector tiles
INPUT: geojson file generated by process.py
OUTPUT: mbtiles file containing vector tiles
"""
# Variables to change in production
path = '/Users/athissen/Documents/'
min_zoom = 0
max_zoom = 14
paths_string = ''
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += path + item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + 'result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
<commit_msg>Change of arguments, remove unused modules, source is now a directory<commit_after>
import json
import click
import subprocess
import utils
import os
import logging
@click.command()
@click.argument('sources', type=click.Path(exists=True), required=True)
@click.argument('output', type=click.Path(exists=True), required=True)
@click.argument('min_zoom', default=5)
@click.argument('max_zoom', default=14)
def vectorTiling(sources, output, min_zoom, max_zoom):
""" Function that creates vector tiles
PARAMS:
- sources : directory where the geojson file(s) are
- output : directory for the generated data
"""
files = []
for file in utils.get_files(sources):
if not os.path.isdir(file):
if file.split('.')[1] == 'geojson':
files.append(file)
logging.info("{} geojson found".format(len(files)))
paths_string = ''
for file in files:
with open(file, 'rb') as f:
geojson = json.load(f)
features = geojson['features']
for item in features:
paths_string += item['properties']['path'] + ' '
command = 'tippecanoe -f -o ' + output + '/result.mbtiles ' + paths_string + ' -z {} -Z {}'.format(max_zoom, min_zoom)
subprocess.call(command,shell=True)
if __name__ == '__main__':
vectorTiling()
|
c6458e76c3c2323817ea32748e5ea6688986bede
|
zounds/persistence/util.py
|
zounds/persistence/util.py
|
import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
|
import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
def extract_init_args(instance):
"""
Given an instance, and under the assumption that member variables have the
same name as the __init__ arguments, extract the arguments so they can
be used to reconstruct the instance when deserializing
"""
cls = instance.__class__
args = filter(
lambda x: x != 'self',
cls.__init__.im_func.func_code.co_varnames)
return [instance.__dict__[key] for key in args]
|
Support the persistence of modules that accept arguments, provided that they have member variables that match the __init__ argument names
|
Support the persistence of modules that accept arguments, provided that they have member variables that match the __init__ argument names
|
Python
|
mit
|
JohnVinyard/zounds,JohnVinyard/zounds,JohnVinyard/zounds,JohnVinyard/zounds
|
import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
Support the persistence of modules that accept arguments, provided that they have member variables that match the __init__ argument names
|
import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
def extract_init_args(instance):
"""
Given an instance, and under the assumption that member variables have the
same name as the __init__ arguments, extract the arguments so they can
be used to reconstruct the instance when deserializing
"""
cls = instance.__class__
args = filter(
lambda x: x != 'self',
cls.__init__.im_func.func_code.co_varnames)
return [instance.__dict__[key] for key in args]
|
<commit_before>import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
<commit_msg>Support the persistence of modules that accept arguments, provided that they have member variables that match the __init__ argument names<commit_after>
|
import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
def extract_init_args(instance):
"""
Given an instance, and under the assumption that member variables have the
same name as the __init__ arguments, extract the arguments so they can
be used to reconstruct the instance when deserializing
"""
cls = instance.__class__
args = filter(
lambda x: x != 'self',
cls.__init__.im_func.func_code.co_varnames)
return [instance.__dict__[key] for key in args]
|
import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
Support the persistence of modules that accept arguments, provided that they have member variables that match the __init__ argument namesimport base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
def extract_init_args(instance):
"""
Given an instance, and under the assumption that member variables have the
same name as the __init__ arguments, extract the arguments so they can
be used to reconstruct the instance when deserializing
"""
cls = instance.__class__
args = filter(
lambda x: x != 'self',
cls.__init__.im_func.func_code.co_varnames)
return [instance.__dict__[key] for key in args]
|
<commit_before>import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
<commit_msg>Support the persistence of modules that accept arguments, provided that they have member variables that match the __init__ argument names<commit_after>import base64
import re
import numpy as np
TIMEDELTA_DTYPE_RE = re.compile(r'\[(?P<dtype>[^\]]+)\]')
def encode_timedelta(td):
dtype = TIMEDELTA_DTYPE_RE.search(str(td.dtype)).groupdict()['dtype']
return base64.b64encode(td.astype(np.uint64).tostring()), dtype
def decode_timedelta(t):
try:
v = np.frombuffer(base64.b64decode(t[0]), dtype=np.uint64)[0]
s = t[1]
return np.timedelta64(long(v), s)
except IndexError:
return t
def extract_init_args(instance):
"""
Given an instance, and under the assumption that member variables have the
same name as the __init__ arguments, extract the arguments so they can
be used to reconstruct the instance when deserializing
"""
cls = instance.__class__
args = filter(
lambda x: x != 'self',
cls.__init__.im_func.func_code.co_varnames)
return [instance.__dict__[key] for key in args]
|
1e393fb2bea443e98a591e781fb0827b33524fa0
|
mezzanine_editor/models.py
|
mezzanine_editor/models.py
|
from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
|
from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_mode = getattr(settings, "MEZZANINE_EDITOR_ENABLED", True)
if editor_mode:
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
|
Check for editor_mode before creating editor user.
|
Check for editor_mode before creating editor user.
|
Python
|
bsd-2-clause
|
renyi/mezzanine-editor
|
from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
Check for editor_mode before creating editor user.
|
from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_mode = getattr(settings, "MEZZANINE_EDITOR_ENABLED", True)
if editor_mode:
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
|
<commit_before>from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
<commit_msg>Check for editor_mode before creating editor user.<commit_after>
|
from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_mode = getattr(settings, "MEZZANINE_EDITOR_ENABLED", True)
if editor_mode:
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
|
from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
Check for editor_mode before creating editor user.from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_mode = getattr(settings, "MEZZANINE_EDITOR_ENABLED", True)
if editor_mode:
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
|
<commit_before>from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
<commit_msg>Check for editor_mode before creating editor user.<commit_after>from django.db import models
from django.db.models.signals import post_syncdb
from django.dispatch import receiver
from django.contrib.auth.models import Group
from mezzanine.conf import settings
from mezzanine.blog.models import BlogPost
@receiver(post_syncdb, sender=BlogPost)
def create_default_editor_group(sender, **kwargs):
editor_mode = getattr(settings, "MEZZANINE_EDITOR_ENABLED", True)
if editor_mode:
editor_name = getattr(settings, "MEZZANINE_EDITOR_GROUPNAME", "Editor")
editor, created = Group.objects.get_or_create(name=editor_name)
|
99259c7543234f178ae64a6e4e753dce104ca3b8
|
masters/master.client.webrtc.fyi/master_win_cfg.py
|
masters/master.client.webrtc.fyi/master_win_cfg.py
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=['Win32 Debug (parallel)']),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=[
'Win32 Debug (parallel)',
'Win32 Release (parallel)',
'Win64 Debug (parallel)',
'Win64 Release (parallel)',
]),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
|
Fix builder triggering in client.webrtc.fyi
|
WebRTC: Fix builder triggering in client.webrtc.fyi
In https://codereview.chromium.org/867283002 I missed to
add the new builders to the triggering.
TBR=phoglund@chromium.org
Review URL: https://codereview.chromium.org/875733002
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@293797 0039d316-1c4b-4281-b951-d872f2087c98
|
Python
|
bsd-3-clause
|
eunchong/build,eunchong/build,eunchong/build,eunchong/build
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=['Win32 Debug (parallel)']),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
WebRTC: Fix builder triggering in client.webrtc.fyi
In https://codereview.chromium.org/867283002 I missed to
add the new builders to the triggering.
TBR=phoglund@chromium.org
Review URL: https://codereview.chromium.org/875733002
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@293797 0039d316-1c4b-4281-b951-d872f2087c98
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=[
'Win32 Debug (parallel)',
'Win32 Release (parallel)',
'Win64 Debug (parallel)',
'Win64 Release (parallel)',
]),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
|
<commit_before># Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=['Win32 Debug (parallel)']),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
<commit_msg>WebRTC: Fix builder triggering in client.webrtc.fyi
In https://codereview.chromium.org/867283002 I missed to
add the new builders to the triggering.
TBR=phoglund@chromium.org
Review URL: https://codereview.chromium.org/875733002
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@293797 0039d316-1c4b-4281-b951-d872f2087c98<commit_after>
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=[
'Win32 Debug (parallel)',
'Win32 Release (parallel)',
'Win64 Debug (parallel)',
'Win64 Release (parallel)',
]),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=['Win32 Debug (parallel)']),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
WebRTC: Fix builder triggering in client.webrtc.fyi
In https://codereview.chromium.org/867283002 I missed to
add the new builders to the triggering.
TBR=phoglund@chromium.org
Review URL: https://codereview.chromium.org/875733002
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@293797 0039d316-1c4b-4281-b951-d872f2087c98# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=[
'Win32 Debug (parallel)',
'Win32 Release (parallel)',
'Win64 Debug (parallel)',
'Win64 Release (parallel)',
]),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
|
<commit_before># Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=['Win32 Debug (parallel)']),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
<commit_msg>WebRTC: Fix builder triggering in client.webrtc.fyi
In https://codereview.chromium.org/867283002 I missed to
add the new builders to the triggering.
TBR=phoglund@chromium.org
Review URL: https://codereview.chromium.org/875733002
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@293797 0039d316-1c4b-4281-b951-d872f2087c98<commit_after># Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.schedulers.basic import SingleBranchScheduler
from master.factory import annotator_factory
m_annotator = annotator_factory.AnnotatorFactory()
def Update(c):
c['schedulers'].extend([
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
builderNames=[
'Win32 Debug (parallel)',
'Win32 Release (parallel)',
'Win64 Debug (parallel)',
'Win64 Release (parallel)',
]),
])
specs = [
{
'name': 'Win32 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win32 Release (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Debug (parallel)',
'slavebuilddir': 'win',
},
{
'name': 'Win64 Release (parallel)',
'slavebuilddir': 'win',
},
]
c['builders'].extend([
{
'name': spec['name'],
'factory': m_annotator.BaseFactory('webrtc/standalone'),
'notify_on_missing': True,
'category': 'win',
'slavebuilddir': spec['slavebuilddir'],
} for spec in specs
])
|
933e7b61f5d7c73924ea89a6ce17acf39e4f9c8d
|
packages/Python/lldbsuite/test/lang/c/unicode/TestUnicodeSymbols.py
|
packages/Python/lldbsuite/test/lang/c/unicode/TestUnicodeSymbols.py
|
# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
|
# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
|
Change xfail to skipIf. The exact condition is really difficult to get right and doesn't add much signal.
|
Change xfail to skipIf. The exact condition is really difficult to get
right and doesn't add much signal.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@340574 91177308-0d34-0410-b5e6-96231b3b80d8
|
Python
|
apache-2.0
|
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb
|
# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
Change xfail to skipIf. The exact condition is really difficult to get
right and doesn't add much signal.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@340574 91177308-0d34-0410-b5e6-96231b3b80d8
|
# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
|
<commit_before># coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
<commit_msg>Change xfail to skipIf. The exact condition is really difficult to get
right and doesn't add much signal.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@340574 91177308-0d34-0410-b5e6-96231b3b80d8<commit_after>
|
# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
|
# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
Change xfail to skipIf. The exact condition is really difficult to get
right and doesn't add much signal.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@340574 91177308-0d34-0410-b5e6-96231b3b80d8# coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
|
<commit_before># coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
<commit_msg>Change xfail to skipIf. The exact condition is really difficult to get
right and doesn't add much signal.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@340574 91177308-0d34-0410-b5e6-96231b3b80d8<commit_after># coding=utf8
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
from lldbsuite.test.decorators import *
class TestUnicodeSymbols(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipIf(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec()
spec.SetFileSpec(lldb.SBFileSpec(self.getBuildArtifact("a.out")))
module = lldb.SBModule(spec)
self.assertTrue(module.IsValid())
mytype = module.FindFirstType("foobár")
self.assertTrue(mytype.IsValid())
self.assertTrue(mytype.IsPointerType())
|
19bda5c7a2ebe38e856283423f64e1151eff4e80
|
parktain/tests/test_bot.py
|
parktain/tests/test_bot.py
|
"""Tests for the bot."""
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
|
"""Tests for the bot."""
# Just setup db without any fixture magic.
from parktain.main import Base, engine
Base.metadata.create_all(engine)
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
|
Create db before running tests.
|
Create db before running tests.
|
Python
|
bsd-3-clause
|
punchagan/parktain,punchagan/parktain,punchagan/parktain
|
"""Tests for the bot."""
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
Create db before running tests.
|
"""Tests for the bot."""
# Just setup db without any fixture magic.
from parktain.main import Base, engine
Base.metadata.create_all(engine)
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
|
<commit_before>"""Tests for the bot."""
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
<commit_msg>Create db before running tests.<commit_after>
|
"""Tests for the bot."""
# Just setup db without any fixture magic.
from parktain.main import Base, engine
Base.metadata.create_all(engine)
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
|
"""Tests for the bot."""
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
Create db before running tests."""Tests for the bot."""
# Just setup db without any fixture magic.
from parktain.main import Base, engine
Base.metadata.create_all(engine)
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
|
<commit_before>"""Tests for the bot."""
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
<commit_msg>Create db before running tests.<commit_after>"""Tests for the bot."""
# Just setup db without any fixture magic.
from parktain.main import Base, engine
Base.metadata.create_all(engine)
def test_no_logger_crash_if_no_user():
# Given
from parktain.main import logger
user, channel, message = None, '#CTESTING', 'Hello!'
# When
# Then: Test fails if exception gets raised.
logger(user, channel, message)
|
95529efca6a2e3c3544aeb306aaf62a02f2f5408
|
primes.py
|
primes.py
|
import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False # as not beeing a prime
numprimes = 0; # Count all primes
for i,isprime in P.items():
if isprime:
numprimes=numprimes+1
print(numprimes) # print number of primes
|
import array
import math
import sys
n = int(sys.argv[1])
nums = array.array('i', [False] * 2 + [True] * (n - 2))
upper_lim = int(math.sqrt(n))
i = 2
while i <= upper_lim:
if nums[i]:
m = i**2
while m < n:
nums[m] = False
m += i
i += 1
print(len([x for x in nums if nums]))
|
Make Python code equivalent to Ruby
|
Make Python code equivalent to Ruby
Using a dictionary instead is really unfair.
Small variation: m must not be equal to n. Not sure how the algorithm is meant is exactly...
|
Python
|
mit
|
oliworx/chartbench,oliworx/chartbench,oliworx/chartbench,oliworx/chartbench,oliworx/chartbench
|
import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False # as not beeing a prime
numprimes = 0; # Count all primes
for i,isprime in P.items():
if isprime:
numprimes=numprimes+1
print(numprimes) # print number of primes
Make Python code equivalent to Ruby
Using a dictionary instead is really unfair.
Small variation: m must not be equal to n. Not sure how the algorithm is meant is exactly...
|
import array
import math
import sys
n = int(sys.argv[1])
nums = array.array('i', [False] * 2 + [True] * (n - 2))
upper_lim = int(math.sqrt(n))
i = 2
while i <= upper_lim:
if nums[i]:
m = i**2
while m < n:
nums[m] = False
m += i
i += 1
print(len([x for x in nums if nums]))
|
<commit_before>import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False # as not beeing a prime
numprimes = 0; # Count all primes
for i,isprime in P.items():
if isprime:
numprimes=numprimes+1
print(numprimes) # print number of primes
<commit_msg>Make Python code equivalent to Ruby
Using a dictionary instead is really unfair.
Small variation: m must not be equal to n. Not sure how the algorithm is meant is exactly...<commit_after>
|
import array
import math
import sys
n = int(sys.argv[1])
nums = array.array('i', [False] * 2 + [True] * (n - 2))
upper_lim = int(math.sqrt(n))
i = 2
while i <= upper_lim:
if nums[i]:
m = i**2
while m < n:
nums[m] = False
m += i
i += 1
print(len([x for x in nums if nums]))
|
import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False # as not beeing a prime
numprimes = 0; # Count all primes
for i,isprime in P.items():
if isprime:
numprimes=numprimes+1
print(numprimes) # print number of primes
Make Python code equivalent to Ruby
Using a dictionary instead is really unfair.
Small variation: m must not be equal to n. Not sure how the algorithm is meant is exactly...import array
import math
import sys
n = int(sys.argv[1])
nums = array.array('i', [False] * 2 + [True] * (n - 2))
upper_lim = int(math.sqrt(n))
i = 2
while i <= upper_lim:
if nums[i]:
m = i**2
while m < n:
nums[m] = False
m += i
i += 1
print(len([x for x in nums if nums]))
|
<commit_before>import sys
Max=int(sys.argv[1]) # get Max from command line args
P = {x: True for x in range(2,Max)} # first assume numbers are prime
for i in range(2, int(Max** (0.5))): # until square root of Max
if P[i]: #
for j in range(i*i, Max, i): # mark all multiples of a prime
P[j]=False # as not beeing a prime
numprimes = 0; # Count all primes
for i,isprime in P.items():
if isprime:
numprimes=numprimes+1
print(numprimes) # print number of primes
<commit_msg>Make Python code equivalent to Ruby
Using a dictionary instead is really unfair.
Small variation: m must not be equal to n. Not sure how the algorithm is meant is exactly...<commit_after>import array
import math
import sys
n = int(sys.argv[1])
nums = array.array('i', [False] * 2 + [True] * (n - 2))
upper_lim = int(math.sqrt(n))
i = 2
while i <= upper_lim:
if nums[i]:
m = i**2
while m < n:
nums[m] = False
m += i
i += 1
print(len([x for x in nums if nums]))
|
c9d30e8873233adc84a6a7ed24423202e6538709
|
kindergarten-garden/kindergarten_garden.py
|
kindergarten-garden/kindergarten_garden.py
|
CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
rows = garden.split()
patches = [rows[0][i:i+2] + rows[1][i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
|
CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
row1, row2 = garden.split()
patches = [row1[i:i+2] + row2[i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
|
Use unpacking for simpler code
|
Use unpacking for simpler code
|
Python
|
agpl-3.0
|
CubicComet/exercism-python-solutions
|
CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
rows = garden.split()
patches = [rows[0][i:i+2] + rows[1][i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
Use unpacking for simpler code
|
CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
row1, row2 = garden.split()
patches = [row1[i:i+2] + row2[i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
|
<commit_before>CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
rows = garden.split()
patches = [rows[0][i:i+2] + rows[1][i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
<commit_msg>Use unpacking for simpler code<commit_after>
|
CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
row1, row2 = garden.split()
patches = [row1[i:i+2] + row2[i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
|
CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
rows = garden.split()
patches = [rows[0][i:i+2] + rows[1][i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
Use unpacking for simpler codeCHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
row1, row2 = garden.split()
patches = [row1[i:i+2] + row2[i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
|
<commit_before>CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
rows = garden.split()
patches = [rows[0][i:i+2] + rows[1][i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
<commit_msg>Use unpacking for simpler code<commit_after>CHILDREN = ["Alice", "Bob", "Charlie", "David", "Eve", "Fred",
"Ginny", "Harriet", "Ileana", "Joseph", "Kincaid", "Larry"]
PLANTS = {"C": "Clover", "G": "Grass", "R": "Radishes", "V": "Violets"}
class Garden(object):
def __init__(self, garden, students=CHILDREN):
self.students = sorted(students)
row1, row2 = garden.split()
patches = [row1[i:i+2] + row2[i:i+2]
for i in range(0,2*len(self.students),2)]
self._garden = {s: [PLANTS[ch] for ch in p]
for s, p in zip(self.students, patches)}
def plants(self, student):
return self._garden[student]
|
acfc4ed37950f9bead0ffb1a66fc79851e3e93a1
|
Cython/CTypesBackend/CDefToDefTransform.py
|
Cython/CTypesBackend/CDefToDefTransform.py
|
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
return node
def visit_CArgDeclNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = oldbase_type.is_self_arg
return node
def visit_CDefExternNode(self, node):
return node
|
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = False
self.strip_args_types(node.declarator.args)
return node
def visit_DefNode(self, node):
self.strip_args_types(node.args)
return node
def strip_args_types(self, args):
for arg in args:
oldbase_type = arg.base_type
arg.base_type = CSimpleBaseTypeNode(0)
arg.base_type.name = None
arg.base_type.is_self_arg = oldbase_type.is_self_arg
|
Change the striping of parameters types (to be more robust)
|
Change the striping of parameters types (to be more robust)
|
Python
|
apache-2.0
|
rguillebert/CythonCTypesBackend,rguillebert/CythonCTypesBackend,rguillebert/CythonCTypesBackend,rguillebert/CythonCTypesBackend
|
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
return node
def visit_CArgDeclNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = oldbase_type.is_self_arg
return node
def visit_CDefExternNode(self, node):
return node
Change the striping of parameters types (to be more robust)
|
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = False
self.strip_args_types(node.declarator.args)
return node
def visit_DefNode(self, node):
self.strip_args_types(node.args)
return node
def strip_args_types(self, args):
for arg in args:
oldbase_type = arg.base_type
arg.base_type = CSimpleBaseTypeNode(0)
arg.base_type.name = None
arg.base_type.is_self_arg = oldbase_type.is_self_arg
|
<commit_before>from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
return node
def visit_CArgDeclNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = oldbase_type.is_self_arg
return node
def visit_CDefExternNode(self, node):
return node
<commit_msg>Change the striping of parameters types (to be more robust)<commit_after>
|
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = False
self.strip_args_types(node.declarator.args)
return node
def visit_DefNode(self, node):
self.strip_args_types(node.args)
return node
def strip_args_types(self, args):
for arg in args:
oldbase_type = arg.base_type
arg.base_type = CSimpleBaseTypeNode(0)
arg.base_type.name = None
arg.base_type.is_self_arg = oldbase_type.is_self_arg
|
from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
return node
def visit_CArgDeclNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = oldbase_type.is_self_arg
return node
def visit_CDefExternNode(self, node):
return node
Change the striping of parameters types (to be more robust)from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = False
self.strip_args_types(node.declarator.args)
return node
def visit_DefNode(self, node):
self.strip_args_types(node.args)
return node
def strip_args_types(self, args):
for arg in args:
oldbase_type = arg.base_type
arg.base_type = CSimpleBaseTypeNode(0)
arg.base_type.name = None
arg.base_type.is_self_arg = oldbase_type.is_self_arg
|
<commit_before>from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
return node
def visit_CArgDeclNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = oldbase_type.is_self_arg
return node
def visit_CDefExternNode(self, node):
return node
<commit_msg>Change the striping of parameters types (to be more robust)<commit_after>from Cython.Compiler.Visitor import VisitorTransform
from Cython.Compiler.Nodes import CSimpleBaseTypeNode
class CDefToDefTransform(VisitorTransform):
# Does not really turns cdefed function into defed function, it justs kills
# the arguments and the return types of the functions, we rely on the
# CodeWriter to get 'def' instead of 'cdef'
visit_Node = VisitorTransform.recurse_to_children
def visit_CFuncDefNode(self, node):
oldbase_type = node.base_type
node.base_type = CSimpleBaseTypeNode(0)
node.base_type.name = None
node.base_type.is_self_arg = False
self.strip_args_types(node.declarator.args)
return node
def visit_DefNode(self, node):
self.strip_args_types(node.args)
return node
def strip_args_types(self, args):
for arg in args:
oldbase_type = arg.base_type
arg.base_type = CSimpleBaseTypeNode(0)
arg.base_type.name = None
arg.base_type.is_self_arg = oldbase_type.is_self_arg
|
8d0053681e41799d64fd2deaf96a34c802097530
|
ckanserviceprototype/db.py
|
ckanserviceprototype/db.py
|
import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=True)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
|
import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=False)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
|
Disable echo of sql alchemy
|
Disable echo of sql alchemy
|
Python
|
agpl-3.0
|
ckan/ckan-service-provider,datawagovau/ckan-service-provider,deniszgonjanin/ckan-service-provider,ESRC-CDRC/ckan-service-provider
|
import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=True)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
Disable echo of sql alchemy
|
import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=False)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
|
<commit_before>import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=True)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
<commit_msg>Disable echo of sql alchemy<commit_after>
|
import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=False)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
|
import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=True)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
Disable echo of sql alchemyimport sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=False)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
|
<commit_before>import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=True)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
<commit_msg>Disable echo of sql alchemy<commit_after>import sqlalchemy as sa
engine = None
metadata = None
task_table = None
metadata_table = None
def setup_db(db_url):
global engine, metadata
engine = sa.create_engine(db_url, echo=False)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine)
def make_task_table():
global task_table, metadata_table
task_table = sa.Table('datastorer_tasks', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('job_type', sa.UnicodeText),
sa.Column('status', sa.UnicodeText,
index=True),
sa.Column('data', sa.UnicodeText),
sa.Column('error', sa.UnicodeText),
sa.Column('requested_timestamp', sa.DateTime),
sa.Column('finished_timestamp', sa.DateTime),
sa.Column('sent_data', sa.UnicodeText),
sa.Column('result_url', sa.UnicodeText),
sa.Column('api_key', sa.UnicodeText),
)
metadata_table = sa.Table('metadata', metadata,
sa.Column('job_id', sa.UnicodeText,
primary_key=True),
sa.Column('key', sa.UnicodeText,
primary_key=True),
sa.Column('value', sa.UnicodeText,
index=True),
sa.Column('type', sa.UnicodeText),
)
|
07865610c4a44d827570949f06806cef3fbc4754
|
labs/05_conv_nets_2/solutions/geom_avg.py
|
labs/05_conv_nets_2/solutions/geom_avg.py
|
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
|
from skimage.transform import resize
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
|
Fix missing import in solution
|
Fix missing import in solution
|
Python
|
mit
|
m2dsupsdlclass/lectures-labs,m2dsupsdlclass/lectures-labs
|
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
Fix missing import in solution
|
from skimage.transform import resize
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
|
<commit_before>heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
<commit_msg>Fix missing import in solution<commit_after>
|
from skimage.transform import resize
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
|
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
Fix missing import in solutionfrom skimage.transform import resize
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
|
<commit_before>heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
<commit_msg>Fix missing import in solution<commit_after>from skimage.transform import resize
heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_3_r = resize(heatmap_3, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True)
heatmap_geom_avg = np.power(heatmap_1_r * heatmap_2_r * heatmap_3_r, 0.333)
display_img_and_heatmap("dog.jpg", heatmap_geom_avg)
|
2134b43d2e071f7fa6a284d0c564c7990fb6be75
|
src/form_builder/admin.py
|
src/form_builder/admin.py
|
from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
|
from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
list_display = ['title', 'date_created', 'end_date']
search_fields = ['title', 'owner__email']
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
|
Fix up the Django Admin a little bit
|
Fix up the Django Admin a little bit
|
Python
|
cc0-1.0
|
cfpb/collab-form-builder,cfpb/collab-form-builder,cfpb/collab-form-builder,cfpb/collab-form-builder
|
from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
Fix up the Django Admin a little bit
|
from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
list_display = ['title', 'date_created', 'end_date']
search_fields = ['title', 'owner__email']
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
|
<commit_before>from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
<commit_msg>Fix up the Django Admin a little bit<commit_after>
|
from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
list_display = ['title', 'date_created', 'end_date']
search_fields = ['title', 'owner__email']
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
|
from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
Fix up the Django Admin a little bitfrom form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
list_display = ['title', 'date_created', 'end_date']
search_fields = ['title', 'owner__email']
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
|
<commit_before>from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
<commit_msg>Fix up the Django Admin a little bit<commit_after>from form_builder.models import Form, Field, FormResponse, FieldResponse
from django.contrib import admin
class FieldInline(admin.StackedInline):
model = Field
extra = 1
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
list_display = ['title', 'date_created', 'end_date']
search_fields = ['title', 'owner__email']
class FieldResponseInline(admin.StackedInline):
model = FieldResponse
extra = 0
class FormResponseAdmin(admin.ModelAdmin):
fields = ['form', 'user']
inlines = [FieldResponseInline]
list_display = ['form', 'user', 'submission_date']
admin.site.register(Form, FormAdmin)
admin.site.register(FormResponse, FormResponseAdmin)
|
1a01f99014ead675ba7d043a204cd5f3c47d74b3
|
molecule/builder-trusty/tests/test_build_dependencies.py
|
molecule/builder-trusty/tests/test_build_dependencies.py
|
import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip freeze")
assert "wheel==0.24.0" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
|
import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip list installed")
assert "wheel" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
|
Fix test for wheel in Xenial and Trusty
|
Fix test for wheel in Xenial and Trusty
|
Python
|
agpl-3.0
|
conorsch/securedrop,heartsucker/securedrop,conorsch/securedrop,ehartsuyker/securedrop,conorsch/securedrop,ehartsuyker/securedrop,ehartsuyker/securedrop,heartsucker/securedrop,ehartsuyker/securedrop,conorsch/securedrop,heartsucker/securedrop,heartsucker/securedrop,ehartsuyker/securedrop,heartsucker/securedrop,conorsch/securedrop,ehartsuyker/securedrop
|
import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip freeze")
assert "wheel==0.24.0" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
Fix test for wheel in Xenial and Trusty
|
import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip list installed")
assert "wheel" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
|
<commit_before>import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip freeze")
assert "wheel==0.24.0" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
<commit_msg>Fix test for wheel in Xenial and Trusty<commit_after>
|
import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip list installed")
assert "wheel" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
|
import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip freeze")
assert "wheel==0.24.0" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
Fix test for wheel in Xenial and Trustyimport pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip list installed")
assert "wheel" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
|
<commit_before>import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip freeze")
assert "wheel==0.24.0" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
<commit_msg>Fix test for wheel in Xenial and Trusty<commit_after>import pytest
import os
SECUREDROP_TARGET_PLATFORM = os.environ.get("SECUREDROP_TARGET_PLATFORM", "trusty")
testinfra_hosts = [
"docker://{}-sd-app".format(SECUREDROP_TARGET_PLATFORM)
]
def test_pip_wheel_installed(Command):
"""
Ensure `wheel` is installed via pip, for packaging Python
dependencies into a Debian package.
"""
c = Command("pip list installed")
assert "wheel" in c.stdout
assert c.rc == 0
def test_sass_gem_installed(Command):
"""
Ensure the `sass` Ruby gem is installed, for compiling SASS to CSS.
"""
c = Command("gem list")
assert "sass (3.4.23)" in c.stdout
assert c.rc == 0
def test_pip_dependencies_installed(Command):
"""
Ensure the development pip dependencies are installed
"""
c = Command("pip list installed")
assert "Flask-Babel" in c.stdout
assert c.rc == 0
@pytest.mark.xfail(reason="This check conflicts with the concept of pegging"
"dependencies")
def test_build_all_packages_updated(Command):
"""
Ensure a dist-upgrade has already been run, by checking that no
packages are eligible for upgrade currently. This will ensure that
all upgrades, security and otherwise, have been applied to the VM
used to build packages.
"""
c = Command('aptitude --simulate -y dist-upgrade')
assert c.rc == 0
assert "No packages will be installed, upgraded, or removed." in c.stdout
|
48987cb9b5417232280482c681d3e055c1dee9a4
|
snap7/bin/snap7-server.py
|
snap7/bin/snap7-server.py
|
#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
|
#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
import sys
if len(sys.argv) > 1:
snap7.common.load_library(sys.argv[1])
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
|
Add option to start server passing lib path
|
Add option to start server passing lib path
|
Python
|
mit
|
SimplyAutomationized/python-snap7,gijzelaerr/python-snap7,ellepdesk/python-snap7,SimplyAutomationized/python-snap7,ellepdesk/python-snap7
|
#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
Add option to start server passing lib path
|
#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
import sys
if len(sys.argv) > 1:
snap7.common.load_library(sys.argv[1])
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
|
<commit_before>#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
<commit_msg>Add option to start server passing lib path<commit_after>
|
#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
import sys
if len(sys.argv) > 1:
snap7.common.load_library(sys.argv[1])
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
|
#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
Add option to start server passing lib path#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
import sys
if len(sys.argv) > 1:
snap7.common.load_library(sys.argv[1])
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
|
<commit_before>#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
<commit_msg>Add option to start server passing lib path<commit_after>#!/usr/bin/env python
"""
This is an example snap7 server. It doesn't do much, but accepts
connection. Usefull for running the python-snap7 test suite.
"""
import time
import logging
import snap7
def mainloop():
server = snap7.server.Server()
size = 100
data = (snap7.types.wordlen_to_ctypes[snap7.types.S7WLByte] * size)()
server.register_area(snap7.types.srvAreaDB, 1, data)
server.start()
while True:
#logger.info("server: %s cpu: %s users: %s" % server.get_status())
while True:
event = server.pick_event()
if event:
logger.info(server.event_text(event))
else:
break
time.sleep(1)
def check_root():
"""
check if uid of this process is root
"""
import os
import platform
if platform.system() == 'Windows':
# We don't need root on Windows to use port 102
return True
if os.getuid() == 0:
return True
root_msg = "it sucks, but you need to run this as root. The snap7 library is" \
" hardcoded run on port 102, which requires root privileges."
if __name__ == '__main__':
import sys
if len(sys.argv) > 1:
snap7.common.load_library(sys.argv[1])
logging.basicConfig()
logger = logging.getLogger()
logger.setLevel(logging.INFO)
if not check_root():
logging.error(root_msg)
mainloop()
|
5abea2d21c62228eb9a7270a1e10f9f7ec4316af
|
source/services/rotten_tomatoes_service.py
|
source/services/rotten_tomatoes_service.py
|
import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
|
import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
formatted_title = formatted_title.replace(',', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
|
Remove comma for RT search
|
Remove comma for RT search
|
Python
|
mit
|
jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu
|
import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
Remove comma for RT search
|
import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
formatted_title = formatted_title.replace(',', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
|
<commit_before>import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
<commit_msg>Remove comma for RT search<commit_after>
|
import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
formatted_title = formatted_title.replace(',', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
|
import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
Remove comma for RT searchimport requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
formatted_title = formatted_title.replace(',', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
|
<commit_before>import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
<commit_msg>Remove comma for RT search<commit_after>import requests
from bs4 import BeautifulSoup
from source.models.rt_rating import RTRating
class RottenTomatoesService:
__URL = 'http://www.rottentomatoes.com/m/'
__SEPERATOR = '_'
def __init__(self, title):
self.title = title
def get_rt_rating(self):
search_url = self.__URL + self.format_title()
movie_page = requests.get(search_url)
contents = movie_page.text
soup = BeautifulSoup(contents, 'lxml')
ratings = self.get_ratings(soup)
ratings.link = search_url
return ratings
def format_title(self):
formatted_title = self.title
if formatted_title.startswith('The '):
formatted_title = formatted_title.replace('The ', '', 1)
if "'s" in formatted_title:
formatted_title = formatted_title.replace("'s", 's')
formatted_title = formatted_title.replace(' ', self.__SEPERATOR)
formatted_title = formatted_title.replace('-', '')
formatted_title = formatted_title.replace(':', '')
formatted_title = formatted_title.replace(',', '')
return formatted_title
def get_ratings(self, soup):
items = []
for item in soup.findAll(attrs={'itemprop': 'ratingValue'}):
items.append(item.get_text().strip('%'))
return RTRating(items)
|
25d39a7b78860102f7971033227ec157789a40b3
|
reporter/components/api_client.py
|
reporter/components/api_client.py
|
import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host()
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_HOST", "https://codeclimate.com")
|
import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host().rstrip("/")
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_API_HOST", "https://codeclimate.com")
|
Update ApiClient host env var to CODECLIMATE_API_HOST
|
Update ApiClient host env var to CODECLIMATE_API_HOST
This commit also strips trailing slashes from the host.
|
Python
|
mit
|
codeclimate/python-test-reporter,codeclimate/python-test-reporter
|
import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host()
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_HOST", "https://codeclimate.com")
Update ApiClient host env var to CODECLIMATE_API_HOST
This commit also strips trailing slashes from the host.
|
import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host().rstrip("/")
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_API_HOST", "https://codeclimate.com")
|
<commit_before>import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host()
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_HOST", "https://codeclimate.com")
<commit_msg>Update ApiClient host env var to CODECLIMATE_API_HOST
This commit also strips trailing slashes from the host.<commit_after>
|
import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host().rstrip("/")
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_API_HOST", "https://codeclimate.com")
|
import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host()
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_HOST", "https://codeclimate.com")
Update ApiClient host env var to CODECLIMATE_API_HOST
This commit also strips trailing slashes from the host.import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host().rstrip("/")
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_API_HOST", "https://codeclimate.com")
|
<commit_before>import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host()
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_HOST", "https://codeclimate.com")
<commit_msg>Update ApiClient host env var to CODECLIMATE_API_HOST
This commit also strips trailing slashes from the host.<commit_after>import json
import os
import requests
class ApiClient:
def __init__(self, host=None, timeout=5):
self.host = host or self.__default_host().rstrip("/")
self.timeout = timeout
def post(self, payload):
print("Submitting payload to %s" % self.host)
headers = {"Content-Type": "application/json"}
response = requests.post(
"%s/test_reports" % self.host,
data=json.dumps(payload),
headers=headers,
timeout=self.timeout
)
return response
def __default_host(self):
return os.environ.get("CODECLIMATE_API_HOST", "https://codeclimate.com")
|
cad627a986f0d2ee897e9889e78473976cbeb69d
|
corehq/apps/app_manager/tests/test_suite.py
|
corehq/apps/app_manager/tests/test_suite.py
|
from django.utils.unittest.case import TestCase
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite'))
|
from django.utils.unittest.case import TestCase
from casexml.apps.case.tests import check_xml_line_by_line
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
|
Revert "make test output a litte more intuitive"
|
Revert "make test output a litte more intuitive"
This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724.
|
Python
|
bsd-3-clause
|
qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,puttarajubr/commcare-hq,SEL-Columbia/commcare-hq,SEL-Columbia/commcare-hq,gmimano/commcaretest,qedsoftware/commcare-hq,gmimano/commcaretest,SEL-Columbia/commcare-hq,puttarajubr/commcare-hq,qedsoftware/commcare-hq,gmimano/commcaretest,dimagi/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq
|
from django.utils.unittest.case import TestCase
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite'))
Revert "make test output a litte more intuitive"
This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724.
|
from django.utils.unittest.case import TestCase
from casexml.apps.case.tests import check_xml_line_by_line
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
|
<commit_before>from django.utils.unittest.case import TestCase
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite'))
<commit_msg>Revert "make test output a litte more intuitive"
This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724.<commit_after>
|
from django.utils.unittest.case import TestCase
from casexml.apps.case.tests import check_xml_line_by_line
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
|
from django.utils.unittest.case import TestCase
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite'))
Revert "make test output a litte more intuitive"
This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724.from django.utils.unittest.case import TestCase
from casexml.apps.case.tests import check_xml_line_by_line
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
|
<commit_before>from django.utils.unittest.case import TestCase
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.app.create_suite(), self.get_xml('normal-suite'))
<commit_msg>Revert "make test output a litte more intuitive"
This reverts commit e09fa453b1bb72f08053d13cc3050012a20ba724.<commit_after>from django.utils.unittest.case import TestCase
from casexml.apps.case.tests import check_xml_line_by_line
from corehq.apps.app_manager.models import Application
from corehq.apps.app_manager.tests.util import TestFileMixin
# snippet from http://stackoverflow.com/questions/321795/comparing-xml-in-a-unit-test-in-python/7060342#7060342
from doctest import Example
from lxml.doctestcompare import LXMLOutputChecker
class XmlTest(TestCase):
def assertXmlEqual(self, want, got):
checker = LXMLOutputChecker()
if not checker.check_output(want, got, 0):
message = checker.output_difference(Example("", want), got, 0)
raise AssertionError(message)
# end snippet
class SuiteTest(XmlTest, TestFileMixin):
file_path = ('data', 'suite')
def setUp(self):
self.app = Application.wrap(self.get_json('app'))
def test_normal_suite(self):
self.assertXmlEqual(self.get_xml('normal-suite'), self.app.create_suite())
|
d01e69ccde63a2908b73298f3b120ee593e2ef2f
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.1',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
|
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.2',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
|
Test commit: Updating version number
|
Test commit: Updating version number
|
Python
|
apache-2.0
|
CitrineInformatics/pif-dft
|
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.1',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
Test commit: Updating version number
|
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.2',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
|
<commit_before>from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.1',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
<commit_msg>Test commit: Updating version number<commit_after>
|
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.2',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
|
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.1',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
Test commit: Updating version numberfrom setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.2',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
|
<commit_before>from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.1',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
<commit_msg>Test commit: Updating version number<commit_after>from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='dfttopif',
version='0.0.2',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft',
license=license,
install_requires=[
'ase',
'pypif',
],
packages=find_packages(exclude=('tests', 'docs'))
)
|
84b4fc8fdc3808340293c076a1628bf0decd2d2c
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
requires=["mcp2210"])
|
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
install_requires=["mcp2210", "python-daemon"])
|
Add python-daemon as a dep
|
Add python-daemon as a dep
|
Python
|
bsd-3-clause
|
arachnidlabs/minishift-python
|
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
requires=["mcp2210"])
Add python-daemon as a dep
|
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
install_requires=["mcp2210", "python-daemon"])
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
requires=["mcp2210"])
<commit_msg>Add python-daemon as a dep<commit_after>
|
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
install_requires=["mcp2210", "python-daemon"])
|
#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
requires=["mcp2210"])
Add python-daemon as a dep#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
install_requires=["mcp2210", "python-daemon"])
|
<commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.2",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
requires=["mcp2210"])
<commit_msg>Add python-daemon as a dep<commit_after>#!/usr/bin/env python
from distutils.core import setup
setup(name="minishift-python",
version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/minishift-python/",
packages=["minishift"],
install_requires=["mcp2210", "python-daemon"])
|
6c862bc65a560158bb503ecf91b13845396c832a
|
setup.py
|
setup.py
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interacive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interactive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
|
Fix a typo: interacive -> interactive
|
Fix a typo: interacive -> interactive
|
Python
|
mit
|
KrasnitzLab/SCGV
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interacive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
Fix a typo: interacive -> interactive
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interactive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
|
<commit_before>
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interacive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
<commit_msg>Fix a typo: interacive -> interactive<commit_after>
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interactive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
|
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interacive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
Fix a typo: interacive -> interactive
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interactive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
|
<commit_before>
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interacive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
<commit_msg>Fix a typo: interacive -> interactive<commit_after>
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="scgv",
version="1.0.1",
author="Lubomir Chorbadjiev",
author_email="lubomir.chorbadjiev@gmail.com",
description="SCGV is an interactive graphical tool for single-cell genomics data, with emphasis on single-cell genomics of cancer",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KrasnitzLab/SCGV",
packages=setuptools.find_packages(
# 'scgv',
exclude=['docs', 'tests']
),
# package_dir={'':'scgv'},
entry_points={
'console_scripts': [
'scgview=scgv.tkmain:main',
]
},
classifiers=(
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
python_requires='>=3.6',
)
|
fd80964656f6af507a754f4fc4c7bceaca74da60
|
setup.py
|
setup.py
|
import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
|
import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
|
Add the 3.2 trove classifier since it's technically supported for now.
|
Add the 3.2 trove classifier since it's technically supported for now.
|
Python
|
bsd-3-clause
|
ubernostrum/django-contact-form,ubernostrum/django-contact-form
|
import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
Add the 3.2 trove classifier since it's technically supported for now.
|
import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
|
<commit_before>import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
<commit_msg>Add the 3.2 trove classifier since it's technically supported for now.<commit_after>
|
import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
|
import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
Add the 3.2 trove classifier since it's technically supported for now.import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
|
<commit_before>import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
<commit_msg>Add the 3.2 trove classifier since it's technically supported for now.<commit_after>import os
from setuptools import setup
setup(name='django-contact-form',
version='1.2',
zip_safe=False, # eggs are the devil.
description='Generic contact-form application for Django',
long_description=open(os.path.join(os.path.dirname(__file__),
'README.rst')).read(),
author='James Bennett',
author_email='james@b-list.org',
url='https://github.com/ubernostrum/django-contact-form/',
packages=['contact_form', 'contact_form.tests'],
test_suite='contact_form.runtests.run_tests',
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities'],
)
|
89cf43d302b3c14e9e42517cb4ff4baca7e45380
|
pyflation/configuration.py
|
pyflation/configuration.py
|
"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
|
"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
#This is the default log level which can be overridden in run_config.
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
|
Add explanation about default log level.
|
Add explanation about default log level.
|
Python
|
bsd-3-clause
|
ihuston/pyflation,ihuston/pyflation
|
"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
Add explanation about default log level.
|
"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
#This is the default log level which can be overridden in run_config.
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
|
<commit_before>"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
<commit_msg>Add explanation about default log level.<commit_after>
|
"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
#This is the default log level which can be overridden in run_config.
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
|
"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
Add explanation about default log level."""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
#This is the default log level which can be overridden in run_config.
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
|
<commit_before>"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
<commit_msg>Add explanation about default log level.<commit_after>"""Configuration file for harness.py
Author: Ian Huston
"""
import logging
# Directory structure
# Change the names of various directories
#Change to using the base run directory with bin, pyflation, scripts immediately below.
CODEDIRNAME = "."
RUNDIRNAME = "runs"
RESULTSDIRNAME = "results"
LOGDIRNAME = "applogs"
QSUBSCRIPTSDIRNAME = "qsubscripts"
QSUBLOGSDIRNAME = "qsublogs"
#Name of provenance file which records the code revisions and results files added
provenancefilename = "provenance.log"
# Compression type to be used with PyTables:
# PyTables stores results in HDF5 files. The compression it uses can be
# selected here. For maximum compatibility with other HDF5 utilities use "zlib".
# For maximum efficiency in both storage space and recall time use "blosc".
hdf5complib = "blosc"
hdf5complevel = 2
#This is the default log level which can be overridden in run_config.
# The logging level changes how much is saved to logging files.
# Choose from logging.DEBUG, .INFO, .WARN, .ERROR, .CRITICAL in decreasing order of verbosity
LOGLEVEL = logging.INFO
##################################################
# debug logging control
# 0 for off, 1 for on
##################################################
_debug = 1
#Program name
PROGRAM_NAME = "Pyflation"
VERSION = "0.1.0"
|
dacff8c0006271fe020b915d0f51f4d23e86b00c
|
app/soc/modules/gsoc/logic/slot_transfer.py
|
app/soc/modules/gsoc/logic/slot_transfer.py
|
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntityForOrg(org_entity):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.get()
|
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntitiesForOrg(org_entity, limit=1000):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.fetch(limit=limit)
|
Modify the logic to get slot transfer entities to return all the entities per org.
|
Modify the logic to get slot transfer entities to return all the entities per org.
The logic is now changed from having only one slot transfer entity per org to multiple
slot transfer entities per org.
--HG--
extra : rebase_source : d5526723d69356f4d076143f4dc537c7eeed74c0
|
Python
|
apache-2.0
|
rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son
|
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntityForOrg(org_entity):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.get()
Modify the logic to get slot transfer entities to return all the entities per org.
The logic is now changed from having only one slot transfer entity per org to multiple
slot transfer entities per org.
--HG--
extra : rebase_source : d5526723d69356f4d076143f4dc537c7eeed74c0
|
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntitiesForOrg(org_entity, limit=1000):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.fetch(limit=limit)
|
<commit_before>#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntityForOrg(org_entity):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.get()
<commit_msg>Modify the logic to get slot transfer entities to return all the entities per org.
The logic is now changed from having only one slot transfer entity per org to multiple
slot transfer entities per org.
--HG--
extra : rebase_source : d5526723d69356f4d076143f4dc537c7eeed74c0<commit_after>
|
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntitiesForOrg(org_entity, limit=1000):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.fetch(limit=limit)
|
#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntityForOrg(org_entity):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.get()
Modify the logic to get slot transfer entities to return all the entities per org.
The logic is now changed from having only one slot transfer entity per org to multiple
slot transfer entities per org.
--HG--
extra : rebase_source : d5526723d69356f4d076143f4dc537c7eeed74c0#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntitiesForOrg(org_entity, limit=1000):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.fetch(limit=limit)
|
<commit_before>#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntityForOrg(org_entity):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.get()
<commit_msg>Modify the logic to get slot transfer entities to return all the entities per org.
The logic is now changed from having only one slot transfer entity per org to multiple
slot transfer entities per org.
--HG--
extra : rebase_source : d5526723d69356f4d076143f4dc537c7eeed74c0<commit_after>#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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.
"""Logic for GSoC slot transfers.
"""
__authors__ = [
'"Madhusudan.C.S" <madhusudancs@gmail.com>',
]
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
def getSlotTransferEntitiesForOrg(org_entity, limit=1000):
"""Returns the slot transfer entity for the organization.
params:
org_entity: the Organization for which the slot transfer entity must be
fetched
returns:
The slot transfer entity for the given organization
"""
q = GSoCSlotTransfer.all().ancestor(org_entity)
return q.fetch(limit=limit)
|
f8aae767944cb6fe6163eb3eb99d08b12458060f
|
GoogleCalendarV3/setup.py
|
GoogleCalendarV3/setup.py
|
from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.1',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests-oauthlib >= 0.4.0",
],
)
|
from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.2',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests >= 2.3.0",
"requests-oauthlib >= 0.4.0"
],
)
|
Update dependencies and update version.
|
Update dependencies and update version.
|
Python
|
apache-2.0
|
priyadarshy/google-calendar-v3,mbrondani/google-calendar-v3
|
from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.1',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests-oauthlib >= 0.4.0",
],
)
Update dependencies and update version.
|
from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.2',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests >= 2.3.0",
"requests-oauthlib >= 0.4.0"
],
)
|
<commit_before>from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.1',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests-oauthlib >= 0.4.0",
],
)
<commit_msg>Update dependencies and update version.<commit_after>
|
from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.2',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests >= 2.3.0",
"requests-oauthlib >= 0.4.0"
],
)
|
from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.1',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests-oauthlib >= 0.4.0",
],
)
Update dependencies and update version.from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.2',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests >= 2.3.0",
"requests-oauthlib >= 0.4.0"
],
)
|
<commit_before>from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.1',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests-oauthlib >= 0.4.0",
],
)
<commit_msg>Update dependencies and update version.<commit_after>from distutils.core import setup
setup(
name='GoogleCalendarV3',
version='0.1.2',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
scripts=['bin/example.py'],
url='http://www.github.com/priyadarshy/google-calendar-v3/',
license='LICENSE.txt',
description='Python Client for Google Calendar API V3.',
long_description=open('README.txt').read(),
install_requires=[
"requests >= 2.3.0",
"requests-oauthlib >= 0.4.0"
],
)
|
22118646f5776b1174b400a7db96533b7783a84f
|
setup.py
|
setup.py
|
import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
|
import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
|
Add Python 3.5 trove classifier.
|
Add Python 3.5 trove classifier.
|
Python
|
bsd-3-clause
|
jezdez/django-hosts
|
import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Add Python 3.5 trove classifier.
|
import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
|
<commit_before>import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Add Python 3.5 trove classifier.<commit_after>
|
import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
|
import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
Add Python 3.5 trove classifier.import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
|
<commit_before>import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
)
<commit_msg>Add Python 3.5 trove classifier.<commit_after>import codecs
from os import path
from setuptools import setup, find_packages
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding='utf-8') as fp:
return fp.read()
setup(
name='django-hosts',
description='Dynamic and static host resolving for Django. '
'Maps hostnames to URLconfs.',
long_description=read('README.rst'),
use_scm_version=True,
setup_requires=['setuptools_scm'],
url='https://django-hosts.readthedocs.io/',
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)
|
613c01517288ef7d3170dd7ab4dc2d3541a77168
|
chainerrl/misc/is_return_code_zero.py
|
chainerrl/misc/is_return_code_zero.py
|
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
FNULL = open(os.devnull, 'w')
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
|
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
with open(os.devnull, 'wb') as FNULL:
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
|
Fix ResourceWarning: unclosed file of devnull
|
Fix ResourceWarning: unclosed file of devnull
|
Python
|
mit
|
toslunar/chainerrl,toslunar/chainerrl
|
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
FNULL = open(os.devnull, 'w')
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
Fix ResourceWarning: unclosed file of devnull
|
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
with open(os.devnull, 'wb') as FNULL:
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
|
<commit_before>from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
FNULL = open(os.devnull, 'w')
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
<commit_msg>Fix ResourceWarning: unclosed file of devnull<commit_after>
|
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
with open(os.devnull, 'wb') as FNULL:
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
|
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
FNULL = open(os.devnull, 'w')
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
Fix ResourceWarning: unclosed file of devnullfrom __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
with open(os.devnull, 'wb') as FNULL:
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
|
<commit_before>from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
FNULL = open(os.devnull, 'w')
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
<commit_msg>Fix ResourceWarning: unclosed file of devnull<commit_after>from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import os
import subprocess
def is_return_code_zero(args):
"""Return true iff the given command's return code is zero.
All the messages to stdout or stderr are suppressed.
"""
with open(os.devnull, 'wb') as FNULL:
try:
subprocess.check_call(args, stdout=FNULL, stderr=FNULL)
except subprocess.CalledProcessError:
# The given command returned an error
return False
except OSError:
# The given command was not found
return False
return True
|
30917d894dd03af7a4f07230874921acf5bbfa08
|
dduplicated/fileManager.py
|
dduplicated/fileManager.py
|
import os
def managerFiles(paths, link):
first = True
src = ""
for path in paths:
if first:
first = False
src = path
print("PRESERVED: The file preserved is: \"" + path + "\"")
else:
os.remove(path)
print("DELETE: File deleted: \"" + path + "\"")
if link:
os.symlink(src, path)
print("LINK: Created link: \"" + path + "\" -> \"" + src + "\"")
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, createLink = False):
if len(duplicates) < 1:
print("No duplicates found")
print("Great! Bye!")
exit(0)
for filesByHash in duplicates.values():
managerFiles(filesByHash, createLink)
def delete(duplicates):
manager(duplicates)
def link(duplicates):
manager(duplicates, True)
|
import os
from threading import Thread
def _delete(path):
os.remove(path)
def _link(src, path):
os.symlink(src, path)
def manager_files(paths, link):
# The first file is preserved to not delete all files in directories.
first = True
src = ""
deleted_files = []
linked_files = []
errors = []
for path in paths:
if os.path.isfile(path):
if first:
first = False
src = path
else:
Thread(target=_delete, args=(path)).start()
deleted_files.append(path)
if link:
Thread(target=_link, args=(src, path)).start()
linked_files.append(path)
else:
errors.append("Not identified by file: \"{}\"".format(path))
return {"preserved": src, "linked_files": linked_files, "deleted_files": deleted_files, "errors": errors}
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, create_link=False):
if len(duplicates) == 0:
return None
processed_files = []
for files_by_hash in duplicates.values():
processed_files.append(manager_files(files_by_hash, create_link))
return processed_files
def delete(duplicates):
return manager(duplicates)
def link(duplicates):
return manager(duplicates, True)
|
Adjust spaces and names of variables. Add format of thread to delete and link files. Add to methods of link, delete results of files deleted, linked and with error to list and return for caller method.
|
Adjust spaces and names of variables.
Add format of thread to delete and link files.
Add to methods of link, delete results of files deleted, linked and with error to list and return for caller method.
Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com>
|
Python
|
mit
|
messiasthi/dduplicated-cli
|
import os
def managerFiles(paths, link):
first = True
src = ""
for path in paths:
if first:
first = False
src = path
print("PRESERVED: The file preserved is: \"" + path + "\"")
else:
os.remove(path)
print("DELETE: File deleted: \"" + path + "\"")
if link:
os.symlink(src, path)
print("LINK: Created link: \"" + path + "\" -> \"" + src + "\"")
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, createLink = False):
if len(duplicates) < 1:
print("No duplicates found")
print("Great! Bye!")
exit(0)
for filesByHash in duplicates.values():
managerFiles(filesByHash, createLink)
def delete(duplicates):
manager(duplicates)
def link(duplicates):
manager(duplicates, True)
Adjust spaces and names of variables.
Add format of thread to delete and link files.
Add to methods of link, delete results of files deleted, linked and with error to list and return for caller method.
Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com>
|
import os
from threading import Thread
def _delete(path):
os.remove(path)
def _link(src, path):
os.symlink(src, path)
def manager_files(paths, link):
# The first file is preserved to not delete all files in directories.
first = True
src = ""
deleted_files = []
linked_files = []
errors = []
for path in paths:
if os.path.isfile(path):
if first:
first = False
src = path
else:
Thread(target=_delete, args=(path)).start()
deleted_files.append(path)
if link:
Thread(target=_link, args=(src, path)).start()
linked_files.append(path)
else:
errors.append("Not identified by file: \"{}\"".format(path))
return {"preserved": src, "linked_files": linked_files, "deleted_files": deleted_files, "errors": errors}
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, create_link=False):
if len(duplicates) == 0:
return None
processed_files = []
for files_by_hash in duplicates.values():
processed_files.append(manager_files(files_by_hash, create_link))
return processed_files
def delete(duplicates):
return manager(duplicates)
def link(duplicates):
return manager(duplicates, True)
|
<commit_before>import os
def managerFiles(paths, link):
first = True
src = ""
for path in paths:
if first:
first = False
src = path
print("PRESERVED: The file preserved is: \"" + path + "\"")
else:
os.remove(path)
print("DELETE: File deleted: \"" + path + "\"")
if link:
os.symlink(src, path)
print("LINK: Created link: \"" + path + "\" -> \"" + src + "\"")
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, createLink = False):
if len(duplicates) < 1:
print("No duplicates found")
print("Great! Bye!")
exit(0)
for filesByHash in duplicates.values():
managerFiles(filesByHash, createLink)
def delete(duplicates):
manager(duplicates)
def link(duplicates):
manager(duplicates, True)
<commit_msg>Adjust spaces and names of variables.
Add format of thread to delete and link files.
Add to methods of link, delete results of files deleted, linked and with error to list and return for caller method.
Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com><commit_after>
|
import os
from threading import Thread
def _delete(path):
os.remove(path)
def _link(src, path):
os.symlink(src, path)
def manager_files(paths, link):
# The first file is preserved to not delete all files in directories.
first = True
src = ""
deleted_files = []
linked_files = []
errors = []
for path in paths:
if os.path.isfile(path):
if first:
first = False
src = path
else:
Thread(target=_delete, args=(path)).start()
deleted_files.append(path)
if link:
Thread(target=_link, args=(src, path)).start()
linked_files.append(path)
else:
errors.append("Not identified by file: \"{}\"".format(path))
return {"preserved": src, "linked_files": linked_files, "deleted_files": deleted_files, "errors": errors}
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, create_link=False):
if len(duplicates) == 0:
return None
processed_files = []
for files_by_hash in duplicates.values():
processed_files.append(manager_files(files_by_hash, create_link))
return processed_files
def delete(duplicates):
return manager(duplicates)
def link(duplicates):
return manager(duplicates, True)
|
import os
def managerFiles(paths, link):
first = True
src = ""
for path in paths:
if first:
first = False
src = path
print("PRESERVED: The file preserved is: \"" + path + "\"")
else:
os.remove(path)
print("DELETE: File deleted: \"" + path + "\"")
if link:
os.symlink(src, path)
print("LINK: Created link: \"" + path + "\" -> \"" + src + "\"")
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, createLink = False):
if len(duplicates) < 1:
print("No duplicates found")
print("Great! Bye!")
exit(0)
for filesByHash in duplicates.values():
managerFiles(filesByHash, createLink)
def delete(duplicates):
manager(duplicates)
def link(duplicates):
manager(duplicates, True)
Adjust spaces and names of variables.
Add format of thread to delete and link files.
Add to methods of link, delete results of files deleted, linked and with error to list and return for caller method.
Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com>import os
from threading import Thread
def _delete(path):
os.remove(path)
def _link(src, path):
os.symlink(src, path)
def manager_files(paths, link):
# The first file is preserved to not delete all files in directories.
first = True
src = ""
deleted_files = []
linked_files = []
errors = []
for path in paths:
if os.path.isfile(path):
if first:
first = False
src = path
else:
Thread(target=_delete, args=(path)).start()
deleted_files.append(path)
if link:
Thread(target=_link, args=(src, path)).start()
linked_files.append(path)
else:
errors.append("Not identified by file: \"{}\"".format(path))
return {"preserved": src, "linked_files": linked_files, "deleted_files": deleted_files, "errors": errors}
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, create_link=False):
if len(duplicates) == 0:
return None
processed_files = []
for files_by_hash in duplicates.values():
processed_files.append(manager_files(files_by_hash, create_link))
return processed_files
def delete(duplicates):
return manager(duplicates)
def link(duplicates):
return manager(duplicates, True)
|
<commit_before>import os
def managerFiles(paths, link):
first = True
src = ""
for path in paths:
if first:
first = False
src = path
print("PRESERVED: The file preserved is: \"" + path + "\"")
else:
os.remove(path)
print("DELETE: File deleted: \"" + path + "\"")
if link:
os.symlink(src, path)
print("LINK: Created link: \"" + path + "\" -> \"" + src + "\"")
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, createLink = False):
if len(duplicates) < 1:
print("No duplicates found")
print("Great! Bye!")
exit(0)
for filesByHash in duplicates.values():
managerFiles(filesByHash, createLink)
def delete(duplicates):
manager(duplicates)
def link(duplicates):
manager(duplicates, True)
<commit_msg>Adjust spaces and names of variables.
Add format of thread to delete and link files.
Add to methods of link, delete results of files deleted, linked and with error to list and return for caller method.
Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com><commit_after>import os
from threading import Thread
def _delete(path):
os.remove(path)
def _link(src, path):
os.symlink(src, path)
def manager_files(paths, link):
# The first file is preserved to not delete all files in directories.
first = True
src = ""
deleted_files = []
linked_files = []
errors = []
for path in paths:
if os.path.isfile(path):
if first:
first = False
src = path
else:
Thread(target=_delete, args=(path)).start()
deleted_files.append(path)
if link:
Thread(target=_link, args=(src, path)).start()
linked_files.append(path)
else:
errors.append("Not identified by file: \"{}\"".format(path))
return {"preserved": src, "linked_files": linked_files, "deleted_files": deleted_files, "errors": errors}
# Try The Voight-Kampff if you not recognize if is a replicant or not, all is suspect
def manager(duplicates, create_link=False):
if len(duplicates) == 0:
return None
processed_files = []
for files_by_hash in duplicates.values():
processed_files.append(manager_files(files_by_hash, create_link))
return processed_files
def delete(duplicates):
return manager(duplicates)
def link(duplicates):
return manager(duplicates, True)
|
db91601c7ad50f0db45eb817be74651acdb82f50
|
tests/example_project/tests/test_newman/test_articles.py
|
tests/example_project/tests/test_newman/test_articles.py
|
# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
|
# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 žš experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
|
Add some Czech character to test, too
|
Add some Czech character to test, too
|
Python
|
bsd-3-clause
|
whalerock/ella,ella/ella,petrlosa/ella,MichalMaM/ella,WhiskeyMedia/ella,whalerock/ella,WhiskeyMedia/ella,MichalMaM/ella,whalerock/ella,petrlosa/ella
|
# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
Add some Czech character to test, too
|
# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 žš experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
|
<commit_before># -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
<commit_msg>Add some Czech character to test, too<commit_after>
|
# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 žš experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
|
# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
Add some Czech character to test, too# -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 žš experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
|
<commit_before># -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
<commit_msg>Add some Czech character to test, too<commit_after># -*- coding: utf-8 -*-
from ella.articles.models import Article
from example_project.tests.test_newman.helpers import NewmanTestCase
class TestArticleBasics(NewmanTestCase):
def test_article_template_saving(self):
s = self.selenium
# go to article adding
s.click(self.elements['navigation']['articles'])
s.click(self.elements['controls']['add'])
# wait for the page to fully load
s.wait_for_element_present(self.elements['controls']['suggester'])
# fill the form
data = {
'title' : u'马 žš experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title',
}
self.fill_fields(data)
# fill in the suggesters
suggest_data = {
'category': ('we',),
'authors': ('Bar', 'Kin',),
}
self.fill_suggest_fiels(suggest_data)
self.save_form()
# verify save
self.assert_equals(1, Article.objects.count())
a = Article.objects.all()[0]
self.assert_equals(data['title'], a.title)
# FIXME: hack, use django-markup
self.assert_equals('<p>%s</p>\n' % data['description'], a.description)
self.assert_equals(2, a.authors.count())
|
057a76ac598e90f0f17cf3f24b0a00c146331b6c
|
setup.py
|
setup.py
|
import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
# Only for Python 2.6
'html5lib>=0.999999999'
]
)
|
Add in html5lib as a requirement for Python 2.6
|
Add in html5lib as a requirement for Python 2.6
This should fix https://travis-ci.org/Manishearth/ChatExchange/jobs/179059319.
|
Python
|
apache-2.0
|
Charcoal-SE/ChatExchange,Charcoal-SE/ChatExchange
|
import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
]
)
Add in html5lib as a requirement for Python 2.6
This should fix https://travis-ci.org/Manishearth/ChatExchange/jobs/179059319.
|
import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
# Only for Python 2.6
'html5lib>=0.999999999'
]
)
|
<commit_before>import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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_msg>Add in html5lib as a requirement for Python 2.6
This should fix https://travis-ci.org/Manishearth/ChatExchange/jobs/179059319.<commit_after>
|
import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
# Only for Python 2.6
'html5lib>=0.999999999'
]
)
|
import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
]
)
Add in html5lib as a requirement for Python 2.6
This should fix https://travis-ci.org/Manishearth/ChatExchange/jobs/179059319.import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
# Only for Python 2.6
'html5lib>=0.999999999'
]
)
|
<commit_before>import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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_msg>Add in html5lib as a requirement for Python 2.6
This should fix https://travis-ci.org/Manishearth/ChatExchange/jobs/179059319.<commit_after>import setuptools
setuptools.setup(
name='ChatExchange',
version='0.0.3',
url='https://github.com/Manishearth/ChatExchange',
packages=[
'chatexchange'
],
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'
# Only for Python 2.6
'html5lib>=0.999999999'
]
)
|
6499c06d1f574b8593e3ede7529cfe6532a001c1
|
src/mailme/constants.py
|
src/mailme/constants.py
|
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
|
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
DEFAULT_FOLDER_FLAGS = {
'\\Trash': 'trash',
'\\Sent': 'sent',
'\\Drafts': 'drafts',
'\\Junk': 'spam',
'\\Inbox': 'inbox',
'\\Spam': 'spam'
}
|
Add flag mapping to match folder roles
|
Add flag mapping to match folder roles
|
Python
|
bsd-3-clause
|
mailme/mailme,mailme/mailme
|
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
Add flag mapping to match folder roles
|
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
DEFAULT_FOLDER_FLAGS = {
'\\Trash': 'trash',
'\\Sent': 'sent',
'\\Drafts': 'drafts',
'\\Junk': 'spam',
'\\Inbox': 'inbox',
'\\Spam': 'spam'
}
|
<commit_before>
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
<commit_msg>Add flag mapping to match folder roles<commit_after>
|
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
DEFAULT_FOLDER_FLAGS = {
'\\Trash': 'trash',
'\\Sent': 'sent',
'\\Drafts': 'drafts',
'\\Junk': 'spam',
'\\Inbox': 'inbox',
'\\Spam': 'spam'
}
|
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
Add flag mapping to match folder roles
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
DEFAULT_FOLDER_FLAGS = {
'\\Trash': 'trash',
'\\Sent': 'sent',
'\\Drafts': 'drafts',
'\\Junk': 'spam',
'\\Inbox': 'inbox',
'\\Spam': 'spam'
}
|
<commit_before>
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
<commit_msg>Add flag mapping to match folder roles<commit_after>
# Folder name mappings, based on http://tools.ietf.org/html/rfc6154
INBOX = 'inbox'
DRAFTS = 'drafts'
SPAM = 'spam'
ARCHIVE = 'archive'
SENT = 'sent'
TRASH = 'trash'
ALL = 'all'
IMPORTANT = 'important'
# Default mapping to unify various provider behaviors
DEFAULT_FOLDER_MAPPING = {
'inbox': INBOX,
'drafts': DRAFTS,
'draft': DRAFTS,
'junk': SPAM,
'spam': SPAM,
'archive': ARCHIVE,
'sent': SENT,
'trash': TRASH,
'all': ALL,
'important': IMPORTANT,
}
DEFAULT_FOLDER_FLAGS = {
'\\Trash': 'trash',
'\\Sent': 'sent',
'\\Drafts': 'drafts',
'\\Junk': 'spam',
'\\Inbox': 'inbox',
'\\Spam': 'spam'
}
|
706eacbbf1ed4129e2f616c3e4c8a15f915cc549
|
setup.py
|
setup.py
|
from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.py'
]
)
|
from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.pyw'
]
)
|
Update name of Syre script in install
|
Update name of Syre script in install
|
Python
|
isc
|
jaj42/infupy
|
from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.py'
]
)
Update name of Syre script in install
|
from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.pyw'
]
)
|
<commit_before>from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.py'
]
)
<commit_msg>Update name of Syre script in install<commit_after>
|
from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.pyw'
]
)
|
from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.py'
]
)
Update name of Syre script in installfrom setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.pyw'
]
)
|
<commit_before>from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.py'
]
)
<commit_msg>Update name of Syre script in install<commit_after>from setuptools import setup
setup(name = 'infupy',
version = '0.1',
description = 'Syringe pump infusion',
url = 'https://github.com/jaj42/infupy',
author = 'Jona Joachim',
author_email = 'jona@joachim.cc',
license = 'ISC',
packages = ['infupy', 'infupy.backends', 'infupy.gui'],
install_requires=[
'pyserial'
],
scripts = [
'scripts/syre.pyw'
]
)
|
c71ea81d3bb42c2664824b21bae67cea1eb02239
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tify:main'),
],
},
)
|
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tidy:main'),
],
},
)
|
Fix typo in entry point name
|
Fix typo in entry point name
|
Python
|
mit
|
guykisel/pre-commit-robotframework-tidy
|
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tify:main'),
],
},
)
Fix typo in entry point name
|
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tidy:main'),
],
},
)
|
<commit_before>#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tify:main'),
],
},
)
<commit_msg>Fix typo in entry point name<commit_after>
|
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tidy:main'),
],
},
)
|
#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tify:main'),
],
},
)
Fix typo in entry point name#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tidy:main'),
],
},
)
|
<commit_before>#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tify:main'),
],
},
)
<commit_msg>Fix typo in entry point name<commit_after>#!/usr/bin/env python
import sys
from setuptools import find_packages, setup
install_requires = ['robotframework']
if sys.version_info < (2, 7):
install_requires.append('argparse')
setup(
name='pre_commit_robotframework_tidy',
description='A pre-commit hook to run Robot Framework\'s tidy tool.',
url='https://github.com/guykisel/pre-commit-robotframework-tidy',
version='0.0.1dev0',
author='Guy Kisel',
author_email='guy.kisel@gmail.com',
platforms='any',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Operating System :: OS Independent',
],
packages=find_packages('.', exclude=('tests*', 'testing*')),
install_requires=install_requires,
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
'pre_commit_robotframework_tidy.rf_tidy:main'),
],
},
)
|
cf34bda66a0b5518c0f27e0446c7ee3f98e2d886
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
|
from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
data_files=[('etc', [
'etc/identity.templates',
'etc/identity_v3.templates',
'etc/jumpgate.conf',
'etc/tempest.conf.sample'
])],
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
|
Add etc/* files to wheel
|
Add etc/* files to wheel
|
Python
|
mit
|
wpf710/app-proxy,HOQTEC/MCP,myxemhoho/mutil-cloud-manage-paltform,wpf710/app-proxy,softlayer/jumpgate,HOQTEC/MCP,softlayer/jumpgate,myxemhoho/mutil-cloud-manage-paltform
|
from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
Add etc/* files to wheel
|
from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
data_files=[('etc', [
'etc/identity.templates',
'etc/identity_v3.templates',
'etc/jumpgate.conf',
'etc/tempest.conf.sample'
])],
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
|
<commit_before>from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
<commit_msg>Add etc/* files to wheel<commit_after>
|
from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
data_files=[('etc', [
'etc/identity.templates',
'etc/identity_v3.templates',
'etc/jumpgate.conf',
'etc/tempest.conf.sample'
])],
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
|
from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
Add etc/* files to wheelfrom setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
data_files=[('etc', [
'etc/identity.templates',
'etc/identity_v3.templates',
'etc/jumpgate.conf',
'etc/tempest.conf.sample'
])],
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
|
<commit_before>from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
<commit_msg>Add etc/* files to wheel<commit_after>from setuptools import setup, find_packages
import sys
install_requires_list = [
'falcon>=0.1.8',
'requests',
'six>=1.4.1',
'oslo.config>=1.2.0',
'softlayer',
'pycrypto',
'iso8601',
]
if sys.version_info[0] < 3:
install_requires_list.append('py2-ipaddress')
setup(
name='jumpgate',
version='0.1',
description='OpenStack Transation Layer for cloud providers',
long_description=open('README.rst', 'r').read(),
classifiers=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3.3',
],
author_email='innovation@softlayer.com',
url='http://sldn.softlayer.com',
license='MIT',
packages=find_packages(exclude=['*.tests']),
data_files=[('etc', [
'etc/identity.templates',
'etc/identity_v3.templates',
'etc/jumpgate.conf',
'etc/tempest.conf.sample'
])],
include_package_data=True,
zip_safe=False,
install_requires=install_requires_list,
setup_requires=[],
test_suite='nose.collector',
entry_points={'console_scripts': ['jumpgate = jumpgate.cmd_main:main']}
)
|
3a99fe6a6ce44d40d139836257bdddcc099d469d
|
setup.py
|
setup.py
|
"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
|
"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests', 'ci']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
|
Exclude a supplementary directory from set of directories where packages can be located
|
ci: Exclude a supplementary directory from set of directories where packages can be located
|
Python
|
mit
|
Nikolay-Lysenko/dsawl
|
"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
ci: Exclude a supplementary directory from set of directories where packages can be located
|
"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests', 'ci']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
|
<commit_before>"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
<commit_msg>ci: Exclude a supplementary directory from set of directories where packages can be located<commit_after>
|
"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests', 'ci']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
|
"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
ci: Exclude a supplementary directory from set of directories where packages can be located"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests', 'ci']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
|
<commit_before>"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
<commit_msg>ci: Exclude a supplementary directory from set of directories where packages can be located<commit_after>"""
Just a regular `setup.py` file.
@author: Nikolay Lysenko
"""
import os
from setuptools import setup, find_packages
current_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(current_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dsawl',
version='0.1a',
description='A set of tools for machine learning',
long_description=long_description,
url='https://github.com/Nikolay-Lysenko/dsawl',
author='Nikolay Lysenko',
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
packages=find_packages(exclude=['docs', 'tests', 'ci']),
python_requires='>=3.5',
install_requires=['numpy', 'pandas', 'scipy', 'scikit-learn', 'joblib']
)
|
f135c4bf7bb1e38e1c60a6325b57096b0a5fe41d
|
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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
install_requires=[
"pyjwt",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
Add forgotten dependency on PyJWT
|
Add forgotten dependency on PyJWT
|
Python
|
mit
|
tgs/django-badgekit-webhooks
|
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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
Add forgotten dependency on PyJWT
|
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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
install_requires=[
"pyjwt",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
<commit_msg>Add forgotten dependency on PyJWT<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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
install_requires=[
"pyjwt",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
Add forgotten dependency on PyJWTimport 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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
install_requires=[
"pyjwt",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
<commit_msg>Add forgotten dependency on PyJWT<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="Thomas Grenfell Smith",
author_email="thomathom@gmail.com",
description="Webhook endpoint for Mozilla's BadgeKit API",
name="django-badgekit-webhooks",
long_description=read("README.rst"),
version=__import__("badgekit_webhooks").__version__,
url="http://django-badgekit-webhooks.rtfd.org/",
license="MIT",
packages=find_packages(),
tests_require=[
"Django>=1.4",
],
install_requires=[
"pyjwt",
],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
zip_safe=False
)
|
54b33692ce7057a600f04397e796dca6061496db
|
setup.py
|
setup.py
|
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
|
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
|
Use new name of README.
|
Use new name of README.
|
Python
|
bsd-3-clause
|
tloiret/django-authority,luzfcb/django-authority,jezdez/django-authority,shashkin/django-authority,PolicyStat/django-authority,barseghyanartur/django-authority,nebstrebor/django-authority,AminKAli/django-authority,DylanLukes/django-authority,jazzband/django-authority,jazzband/django-authority,shashkin/django-authority,PolicyStat/django-authority,jlward/django-authority,jezdez/django-authority,jlward/django-authority,yehoshuk/django-authority,barseghyanartur/django-authority,yehoshuk/django-authority
|
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
Use new name of README.
|
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
|
<commit_before>import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
<commit_msg>Use new name of README.<commit_after>
|
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
|
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
Use new name of README.import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
|
<commit_before>import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
<commit_msg>Use new name of README.<commit_after>import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-authority',
version='0.7',
description=(
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD',
url='https://github.com/jezdez/django-authority/',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Framework :: Django',
],
install_requires=['django'],
package_data = {
'authority': [
'fixtures/test.json',
'templates/authority/*.html',
'templates/admin/edit_inline/action_tabular.html',
'templates/admin/permission_change_form.html',
]
},
zip_safe=False,
)
|
01935ec30bba8b3733f716acf52ba32cb3a03974
|
setup.py
|
setup.py
|
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton fraemwork for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
|
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton framework for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
|
Fix typo in package description
|
Fix typo in package description
|
Python
|
agpl-3.0
|
luac/django-argcache,luac/django-argcache
|
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton fraemwork for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
Fix typo in package description
|
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton framework for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
|
<commit_before>import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton fraemwork for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
<commit_msg>Fix typo in package description<commit_after>
|
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton framework for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
|
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton fraemwork for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
Fix typo in package descriptionimport os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton framework for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
|
<commit_before>import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton fraemwork for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
<commit_msg>Fix typo in package description<commit_after>import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-argcache',
version='0.1',
license='AGPLv3',
description='A function-level caching and invalidaton framework for Django.',
long_description=README,
url='https://github.com/luac/django-argcache/',
author='Anthony Lu',
author_email='lua@mit.edu',
packages=[
'argcache',
'argcache.extras',
],
package_dir={
'argcache': 'src'
},
include_package_data=True,
install_requires=[
'django>=1.7',
],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)
|
cfd6bdc7fb2911e501d307a964329dd3f7375997
|
setup.py
|
setup.py
|
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.0.5b',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
|
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.1',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
|
Clean pip build, bump version
|
Clean pip build, bump version
|
Python
|
mit
|
gabfl/redis-priority-queue,gabfl/redis-priority-queue,gabfl/redis-priority-queue
|
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.0.5b',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
Clean pip build, bump version
|
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.1',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
|
<commit_before>from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.0.5b',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
<commit_msg>Clean pip build, bump version<commit_after>
|
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.1',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
|
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.0.5b',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
Clean pip build, bump versionfrom setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.1',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
|
<commit_before>from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.0.5b',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
<commit_msg>Clean pip build, bump version<commit_after>from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup (
name = 'rpq',
version = '1.1',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux',
author_email = 'pypi@gab.lc',
url = 'https://github.com/gabfl/redis-priority-queue',
license = 'MIT',
packages = ['rpq', 'rpq_src'],
package_dir = { 'rpq': 'clients/python/lib', 'rpq_src': 'src' },
package_data={
'rpq_src': ['*.lua'],
},
install_requires = ['redis', 'argparse', 'prettytable'], # external dependencies
entry_points = {
'console_scripts': [
'rpq_monitor = rpq_src.queue_monitor:main',
],
},
)
|
2b3333ea6e15884955cbad203dfc777b8c238dc3
|
sipa/model/pycroft/schema.py
|
sipa/model/pycroft/schema.py
|
# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: int
description: str
|
# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: Decimal
description: str
|
Use decimal instead of int for money
|
Use decimal instead of int for money
|
Python
|
mit
|
MarauderXtreme/sipa,MarauderXtreme/sipa,agdsn/sipa,agdsn/sipa,MarauderXtreme/sipa,agdsn/sipa,agdsn/sipa
|
# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: int
description: str
Use decimal instead of int for money
|
# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: Decimal
description: str
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: int
description: str
<commit_msg>Use decimal instead of int for money<commit_after>
|
# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: Decimal
description: str
|
# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: int
description: str
Use decimal instead of int for money# -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: Decimal
description: str
|
<commit_before># -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: int
description: str
<commit_msg>Use decimal instead of int for money<commit_after># -*- coding: utf-8 -*-
from __future__ import annotations
from datetime import date
from decimal import Decimal
from typing import List, Optional
from sipa.model.pycroft.unserialize import unserializer
@unserializer
class UserData:
id: int
user_id: str
login: str
name: str
status: UserStatus
room: str
mail: str
cache: bool
properties: List[str]
traffic_history: List[TrafficHistoryEntry]
interfaces: List[Interface]
finance_balance: Decimal
finance_history: List[FinanceHistoryEntry]
# TODO implement `cls.Meta.custom_constructors`, use `parse_date` for this
last_finance_update: str
# TODO introduce properties once they can be excluded
membership_end_date: str
@unserializer
class UserStatus:
member: bool
traffic_exceeded: bool
network_access: bool
account_balanced: bool
violation: bool
@unserializer
class Interface:
id: int
mac: str
ips: List[str]
@unserializer
class TrafficHistoryEntry:
timestamp: str
ingress: Optional[int]
egress: Optional[int]
@unserializer
class FinanceHistoryEntry:
valid_on: str
amount: Decimal
description: str
|
d9cacfb1875961b6bc31ccaffd1b65b9ea00906c
|
setup.py
|
setup.py
|
from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
|
from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2.1",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
|
Correct version for the master branch
|
Correct version for the master branch
|
Python
|
mit
|
johnhw/pyspacenavigator
|
from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
Correct version for the master branch
|
from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2.1",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
|
<commit_before>from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
<commit_msg>Correct version for the master branch<commit_after>
|
from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2.1",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
|
from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
Correct version for the master branchfrom distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2.1",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
|
<commit_before>from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
<commit_msg>Correct version for the master branch<commit_after>from distutils.core import setup
setup(
name="spacenavigator",
# packages = ['spacenavigator'], # this must be the same as the name above
version="0.2.1",
description="Python interface to the 3DConnexion Space Navigator",
author="John Williamson",
author_email="johnhw@gmail.com",
url="https://github.com/johnhw/pyspacenavigator", # use the URL to the github repo
download_url="https://github.com/johnhw/pyspacenavigator/tarball/0.2.1",
keywords=["spacenavigator", "3d", "6 DoF", "HID"],
py_modules=["spacenavigator"],
classifiers=[],
)
|
7335509eb20bcc1d871c58d66f1cc1e4be0b11bd
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
Add Python version trove classifiers
|
Add Python version trove classifiers
|
Python
|
bsd-2-clause
|
Suor/django-easymoney
|
from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
Add Python version trove classifiers
|
from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
<commit_before>from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
<commit_msg>Add Python version trove classifiers<commit_after>
|
from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
Add Python version trove classifiersfrom setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
<commit_before>from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
<commit_msg>Add Python version trove classifiers<commit_after>from setuptools import setup
setup(
name='django-easymoney',
version='0.5',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='An easy MoneyField for Django.',
long_description=open('README.rst').read(),
url='http://github.com/Suor/django-easymoney',
license='BSD',
py_modules=['easymoney'],
install_requires=[
'django>=1.6',
'babel',
'six',
],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
|
8edf45c173bddcb770f9d37c0bc3c5ecaea38452
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
|
#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'colorama',
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
|
Add colorama as a dependency
|
Add colorama as a dependency
|
Python
|
mit
|
cadyyan/technic-solder-client,durandj/technic-solder-client
|
#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
Add colorama as a dependency
|
#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'colorama',
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
|
<commit_before>#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
<commit_msg>Add colorama as a dependency<commit_after>
|
#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'colorama',
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
|
#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
Add colorama as a dependency#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'colorama',
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
|
<commit_before>#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
<commit_msg>Add colorama as a dependency<commit_after>#!/usr/bin/env python
import os.path
from setuptools import find_packages, setup
setup(
name = 'technic-solder-client',
version = '1.0',
description = 'Python implementation of a Technic Solder client',
author = 'Cadyyan',
url = 'https://github.com/cadyyan/technic-solder-client',
licensee = 'MIT',
packages = find_packages(),
install_requires = [
'colorama',
'tabulate',
],
scripts = [
os.path.join('bin', 'solder'),
],
)
|
c04e0c7938c6c6ffae3b40b4d1bcd9faeaf284d0
|
setup.py
|
setup.py
|
from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/johnsdea/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
|
from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/dean/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
|
Update url with new Github username.
|
Update url with new Github username.
|
Python
|
mpl-2.0
|
dean/hamper-poll
|
from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/johnsdea/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
Update url with new Github username.
|
from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/dean/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
|
<commit_before>from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/johnsdea/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
<commit_msg>Update url with new Github username.<commit_after>
|
from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/dean/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
|
from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/johnsdea/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
Update url with new Github username.from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/dean/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
|
<commit_before>from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/johnsdea/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
<commit_msg>Update url with new Github username.<commit_after>from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-poll',
version='0.1',
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
url='https://github.com/dean/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt', 'README.md', 'LICENSE']}
)
|
f121f72af87b64106449789f46d95e1a0032530f
|
setup.py
|
setup.py
|
#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0', # Might work with earlier versions, but not tested.
],
)
|
#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0.0', # Might work with earlier versions, but not tested.
],
)
|
Change manage.py to require Pillow 2.0.0 This is to avoid PIL import errors for Mac users
|
Change manage.py to require Pillow 2.0.0 This is to avoid PIL import errors for Mac users
|
Python
|
bsd-3-clause
|
RossLYoung/django-photologue,MathieuDuponchelle/my_patched_photologue,rmaceissoft/django-photologue,jlemaes/django-photologue,jlemaes/django-photologue,MathieuDuponchelle/my_patched_photologue,seedwithroot/django-photologue-clone,rmaceissoft/django-photologue,RossLYoung/django-photologue,RossLYoung/django-photologue,jlemaes/django-photologue,rmaceissoft/django-photologue,seedwithroot/django-photologue-clone
|
#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0', # Might work with earlier versions, but not tested.
],
)
Change manage.py to require Pillow 2.0.0 This is to avoid PIL import errors for Mac users
|
#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0.0', # Might work with earlier versions, but not tested.
],
)
|
<commit_before>#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0', # Might work with earlier versions, but not tested.
],
)
<commit_msg>Change manage.py to require Pillow 2.0.0 This is to avoid PIL import errors for Mac users<commit_after>
|
#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0.0', # Might work with earlier versions, but not tested.
],
)
|
#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0', # Might work with earlier versions, but not tested.
],
)
Change manage.py to require Pillow 2.0.0 This is to avoid PIL import errors for Mac users#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0.0', # Might work with earlier versions, but not tested.
],
)
|
<commit_before>#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0', # Might work with earlier versions, but not tested.
],
)
<commit_msg>Change manage.py to require Pillow 2.0.0 This is to avoid PIL import errors for Mac users<commit_after>#/usr/bin/env python
import os
from setuptools import setup, find_packages
ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)
version = '2.6.dev0'
setup(
name="django-photologue",
version=version,
description="Powerful image management for the Django web framework.",
author="Justin Driscoll, Marcos Daniel Petry, Richard Barran",
author_email="justin@driscolldev.com, marcospetry@gmail.com",
url="https://github.com/jdriscoll/django-photologue",
packages=find_packages(),
package_data={
'photologue': [
'res/*.jpg',
'locale/*/LC_MESSAGES/*',
'templates/photologue/*.html',
'templates/photologue/tags/*.html',
]
},
zip_safe=False,
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
install_requires=['Django>=1.3', # Change to class-based views means 1.3 minimum.
'South>=0.7.5', # Might work with earlier versions, but not tested.
'Pillow>=2.0.0', # Might work with earlier versions, but not tested.
],
)
|
ff0c5db75efd33176121ed370457c82650248d54
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/geotagging/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
|
from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
|
Revert "added geotagging to path"
|
Revert "added geotagging to path"
This reverts commit 54ac4a9ec3ddc0876be202546dc4de00a33389f8.
|
Python
|
bsd-3-clause
|
lincolnloop/django-geotagging-new,lincolnloop/django-geotagging-new
|
from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/geotagging/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
Revert "added geotagging to path"
This reverts commit 54ac4a9ec3ddc0876be202546dc4de00a33389f8.
|
from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/geotagging/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
<commit_msg>Revert "added geotagging to path"
This reverts commit 54ac4a9ec3ddc0876be202546dc4de00a33389f8.<commit_after>
|
from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
|
from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/geotagging/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
Revert "added geotagging to path"
This reverts commit 54ac4a9ec3ddc0876be202546dc4de00a33389f8.from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/geotagging/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
<commit_msg>Revert "added geotagging to path"
This reverts commit 54ac4a9ec3ddc0876be202546dc4de00a33389f8.<commit_after>from setuptools import setup, find_packages
setup(
name='django-geotagging-new',
version='0.2.0',
description=('This is a geotagging application. '
'It can be used to localize your content.'),
author='Nicolas Lara',
author_email='nicolaslara@gmail.com',
url='https://github.com/lincolnloop/django-geotagging-new',
package_data={'geotagging': ['static/js/*.js', 'templates/geotagging/*.html', 'templates/olwidget/*.html']},
requires = ['django (>=1.3)'],
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
include_package_data=True,
zip_safe=False,
)
|
80735a39094b6a317e7adc299c5055ad3a961920
|
setup.py
|
setup.py
|
import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
|
import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
|
Add py3.6 to supported version
|
Add py3.6 to supported version
|
Python
|
bsd-3-clause
|
Kyria/EsiPy,a-tal/EsiPy
|
import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
Add py3.6 to supported version
|
import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
|
<commit_before>import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
<commit_msg>Add py3.6 to supported version<commit_after>
|
import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
|
import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
Add py3.6 to supported versionimport esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
|
<commit_before>import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
<commit_msg>Add py3.6 to supported version<commit_after>import esipy
import io
from setuptools import setup
# install requirements
install_requirements = [
"requests",
"pyswagger",
"six",
"pytz",
]
# test requirements
test_requirements = [
"coverage",
"coveralls",
"httmock",
"nose",
"mock",
"future",
"python-memcached"
] + install_requirements
with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()
setup(
name='EsiPy',
version=esipy.__version__,
packages=['esipy'],
url='https://github.com/Kyria/EsiPy',
license='BSD 3-Clause License',
author='Kyria',
author_email='anakhon@gmail.com',
description='Swagger Client for the ESI API for EVE Online',
long_description=readme,
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='nose.collector',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
)
|
0e7ee2dc40abf379656ae31a45178dbe2d4fcd28
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
|
# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
long_description_content_type = "text/x-rst",
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
|
Add content type for proper PyPI rendering
|
Add content type for proper PyPI rendering
|
Python
|
mit
|
saghul/aiodns
|
# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
Add content type for proper PyPI rendering
|
# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
long_description_content_type = "text/x-rst",
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
|
<commit_before># -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
<commit_msg>Add content type for proper PyPI rendering<commit_after>
|
# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
long_description_content_type = "text/x-rst",
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
|
# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
Add content type for proper PyPI rendering# -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
long_description_content_type = "text/x-rst",
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
|
<commit_before># -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
<commit_msg>Add content type for proper PyPI rendering<commit_after># -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
def get_version():
return re.search(r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)""", open('aiodns/__init__.py').read()).group('version')
setup(name = "aiodns",
version = get_version(),
author = "Saúl Ibarra Corretgé",
author_email = "s@saghul.net",
url = "http://github.com/saghul/aiodns",
description = "Simple DNS resolver for asyncio",
long_description = codecs.open("README.rst", encoding="utf-8").read(),
long_description_content_type = "text/x-rst",
install_requires = ['pycares>=3.0.0', 'typing; python_version<"3.7"'],
packages = ['aiodns'],
platforms = ["POSIX", "Microsoft Windows"],
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
]
)
|
2debdb1e8eeda68368096f99ddffb0cc93f4095b
|
purchase_discount/models/purchase_order.py
|
purchase_discount/models/purchase_order.py
|
# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if self.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
|
# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if line.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
|
Fix issue with multiple lines
|
Fix issue with multiple lines
|
Python
|
agpl-3.0
|
Eficent/purchase-workflow,SerpentCS/purchase-workflow,SerpentCS/purchase-workflow,SerpentCS/purchase-workflow,Eficent/purchase-workflow
|
# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if self.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
Fix issue with multiple lines
|
# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if line.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
|
<commit_before># -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if self.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
<commit_msg>Fix issue with multiple lines<commit_after>
|
# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if line.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
|
# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if self.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
Fix issue with multiple lines# -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if line.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
|
<commit_before># -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if self.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
<commit_msg>Fix issue with multiple lines<commit_after># -*- coding: utf-8 -*-
# © 2004-2009 Tiny SPRL (<http://tiny.be>).
# © 2015 Pedro M. Baeza
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import api, fields, models
import openerp.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = "purchase.order.line"
@api.depends('discount')
def _compute_amount(self):
prices = {}
for line in self:
if line.discount:
prices[line.id] = line.price_unit
line.price_unit *= (1 - line.discount / 100.0)
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
if line.discount:
line.price_unit = prices[line.id]
discount = fields.Float(
string='Discount (%)', digits_compute=dp.get_precision('Discount'))
_sql_constraints = [
('discount_limit', 'CHECK (discount <= 100.0)',
'Discount must be lower than 100%.'),
]
|
20ffe76f5bfa8824445a566e335182d7bf574f67
|
platformio_api/__init__.py
|
platformio_api/__init__.py
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*20, # 20 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*50, # 50 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
|
Increase lib repo size to 50Mb
|
Increase lib repo size to 50Mb
|
Python
|
apache-2.0
|
orgkhnargh/platformio-api,platformio/platformio-api
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*20, # 20 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
Increase lib repo size to 50Mb
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*50, # 50 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
|
<commit_before># Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*20, # 20 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
<commit_msg>Increase lib repo size to 50Mb<commit_after>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*50, # 50 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*20, # 20 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
Increase lib repo size to 50Mb# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*50, # 50 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
|
<commit_before># Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*20, # 20 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
<commit_msg>Increase lib repo size to 50Mb<commit_after># Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
import json
import logging.config
import os
from time import tzset
VERSION = (0, 3, 0)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio-api"
__description__ = ("An API for PlatformIO")
__url__ = "https://github.com/ivankravets/platformio-api"
__author__ = "Ivan Kravets"
__email__ = "me@ikravets.com"
__license__ = "MIT License"
__copyright__ = "Copyright (C) 2014-2015 Ivan Kravets"
config = dict(
SQLALCHEMY_DATABASE_URI=None,
GITHUB_LOGIN=None,
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
MAX_DLFILE_SIZE=1024*1024*50, # 50 Mb
LOGGING=dict(version=1)
)
assert "PIOAPI_CONFIG_PATH" in os.environ
with open(os.environ.get("PIOAPI_CONFIG_PATH")) as f:
config.update(json.load(f))
# configure logging for packages
logging.basicConfig()
logging.config.dictConfig(config['LOGGING'])
# setup time zone to UTC globally
os.environ['TZ'] = "+00:00"
tzset()
|
223aca4365e8fa3f5311ed15ede4cc30792bafca
|
scripts/cluster/craq/restart_craq_local.py
|
scripts/cluster/craq/restart_craq_local.py
|
#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_server.py'], shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_router.py'], shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
|
#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen('./cluster/craq/start_craq_server.py', shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen('./cluster/craq/start_craq_router.py', shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
|
Fix paths to start_craq scripts.
|
Fix paths to start_craq scripts.
|
Python
|
bsd-3-clause
|
sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata
|
#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_server.py'], shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_router.py'], shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
Fix paths to start_craq scripts.
|
#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen('./cluster/craq/start_craq_server.py', shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen('./cluster/craq/start_craq_router.py', shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
|
<commit_before>#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_server.py'], shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_router.py'], shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
<commit_msg>Fix paths to start_craq scripts.<commit_after>
|
#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen('./cluster/craq/start_craq_server.py', shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen('./cluster/craq/start_craq_router.py', shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
|
#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_server.py'], shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_router.py'], shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
Fix paths to start_craq scripts.#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen('./cluster/craq/start_craq_server.py', shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen('./cluster/craq/start_craq_router.py', shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
|
<commit_before>#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_server.py'], shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen(['python', './cluster/zookeeper/start_craq_router.py'], shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
<commit_msg>Fix paths to start_craq scripts.<commit_after>#!/usr/bin/python
import sys
import subprocess
import time
def main():
print "Starting zookeeper"
subprocess.Popen('./cluster/zookeeper/start_zookeeper.sh', shell=True)
print "Finished starting zookeeper"
time.sleep(45)
print "Starting Craqs"
subprocess.Popen('./cluster/craq/start_craq_server.py', shell=True)
print "Finished starting Craqs"
time.sleep(45)
print "Starting Router"
subprocess.Popen('./cluster/craq/start_craq_router.py', shell=True)
print "Finished starting Router"
return 0
if __name__ == "__main__":
sys.exit(main())
|
b263ebe89eaf162540f0437a6a7a01848bffe587
|
kpi/deployment_backends/kc_access/storage.py
|
kpi/deployment_backends/kc_access/storage.py
|
# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
bucket = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(acl=None, bucket=bucket, **settings)
|
# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
if acl:
settings['default_acl'] = acl
settings['bucket_name'] = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(**settings)
|
Fix KoboS3Storage deprecated bucket and acl arguments
|
Fix KoboS3Storage deprecated bucket and acl arguments
|
Python
|
agpl-3.0
|
kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi
|
# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
bucket = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(acl=None, bucket=bucket, **settings)
Fix KoboS3Storage deprecated bucket and acl arguments
|
# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
if acl:
settings['default_acl'] = acl
settings['bucket_name'] = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(**settings)
|
<commit_before># coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
bucket = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(acl=None, bucket=bucket, **settings)
<commit_msg>Fix KoboS3Storage deprecated bucket and acl arguments<commit_after>
|
# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
if acl:
settings['default_acl'] = acl
settings['bucket_name'] = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(**settings)
|
# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
bucket = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(acl=None, bucket=bucket, **settings)
Fix KoboS3Storage deprecated bucket and acl arguments# coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
if acl:
settings['default_acl'] = acl
settings['bucket_name'] = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(**settings)
|
<commit_before># coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
bucket = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(acl=None, bucket=bucket, **settings)
<commit_msg>Fix KoboS3Storage deprecated bucket and acl arguments<commit_after># coding: utf-8
from django.conf import settings as django_settings
from django.core.files.storage import FileSystemStorage
from storages.backends.s3boto3 import S3Boto3Storage
def get_kobocat_storage():
"""
Return an instance of a storage object depending on the setting
`KOBOCAT_DEFAULT_FILE_STORAGE` value
"""
if (
django_settings.KOBOCAT_DEFAULT_FILE_STORAGE
== 'storages.backends.s3boto3.S3Boto3Storage'
):
return KobocatS3Boto3Storage()
else:
return KobocatFileSystemStorage()
class KobocatFileSystemStorage(FileSystemStorage):
def __init__(
self,
location=None,
base_url=None,
file_permissions_mode=None,
directory_permissions_mode=None,
):
location = (
django_settings.KOBOCAT_MEDIA_PATH if not location else location
)
super().__init__(
location=location,
base_url=base_url,
file_permissions_mode=file_permissions_mode,
directory_permissions_mode=directory_permissions_mode,
)
class KobocatS3Boto3Storage(S3Boto3Storage):
def __init__(self, acl=None, bucket=None, **settings):
if acl:
settings['default_acl'] = acl
settings['bucket_name'] = django_settings.KOBOCAT_AWS_STORAGE_BUCKET_NAME
super().__init__(**settings)
|
531a0f24297d049ee177340f1631025e420e302d
|
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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
install_requires=["argparse"],
setup_requires=["nose==1.3.1"],
)
|
# 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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
setup_requires=["nose==1.3.1"],
)
|
Remove argparse dependency (not necessary)
|
Remove argparse dependency (not necessary)
|
Python
|
mpl-2.0
|
mozilla/build-runner,mozilla/build-runner
|
# 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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
install_requires=["argparse"],
setup_requires=["nose==1.3.1"],
)
Remove argparse dependency (not necessary)
|
# 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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
setup_requires=["nose==1.3.1"],
)
|
<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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
install_requires=["argparse"],
setup_requires=["nose==1.3.1"],
)
<commit_msg>Remove argparse dependency (not necessary)<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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
setup_requires=["nose==1.3.1"],
)
|
# 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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
install_requires=["argparse"],
setup_requires=["nose==1.3.1"],
)
Remove argparse dependency (not necessary)# 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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
setup_requires=["nose==1.3.1"],
)
|
<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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
install_requires=["argparse"],
setup_requires=["nose==1.3.1"],
)
<commit_msg>Remove argparse dependency (not necessary)<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
setup(
name="runner",
version="1.9",
description="Task runner",
author="Chris AtLee",
author_email="chris@atlee.ca",
packages=[
"runner",
"runner.lib"
],
entry_points={
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
setup_requires=["nose==1.3.1"],
)
|
075eaeb44046f07eee11a05fc693e23a30ac3963
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
'graphitesend>0.3.4,<0.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
Add graphitesend dependency for graphiteservice output.
|
Add graphitesend dependency for graphiteservice output.
|
Python
|
bsd-3-clause
|
amorphic/braubuddy,amorphic/braubuddy,amorphic/braubuddy
|
from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
Add graphitesend dependency for graphiteservice output.
|
from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
'graphitesend>0.3.4,<0.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
<commit_msg>Add graphitesend dependency for graphiteservice output.<commit_after>
|
from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
'graphitesend>0.3.4,<0.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
Add graphitesend dependency for graphiteservice output.from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
'graphitesend>0.3.4,<0.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
<commit_msg>Add graphitesend dependency for graphiteservice output.<commit_after>from setuptools import setup, find_packages
setup(
name='braubuddy',
version='0.3.0',
author='James Stewart',
author_email='jstewart101@gmail.com',
description='An extensile thermostat framework',
long_description=open('README.rst').read(),
license='LICENSE.txt',
packages=find_packages(),
url='http://braubuddy.org/',
include_package_data=True,
entry_points={
'console_scripts': [
'braubuddy = braubuddy.runserver:main',
]
},
install_requires=[
'pyserial>=2.0',
'tosr0x>=0.2.0',
'temperusb>=1.2.0',
'ds18b20>=0.01.03',
'cherrypy>=3.2.2',
'pyxdg>=0.25',
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
'graphitesend>0.3.4,<0.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)
|
1af44acebd1d8571f6153df61946857e7cf32154
|
setup.py
|
setup.py
|
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'akuchlin@mems-exchange.org',
url = "http://www.amk.ca/python/tex_wrap.html",
packages = ['texlib'],
)
|
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'amk@amk.ca',
packages = ['texlib'],
)
|
Update e-mail address; remove obsolete web page
|
Update e-mail address; remove obsolete web page
|
Python
|
mit
|
akuchling/texlib
|
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'akuchlin@mems-exchange.org',
url = "http://www.amk.ca/python/tex_wrap.html",
packages = ['texlib'],
)
Update e-mail address; remove obsolete web page
|
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'amk@amk.ca',
packages = ['texlib'],
)
|
<commit_before>
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'akuchlin@mems-exchange.org',
url = "http://www.amk.ca/python/tex_wrap.html",
packages = ['texlib'],
)
<commit_msg>Update e-mail address; remove obsolete web page<commit_after>
|
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'amk@amk.ca',
packages = ['texlib'],
)
|
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'akuchlin@mems-exchange.org',
url = "http://www.amk.ca/python/tex_wrap.html",
packages = ['texlib'],
)
Update e-mail address; remove obsolete web page
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'amk@amk.ca',
packages = ['texlib'],
)
|
<commit_before>
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'akuchlin@mems-exchange.org',
url = "http://www.amk.ca/python/tex_wrap.html",
packages = ['texlib'],
)
<commit_msg>Update e-mail address; remove obsolete web page<commit_after>
# setup.py file for texlib
from distutils.core import setup
setup(name = 'texlib', version = '0.01',
description = ("A package of Python modules for dealing with "
"various TeX-related file formats."),
author = 'A.M. Kuchling',
author_email = 'amk@amk.ca',
packages = ['texlib'],
)
|
2b20a3db9d4e45451b2fa8ae886935d113af6e2a
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name="utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/sroberts/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
|
from setuptools import setup, find_packages
setup(
name="cnd-utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/yolothreat/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
|
Rename to avoid PyPI namespace collision
|
Rename to avoid PyPI namespace collision
|
Python
|
mit
|
yolothreat/utilitybelt,yolothreat/utilitybelt
|
from setuptools import setup, find_packages
setup(
name="utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/sroberts/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
Rename to avoid PyPI namespace collision
|
from setuptools import setup, find_packages
setup(
name="cnd-utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/yolothreat/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/sroberts/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
<commit_msg>Rename to avoid PyPI namespace collision<commit_after>
|
from setuptools import setup, find_packages
setup(
name="cnd-utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/yolothreat/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
|
from setuptools import setup, find_packages
setup(
name="utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/sroberts/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
Rename to avoid PyPI namespace collisionfrom setuptools import setup, find_packages
setup(
name="cnd-utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/yolothreat/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name="utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/sroberts/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
<commit_msg>Rename to avoid PyPI namespace collision<commit_after>from setuptools import setup, find_packages
setup(
name="cnd-utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
url="https://github.com/yolothreat/utilitybelt",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=['requests', 'GeoIP']
)
|
0499d0910f624268ad098c1ea5193dc8e39c1729
|
setup.py
|
setup.py
|
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.4',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
|
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.5',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
|
Update the PyPI version to 7.0.5.
|
Update the PyPI version to 7.0.5.
|
Python
|
mit
|
Doist/todoist-python
|
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.4',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
Update the PyPI version to 7.0.5.
|
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.5',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
|
<commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.4',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
<commit_msg>Update the PyPI version to 7.0.5.<commit_after>
|
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.5',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
|
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.4',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
Update the PyPI version to 7.0.5.# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.5',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
|
<commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.4',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
<commit_msg>Update the PyPI version to 7.0.5.<commit_after># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.5',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com',
license='BSD',
description='todoist-python - The official Todoist Python API library',
long_description = read('README.md'),
install_requires=[
'requests',
],
# see here for complete list of classifiers
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=(
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
),
)
|
5ada6a5084c25bcee71f7a1961f60c5decaed9d4
|
setup.py
|
setup.py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Communications",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
|
Update development status trove classifier from Alpha to Beta
|
Update development status trove classifier from Alpha to Beta
|
Python
|
bsd-3-clause
|
runeh/carrot,ask/carrot,ask/carrot
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
Update development status trove classifier from Alpha to Beta
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Communications",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
<commit_msg>Update development status trove classifier from Alpha to Beta<commit_after>
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Communications",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
Update development status trove classifier from Alpha to Beta#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Communications",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
|
<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 3 - Alpha",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
<commit_msg>Update development status trove classifier from Alpha to Beta<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import carrot
setup(
name='carrot',
version=carrot.__version__,
description=carrot.__doc__,
author=carrot.__author__,
author_email=carrot.__contact__,
url=carrot.__homepage__,
platforms=["any"],
packages=find_packages(exclude=['ez_setup']),
test_suite="nose.collector",
install_requires=[
'amqplib',
],
classifiers=[
"Development Status :: 4 - Beta",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Topic :: Communications",
"Topic :: System :: Distributed Computing",
"Topic :: Software Development :: Libraries :: Python Modules",
],
long_description=codecs.open('README.rst', "r", "utf-8").read(),
)
|
b656fb28a9ff2fc797ec5f74c07830b3b255b2b4
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit_xml_output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml-output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
|
Rename the package name to junit-xml-output.
|
Rename the package name to junit-xml-output.
Signed-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com>
|
Python
|
mit
|
dbaxa/python-junit-xml-output
|
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit_xml_output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
Rename the package name to junit-xml-output.
Signed-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com>
|
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml-output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit_xml_output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
<commit_msg>Rename the package name to junit-xml-output.
Signed-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com><commit_after>
|
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml-output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
|
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit_xml_output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
Rename the package name to junit-xml-output.
Signed-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml-output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit_xml_output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
<commit_msg>Rename the package name to junit-xml-output.
Signed-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com><commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml-output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module',
packages = find_packages(),
description = read('README.md'),
long_description = read('README.md'),
license = "MIT",
version = __import__('junit_xml_output').__version__,
test_suite = 'junit_xml_output.test',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'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',
],
)
|
df1f2e491f9cdc06d86c1300b80476b66dbb4ae0
|
setup.py
|
setup.py
|
##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.txt').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
license='ZPL',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
|
##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
],
license='Apache Software License, Version 2.0',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
|
Update license text and classifiers and README ext
|
Update license text and classifiers and README ext
|
Python
|
apache-2.0
|
benji-york/manuel
|
##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.txt').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
license='ZPL',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
Update license text and classifiers and README ext
|
##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
],
license='Apache Software License, Version 2.0',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
|
<commit_before>##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.txt').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
license='ZPL',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
<commit_msg>Update license text and classifiers and README ext<commit_after>
|
##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
],
license='Apache Software License, Version 2.0',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
|
##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.txt').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
license='ZPL',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
Update license text and classifiers and README ext##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
],
license='Apache Software License, Version 2.0',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
|
<commit_before>##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.txt').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
license='ZPL',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
<commit_msg>Update license text and classifiers and README ext<commit_after>##############################################################################
#
# Copyright Benji York and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Apache License, Version
# 2.0.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Setup for manuel package."""
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
tests_require = ['zope.testing']
setup(
name='manuel',
version='0',
url = 'http://pypi.python.org/pypi/manuel',
packages=find_packages('src'),
package_dir={'':'src'},
zip_safe=False,
author='Benji York',
author_email='benji@benjiyork.com',
description='Manuel lets you build tested documentation.',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
],
license='Apache Software License, Version 2.0',
extras_require={
'tests': tests_require,
},
tests_require = tests_require,
test_suite = 'manuel.tests.test_suite',
install_requires=[
'setuptools',
'six',
],
include_package_data=True,
long_description = long_description,
)
|
a65c8287e0d5e850173375a2e852b29a905ffbf1
|
tools/telemetry/telemetry/core/possible_browser.py
|
tools/telemetry/telemetry/core/possible_browser.py
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self.browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self._browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def browser_type(self):
return self._browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
|
Make browser_type a property of PossibleBrowser.
|
Make browser_type a property of PossibleBrowser.
BUG=NONE
TEST=run_tests
NOTRY=true
Review URL: https://codereview.chromium.org/12479003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@186537 0039d316-1c4b-4281-b951-d872f2087c98
|
Python
|
bsd-3-clause
|
patrickm/chromium.src,dednal/chromium.src,patrickm/chromium.src,ondra-novak/chromium.src,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,mogoweb/chromium-crosswalk,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,patrickm/chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,markYoungH/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk-efl,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,ltilve/chromium,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dednal/chromium.src,dednal/chromium.src,dednal/chromium.src,Just-D/chromium-1,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,Jonekee/chromium.src,Fireblend/chromium-crosswalk,littlstar/chromium.src,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,mogoweb/chromium-crosswalk,dushu1203/chromium.src,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,Just-D/chromium-1,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,littlstar/chromium.src,anirudhSK/chromium,hujiajie/pa-chromium,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,dednal/chromium.src,anirudhSK/chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,fujunwei/chromium-crosswalk,jaruba/chromium.src,krieger-od/nwjs_chromium.src,littlstar/chromium.src,chuan9/chromium-crosswalk,Just-D/chromium-1,Jonekee/chromium.src,dushu1203/chromium.src,patrickm/chromium.src,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,M4sse/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,markYoungH/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,hujiajie/pa-chromium,Chilledheart/chromium,anirudhSK/chromium,Just-D/chromium-1,patrickm/chromium.src,dushu1203/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,ltilve/chromium,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,littlstar/chromium.src,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,Fireblend/chromium-crosswalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,Chilledheart/chromium,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,patrickm/chromium.src,anirudhSK/chromium,anirudhSK/chromium,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,M4sse/chromium.src,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,ltilve/chromium,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,anirudhSK/chromium,dushu1203/chromium.src,M4sse/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,jaruba/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium,Chilledheart/chromium,jaruba/chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,chuan9/chromium-crosswalk,Chilledheart/chromium,markYoungH/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,jaruba/chromium.src,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,dednal/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,M4sse/chromium.src,bright-sparks/chromium-spacewalk,Just-D/chromium-1,anirudhSK/chromium,M4sse/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,hgl888/chromium-crosswalk,ltilve/chromium,anirudhSK/chromium,dednal/chromium.src,Jonekee/chromium.src,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,littlstar/chromium.src,jaruba/chromium.src,Jonekee/chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,dednal/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,hgl888/chromium-crosswalk,ondra-novak/chromium.src,M4sse/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,Chilledheart/chromium,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,ChromiumWebApps/chromium,ltilve/chromium,ChromiumWebApps/chromium,Just-D/chromium-1,littlstar/chromium.src,Pluto-tv/chromium-crosswalk
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self.browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
Make browser_type a property of PossibleBrowser.
BUG=NONE
TEST=run_tests
NOTRY=true
Review URL: https://codereview.chromium.org/12479003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@186537 0039d316-1c4b-4281-b951-d872f2087c98
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self._browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def browser_type(self):
return self._browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
|
<commit_before># Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self.browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
<commit_msg>Make browser_type a property of PossibleBrowser.
BUG=NONE
TEST=run_tests
NOTRY=true
Review URL: https://codereview.chromium.org/12479003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@186537 0039d316-1c4b-4281-b951-d872f2087c98<commit_after>
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self._browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def browser_type(self):
return self._browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
|
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self.browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
Make browser_type a property of PossibleBrowser.
BUG=NONE
TEST=run_tests
NOTRY=true
Review URL: https://codereview.chromium.org/12479003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@186537 0039d316-1c4b-4281-b951-d872f2087c98# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self._browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def browser_type(self):
return self._browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
|
<commit_before># Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self.browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
<commit_msg>Make browser_type a property of PossibleBrowser.
BUG=NONE
TEST=run_tests
NOTRY=true
Review URL: https://codereview.chromium.org/12479003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@186537 0039d316-1c4b-4281-b951-d872f2087c98<commit_after># Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class PossibleBrowser(object):
"""A browser that can be controlled.
Call Create() to launch the browser and begin manipulating it..
"""
def __init__(self, browser_type, options):
self._browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
@property
def browser_type(self):
return self._browser_type
@property
def options(self):
return self._options
def Create(self):
raise NotImplementedError()
def SupportsOptions(self, options):
"""Tests for extension support."""
raise NotImplementedError()
|
6899699e5e65aa7437c7fb8e79e572eac3e35d9e
|
setup.py
|
setup.py
|
#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
|
#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker>=0.9.0',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
|
Add version constraint for faker
|
Add version constraint for faker
|
Python
|
mit
|
mfussenegger/cr8
|
#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
Add version constraint for faker
|
#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker>=0.9.0',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
<commit_msg>Add version constraint for faker<commit_after>
|
#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker>=0.9.0',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
|
#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
Add version constraint for faker#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker>=0.9.0',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
|
<commit_before>#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
<commit_msg>Add version constraint for faker<commit_after>#!/usr/bin/env python
from setuptools import setup
try:
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
except IOError:
readme = ''
setup(
name='cr8',
author='Mathias Fußenegger',
author_email='pip@zignar.net',
url='https://github.com/mfussenegger/cr8',
description='A collection of command line tools for crate devs',
long_description=readme,
entry_points={
'console_scripts': [
'cr8 = cr8.__main__:main',
]
},
packages=['cr8'],
install_requires=[
'crate>=0.16',
'argh',
'tqdm',
'Faker>=0.9.0',
'aiohttp>=3.3,<4',
'toml'
],
extras_require={
'uvloop': ['uvloop'],
'asyncpg': ['asyncpg']
},
python_requires='>=3.6',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
use_scm_version=True,
setup_requires=['setuptools_scm']
)
|
f51bf6b74ddb8e76f92bfd27e142e07b90e99686
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.2',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
|
from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.3',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
|
Update dependency on annotator -> v0.6.3
|
Update dependency on annotator -> v0.6.3
|
Python
|
agpl-3.0
|
openannotation/annotateit,openannotation/annotateit
|
from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.2',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
Update dependency on annotator -> v0.6.3
|
from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.3',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.2',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
<commit_msg>Update dependency on annotator -> v0.6.3<commit_after>
|
from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.3',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
|
from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.2',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
Update dependency on annotator -> v0.6.3from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.3',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.2',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
<commit_msg>Update dependency on annotator -> v0.6.3<commit_after>from setuptools import setup, find_packages
setup(
name = 'annotateit',
version = '2.0.0',
packages = find_packages(),
install_requires = [
'annotator==0.6.3',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15',
'Flask-WTF==0.5.2',
'SQLAlchemy==0.7.4',
'nose==1.0.0',
'mock==0.7.2',
'itsdangerous==0.11'
]
)
|
0e2e9805547af34eb42392d027e1abcb5ba88241
|
setup.py
|
setup.py
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
'nose',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
|
Add nose to tests dependencies
|
Add nose to tests dependencies
|
Python
|
agpl-3.0
|
openfisca/country-template,openfisca/country-template
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
Add nose to tests dependencies
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
'nose',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
|
<commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
<commit_msg>Add nose to tests dependencies<commit_after>
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
'nose',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
|
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
Add nose to tests dependencies#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
'nose',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
|
<commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
<commit_msg>Add nose to tests dependencies<commit_after>#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Country-Template',
version='0.1.0',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
description=u'Template of a tax and benefit system for OpenFisca',
keywords='benefit microsimulation social tax',
license='http://www.fsf.org/licensing/licenses/agpl-3.0.html',
include_package_data = True, # Will read MANIFEST.in
install_requires=[
'OpenFisca-Core >= 6.1.0, < 11.0',
],
extras_require = {
'api': [
'OpenFisca-Web-API >= 4.0.0, < 6.0',
],
'test': [
'flake8',
'flake8-print',
'nose',
]
},
packages=find_packages(),
test_suite='nose.collector',
)
|
fe18920e3599b3748965606d9b3ecc27feac728b
|
setup.py
|
setup.py
|
"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.1',
url='https://github.com/ema/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
|
"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.2',
url='http://pythonhosted.org/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
|
Update homepage field, release version 0.2
|
Update homepage field, release version 0.2
|
Python
|
bsd-3-clause
|
ema/nubo
|
"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.1',
url='https://github.com/ema/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
Update homepage field, release version 0.2
|
"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.2',
url='http://pythonhosted.org/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
|
<commit_before>"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.1',
url='https://github.com/ema/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
<commit_msg>Update homepage field, release version 0.2<commit_after>
|
"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.2',
url='http://pythonhosted.org/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
|
"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.1',
url='https://github.com/ema/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
Update homepage field, release version 0.2"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.2',
url='http://pythonhosted.org/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
|
<commit_before>"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.1',
url='https://github.com/ema/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
<commit_msg>Update homepage field, release version 0.2<commit_after>"""
nubo
----
An easy way to deploy Linux VMs on different cloud providers.
"""
from setuptools import setup
setup(
name='nubo',
version='0.2',
url='http://pythonhosted.org/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it',
description='Virtual Machine deployments on multiple cloud providers',
long_description=__doc__,
install_requires=[
'setuptools',
'apache-libcloud',
'paramiko',
'texttable'
],
packages=['nubo', 'nubo.clouds'],
scripts=['scripts/nubo'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Topic :: Internet',
'Topic :: System',
],
keywords='cloud vm startup devops ec2 rackspace',
)
|
1db46b8c04ad8154ca2423612120623dd9cfb413
|
setup.py
|
setup.py
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
|
Set the Development Status to Beta
|
Set the Development Status to Beta
|
Python
|
mit
|
kfdm/gntp
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
Set the Development Status to Beta
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
|
<commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
<commit_msg>Set the Development Status to Beta<commit_after>
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
|
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
Set the Development Status to Beta#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
|
<commit_before>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
<commit_msg>Set the Development Status to Beta<commit_after>#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from gntp.version import __version__
setup(
name='gntp',
description='Growl Notification Transport Protocol for Python',
long_description=open('README.rst').read(),
author='Paul Traylor',
url='http://github.com/kfdm/gntp/',
version=__version__,
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
],
entry_points={
'console_scripts': [
'gntp = gntp.cli:main'
]
}
)
|
b8636987742455d440ebe2fcfb77c41be56e8f39
|
setup.py
|
setup.py
|
#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=['bleach'],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=[
'bleach',
'Django>=1.3',
],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
Add Django as a requirement
|
Add Django as a requirement
Django>=1.3 is required, although >=1.4.1 is recommended
|
Python
|
bsd-2-clause
|
python-force/django-bleach
|
#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=['bleach'],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
Add Django as a requirement
Django>=1.3 is required, although >=1.4.1 is recommended
|
#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=[
'bleach',
'Django>=1.3',
],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
<commit_before>#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=['bleach'],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
<commit_msg>Add Django as a requirement
Django>=1.3 is required, although >=1.4.1 is recommended<commit_after>
|
#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=[
'bleach',
'Django>=1.3',
],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=['bleach'],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
Add Django as a requirement
Django>=1.3 is required, although >=1.4.1 is recommended#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=[
'bleach',
'Django>=1.3',
],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
<commit_before>#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=['bleach'],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
<commit_msg>Add Django as a requirement
Django>=1.3 is required, although >=1.4.1 is recommended<commit_after>#!/usr/bin/env python
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='django-bleach',
version="0.1.3",
description='Easily use bleach with Django models and templates',
author='Tim Heap',
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
install_requires=[
'bleach',
'Django>=1.3',
],
package_data={},
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
d0cf0ca508f50896aee52c4de01ea68e76cf8122
|
setup.py
|
setup.py
|
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
|
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
entry_points = {
'console_scripts': ['dotsecrets=dotsecrets.dotsecrets:main'],
},
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
|
Add consolescripts entry to produce 'dotsecrets' cli script
|
Add consolescripts entry to produce 'dotsecrets' cli script
|
Python
|
bsd-3-clause
|
oohlaf/dotsecrets
|
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
Add consolescripts entry to produce 'dotsecrets' cli script
|
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
entry_points = {
'console_scripts': ['dotsecrets=dotsecrets.dotsecrets:main'],
},
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
|
<commit_before>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
<commit_msg>Add consolescripts entry to produce 'dotsecrets' cli script<commit_after>
|
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
entry_points = {
'console_scripts': ['dotsecrets=dotsecrets.dotsecrets:main'],
},
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
|
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
Add consolescripts entry to produce 'dotsecrets' cli scriptimport os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
entry_points = {
'console_scripts': ['dotsecrets=dotsecrets.dotsecrets:main'],
},
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
|
<commit_before>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
<commit_msg>Add consolescripts entry to produce 'dotsecrets' cli script<commit_after>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
requires = [
'pyyaml',
]
setup(name='dotsecrets',
version='0.0',
description='Manage dot files with secrets in Git',
long_description=README + '\n\n' + CHANGES,
license='BSD',
classifiers=[
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Topic :: Software Development :: Version Control",
"Topic :: System :: Systems Administration",
"Topic :: Utilities"
],
author='Olaf Conradi',
author_email='olaf@conradi.org',
url='https://github.com/oohlaf/dotsecrets',
keywords='dotfiles git secret manage private',
packages=find_packages(),
entry_points = {
'console_scripts': ['dotsecrets=dotsecrets.dotsecrets:main'],
},
install_requires=requires,
tests_require=requires,
test_suite="dotsecrets.tests",
)
|
05d6bbe3e6797a9991a9bae9e48c6d01948a438f
|
setup.py
|
setup.py
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
|
Update list of supported programming languages
|
Update list of supported programming languages
|
Python
|
apache-2.0
|
jcrobak/parquet-python
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
Update list of supported programming languages
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
|
<commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
<commit_msg>Update list of supported programming languages<commit_after>
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
|
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
Update list of supported programming languagestry:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
|
<commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.7',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
<commit_msg>Update list of supported programming languages<commit_after>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='parquet',
version='1.0',
description='Python support for Parquet file format',
author='Joe Crobak',
author_email='joecrow@gmail.com',
url='https://github.com/jcrobak/parquet-python',
license='Apache License 2.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
packages=[ 'parquet' ],
install_requires=[
'python-snappy',
'thriftpy>=0.3.6',
],
extras_require={
':python_version=="2.7"': [
"backports.csv",
],
},
entry_points={
'console_scripts': [
'parquet = parquet.__main__:main',
]
},
package_data={'parquet': ['*.thrift']},
include_package_data=True,
)
|
6e9f00e125be110fd812d18b3b3cee188d8ed131
|
setup.py
|
setup.py
|
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate', 'phts_info', 'phts_export' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
|
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate',
'phts_info', 'phts_export', 'phts_convert_video' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
|
Add video convert script to install.
|
Add video convert script to install.
|
Python
|
bsd-2-clause
|
tskisner/photosort
|
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate', 'phts_info', 'phts_export' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
Add video convert script to install.
|
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate',
'phts_info', 'phts_export', 'phts_convert_video' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
|
<commit_before>#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate', 'phts_info', 'phts_export' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
<commit_msg>Add video convert script to install.<commit_after>
|
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate',
'phts_info', 'phts_export', 'phts_convert_video' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
|
#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate', 'phts_info', 'phts_export' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
Add video convert script to install.#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate',
'phts_info', 'phts_export', 'phts_convert_video' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
|
<commit_before>#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate', 'phts_info', 'phts_export' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
<commit_msg>Add video convert script to install.<commit_after>#!/usr/bin/env python
import os
import sys
import re
from setuptools import find_packages, setup, Extension
def get_version():
ver = 'unknown'
if os.path.isfile("photosort/_version.py"):
f = open("photosort/_version.py", "r")
for line in f.readlines():
mo = re.match("__version__ = '(.*)'", line)
if mo:
ver = mo.group(1)
f.close()
return ver
current_version = get_version()
setup (
name = 'photosort',
provides = 'photosort',
version = current_version,
description = 'Sort photos based on EXIF data',
author = 'Theodore Kisner',
author_email = 'mail@theodorekisner.com',
url = 'https://github.com/tskisner/photosort',
packages = [ 'photosort' ],
scripts = [ 'phts_sync', 'phts_dirmd5', 'phts_album', 'phts_verify', 'phts_fixdate',
'phts_info', 'phts_export', 'phts_convert_video' ],
license = 'None',
requires = ['Python (>3.3.0)', ]
)
|
b4d4fa9cfcecf5810d416ccae5be67df33e01d3a
|
setup.py
|
setup.py
|
from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic>0.13.1',
'pymongo'
]
)
|
from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic >= 0.15.0',
'pymongo'
]
)
|
Set lowest version of oic to use
|
Set lowest version of oic to use
Signed-off-by: Ivan Kanakarakis <f60d6943d72436645c4304926eeeac2718a1142c@gmail.com>
|
Python
|
apache-2.0
|
its-dirg/pyop
|
from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic>0.13.1',
'pymongo'
]
)
Set lowest version of oic to use
Signed-off-by: Ivan Kanakarakis <f60d6943d72436645c4304926eeeac2718a1142c@gmail.com>
|
from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic >= 0.15.0',
'pymongo'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic>0.13.1',
'pymongo'
]
)
<commit_msg>Set lowest version of oic to use
Signed-off-by: Ivan Kanakarakis <f60d6943d72436645c4304926eeeac2718a1142c@gmail.com><commit_after>
|
from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic >= 0.15.0',
'pymongo'
]
)
|
from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic>0.13.1',
'pymongo'
]
)
Set lowest version of oic to use
Signed-off-by: Ivan Kanakarakis <f60d6943d72436645c4304926eeeac2718a1142c@gmail.com>from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic >= 0.15.0',
'pymongo'
]
)
|
<commit_before>from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic>0.13.1',
'pymongo'
]
)
<commit_msg>Set lowest version of oic to use
Signed-off-by: Ivan Kanakarakis <f60d6943d72436645c4304926eeeac2718a1142c@gmail.com><commit_after>from setuptools import setup, find_packages
setup(
name='pyop',
version='3.0.0',
packages=find_packages('src'),
package_dir={'': 'src'},
url='https://github.com/IdentityPython/pyop',
license='Apache 2.0',
author='Rebecka Gulliksson',
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
'oic >= 0.15.0',
'pymongo'
]
)
|
38f6cdfa85b5f5839f7f7c06ba416dc91b1e1317
|
setup.py
|
setup.py
|
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*', '**/*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
|
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*.*', '*/*.*', '*/*/*.*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
|
Use more standard compliant glob syntax
|
Use more standard compliant glob syntax
|
Python
|
apache-2.0
|
cberner/rospilot,rospilot/rospilot,cberner/rospilot,cberner/rospilot,rospilot/rospilot,cberner/rospilot,cberner/rospilot,rospilot/rospilot,cberner/rospilot,rospilot/rospilot,rospilot/rospilot,rospilot/rospilot
|
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*', '**/*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
Use more standard compliant glob syntax
|
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*.*', '*/*.*', '*/*/*.*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
|
<commit_before># ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*', '**/*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
<commit_msg>Use more standard compliant glob syntax<commit_after>
|
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*.*', '*/*.*', '*/*/*.*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
|
# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*', '**/*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
Use more standard compliant glob syntax# ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*.*', '*/*.*', '*/*/*.*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
|
<commit_before># ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*', '**/*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
<commit_msg>Use more standard compliant glob syntax<commit_after># ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
package_data={'rospilot.assets': ['*.*', '*/*.*', '*/*/*.*']},
requires=['std_msgs', 'rospy']
)
setup(**setup_args)
|
89f8e591b617947abd841bec8d75a33d6f698ee5
|
setup.py
|
setup.py
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois[at]pietka[dot]fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois@pietka.fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
|
Fix email address for pypi
|
Fix email address for pypi
|
Python
|
mit
|
fpietka/rds-pgbadger
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois[at]pietka[dot]fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
Fix email address for pypi
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois@pietka.fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
|
<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois[at]pietka[dot]fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
<commit_msg>Fix email address for pypi<commit_after>
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois@pietka.fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois[at]pietka[dot]fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
Fix email address for pypi#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois@pietka.fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
|
<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois[at]pietka[dot]fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
<commit_msg>Fix email address for pypi<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='rdspgbadger',
version='1.2.0',
description=("Fetch logs from RDS postgres instance and use them with "
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
author_email='francois@pietka.fr',
license='MIT',
packages=['package'],
install_requires=['boto3>=1.4.0'],
entry_points={
'console_scripts': [
'rds-pgbadger = package.rdspgbadger:main'
],
},
long_description=open('README.rst').read(),
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Programming Language :: Python',
'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',
'Programming Language :: Python :: 3.6'
],
zip_safe=True)
|
0357b2a276ae5bf988dd2e6cf89ee9cae2a14f57
|
setup.py
|
setup.py
|
from setuptools import setup
setup(
name='plumbium',
version='0.0.5',
packages=['plumbium'],
zip_safe=True,
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
plumbium=plumbium.cli:cli
''',
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='MRI image analysis tools',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
|
from setuptools import setup
setup(
name='plumbium',
version='0.1.0',
packages=['plumbium'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
|
Remove CLI stuff, bump version to 0.1.0
|
Remove CLI stuff, bump version to 0.1.0
|
Python
|
mit
|
jstutters/Plumbium
|
from setuptools import setup
setup(
name='plumbium',
version='0.0.5',
packages=['plumbium'],
zip_safe=True,
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
plumbium=plumbium.cli:cli
''',
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='MRI image analysis tools',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
Remove CLI stuff, bump version to 0.1.0
|
from setuptools import setup
setup(
name='plumbium',
version='0.1.0',
packages=['plumbium'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
|
<commit_before>from setuptools import setup
setup(
name='plumbium',
version='0.0.5',
packages=['plumbium'],
zip_safe=True,
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
plumbium=plumbium.cli:cli
''',
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='MRI image analysis tools',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
<commit_msg>Remove CLI stuff, bump version to 0.1.0<commit_after>
|
from setuptools import setup
setup(
name='plumbium',
version='0.1.0',
packages=['plumbium'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
|
from setuptools import setup
setup(
name='plumbium',
version='0.0.5',
packages=['plumbium'],
zip_safe=True,
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
plumbium=plumbium.cli:cli
''',
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='MRI image analysis tools',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
Remove CLI stuff, bump version to 0.1.0from setuptools import setup
setup(
name='plumbium',
version='0.1.0',
packages=['plumbium'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
|
<commit_before>from setuptools import setup
setup(
name='plumbium',
version='0.0.5',
packages=['plumbium'],
zip_safe=True,
install_requires=[
'Click',
],
entry_points='''
[console_scripts]
plumbium=plumbium.cli:cli
''',
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='MRI image analysis tools',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
<commit_msg>Remove CLI stuff, bump version to 0.1.0<commit_after>from setuptools import setup
setup(
name='plumbium',
version='0.1.0',
packages=['plumbium'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbium',
license='MIT',
classifiers=[
]
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.