commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4
values | license stringclasses 13
values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
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.object... | 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.object... | 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 | ---
+++
@@ -5,7 +5,8 @@
class BootScriptSerializer(serializers.HyperlinkedModelSerializer):
created_by = serializers.SlugRelatedField(
- slug_field='username', queryset=AtmosphereUser.objects.all())
+ slug_field='username', queryset=AtmosphereUser.objects.all(),
+ required=False)
tex... |
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,
'ov... | 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,
'ov... | 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 | ---
+++
@@ -14,7 +14,7 @@
'service_name': 'identity-service',
'process_names': ['keystone-'],
'service_api_url': 'http://localhost:35357/v3',
- 'search_pattern': '.*v3.0.*'
+ 'search_pattern': '.*v3\..*'
}
super(Keystone, self).__init__(... |
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)
... | 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)
... | Use set's intersection and difference for better readability | [r] Use set's intersection and difference for better readability
| Python | mit | vesln/robber.py | ---
+++
@@ -14,20 +14,23 @@
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
+ excluded_args = ... |
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 = [
migrat... | # -*- 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... | 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,memn... | ---
+++
@@ -3,7 +3,6 @@
from django.db import models, migrations
from django.conf import settings
-import django.contrib.auth.models
class Migration(migrations.Migration):
@@ -13,20 +12,16 @@
]
operations = [
- migrations.AlterModelManagers(
- name='pageuser',
- manag... |
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.j... | 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.j... | 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,ma... | ---
+++
@@ -18,7 +18,7 @@
def test_get_thumbnail_no_instance():
output = get_thumbnail(instance=None, size='10x10', method='crop')
- assert output == static('images/product-image-placeholder.png')
+ assert output == static('images/placeholder60x60.png')
def test_product_first_image(): |
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'
... | 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 progres... | 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 | ---
+++
@@ -1,4 +1,5 @@
from django import template
+from django.template.defaultfilters import escape
from django.utils.safestring import mark_safe
from workshops.models import TrainingProgress
@@ -37,7 +38,7 @@
progress.evaluated_by.full_name)
if progress.evalua... |
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', '#... | 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', '#edb... | Update export path to new structure | Update export path to new structure
| Python | mit | ssepulveda/RTGraph | ---
+++
@@ -4,7 +4,7 @@
class Constants:
app_title = "RTGraph"
app_version = '0.2.0'
- app_export_path = "../data"
+ app_export_path = "data"
app_sources = ["Serial", "Simulator"]
app_encoding = "utf-8"
|
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_que... | 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_que... | 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 | ---
+++
@@ -10,7 +10,7 @@
login_url = '/control/login/'
def get_queryset(self):
- return Recipe.objects.order_by('-start_time')[:5]
+ return Recipe.objects.all()
class EditView(LoginRequiredMixin, generic.DetailView): |
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
pr... | 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 '#' ... | 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 | ---
+++
@@ -7,6 +7,14 @@
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
@@ -20,4 +28,5 @@
plot_dir=plot_dir,
... |
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\xd... | #! -*- 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\x... | 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 | ---
+++
@@ -9,11 +9,11 @@
def test_pep263(self):
self.assertEqual(
"".encode("utf-8"),
- '\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
+ b'\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
)
self.assertEqual(
"\".encode("utf-8"),
- '\\\xd... |
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):... | # -*- 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):... | 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 | ---
+++
@@ -17,6 +17,9 @@
"""
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() |
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.Seq... | Update the factory for Provider | Update the factory for Provider
| Python | apache-2.0 | PressLabs/silver,PressLabs/silver,PressLabs/silver | ---
+++
@@ -6,3 +6,10 @@
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: 'Ad... |
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)
fo... | 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... | Add missing imports, correct indentation | Add missing imports, correct indentation
| Python | mit | ikaruswill/boolean-retrieval,ikaruswill/vector-space-model | ---
+++
@@ -1,24 +1,29 @@
+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")
+ print("usage: " + sys.argv[0] + " -i directory-of-documents -d d... |
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):
# lin... | #
# 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):
# lin... | 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 | ---
+++
@@ -3,8 +3,8 @@
# 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
-# https://github.com/jfcherng/SublimeLinter-contrib-iverilog
#
# License: MIT
#
@@ -18,18 +18... |
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 ... | #
# 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 ... | Remove deprecated attributes comment_re and check_version | Remove deprecated attributes comment_re and check_version
| Python | mit | maristgeek/SublimeLinter-contrib-bashate | ---
+++
@@ -18,7 +18,6 @@
"""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>.+)'
)
@@ -29,7 +28,6 @@
'--error=,': ''
}
tempfile_suffix = 'sh'
- check_v... |
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 =... | 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 =... | 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 | ---
+++
@@ -16,4 +16,3 @@
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: ... | 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 ... | 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 | ---
+++
@@ -1,8 +1,12 @@
-import collections
+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, collections.Mapping)
+ return isinstance(obje... |
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 Out... | # 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 Out... | 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 | ---
+++
@@ -10,7 +10,7 @@
return {
"plugin": {
"name": catalog.i18nc("@label", "Local File Output Device"),
- "description": catalog.i18nc("@info:whatsthis", "Enables saving to local files"),
+ "description": catalog.i18nc("@info:whatsthis", "Enables saving to local fi... |
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/Dalli... | ---
+++
@@ -1,4 +1,4 @@
from . import models, information, agents, networks, processes
-__all__ = ['models', 'information', 'agents',
- 'sources', '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... | # 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.... | 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,explo... | ---
+++
@@ -4,6 +4,9 @@
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
@@ -13,5 +16,53 @@
TOKENIZER_EXCEPTIONS = strings_to_exc(base.EMOTICONS)
update_exc(TOKENIZER_E... |
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'] = (
... | 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'] = (
... | 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 | ---
+++
@@ -12,7 +12,7 @@
# A little longer to allow for call-setup times etc
data['DEFAULT_WAIT_TIMEOUT'] = (
- data['PENDING_CALL_TIMEOUT'] + 2) / 1000
+ data['PENDING_CALL_TIMEOUT'] + 2000) / 1000
self.data = 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, '.s... | #!/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.conne... | 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 bail... | 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 | ---
+++
@@ -4,31 +4,33 @@
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]
+def print_format(wc_path):
+ ent... |
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 ha... | 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 ha... | 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 | ---
+++
@@ -3,15 +3,12 @@
class DataFieldCommand(BaseCommand):
- args = '(app | app.model | app.model.field)*'
+ args = '[app | app.model | app.model.field]*'
def handle_fields(self, *args, **kwargs):
raise NotImplemented('Subclasses must define this method.')
def handle(self, *label... |
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(exten... | """
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(exten... | 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 | ---
+++
@@ -26,6 +26,7 @@
choices=self.groups,
default=self.groups[0][0],
max_length=20,
+ blank=True,
db_index=True))
def handle_modeladmin(self, modeladmin): |
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):
... | 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):
... | 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 | ---
+++
@@ -18,3 +18,11 @@
'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.... | 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.... | 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 | ---
+++
@@ -18,7 +18,7 @@
thread_name = "consumer-%s" % connection_string
thread = threading.Thread(name=thread_name, target=drain)
- thread.daemon = True
+ thread.daemon = False
thread.start()
# TODO: Think through job recovery, jobs shouldn't complete until after bind |
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 f... | 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):
asser... | Test primary key in register fields | Test primary key in register fields
| Python | mit | openregister/registry-data | ---
+++
@@ -6,6 +6,11 @@
@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[r... |
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
... |
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... | 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 | ---
+++
@@ -1,37 +1,39 @@
import json
-import os
-from urlparse import urlparse
-import zipfile
-
import click
-
-import adapters
-from filters import BasicFilterer
-import utils
import subprocess
+import utils
+import os
+import logging
@click.command()
-@click.argument('file', type=click.Path(exists=Tru... |
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 = ... | 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 = ... | 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 | ---
+++
@@ -17,3 +17,16 @@
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
+ ... |
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,... | 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,... | Check for editor_mode before creating editor user. | Check for editor_mode before creating editor user.
| Python | bsd-2-clause | renyi/mezzanine-editor | ---
+++
@@ -8,5 +8,8 @@
@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)
+ editor_mode = getattr(settings, "MEZZANINE_EDITO... |
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()... | # 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()... | 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-d87... | Python | bsd-3-clause | eunchong/build,eunchong/build,eunchong/build,eunchong/build | ---
+++
@@ -13,7 +13,12 @@
SingleBranchScheduler(name='webrtc_windows_scheduler',
branch='trunk',
treeStableTimer=0,
- builderNames=['Win32 Debug (parallel)']),
+ builderNames=[
+ ... |
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_un... | # 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(... | 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 | ---
+++
@@ -9,7 +9,7 @@
mydir = TestBase.compute_mydir(__file__)
- @expectedFailureAll(compiler="clang", compiler_version=['<', '7.0'])
+ @skipIf(compiler="clang", compiler_version=['<', '7.0'])
def test_union_members(self):
self.build()
spec = lldb.SBModuleSpec() |
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 fai... | Create db before running tests. | Create db before running tests.
| Python | bsd-3-clause | punchagan/parktain,punchagan/parktain,punchagan/parktain | ---
+++
@@ -1,4 +1,9 @@
"""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 |
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 beein... | 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 | ---
+++
@@ -1,14 +1,18 @@
+import array
+import math
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): # m... |
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(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(student... | Use unpacking for simpler code | Use unpacking for simpler code
| Python | agpl-3.0 | CubicComet/exercism-python-solutions | ---
+++
@@ -6,8 +6,8 @@
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]
+ row1, row2 = garden.split()
+ patches = [row1[i:i+2] + row2[i:i+2]
... |
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
# CodeWrit... | 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
# CodeWrit... | 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 | ---
+++
@@ -11,14 +11,17 @@
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_CArgDeclNode(self, node):
- ... |
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... | 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():
globa... | 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 | ---
+++
@@ -8,7 +8,7 @@
def setup_db(db_url):
global engine, metadata
- engine = sa.create_engine(db_url, echo=True)
+ engine = sa.create_engine(db_url, echo=False)
metadata = sa.MetaData(engine)
make_task_table()
metadata.create_all(engine) |
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_... | 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_ali... | Fix missing import in solution | Fix missing import in solution
| Python | mit | m2dsupsdlclass/lectures-labs,m2dsupsdlclass/lectures-labs | ---
+++
@@ -1,6 +1,8 @@
-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)
+from skimage.transform import resize
+
+heatmap_1_r = re... |
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... | 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 ... | 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 | ---
+++
@@ -9,6 +9,8 @@
class FormAdmin(admin.ModelAdmin):
inlines = [FieldInline]
+ list_display = ['title', 'date_created', 'end_date']
+ search_fields = ['title', 'owner__email']
class FieldResponseInline(admin.StackedInline): |
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
dependenc... | 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
dependenc... | 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/s... | ---
+++
@@ -13,8 +13,8 @@
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
+ c = Command("pip list installed")
+ assert "wheel" in c.stdout
assert c.rc == 0
|
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.S7... | #!/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.S7... | 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 | ---
+++
@@ -45,6 +45,9 @@
" 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) |
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... | 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... | Remove comma for RT search | Remove comma for RT search
| Python | mit | jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu | ---
+++
@@ -35,6 +35,7 @@
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
|
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/jso... | 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": "app... | 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 | ---
+++
@@ -5,7 +5,7 @@
class ApiClient:
def __init__(self, host=None, timeout=5):
- self.host = host or self.__default_host()
+ self.host = host or self.__default_host().rstrip("/")
self.timeout = timeout
def post(self, payload):
@@ -22,4 +22,4 @@
return response
... |
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.doct... | 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... | 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,qe... | ---
+++
@@ -1,4 +1,5 @@
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
@@ -6,7 +7,6 @@
# snippet from http://stackoverflow.com/question... |
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:/... | 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:/... | Test commit: Updating version number | Test commit: Updating version number
| Python | apache-2.0 | CitrineInformatics/pif-dft | ---
+++
@@ -8,7 +8,7 @@
setup(
name='dfttopif',
- version='0.0.1',
+ version='0.0.2',
description='Library for parsing Density Functional Theory calculations',
long_description=readme,
url='https://github.com/CitrineInformatics/pif-dft', |
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=["... | #!/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=["... | Add python-daemon as a dep | Add python-daemon as a dep
| Python | bsd-3-clause | arachnidlabs/minishift-python | ---
+++
@@ -3,10 +3,10 @@
from distutils.core import setup
setup(name="minishift-python",
- version="0.1.2",
+ version="0.1.3",
description="Python interface for the minishift",
author="Nick Johnson",
author_email="nick@arachnidlabs.com",
url="https://github.com/arachnidlabs/... |
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 e... |
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 ... | Fix a typo: interacive -> interactive | Fix a typo: interacive -> interactive | Python | mit | KrasnitzLab/SCGV | ---
+++
@@ -9,7 +9,7 @@
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",
+ description="SCGV is an interactive graphical... |
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__),
'READ... | 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__),
'READ... | 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 | ---
+++
@@ -26,6 +26,7 @@
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.2',
'Programming Language :: Python ... |
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"
QS... | """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"
QS... | Add explanation about default log level. | Add explanation about default log level.
| Python | bsd-3-clause | ihuston/pyflation,ihuston/pyflation | ---
+++
@@ -25,6 +25,7 @@
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 = logg... |
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 applic... | #!/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 applic... | 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 | ---
+++
@@ -25,7 +25,7 @@
from soc.modules.gsoc.models.slot_transfer import GSoCSlotTransfer
-def getSlotTransferEntityForOrg(org_entity):
+def getSlotTransferEntitiesForOrg(org_entity, limit=1000):
"""Returns the slot transfer entity for the organization.
params:
@@ -37,4 +37,4 @@
"""
q = GSoCSl... |
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-... | 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-... | Update dependencies and update version. | Update dependencies and update version.
| Python | apache-2.0 | priyadarshy/google-calendar-v3,mbrondani/google-calendar-v3 | ---
+++
@@ -2,7 +2,7 @@
setup(
name='GoogleCalendarV3',
- version='0.1.1',
+ version='0.1.2',
author='Ashutosh Priyadarshy',
author_email='static@siftcal.com',
packages=['google_calendar_v3', 'google_calendar_v3.test'],
@@ -12,6 +12,7 @@
description='Python Client for Google Calendar... |
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 ... | 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 ... | Add Python 3.5 trove classifier. | Add Python 3.5 trove classifier.
| Python | bsd-3-clause | jezdez/django-hosts | ---
+++
@@ -35,5 +35,6 @@
'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 comma... | 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 comma... | Fix ResourceWarning: unclosed file of devnull | Fix ResourceWarning: unclosed file of devnull
| Python | mit | toslunar/chainerrl,toslunar/chainerrl | ---
+++
@@ -14,13 +14,13 @@
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... |
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(... | 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 pat... | 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 | ---
+++
@@ -1,36 +1,55 @@
import os
+from threading import Thread
-def managerFiles(paths, link):
+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 = ... |
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['navigati... | # -*- 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['navigati... | 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 | ---
+++
@@ -18,7 +18,7 @@
# fill the form
data = {
- 'title' : u'马 experiment',
+ 'title' : u'马 žš experiment',
'upper_title' : u'vyšší',
'description' : u'Article description',
'slug' : 'title', |
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... | 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... | 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 | ---
+++
@@ -19,5 +19,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': D... |
# 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': D... | Add flag mapping to match folder roles | Add flag mapping to match folder roles
| Python | bsd-3-clause | mailme/mailme,mailme/mailme | ---
+++
@@ -22,3 +22,12 @@
'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 = ['i... | 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 = ['i... | Update name of Syre script in install | Update name of Syre script in install
| Python | isc | jaj42/infupy | ---
+++
@@ -12,6 +12,6 @@
'pyserial'
],
scripts = [
- 'scripts/syre.py'
+ '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.',
ur... | #!/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.',
ur... | Fix typo in entry point name | Fix typo in entry point name
| Python | mit | guykisel/pre-commit-robotframework-tidy | ---
+++
@@ -29,7 +29,7 @@
entry_points={
'console_scripts': [
('python-robotframework-tidy = '
- 'pre_commit_robotframework_tidy.rf_tify:main'),
+ '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')
... | 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')
... | 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 | ---
+++
@@ -27,6 +27,12 @@
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'
+ ])],
inc... |
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',
ve... | """
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',
ve... | 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 | ---
+++
@@ -24,7 +24,7 @@
author_email='nikolay-lysenco@yandex.ru',
license='MIT',
keywords='machine_learning feature_engineering categorical_features',
- packages=find_packages(exclude=['docs', 'tests']),
+ packages=find_packages(exclude=['docs', 'tests', 'ci']),
python_requires='>=3.5',
... |
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"... | 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"... | Add forgotten dependency on PyJWT | Add forgotten dependency on PyJWT
| Python | mit | tgs/django-badgekit-webhooks | ---
+++
@@ -23,6 +23,9 @@
tests_require=[
"Django>=1.4",
],
+ install_requires=[
+ "pyjwt",
+ ],
test_suite="runtests.runtests",
classifiers=[
"Development Status :: 4 - Beta", |
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."
... | 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."
... | 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,... | ---
+++
@@ -12,7 +12,7 @@
"A Django app that provides generic per-object-permissions "
"for Django's auth app."
),
- long_description=read('README'),
+ long_description=read('README.rst'),
author='Jannis Leidel',
author_email='jannis@leidel.info',
license='BSD', |
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',
... | 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',
... | Fix typo in package description | Fix typo in package description
| Python | agpl-3.0 | luac/django-argcache,luac/django-argcache | ---
+++
@@ -11,7 +11,7 @@
name='django-argcache',
version='0.1',
license='AGPLv3',
- description='A function-level caching and invalidaton fraemwork for Django.',
+ description='A function-level caching and invalidaton framework for Django.',
long_description=README,
url='https://github... |
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, ... | 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... | Clean pip build, bump version | Clean pip build, bump version
| Python | mit | gabfl/redis-priority-queue,gabfl/redis-priority-queue,gabfl/redis-priority-queue | ---
+++
@@ -8,7 +8,7 @@
setup (
name = 'rpq',
- version = '1.0.5b',
+ version = '1.1',
description = 'Simple Redis work queue with added features (priorities, pop multiple items at once)',
long_description = long_description,
author = 'Gabriel Bordeaux', |
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
... | # -*- 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
... | 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 | ---
+++
@@ -57,5 +57,5 @@
@unserializer
class FinanceHistoryEntry:
valid_on: str
- amount: int
+ 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... | 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... | Correct version for the master branch | Correct version for the master branch
| Python | mit | johnhw/pyspacenavigator | ---
+++
@@ -8,7 +8,7 @@
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",
+ download_url="https://github.com/johnhw/pyspacenavigato... |
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',
licen... | 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',
licen... | Add Python version trove classifiers | Add Python version trove classifiers
| Python | bsd-2-clause | Suor/django-easymoney | ---
+++
@@ -27,6 +27,12 @@
'Framework :: Django',
'Environment :: Web Environment',
'Intended Audience :: Developers',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
+ 'Programming Lang... |
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... | #!/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... | Add colorama as a dependency | Add colorama as a dependency
| Python | mit | cadyyan/technic-solder-client,durandj/technic-solder-client | ---
+++
@@ -12,6 +12,7 @@
licensee = 'MIT',
packages = find_packages(),
install_requires = [
+ 'colorama',
'tabulate',
],
scripts = [ |
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',
... | 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',
inst... | Update url with new Github username. | Update url with new Github username.
| Python | mpl-2.0 | dean/hamper-poll | ---
+++
@@ -9,7 +9,7 @@
packages=['hamper-poll'],
author='Dean Johnson',
author_email='deanjohnson222@gmail.com',
- url='https://github.com/johnsdea/hamper-poll',
+ url='https://github.com/dean/hamper-poll',
install_requires=requirements,
package_data={'hamper-pizza': ['requirements.txt... |
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="Jus... | #/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="Jus... | 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,jl... | ---
+++
@@ -34,6 +34,6 @@
'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 versio... |
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/... | 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/... | 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 | ---
+++
@@ -8,7 +8,7 @@
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']},
+ package_data={'geotagging': ... |
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",
"pytho... | 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",
"pytho... | Add py3.6 to supported version | Add py3.6 to supported version
| Python | bsd-3-clause | Kyria/EsiPy,a-tal/EsiPy | ---
+++
@@ -46,6 +46,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",
"Programmin... |
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_ve... | # -*- 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_ve... | Add content type for proper PyPI rendering | Add content type for proper PyPI rendering
| Python | mit | saghul/aiodns | ---
+++
@@ -18,6 +18,7 @@
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.... |
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.Mo... | # -*- 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.Mo... | 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 | ---
+++
@@ -20,7 +20,7 @@
super(PurchaseOrderLine, self)._compute_amount()
# restore prices
for line in self:
- if self.discount:
+ if line.discount:
line.price_unit = prices[line.id]
discount = fields.Float( |
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/iv... | # 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/iv... | Increase lib repo size to 50Mb | Increase lib repo size to 50Mb
| Python | apache-2.0 | orgkhnargh/platformio-api,platformio/platformio-api | ---
+++
@@ -26,7 +26,7 @@
GITHUB_PASSWORD=None,
DL_PIO_DIR=None,
DL_PIO_URL=None,
- MAX_DLFILE_SIZE=1024*1024*20, # 20 Mb
+ MAX_DLFILE_SIZE=1024*1024*50, # 50 Mb
LOGGING=dict(version=1)
)
|
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/... | #!/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_... | 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 | ---
+++
@@ -12,13 +12,13 @@
time.sleep(45)
print "Starting Craqs"
- subprocess.Popen(['python', './cluster/zookeeper/start_craq_server.py'], shell=True)
+ subprocess.Popen('./cluster/craq/start_craq_server.py', shell=True)
print "Finished starting Craqs"
time.sleep(45)
prin... |
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` val... | # 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` val... | 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 | ---
+++
@@ -41,5 +41,8 @@
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)
+ if acl:
+ settings['default_acl'] =... |
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="Ch... | # 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="Ch... | Remove argparse dependency (not necessary) | Remove argparse dependency (not necessary)
| Python | mpl-2.0 | mozilla/build-runner,mozilla/build-runner | ---
+++
@@ -18,6 +18,5 @@
"console_scripts": ["runner = runner:main"],
},
url="https://github.com/mozilla/runner",
- install_requires=["argparse"],
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(... | 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(... | Add graphitesend dependency for graphiteservice output. | Add graphitesend dependency for graphiteservice output.
| Python | bsd-3-clause | amorphic/braubuddy,amorphic/braubuddy,amorphic/braubuddy | ---
+++
@@ -26,6 +26,7 @@
'jinja2>=2.7.0',
'mock>=1.0,<2.0',
'alabaster>=0.6.0',
+ 'graphitesend>0.3.4,<0.4',
],
classifiers=[
'Development Status :: 4 - Beta', |
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',
... |
# 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 = ['t... | Update e-mail address; remove obsolete web page | Update e-mail address; remove obsolete web page
| Python | mit | akuchling/texlib | ---
+++
@@ -7,8 +7,7 @@
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",
+ author_email = 'a... |
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', 'GeoI... | 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',... | Rename to avoid PyPI namespace collision | Rename to avoid PyPI namespace collision
| Python | mit | yolothreat/utilitybelt,yolothreat/utilitybelt | ---
+++
@@ -2,10 +2,10 @@
setup(
- name="utilitybelt",
+ name="cnd-utilitybelt",
version="0.1",
description="Utilities to make you a CND Batman",
- url="https://github.com/sroberts/utilitybelt",
+ url="https://github.com/yolothreat/utilitybelt",
license="MIT",
packages=find_packag... |
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'... | # -*- 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'... | Update the PyPI version to 7.0.5. | Update the PyPI version to 7.0.5.
| Python | mit | Doist/todoist-python | ---
+++
@@ -10,7 +10,7 @@
setup(
name='todoist-python',
- version='7.0.4',
+ version='7.0.5',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com', |
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__,
... | #!/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__,
... | 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 | ---
+++
@@ -25,10 +25,15 @@
'amqplib',
],
classifiers=[
- "Development Status :: 3 - Alpha",
+ "Development Status :: 4 - Beta",
"Framework :: Django",
"Operating System :: OS Independent",
"Programming Language :: Python",
+ "License :: OSI Approved ... |
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-out... | #!/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-out... | 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 | ---
+++
@@ -6,7 +6,7 @@
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
-setup(name='junit_xml_output',
+setup(name='junit-xml-output',
author = 'David Black',
author_email = 'dblack@atlassian.com',
url = 'https://bitbucket.org/db_atlass/python-junit-xml-output-module', |
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 ... | ##############################################################################
#
# 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 ... | Update license text and classifiers and README ext | Update license text and classifiers and README ext
| Python | apache-2.0 | benji-york/manuel | ---
+++
@@ -17,7 +17,7 @@
from setuptools import setup, find_packages
long_description = (
- open('README.txt').read()
+ open('README.rst').read()
+ '\n\n'
+ open('CHANGES.txt').read()
)
@@ -37,8 +37,9 @@
classifiers=[
'Programming Language :: Python :: 2',
'Programming... |
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 __in... | # 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 __in... | 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-crosswal... | ---
+++
@@ -8,11 +8,15 @@
"""
def __init__(self, browser_type, options):
- self.browser_type = browser_type
+ self._browser_type = browser_type
self._options = options
def __repr__(self):
return 'PossibleBrowser(browser_type=%s)' % self.browser_type
+
+ @property
+ def browser_type(self... |
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',
des... | #!/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',
des... | Add version constraint for faker | Add version constraint for faker
| Python | mit | mfussenegger/cr8 | ---
+++
@@ -26,7 +26,7 @@
'crate>=0.16',
'argh',
'tqdm',
- 'Faker',
+ 'Faker>=0.9.0',
'aiohttp>=3.3,<4',
'toml'
], |
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==... | 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==... | Update dependency on annotator -> v0.6.3 | Update dependency on annotator -> v0.6.3
| Python | agpl-3.0 | openannotation/annotateit,openannotation/annotateit | ---
+++
@@ -6,7 +6,7 @@
packages = find_packages(),
install_requires = [
- 'annotator==0.6.2',
+ 'annotator==0.6.3',
'Flask==0.8',
'Flask-Mail==0.6.1',
'Flask-SQLAlchemy==0.15', |
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='ben... | #! /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='ben... | Add nose to tests dependencies | Add nose to tests dependencies
| Python | agpl-3.0 | openfisca/country-template,openfisca/country-template | ---
+++
@@ -24,6 +24,7 @@
'test': [
'flake8',
'flake8-print',
+ 'nose',
]
},
packages=find_packages(), |
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 o... | """
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 ... | Update homepage field, release version 0.2 | Update homepage field, release version 0.2
| Python | bsd-3-clause | ema/nubo | ---
+++
@@ -8,8 +8,8 @@
setup(
name='nubo',
- version='0.1',
- url='https://github.com/ema/nubo',
+ version='0.2',
+ url='http://pythonhosted.org/nubo',
license='BSD',
author='Emanuele Rocca',
author_email='ema@linux.it', |
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://g... | #!/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://g... | Set the Development Status to Beta | Set the Development Status to Beta
| Python | mit | kfdm/gntp | ---
+++
@@ -17,7 +17,7 @@
packages=['gntp'],
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English', |
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 te... | #!/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 te... | 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 | ---
+++
@@ -15,7 +15,10 @@
author_email='heap.tim@gmail.com',
url='https://bitbucket.org/ionata/django-bleach',
packages=find_packages(),
- install_requires=['bleach'],
+ install_requires=[
+ 'bleach',
+ 'Django>=1.3',
+ ],
package_data={},
classifiers=[
'Envir... |
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=... | 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=... | Add consolescripts entry to produce 'dotsecrets' cli script | Add consolescripts entry to produce 'dotsecrets' cli script
| Python | bsd-3-clause | oohlaf/dotsecrets | ---
+++
@@ -31,6 +31,9 @@
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_... |
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',
licen... | 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',
licen... | Update list of supported programming languages | Update list of supported programming languages
| Python | apache-2.0 | jcrobak/parquet-python | ---
+++
@@ -15,7 +15,14 @@
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Apache Software License',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Pyth... |
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__ ... | #!/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__ ... | Add video convert script to install. | Add video convert script to install.
| Python | bsd-2-clause | tskisner/photosort | ---
+++
@@ -30,7 +30,8 @@
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' ],
+ scripts = [ 'phts_sync', 'phts_dirm... |
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',
descrip... | 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',
descrip... | 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 | ---
+++
@@ -11,7 +11,7 @@
author_email='satosa-dev@lists.sunet.se',
description='OpenID Connect Provider (OP) library in Python.',
install_requires=[
- 'oic>0.13.1',
+ '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'},
... | # ! 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'},
... | 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 | ---
+++
@@ -7,7 +7,7 @@
setup_args = generate_distutils_setup(
packages=['rospilot', 'rospilot.assets', 'vlc_server'],
package_dir={'': 'src'},
- package_data={'rospilot.assets': ['*', '**/*']},
+ package_data={'rospilot.assets': ['*.*', '*/*.*', '*/*/*.*']},
requires=['std_msgs', 'rospy']
)
|
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=... | #!/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=... | Fix email address for pypi | Fix email address for pypi
| Python | mit | fpietka/rds-pgbadger | ---
+++
@@ -10,7 +10,7 @@
"pgbadger to generate a report."),
url='http://github.com/fpietka/rds-pgbadger',
author='François Pietka',
- author_email='francois[at]pietka[dot]fr',
+ author_email='francois@pietka.fr',
license='MIT',
packages=['package'],
in... |
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@uc... | 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',... | Remove CLI stuff, bump version to 0.1.0 | Remove CLI stuff, bump version to 0.1.0
| Python | mit | jstutters/Plumbium | ---
+++
@@ -2,19 +2,12 @@
setup(
name='plumbium',
- version='0.0.5',
+ version='0.1.0',
packages=['plumbium'],
zip_safe=True,
- install_requires=[
- 'Click',
- ],
- entry_points='''
- [console_scripts]
- plumbium=plumbium.cli:cli
- ''',
author='Jon Stutter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.