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 |
|---|---|---|---|---|---|---|---|---|---|---|
5c5b81312317c1750ea320666b2adc4f74d13366 | f8a_jobs/graph_sync.py | f8a_jobs/graph_sync.py | """Functions to retrieve pending list and invoke Graph Sync."""
import f8a_jobs.defaults as configuration
import requests
import traceback
import logging
from urllib.parse import urljoin
logger = logging.getLogger(__name__)
def _api_call(url, params=None):
params = params or {}
try:
logger.info("AP... | """Functions to retrieve pending list and invoke Graph Sync."""
import f8a_jobs.defaults as configuration
import requests
import traceback
import logging
from urllib.parse import urljoin
logger = logging.getLogger(__name__)
def _api_call(url, params=None):
params = params or {}
try:
logger.info("AP... | Fix code for review comments | Fix code for review comments
| Python | apache-2.0 | fabric8-analytics/fabric8-analytics-jobs,fabric8-analytics/fabric8-analytics-jobs | ---
+++
@@ -24,14 +24,14 @@
def fetch_pending(params=None):
+ """Invoke Pending Graph Sync APIs for given parameters."""
params = params or {}
- """Invoke Pending Graph Sync APIs for given parameters."""
url = urljoin(configuration.DATA_IMPORTER_ENDPOINT, "/api/v1/pending")
return _api_call(... |
270a03dc78838137051fec49050f550c44be2359 | facebook_auth/views.py | facebook_auth/views.py | import logging
from django.contrib.auth import authenticate
from django.contrib.auth import login
from django import http
from django.views import generic
from facebook_auth import urls
logger = logging.getLogger(__name__)
class Handler(generic.View):
def get(self, request):
try:
next_url =... | import logging
from django.contrib.auth import authenticate
from django.contrib.auth import login
from django import http
from django.views import generic
import facepy
from facebook_auth import urls
logger = logging.getLogger(__name__)
class Handler(generic.View):
def get(self, request):
try:
... | Add facebook error handler in view. | Add facebook error handler in view.
This assumes that there is no other backend which
can authenticate user with facebook credentials.
| Python | mit | jgoclawski/django-facebook-auth,pozytywnie/django-facebook-auth,pozytywnie/django-facebook-auth,jgoclawski/django-facebook-auth | ---
+++
@@ -4,6 +4,9 @@
from django.contrib.auth import login
from django import http
from django.views import generic
+
+import facepy
+
from facebook_auth import urls
@@ -13,26 +16,32 @@
class Handler(generic.View):
def get(self, request):
try:
- next_url = urls.Next().decode(reque... |
088d76bbe01a9a6dd0a246be8ce703d5b64c540e | Lib/hotshot/__init__.py | Lib/hotshot/__init__.py | """High-perfomance logging profiler, mostly written in C."""
import _hotshot
from _hotshot import ProfilerError
class Profile:
def __init__(self, logfn, lineevents=0, linetimings=1):
self.lineevents = lineevents and 1 or 0
self.linetimings = (linetimings and lineevents) and 1 or 0
self._... | """High-perfomance logging profiler, mostly written in C."""
import _hotshot
from _hotshot import ProfilerError
class Profile:
def __init__(self, logfn, lineevents=0, linetimings=1):
self.lineevents = lineevents and 1 or 0
self.linetimings = (linetimings and lineevents) and 1 or 0
self._... | Allow user code to call the addinfo() method on the profiler object. | Allow user code to call the addinfo() method on the profiler object.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | ---
+++
@@ -21,6 +21,9 @@
def stop(self):
self._prof.stop()
+ def addinfo(self, key, value):
+ self._prof.addinfo(key, value)
+
# These methods offer the same interface as the profile.Profile class,
# but delegate most of the work to the C implementation underneath.
|
d89715196ba79da02a997688414dfa283bee5aeb | profiles/tests/test_views.py | profiles/tests/test_views.py | from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import RequestFactory
from utils.factories import UserFactory
from profiles.views import ProfileView
class ProfileViewTests(TestCase):
def setUp(self):
request_factory = RequestFactory()
request... | from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import RequestFactory
from utils.factories import UserFactory
from profiles.views import (
ProfileView,
ReviewUserView,
)
class ProfileViewTests(TestCase):
def setUp(self):
request_factory = Req... | Add tests for user review view | Add tests for user review view
| Python | mit | phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts | ---
+++
@@ -3,7 +3,10 @@
from django.test.client import RequestFactory
from utils.factories import UserFactory
-from profiles.views import ProfileView
+from profiles.views import (
+ ProfileView,
+ ReviewUserView,
+)
class ProfileViewTests(TestCase):
@@ -19,3 +22,30 @@
def test_profile_view_rend... |
f2a46687e24d82060b687922de3495111f82e558 | geist/backends/fake.py | geist/backends/fake.py | import numpy as np
from ..core import Location
class GeistFakeBackend(object):
def __init__(self, w=800, h=600):
self.image = np.zeros((h, w, 3))
self.locations = [Location(0, 0, w=w, h=h, image=self.image)]
def create_process(self, command):
pass
def actions_transaction(self):
... | import numpy as np
from ..core import Location
class GeistFakeBackend(object):
def __init__(self, image=None, w=800, h=600):
if image is None:
self.image = np.zeros((h, w, 3))
self.locations = [Location(0, 0, w=w, h=h, image=self.image)]
else:
if isinstance(imag... | Allow Fake Backend to take an image as the screen | Allow Fake Backend to take an image as the screen
| Python | mit | kebarr/Geist,thetestpeople/Geist | ---
+++
@@ -3,9 +3,16 @@
class GeistFakeBackend(object):
- def __init__(self, w=800, h=600):
- self.image = np.zeros((h, w, 3))
- self.locations = [Location(0, 0, w=w, h=h, image=self.image)]
+ def __init__(self, image=None, w=800, h=600):
+ if image is None:
+ self.image = ... |
aded1c825385817dc39d8ff99c169e6620008abf | blivet/populator/helpers/__init__.py | blivet/populator/helpers/__init__.py | from .btrfs import BTRFSFormatPopulator
from .boot import AppleBootFormatPopulator, EFIFormatPopulator, MacEFIFormatPopulator
from .disk import DiskDevicePopulator
from .disklabel import DiskLabelFormatPopulator
from .dm import DMDevicePopulator
from .dmraid import DMRaidFormatPopulator
from .loop import LoopDevicePopu... | import inspect as _inspect
from .devicepopulator import DevicePopulator
from .formatpopulator import FormatPopulator
from .btrfs import BTRFSFormatPopulator
from .boot import AppleBootFormatPopulator, EFIFormatPopulator, MacEFIFormatPopulator
from .disk import DiskDevicePopulator
from .disklabel import DiskLabelForma... | Add functions to return a helper class based on device data. | Add functions to return a helper class based on device data.
This is intended to be the complete API of populator.helpers.
| Python | lgpl-2.1 | vojtechtrefny/blivet,jkonecny12/blivet,vojtechtrefny/blivet,rhinstaller/blivet,rhinstaller/blivet,rvykydal/blivet,AdamWill/blivet,rvykydal/blivet,vpodzime/blivet,AdamWill/blivet,jkonecny12/blivet,vpodzime/blivet | ---
+++
@@ -1,3 +1,8 @@
+import inspect as _inspect
+
+from .devicepopulator import DevicePopulator
+from .formatpopulator import FormatPopulator
+
from .btrfs import BTRFSFormatPopulator
from .boot import AppleBootFormatPopulator, EFIFormatPopulator, MacEFIFormatPopulator
from .disk import DiskDevicePopulator
@@ ... |
d6759d0abec637753d93cd407fad5e7abc6ec86d | astropy/tests/plugins/display.py | astropy/tests/plugins/display.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# This plugin now lives in pytest-astropy, but we keep the code below during
# a deprecation phase.
import warnings
from astropy.utils.exceptions import AstropyDeprecationWarning
try:
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, ... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# This plugin now lives in pytest-astropy, but we keep the code below during
# a deprecation phase.
import warnings
from astropy.utils.exceptions import AstropyDeprecationWarning
try:
from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,... | Fix typo in deprecation warning | TST: Fix typo in deprecation warning [ci skip]
| Python | bsd-3-clause | stargaser/astropy,dhomeier/astropy,saimn/astropy,saimn/astropy,larrybradley/astropy,astropy/astropy,StuartLittlefair/astropy,lpsinger/astropy,dhomeier/astropy,lpsinger/astropy,StuartLittlefair/astropy,larrybradley/astropy,lpsinger/astropy,MSeifert04/astropy,astropy/astropy,astropy/astropy,MSeifert04/astropy,larrybradle... | ---
+++
@@ -7,12 +7,13 @@
from astropy.utils.exceptions import AstropyDeprecationWarning
try:
- from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
+ from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
+ TESTED_VERSIONS... |
e3bac9c0a655ae49d6e15b16894712f4edbc994b | campus02/web/views/primarykey.py | campus02/web/views/primarykey.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from rest_framework import viewsets
from rest_framework.filters import DjangoObjectPermissionsFilter
from .. import (
models,
permissions,
)
from ..serializers import (
primarykey as serializers
)
class MovieViewSet(viewsets.ReadOnlyModelViewSet):
queryset =... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from rest_framework import viewsets, filters
from .. import (
models,
permissions,
)
from ..serializers import (
primarykey as serializers
)
class MovieViewSet(viewsets.ReadOnlyModelViewSet):
queryset = models.Movie.objects.all()
serializer_class = seria... | Add ordering filters for primary key based api. | Add ordering filters for primary key based api.
| Python | mit | fladi/django-campus02,fladi/django-campus02 | ---
+++
@@ -1,8 +1,7 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
-from rest_framework import viewsets
-from rest_framework.filters import DjangoObjectPermissionsFilter
+from rest_framework import viewsets, filters
from .. import (
models,
@@ -16,33 +15,47 @@
class MovieViewSet(viewsets.ReadOnlyModelView... |
06645a637c0d34270f88f9a6b96133da5c415dd7 | froide/publicbody/admin.py | froide/publicbody/admin.py | from django.contrib import admin
from froide.publicbody.models import PublicBody, FoiLaw
class PublicBodyAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("geography", "name",)}
list_display = ('name', 'classification', 'geography')
list_filter = ('classification',)
search_fields = ['name', "des... | from django.contrib import admin
from froide.publicbody.models import PublicBody, FoiLaw
class PublicBodyAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("geography", "name",)}
list_display = ('name', 'classification', 'topic', 'geography')
list_filter = ('classification', 'topic',)
search_fiel... | Add topic to PublicBodyAdmin list_filter and list_display | Add topic to PublicBodyAdmin list_filter and list_display | Python | mit | catcosmo/froide,ryankanno/froide,stefanw/froide,catcosmo/froide,fin/froide,CodeforHawaii/froide,fin/froide,okfse/froide,LilithWittmann/froide,okfse/froide,stefanw/froide,ryankanno/froide,LilithWittmann/froide,LilithWittmann/froide,CodeforHawaii/froide,fin/froide,catcosmo/froide,catcosmo/froide,okfse/froide,ryankanno/fr... | ---
+++
@@ -3,8 +3,8 @@
class PublicBodyAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("geography", "name",)}
- list_display = ('name', 'classification', 'geography')
- list_filter = ('classification',)
+ list_display = ('name', 'classification', 'topic', 'geography')
+ list_filter = ('c... |
621d285c05ce3a6257edcffec03c8a96507b6179 | name/feeds.py | name/feeds.py | from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse_lazy
from django.utils.feedgenerator import Atom1Feed
from . import app_settings
from .models import Name, Location
class NameAtomFeedType(Atom1Feed):
"""Create an Atom feed that sets the Content-Type response
head... | from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse_lazy
from django.utils.feedgenerator import Atom1Feed
from . import app_settings
from .models import Name
class NameAtomFeedType(Atom1Feed):
"""Create an Atom feed that sets the Content-Type response
header to appl... | Change the formating of item_description. Remove item_location because it was not used. | Change the formating of item_description. Remove item_location because it was not used.
| Python | bsd-3-clause | unt-libraries/django-name,damonkelley/django-name,unt-libraries/django-name,unt-libraries/django-name,damonkelley/django-name,damonkelley/django-name | ---
+++
@@ -3,7 +3,7 @@
from django.utils.feedgenerator import Atom1Feed
from . import app_settings
-from .models import Name, Location
+from .models import Name
class NameAtomFeedType(Atom1Feed):
@@ -26,25 +26,11 @@
# last 5 added items
return Name.objects.order_by('-date_created')[:20]
... |
002dd6fa4af36bd722b3f194c93f1e2e628ad561 | inboxen/app/model/email.py | inboxen/app/model/email.py | from inboxen.models import Alias, Attachment, Email, Header
from config.settings import datetime_format, recieved_header_name
from datetime import datetime
def make_email(message, alias, domain):
inbox = Alias.objects.filter(alias=alias, domain__domain=domain)[0]
user = inbox.user
body = message.base.body
... | from inboxen.models import Alias, Attachment, Email, Header
from config.settings import datetime_format, recieved_header_name
from datetime import datetime
def make_email(message, alias, domain):
inbox = Alias.objects.filter(alias=alias, domain__domain=domain)[0]
user = inbox.user
body = message.base.body
... | Reduce number of queries to DB | Reduce number of queries to DB
| Python | agpl-3.0 | Inboxen/router,Inboxen/Inboxen,Inboxen/Inboxen,Inboxen/Inboxen,Inboxen/Inboxen | ---
+++
@@ -12,16 +12,24 @@
email = Email(inbox=inbox, user=user, body=body, recieved_date=recieved_date)
email.save()
+ head_list = []
for name in message.keys():
- email.headers.create(name=name, data=message[name])
+ header = Header(name=name, data=message[name])
+ header.s... |
1ecd6cacac15bff631b958ee6773b2ad8659df50 | opps/images/widgets.py | opps/images/widgets.py | from django import forms
from django.conf import settings
from django.template.loader import render_to_string
class MultipleUpload(forms.FileInput):
def render(self, name, value, attrs=None):
_value = ""
if value:
_value = "{0}{1}".format(settings.MEDIA_URL, value)
return rend... | from django import forms
from django.conf import settings
from django.template.loader import render_to_string
class MultipleUpload(forms.FileInput):
def render(self, name, value, attrs=None):
_value = ""
if value:
_value = "{0}{1}".format(settings.MEDIA_URL, value)
return rend... | Create widget CropExample on images | Create widget CropExample on images
| Python | mit | jeanmask/opps,williamroot/opps,opps/opps,jeanmask/opps,opps/opps,YACOWS/opps,jeanmask/opps,opps/opps,williamroot/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,YACOWS/opps,williamroot/opps,YACOWS/opps | ---
+++
@@ -12,3 +12,12 @@
return render_to_string("admin/opps/images/multiupload.html",
{"name": name, "value": _value,
"STATIC_URL": settings.STATIC_URL})
+
+class CropExample(forms.TextInput):
+
+ def render(self, name, value, attrs=Non... |
1a03fbbb612d8faa5a6733fe7d4920f3ca158a69 | acme/utils/observers.py | acme/utils/observers.py | # Copyright 2018 DeepMind Technologies Limited. All rights reserved.
#
# 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 ... | # Copyright 2018 DeepMind Technologies Limited. All rights reserved.
#
# 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 ... | Add a missing @abc.abstractmethod declaration | Add a missing @abc.abstractmethod declaration
PiperOrigin-RevId: 424036906
Change-Id: I3979c35ec30caa4b684d43376b2a36d21f7e79df
| Python | apache-2.0 | deepmind/acme,deepmind/acme | ---
+++
@@ -27,6 +27,7 @@
class EnvLoopObserver(abc.ABC):
"""An interface for collecting metrics/counters in EnvironmentLoop."""
+ @abc.abstractmethod
def observe_first(self, env: dm_env.Environment, timestep: dm_env.TimeStep
) -> None:
"""Observes the initial state.""" |
018d062f2ed9ca9acd3d555d439dd81b89c88a6f | parse_push/managers.py | parse_push/managers.py |
from django.db import models
class DeviceManager(models.Manager):
def latest(self):
""" Returns latest Device instance """
return self.latest('created_at')
|
from django.db import models
class DeviceManager(models.Manager):
def get_latest(self):
""" Returns latest Device instance """
return self.get_queryset().latest('created_at')
| Use .get_latest() instead so that we do not override built-in .latest() | Use .get_latest() instead so that we do not override built-in .latest()
| Python | bsd-3-clause | willandskill/django-parse-push | ---
+++
@@ -4,7 +4,7 @@
class DeviceManager(models.Manager):
- def latest(self):
+ def get_latest(self):
""" Returns latest Device instance """
- return self.latest('created_at')
+ return self.get_queryset().latest('created_at')
|
ab2f4aaf9546787a269a3d0ec5b3b83c86a43bde | Languages.py | Languages.py | #!/usr/bin/env python3
import requests
import re
def findAllLanguages():
"Find a list of Crowdin language codes to which KA is translated to"
response = requests.get("https://crowdin.com/project/khanacademy")
txt = response.text
for match in re.findall(r"https?://[a-z0-9]*\.cloudfront\.net/images/flags... | #!/usr/bin/env python3
import requests
import re
def findAllLanguages():
"Find a list of Crowdin language codes to which KA is translated to"
response = requests.get("https://crowdin.com/project/khanacademy")
txt = response.text
langs = set()
for match in re.findall(r"https?://[a-z0-9]*\.cloudfront... | Return language set instead of language generator | Return language set instead of language generator
| Python | apache-2.0 | ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck,KA-Advocates/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck,ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck | ---
+++
@@ -6,8 +6,10 @@
"Find a list of Crowdin language codes to which KA is translated to"
response = requests.get("https://crowdin.com/project/khanacademy")
txt = response.text
+ langs = set()
for match in re.findall(r"https?://[a-z0-9]*\.cloudfront\.net/images/flags/([^\.]+)\.png", txt):
-... |
8d313884a52b06e2fdf9a3c0d152b9e711ff02c2 | kkbox/trac/secretticket.py | kkbox/trac/secretticket.py | from trac.core import Component, implements
from trac.perm import IPermissionRequestor
class KKBOXSecretTicketsPolicy(Component):
implements(IPermissionRequestor)
def get_permission_actions(self):
return ['SECRET_VIEW']
| from trac.ticket.model import Ticket
from trac.core import Component, implements, TracError
from trac.perm import IPermissionPolicy
class KKBOXSecretTicketsPolicy(Component):
implements(IPermissionPolicy)
def __init__(self):
config = self.env.config
self.sensitive_keyword = config.get('kkbox',... | Mark ticket as sensitive by keyword | Mark ticket as sensitive by keyword
Set sensitive_keyword in trac.ini as following example, These ticket has
"secret" keyword are viewable by reporter, owner and cc.
[kkbox]
sensitive_keyword = secret
| Python | bsd-3-clause | KKBOX/trac-keyword-secret-ticket-plugin | ---
+++
@@ -1,8 +1,39 @@
-from trac.core import Component, implements
-from trac.perm import IPermissionRequestor
+from trac.ticket.model import Ticket
+from trac.core import Component, implements, TracError
+from trac.perm import IPermissionPolicy
class KKBOXSecretTicketsPolicy(Component):
- implements(IPermis... |
01516489dbf9ee78128d653b3ebc46730d466425 | apps/api/serializers.py | apps/api/serializers.py | # -*- coding: utf-8 -*-
from rest_framework import serializers
from apps.broadcasts.models import Broadcast, Host, Raid, Series
from apps.games.models import Game, Platform
from apps.subscribers.models import Ticket
class HostSerializer(serializers.ModelSerializer):
class Meta:
fields = ('id', 'timestamp... | # -*- coding: utf-8 -*-
from rest_framework import serializers
from apps.broadcasts.models import Broadcast, Host, Raid, Series
from apps.games.models import Game, Platform
from apps.subscribers.models import Ticket
class HostSerializer(serializers.ModelSerializer):
class Meta:
fields = ('id', 'timestamp... | Add appearance count to the API. | Add appearance count to the API.
| Python | apache-2.0 | bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv | ---
+++
@@ -24,6 +24,8 @@
class GameSerializer(serializers.ModelSerializer):
+ appearances = serializers.IntegerField(source='appears_on.count', read_only=True)
+
class Meta:
model = Game
|
8ee38953a9f8bdbd95ace4ea45e3673cc260bb4b | scripts/cronRefreshEdxQualtrics.py | scripts/cronRefreshEdxQualtrics.py | import getopt
import sys
import os
### Script for scheduling regular EdxQualtrics updates
### Usage for cron should be "cronRefreshEdxQualtrics.py -m -s -r"
# Append directory for dependencies to PYTHONPATH
# sys.path.append("/home/dataman/Code/qualtrics_etl/src/qualtrics_etl/")
source_dir = [os.path.join(os.path.dir... | #!/usr/bin/env python
import getopt
import sys
import os
### Script for scheduling regular EdxQualtrics updates
### Usage for cron should be "cronRefreshEdxQualtrics.py -m -s -r"
# Append directory for dependencies to PYTHONPATH
# sys.path.append("/home/dataman/Code/qualtrics_etl/src/qualtrics_etl/")
source_dir = [o... | Add python environment to cron qualtrics script | Add python environment to cron qualtrics script
| Python | bsd-3-clause | paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation | ---
+++
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
import getopt
import sys
import os |
6ac1c09422e82d97e3a9e9bc8d52c8814c33bc27 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Command
import os
packages = find_packages()
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Command
import os
packages = find_packages()
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
... | Rename package, add script to manifest | Rename package, add script to manifest | Python | mit | njvack/markdown-to-json | ---
+++
@@ -28,10 +28,10 @@
execfile(filename, {}, l)
return l
-metadata = get_locals(os.path.join('bids_writer', '_metadata.py'))
+metadata = get_locals(os.path.join('markdown_to_json', '_metadata.py'))
setup(
- name="bids-json-writer",
+ name="markdown-to-json",
version=metadata['version']... |
91ad52d6d47ce12966e5fb23913a8c5b600b2c13 | setup.py | setup.py | from buckle.version import VERSION
from setuptools import setup, find_packages
setup(
name='buckle',
version=VERSION,
description='Buckle: It ties your toolbelt together',
author='Nextdoor',
author_email='eng@nextdoor.com',
packages=find_packages(exclude=['ez_setup']),
scripts=['bin/buckle... | from buckle.version import VERSION
from setuptools import setup, find_packages
setup(
name='buckle',
version=VERSION,
description='Buckle: It ties your toolbelt together',
author='Nextdoor',
author_email='eng@nextdoor.com',
packages=find_packages(exclude=['ez_setup']),
scripts=['bin/buckle... | Use < instead of <= in environment markers. | Use < instead of <= in environment markers.
| Python | bsd-2-clause | Nextdoor/buckle,Nextdoor/buckle | ---
+++
@@ -24,7 +24,7 @@
'pytest',
],
extras_require={
- ':python_version <= "3.2"': [
+ ':python_version < "3.3"': [
'subprocess32',
],
}, |
ff0468f51b6a5cebd00f2cea8d2abd5f74e925d6 | ometa/tube.py | ometa/tube.py | from ometa.interp import TrampolinedGrammarInterpreter, _feed_me
class TrampolinedParser:
"""
A parser that incrementally parses incoming data.
"""
def __init__(self, grammar, receiver, bindings):
"""
Initializes the parser.
@param grammar: The grammar used to parse the incomin... | from ometa.interp import TrampolinedGrammarInterpreter, _feed_me
class TrampolinedParser:
"""
A parser that incrementally parses incoming data.
"""
def __init__(self, grammar, receiver, bindings):
"""
Initializes the parser.
@param grammar: The grammar used to parse the incomin... | Update TrampolinedParser a little for my purposes. | Update TrampolinedParser a little for my purposes.
| Python | mit | rbtcollins/parsley,python-parsley/parsley,python-parsley/parsley,rbtcollins/parsley | ---
+++
@@ -26,8 +26,8 @@
'initial'.
"""
self._interp = TrampolinedGrammarInterpreter(
- grammar=self.grammar, ruleName='initial', callback=None,
- globals=self.bindings)
+ grammar=self.grammar, ruleName=self.receiver.currentRule,
+ callback=None,... |
3955d10f5dd905610c9621046069ae8dacbb1c1e | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'A simple python LOC count tool',
'author': 'Tihomir Saulic',
'url': 'http://github.com/tsaulic/pycount',
'download_url': 'http://github.com/tsaulic/pycount',
'author_email': 't... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
config = {
'description': 'A simple python LOC count tool',
'author': 'Tihomir Saulic',
'url': 'http://github.com/tsaulic/pycount',
'download_url': 'http://github.com/tsaulic/pycount',
'author_email': 't... | Add dependency and bump version. | Add dependency and bump version.
| Python | mit | tsaulic/pycount | ---
+++
@@ -10,8 +10,8 @@
'url': 'http://github.com/tsaulic/pycount',
'download_url': 'http://github.com/tsaulic/pycount',
'author_email': 'tihomir[DOT]saulic[AT]gmail[DOT]com',
- 'version': '0.6.1',
- 'install_requires': ['binaryornot'],
+ 'version': '0.6.2',
+ 'install_requires': ['binary... |
c1def9580859eb97368aa49a2e26aab483785b35 | setup.py | setup.py | from setuptools import setup, find_packages
import biobox_cli
setup(
name = 'biobox_cli',
version = biobox_cli.__version__,
description = 'Run biobox Docker containers on the command line',
author = 'bioboxes',
author_email = 'mail@bioboxe... | from setuptools import setup, find_packages
import biobox_cli
setup(
name = 'biobox-cli',
version = biobox_cli.__version__,
description = 'Run biobox Docker containers on the command line',
author = 'bioboxes',
author_email = 'mail@bioboxe... | Use hyphen in package name | Use hyphen in package name
Signed-off-by: Michael Barton <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@michaelbarton.me.uk>
| Python | mit | pbelmann/command-line-interface,michaelbarton/command-line-interface,fungs/bbx-cli,michaelbarton/command-line-interface,bioboxes/command-line-interface,pbelmann/command-line-interface,bioboxes/command-line-interface,fungs/bbx-cli | ---
+++
@@ -2,7 +2,7 @@
import biobox_cli
setup(
- name = 'biobox_cli',
+ name = 'biobox-cli',
version = biobox_cli.__version__,
description = 'Run biobox Docker containers on the command line',
author = 'bioboxes',
@@ -14,7 ... |
dee908d28734f5dba0a98e19edc39bc35c9bb062 | setup.py | setup.py | #! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='permamodel',
version='0.1.0',
author='Elchin Jafarov and Scott Stewart',
author_email='james.stewart@colorado.edu',
description='Permamodel',
long_descripti... | #! /usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='permamodel',
version='0.1.0',
author='Elchin Jafarov and Scott Stewart',
author_email='james.stewart@colorado.edu',
description='Permamodel',
long_descripti... | Include packages needed on install | Include packages needed on install
| Python | mit | permamodel/permamodel,permamodel/permamodel | ---
+++
@@ -12,6 +12,6 @@
long_description=open('README.md').read(),
packages=find_packages(),
#install_requires=('numpy', 'nose', 'gdal', 'pyproj'),
- install_requires=('numpy', 'nose',),
+ install_requires=('affine', 'netCDF4', 'scipy', 'numpy', 'nose',),
package_data={'': ['ex... |
d2b4e85fd0b3c44a460bc843eb480dd82f216f6e | setup.py | setup.py | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'flask_swagger_ui/README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='flask-swagger-ui',
... | Fix file inclusion and make new release. | Fix file inclusion and make new release.
| Python | mit | sveint/flask-swagger-ui,sveint/flask-swagger-ui,sveint/flask-swagger-ui | ---
+++
@@ -10,7 +10,7 @@
setup(
name='flask-swagger-ui',
- version='3.0.12',
+ version='3.0.12a',
description='Swagger UI blueprint for Flask',
long_description=long_description,
@@ -44,12 +44,8 @@
'dist/README.md',
'dist/*.html',
'dist/*.js',
- ... |
3263a691db55ed72c4f98096748ad930c7ecdd68 | setup.py | setup.py | #!/usr/bin/env python
import os.path
from distutils.core import setup
README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Py... | #!/usr/bin/env python
import os.path
from distutils.core import setup
README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Py... | Update repository addresses and emails | Update repository addresses and emails
| Python | mit | jleclanche/python-ptch | ---
+++
@@ -20,11 +20,11 @@
name = "python-ptch",
py_modules = ["ptch"],
author = "Jerome Leclanche",
- author_email = "jerome.leclanche+python-ptch@gmail.com",
+ author_email = "jerome@leclan.ch",
classifiers = CLASSIFIERS,
description = "Blizzard BSDIFF-based PTCH file format support",
- download_url = "h... |
48701a9f582d65f8086b2bdefe02315d6aca1e77 | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-stylus',
version='0.1.1',
url='https://github.com/gears/gears-stylus',
license='ISC',
author='Mike Yumatov',
author_email='mi... | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='gears-stylus',
version='0.1.1',
url='https://github.com/gears/gears-stylus',
license='ISC',
author='Mike Yumatov',
author_email='mi... | Drop Python 2.5 support, add support for Python 3.2 | Drop Python 2.5 support, add support for Python 3.2
| Python | isc | gears/gears-stylus,gears/gears-stylus | ---
+++
@@ -23,8 +23,8 @@
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: ... |
9abbb0b79da1466d2719496b479e43a74e798b97 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="librobinson",
version="0.1",
packages=find_packages(),
scripts=['robinson'],
# Project uses reStructuredText, so ensure that the docutils get
# installed or upgraded on the target machine
#install_requires=['docutils>=0.3'],
pack... | from setuptools import setup, find_packages
setup(
name="librobinson",
version="0.2.0",
packages=find_packages(),
scripts=[
'robinson/booknames.py',
'robinson/book.py',
'robinson/chapter.py',
'robinson/convert.py',
'robinson/__init__.py',
'robinson/kind.py... | Add all python files explicitly, and bump to version 0.2.0 | Add all python files explicitly, and bump to version 0.2.0
| Python | mit | byztxt/librobinson | ---
+++
@@ -1,9 +1,23 @@
from setuptools import setup, find_packages
setup(
name="librobinson",
- version="0.1",
+ version="0.2.0",
packages=find_packages(),
- scripts=['robinson'],
+ scripts=[
+ 'robinson/booknames.py',
+ 'robinson/book.py',
+ 'robinson/chapter.py',
+ ... |
b90553ddc7a27d2b594fcc88130d999c70ae6f5b | setup.py | setup.py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).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 = 'RecordExpress',
version = '0.0',
packages = ['collectio... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).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 = 'RecordExpress',
version = '0.0',
packages = ['collectio... | Make django-sortable install, pypi package is broken. | Make django-sortable install, pypi package is broken.
| Python | bsd-3-clause | cdlib/RecordExpress,cdlib/RecordExpress,cdlib/RecordExpress,cdlib/RecordExpress | ---
+++
@@ -11,7 +11,9 @@
version = '0.0',
packages = ['collection_record'],
include_package_data = True,
- dependency_links = ['https://github.com/cdlib/RecordExpress.git'],
+ dependency_links = ['https://github.com/cdlib/RecordExpress.git',
+ 'https://github.com/drewyeaton/django-sortabl... |
2fa8b2f4a63579633272b1cc8d972baf27c661f2 | pmg/models/__init__.py | pmg/models/__init__.py | from .users import *
from .resources import *
from .emails import *
from .pages import *
from .soundcloud_track import *
| from .users import *
from .resources import *
from .emails import *
from .pages import *
from .soundcloud_track import SoundcloudTrack
| Fix error on admin user_report view | Fix error on admin user_report view
| Python | apache-2.0 | Code4SA/pmg-cms-2,Code4SA/pmg-cms-2,Code4SA/pmg-cms-2 | ---
+++
@@ -2,4 +2,4 @@
from .resources import *
from .emails import *
from .pages import *
-from .soundcloud_track import *
+from .soundcloud_track import SoundcloudTrack |
6a9193fdc43361ca12b7f22d18954d17c2049ba1 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'CommonModules',
packages = find_packages(where = '.'), # this must be the same as the name above
version = '0.1.11',
description = 'Common Python modules/functionalities used in practice.',
author = 'Wang Hewen',
author_email = 'w... | from setuptools import setup, find_packages
setup(
name = 'CommonModules',
packages = find_packages(where = '.'), # this must be the same as the name above
version = '0.1.13',
description = 'Common Python modules/functionalities used in practice.',
author = 'Wang Hewen',
author_email = 'w... | Fix version number. Will check the file in another machine and fix the conflict | Fix version number. Will check the file in another machine and fix the conflict
| Python | mit | wanghewen/CommonModules | ---
+++
@@ -2,7 +2,7 @@
setup(
name = 'CommonModules',
packages = find_packages(where = '.'), # this must be the same as the name above
- version = '0.1.11',
+ version = '0.1.13',
description = 'Common Python modules/functionalities used in practice.',
author = 'Wang Hewen',
author_ema... |
ad0f91e9d120e4c6b34aabf13fa3c68f0d7f5611 | setup.py | setup.py | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "0.5",
author = "Peter Teichman",
author_email = "peter@teichman.org",
packages = ["cobe"],
test_suite = "tests.cobe_suite",
install_requir... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name = "cobe",
version = "0.5",
author = "Peter Teichman",
author_email = "peter@teichman.org",
packages = ["cobe"],
test_suite = "tests.cobe_suite",
install_requir... | Rename the control script to "cobe" | Rename the control script to "cobe"
| Python | mit | pteichman/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,LeMagnesium/cobe,DarkMio/cobe,meska/cobe,pteichman/cobe,meska/cobe,DarkMio/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,LeMagnesium/cobe | ---
+++
@@ -24,7 +24,7 @@
],
entry_points = {
"console_scripts" : [
- "cobe-control = cobe.control:main"
+ "cobe = cobe.control:main"
]
}
) |
518cafbd053843b0aee48ac75eccb6a05ff237f5 | setup.py | setup.py | from setuptools import setup
import proxyprefix
setup(
name='proxyprefix',
version=proxyprefix.__version__,
description=proxyprefix.__doc__,
url='https://github.com/yola/proxyprefix',
packages=['proxyprefix'],
)
| from setuptools import setup
import proxyprefix
setup(
name='proxyprefix',
version=proxyprefix.__version__,
description='Prefix SCRIPT_NAME with X-Forwarded-Prefix header',
long_description=proxyprefix.__doc__,
url='https://github.com/yola/proxyprefix',
packages=['proxyprefix'],
)
| Use module doc as long_description not description | Use module doc as long_description not description
It's too long for description.
See https://github.com/yola/proxyprefix/pull/3#issuecomment-75107125
| Python | mit | yola/proxyprefix | ---
+++
@@ -6,7 +6,8 @@
setup(
name='proxyprefix',
version=proxyprefix.__version__,
- description=proxyprefix.__doc__,
+ description='Prefix SCRIPT_NAME with X-Forwarded-Prefix header',
+ long_description=proxyprefix.__doc__,
url='https://github.com/yola/proxyprefix',
packages=['proxypre... |
678e872de192b09c1bafc7a26dc67d7737a14e20 | altair/examples/us_population_over_time.py | altair/examples/us_population_over_time.py | """
US Population Over Time
=======================
This chart visualizes the age distribution of the US population over time.
It uses a slider widget that is bound to the year to visualize the age
distribution over time.
"""
# category: case studies
import altair as alt
from vega_datasets import data
source = data.po... | """
US Population by Age and Sex
============================
This chart visualizes the age distribution of the US population over time.
It uses a slider widget that is bound to the year to visualize the age
distribution over time.
"""
# category: case studies
import altair as alt
from vega_datasets import data
source... | Tidy up U.S. Population by Age and Sex | Tidy up U.S. Population by Age and Sex | Python | bsd-3-clause | altair-viz/altair | ---
+++
@@ -1,6 +1,6 @@
"""
-US Population Over Time
-=======================
+US Population by Age and Sex
+============================
This chart visualizes the age distribution of the US population over time.
It uses a slider widget that is bound to the year to visualize the age
distribution over time.
@@ -11... |
1ff696abdee762303dfc79e23e0cdabc6e411270 | setup.py | setup.py | #!/usr/bin/env python
#from distutils.core import setup
from setuptools import setup, find_packages
setup(
name="imaplib2",
version="2.28.3",
description="A threaded Python IMAP4 client.",
author="Piers Lauder",
url="http://github.com/bcoe/imaplib2",
classifiers = [
"Programming Languag... | #!/usr/bin/env python
# from distutils.core import setup
from setuptools import setup, find_packages
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
setup(
name="imaplib2",
version="2.28.4",
description="A th... | Add support for Python 3 by doing 2to3 conversion when installing the package with distutils. This way we don't have to maintain two separate repositories to support Python 2.x and Python 3.x. | Add support for Python 3 by doing 2to3 conversion when installing the package with distutils. This way we don't have to maintain two separate repositories to support Python 2.x and Python 3.x.
| Python | mit | mbmccoy/smtp_to_tcp | ---
+++
@@ -1,16 +1,23 @@
#!/usr/bin/env python
-#from distutils.core import setup
+# from distutils.core import setup
from setuptools import setup, find_packages
+
+try:
+ from distutils.command.build_py import build_py_2to3 as build_py
+except ImportError:
+ from distutils.command.build_py import build_py
... |
71b68c990977e78abf8dbaf6562719f39492657f | setup.py | setup.py | from setuptools import setup, find_packages
# First update the version in loompy/_version.py, then:
# cd loompy (the root loompy folder, not the one inside!)
# rm -r dist (otherwise twine will upload the oldest build!)
# python setup.py sdist
# twine upload dist/*
# NOTE: Don't forget to update the release versio... | from setuptools import setup, find_packages
# First update the version in loompy/_version.py, then:
# cd loompy (the root loompy folder, not the one inside!)
# rm -r dist (otherwise twine will upload the oldest build!)
# python setup.py sdist
# twine upload dist/*
# NOTE: Don't forget to update the release versio... | Make clear we need Python 3.6 | Make clear we need Python 3.6
| Python | bsd-2-clause | linnarsson-lab/loompy,linnarsson-lab/loompy | ---
+++
@@ -20,6 +20,7 @@
version=__version__,
packages=find_packages(),
install_requires=['h5py', 'numpy', 'scipy', "typing", "setuptools"],
+ python_requires='>=3.6',
# metadata for upload to PyPI
author="Linnarsson Lab",
author_email="sten.linnarsson@ki.se", |
1d686d4e5cd4ff610dda2b8be9fc747d6314a4b4 | setup.py | setup.py | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
import os
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
version_file = os.path.join(here, 'src/iptools/__init__.py')
d = {}
execfile(version_file, d)
version = d['__version__']
setup(
name = 'iptools',
... | Set download_url to pypi directory. | Set download_url to pypi directory.
git-svn-id: c8188841f5432f3fe42d04dee4f87e556eb5cf84@23 99efc558-b41a-11dd-8714-116ca565c52f
| Python | bsd-2-clause | bd808/python-iptools | ---
+++
@@ -19,6 +19,7 @@
description = 'Python utilites for manipulating IP addresses',
long_description = "Utilities for manipulating IP addresses including a class that can be used to include CIDR network blocks in Django's INTERNAL_IPS setting.",
url = 'http://python-iptools.googlecode.com',
+ d... |
0d4fe588023869044755644dfa162c488a7fdea8 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='raimon49.guestbook',
version='1.0.0',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Flask',
],
entry_points="""
[console_scripts]
guestbook = guestbook:main
"""
)
| import os
from setuptools import setup, find_packages
def read_file(filename):
basepath = os.path.dirname(os.path.dirname(__file__))
filepath = os.path.join(basepath, filename)
if os.path.exists(filepath):
return open(filepath.read())
else:
return ''
setup(
name='raimon49.guestbo... | Update meta data for distributed PyPI | Update meta data for distributed PyPI
| Python | bsd-3-clause | raimon49/pypro2-guestbook-webapp,raimon49/pypro2-guestbook-webapp | ---
+++
@@ -1,11 +1,35 @@
+import os
from setuptools import setup, find_packages
+
+
+def read_file(filename):
+ basepath = os.path.dirname(os.path.dirname(__file__))
+ filepath = os.path.join(basepath, filename)
+ if os.path.exists(filepath):
+ return open(filepath.read())
+ else:
+ return... |
42418b638a581b0243182e8a4e24662c7e7cc003 | setup.py | setup.py | #!/usr/bin/python
import setuptools
from setuptools import find_packages
setuptools.setup(
name = 'js.handlebars',
version = '1.0.rc.1',
license = 'BSD',
description = 'Fanstatic package for Handlebars.js',
long_description = open('README.txt').read(),
author = 'Matt Good',
author_email = 'matt@matt-goo... | #!/usr/bin/python
import setuptools
from setuptools import find_packages
setuptools.setup(
name = 'js.handlebars',
version = '1.0.rc.1-1',
license = 'BSD',
description = 'Fanstatic package for Handlebars.js',
long_description = open('README.txt').read(),
author = 'Matt Good',
author_email = 'matt@matt-g... | Fix including JS resources as package data | Fix including JS resources as package data
| Python | bsd-2-clause | mgood/js.handlebars,mgood/js.handlebars | ---
+++
@@ -5,7 +5,7 @@
setuptools.setup(
name = 'js.handlebars',
- version = '1.0.rc.1',
+ version = '1.0.rc.1-1',
license = 'BSD',
description = 'Fanstatic package for Handlebars.js',
long_description = open('README.txt').read(),
@@ -15,6 +15,7 @@
platforms = 'any',
packages=find_packages(),
... |
a7f24ba803c13bf7b263aed4d974ad604d53df2f | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
__author__ = "Nitrax <nitrax@lokisec.fr>"
__copyright__ = "Copyright 2017, Legobot"
description = 'Lego providing networking tools'
name = 'legos.nettools'
setup(
name=name,
version='0.1.0',
namespace_packages=name.split('.')[:-1],
lic... | #!/usr/bin/env python
from setuptools import setup, find_packages
__author__ = "Nitrax <nitrax@lokisec.fr>"
__copyright__ = "Copyright 2017, Legobot"
description = 'Lego providing networking tools'
name = 'legos.nettools'
setup(
name=name,
version='0.1.0',
namespace_packages=name.split('.')[:-1],
lic... | Fix trove classifier for pypi | Fix trove classifier for pypi
| Python | mit | Legobot/legos.nettools | ---
+++
@@ -23,8 +23,7 @@
'pytest==3.0.5'
],
classifiers=[
- 'License :: MIT',
-
+ 'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
],
packages=find_packages() |
f7784f2023e8f351c539586c56d2f9ec3a9086e1 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
install_requires = [
'argparse',
'jsonschema',
'mock',
'M2Crypto',
'pycrypto',
'python-augeas',
'python2-pythondialog',
'requests',
]
docs_extras = [
'Sphinx',
]
testing_extras = [
'coverage',
'nose',
'nosexcover',
... | #!/usr/bin/env python
from setuptools import setup
install_requires = [
'argparse',
'jsonschema',
'M2Crypto',
'mock',
'pycrypto',
'python-augeas',
'python2-pythondialog',
'requests',
]
docs_extras = [
'Sphinx',
]
testing_extras = [
'coverage',
'nose',
'nosexcover',
... | Fix lexicographic order in install_requires | Fix lexicographic order in install_requires
| Python | apache-2.0 | Jadaw1n/letsencrypt,TheBoegl/letsencrypt,Sveder/letsencrypt,tdfischer/lets-encrypt-preview,letsencrypt/letsencrypt,hsduk/lets-encrypt-preview,mrb/letsencrypt,bsmr-misc-forks/letsencrypt,mrb/letsencrypt,beermix/letsencrypt,PeterMosmans/letsencrypt,lbeltrame/letsencrypt,wteiken/letsencrypt,bsmr-misc-forks/letsencrypt,The... | ---
+++
@@ -5,8 +5,8 @@
install_requires = [
'argparse',
'jsonschema',
+ 'M2Crypto',
'mock',
- 'M2Crypto',
'pycrypto',
'python-augeas',
'python2-pythondialog', |
84ded02cba3caee164e848c1200e46b08011f93f | setup.py | setup.py | from setuptools import setup, find_packages
version = '1.0.17'
requires = [
'neo4j-driver<1.2.0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
licens... | from setuptools import setup, find_packages
version = '1.0.17'
requires = [
'neo4j-driver<1.5,0',
'six>=1.10.0',
]
testing_requires = [
'nose',
'coverage',
'nosexcover',
]
setup(
name='norduniclient',
version=version,
url='https://github.com/NORDUnet/python-norduniclient',
licens... | Update requirement neo4j-driver to <1.5.0 | Update requirement neo4j-driver to <1.5.0
| Python | apache-2.0 | NORDUnet/python-norduniclient,NORDUnet/python-norduniclient | ---
+++
@@ -3,7 +3,7 @@
version = '1.0.17'
requires = [
- 'neo4j-driver<1.2.0',
+ 'neo4j-driver<1.5,0',
'six>=1.10.0',
]
|
8476597698e6f21404e784b43f21f01d93c5b576 | setup.py | setup.py | #!/usr/bin/env python
import nirvana
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='nirvana',
version=nirvana.__version__,
description=('Library for interacting with the N... | #!/usr/bin/env python
import nirvana
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme:
long_description = readme.read()
setup(
name='nirvana',
version=nirvana.__version__,
description=('Library for interacting with the N... | Update project URL to readthedocs | Update project URL to readthedocs
| Python | mit | njwilson/nirvana-python,njwilson/nirvana-python | ---
+++
@@ -18,7 +18,7 @@
long_description=long_description,
author='Nick Wilson',
author_email='nick@njwilson.net',
- url='http://github.com/njwilson/nirvana-python',
+ url='http://nirvana-python.readthedocs.org',
license='MIT',
packages=['nirvana'],
classifiers=[ |
dd063b68311209c51018cad7e9c91d2c6b4eef3c | setup.py | setup.py | # coding:utf-8
from setuptools import setup, find_packages
from qingstor.qsctl import __version__
setup(
name='qsctl',
version=__version__,
description='Advanced command line tool for QingStor.',
long_description=open('README.rst', 'rb').read().decode('utf-8'),
keywords='yunify qingcloud qingstor ... | # coding:utf-8
from sys import version_info
from setuptools import setup, find_packages
from qingstor.qsctl import __version__
install_requires = [
'argparse >= 1.1',
'PyYAML >= 3.1',
'qingstor-sdk >= 2.1.0',
'docutils >= 0.10',
'tqdm >= 4.0.0'
]
if version_info[:3] < (2, 7, 9):
install_requi... | Fix SSL Warnings with old python versions | Fix SSL Warnings with old python versions
Signed-off-by: Xuanwo <9d9ffaee821234cdfed458cf06eb6f407f8dbe47@yunify.com>
| Python | apache-2.0 | yunify/qsctl,Fiile/qsctl | ---
+++
@@ -1,7 +1,19 @@
# coding:utf-8
+from sys import version_info
from setuptools import setup, find_packages
from qingstor.qsctl import __version__
+
+install_requires = [
+ 'argparse >= 1.1',
+ 'PyYAML >= 3.1',
+ 'qingstor-sdk >= 2.1.0',
+ 'docutils >= 0.10',
+ 'tqdm >= 4.0.0'
+]
+
+if versi... |
8692eef51cf9b77aa0d6d09eec4bc4f36850d902 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-force-logout',
url="https://chris-lamb.co.uk/projects/django-force-logout",
version='2.0.0',
description="Framework to be able to forcibly log users out of Django projects",
author="Chris Lamb",
author_email='chris@chris-lamb.co.... | from setuptools import setup, find_packages
setup(
name='django-force-logout',
url="https://chris-lamb.co.uk/projects/django-force-logout",
version='2.0.0',
description="Framework to be able to forcibly log users out of Django projects",
author="Chris Lamb",
author_email='chris@chris-lamb.co.... | Update Django requirement to latest LTS | Update Django requirement to latest LTS
| Python | bsd-3-clause | lamby/django-force-logout | ---
+++
@@ -12,4 +12,8 @@
license="BSD",
packages=find_packages(),
+
+ install_requires=(
+ 'Django>=1.8',
+ ),
) |
15e66e00be22d7177fcba292720f55f548839469 | packages/dependencies/intel_quicksync_mfx.py | packages/dependencies/intel_quicksync_mfx.py | {
'repo_type' : 'git',
'url' : 'https://github.com/lu-zero/mfx_dispatch.git',
'conf_system' : 'cmake',
'source_subfolder' : '_build',
'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release',
'_info' : { 'version' : None, 'fancy_name... | {
'repo_type' : 'git',
'do_not_bootstrap' : True,
'run_post_patch' : [
'autoreconf -fiv',
],
'patches' : [
( 'mfx/mfx-0001-mingwcompat-disable-va.patch', '-p1' ),
],
'url' : 'https://github.com/lu-zero/mfx_dispatch.git',
'configure_options' : '{autoconf_prefix_options} --without-libva_drm --without-libva_x1... | Revert "packages/quicksync-mfx: switch to cmake" | Revert "packages/quicksync-mfx: switch to cmake"
This reverts commit b3db211b42f26480fe817d26d7515ec8bd6e5c9e.
| Python | mpl-2.0 | DeadSix27/python_cross_compile_script | ---
+++
@@ -1,8 +1,13 @@
{
'repo_type' : 'git',
+ 'do_not_bootstrap' : True,
+ 'run_post_patch' : [
+ 'autoreconf -fiv',
+ ],
+ 'patches' : [
+ ( 'mfx/mfx-0001-mingwcompat-disable-va.patch', '-p1' ),
+ ],
'url' : 'https://github.com/lu-zero/mfx_dispatch.git',
- 'conf_system' : 'cmake',
- 'source_subfolder' : '... |
5ffdfd7eb103d6974c3fb782eecaf457f53c972f | setup.py | setup.py | import os
from distutils.core import setup
version = '0.9.3'
def read_file(name):
return open(os.path.join(os.path.dirname(__file__),
name)).read()
readme = read_file('README.rst')
changes = read_file('CHANGES')
setup(
name='django-maintenancemode',
version=version,
des... | import os
from distutils.core import setup
version = '0.9.3'
here = os.path.abspath(os.path.dirname(__file__))
def read_file(name):
return open(os.path.join(here, name)).read()
readme = read_file('README.rst')
changes = read_file('CHANGES')
setup(
name='django-maintenancemode',
version=version,
des... | Use the absolute path for the long description to work around CI issues. | Use the absolute path for the long description to work around CI issues. | Python | bsd-3-clause | aarsan/django-maintenancemode,shanx/django-maintenancemode,aarsan/django-maintenancemode,21strun/django-maintenancemode,shanx/django-maintenancemode,21strun/django-maintenancemode | ---
+++
@@ -3,10 +3,10 @@
version = '0.9.3'
+here = os.path.abspath(os.path.dirname(__file__))
def read_file(name):
- return open(os.path.join(os.path.dirname(__file__),
- name)).read()
+ return open(os.path.join(here, name)).read()
readme = read_file('README.rst')
change... |
1224552892d1d459864d5ab2dada328a20cc66e7 | jobs/spiders/tvinna.py | jobs/spiders/tvinna.py | import dateutil.parser
import scrapy.spiders
from jobs.items import JobsItem
class TvinnaSpider(scrapy.spiders.XMLFeedSpider):
name = "tvinna"
start_urls = ['http://www.tvinna.is/feed/?post_type=job_listing']
itertag = 'item'
namespaces = [
('atom', 'http://www.w3.org/2005/Atom'),
('c... | import dateutil.parser
import scrapy
import scrapy.spiders
from jobs.items import JobsItem
class TvinnaSpider(scrapy.spiders.XMLFeedSpider):
name = "tvinna"
start_urls = ['http://www.tvinna.is/feed/?post_type=job_listing']
itertag = 'item'
namespaces = [
('atom', 'http://www.w3.org/2005/Atom'... | Fix the extraction of the company name. | Fix the extraction of the company name.
There's an apparent bug in the Tvinna rss feed, such that the username of the person creating the listing is used in place of a company name in the `<cd:creator>` field. As a work around, we need to visit the job listing page, and extract it from that instead. It requires more r... | Python | apache-2.0 | multiplechoice/workplace | ---
+++
@@ -1,4 +1,5 @@
import dateutil.parser
+import scrapy
import scrapy.spiders
from jobs.items import JobsItem
@@ -21,8 +22,15 @@
item = JobsItem()
item['spider'] = self.name
item['title'] = node.xpath('title/text()').extract_first()
- item['company'] = node.xpath('dc:creat... |
166015e9b4cad5b9d00df31e0d242c335c93ab79 | setup.py | setup.py | #!/usr/bin/env python
# Standard library modules.
import os
# Third party modules.
from setuptools import setup, find_packages
# Local modules.
import versioneer
# Globals and constants variables.
BASEDIR = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the relevant file
with open(os.pa... | #!/usr/bin/env python
# Standard library modules.
from pathlib import Path
# Third party modules.
from setuptools import setup, find_packages
# Local modules.
import versioneer
# Globals and constants variables.
BASEDIR = Path(__file__).parent.resolve()
# Get the long description from the relevant file
with open(B... | Use pathlib instead of os.path | Use pathlib instead of os.path | Python | bsd-2-clause | ppinard/matplotlib-scalebar | ---
+++
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Standard library modules.
-import os
+from pathlib import Path
# Third party modules.
from setuptools import setup, find_packages
@@ -10,44 +10,36 @@
import versioneer
# Globals and constants variables.
-BASEDIR = os.path.abspath(os.path.dirname(__file__))
+... |
def2ab4a860a48222fa26ede36c9a47622aa5209 | setup.py | setup.py | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | #!/usr/bin/env python
#
# Setup script for Django Evolution
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test
from django_evolution import get_package_version, VERSION
def run_tests(*args):
import os
os.system('tests/ru... | Allow Django Evolution to install along with Django >= 1.7. | Allow Django Evolution to install along with Django >= 1.7.
As we're working toward some degree of compatibility with newer versions
of Django, we need to ease up on the version restriction. Now's a good
time to do so. Django Evolution no longer has an upper bounds on the
version range.
| Python | bsd-3-clause | beanbaginc/django-evolution | ---
+++
@@ -38,7 +38,7 @@
download_url=download_url,
packages=find_packages(exclude=['tests']),
install_requires=[
- 'Django>=1.4.10,<1.7.0',
+ 'Django>=1.4.10',
],
include_package_data=True,
classifiers=[ |
aa4498eea07bd3a0c09a11782f881312020d725d | setup.py | setup.py | import os
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='chrome-webstore-deploy',
version='0.0.1',
description='Automate deployment of Chrome extensions/ap... | import os
from setuptools import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='chrome-webstore-deploy',
version='0.0.2',
description='Automate deployment of Chrome extensions/ap... | Fix typo in script packaging | Fix typo in script packaging
| Python | mit | jonnor/chrome-webstore-deploy | ---
+++
@@ -9,7 +9,7 @@
setup(
name='chrome-webstore-deploy',
- version='0.0.1',
+ version='0.0.2',
description='Automate deployment of Chrome extensions/apps to Chrome Web Store.',
long_description=(read('README.rst') + '\n\n'),
url='http://github.com/jonnor/chrome-webstore-deploy/',
@@ ... |
838d83df29b905110f8bd317e08eaaa64e97f402 | 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='0.2.18',
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='0.2.19',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | Update the PyPI version to 0.2.19. | Update the PyPI version to 0.2.19.
| Python | mit | Doist/todoist-python | ---
+++
@@ -10,7 +10,7 @@
setup(
name='todoist-python',
- version='0.2.18',
+ version='0.2.19',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com', |
d56f3d77b8e9883df0b9c4199f74ca36b39f44ef | setup.py | setup.py | from setuptools import find_packages
from setuptools import setup
def get_long_description():
with open('README.md') as readme_file:
return readme_file.read()
setup(
name="RouterOS-api",
version='0.16.1.dev0',
description='Python API to RouterBoard devices produced by MikroTik.',
long_de... | import sys
from setuptools import find_packages
from setuptools import setup
requirements = ['six']
if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 3):
requirements.append('ipaddress')
def get_long_description():
with open('README.md') as readme_file:
return readme_... | Add ipaddress requirement to python older than 3.3 | Add ipaddress requirement to python older than 3.3
| Python | mit | socialwifi/RouterOS-api,pozytywnie/RouterOS-api | ---
+++
@@ -1,6 +1,12 @@
+import sys
+
from setuptools import find_packages
from setuptools import setup
+requirements = ['six']
+
+if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 3):
+ requirements.append('ipaddress')
def get_long_description():
with open('README.md')... |
5e3253217a971a996aa182f199c8f1413aa7bc40 | setup.py | setup.py | from setuptools import find_packages, setup
VERSION = '1.0.0'
setup(
name='django-fakery',
version=VERSION,
url='https://github.com/fcurella/django-factory/',
author='Flavio Curella',
author_email='flavio.curella@gmail.com',
description='A model instances generator for Django',
license='M... | from setuptools import find_packages, setup
VERSION = '1.0.0'
setup(
name='django-fakery',
version=VERSION,
url='https://github.com/fcurella/django-factory/',
author='Flavio Curella',
author_email='flavio.curella@gmail.com',
description='A model instances generator for Django',
license='M... | Remove trove classifier for python 3.5 | Remove trove classifier for python 3.5
| Python | mit | fcurella/django-fakery | ---
+++
@@ -23,7 +23,6 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
],
install_requires=[
"fake-factory==0.5.3", |
7e0c61aa54dd26760aba0d78926b599d5b8f6d5f | tests/__init__.py | tests/__init__.py | # This file needs to exist in order for pytest-cov to work.
# See this: https://bitbucket.org/memedough/pytest-cov/issues/4/no-coverage-unless-test-directory-has-an
| Add explanation of what was not working before. | Add explanation of what was not working before.
| Python | mit | praveenv253/sht,praveenv253/sht | ---
+++
@@ -0,0 +1,2 @@
+# This file needs to exist in order for pytest-cov to work.
+# See this: https://bitbucket.org/memedough/pytest-cov/issues/4/no-coverage-unless-test-directory-has-an | |
1c4e929e0a915a5a2610862ee2ef1c57495392c5 | setup.py | setup.py | #!/usr/bin/env python
#pandoc -f rst -t markdown README.mkd -o README
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mass',
version='0.1.2',
description='Merge and Simplify Scripts: an automated tool for managin... | #!/usr/bin/env python
#pandoc -t rst -f markdown README.mkd -o README
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mass',
version='0.1.3',
description='Merge and Simplify Scripts: an automated tool for managin... | Fix pandoc statement Update version number | Fix pandoc statement
Update version number
| Python | bsd-2-clause | coded-by-hand/mass,coded-by-hand/mass | ---
+++
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-#pandoc -f rst -t markdown README.mkd -o README
+#pandoc -t rst -f markdown README.mkd -o README
import os
from setuptools import setup
@@ -10,7 +10,7 @@
setup(
name='mass',
- version='0.1.2',
+ version='0.1.3',
description='Merge and Simplify S... |
ef471f80412d49456725565349bd0e5a09e6e721 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import codecs
from setuptools import setup
try:
# Python 3
from os import dirname
except ImportError:
# Python 2
from os.path import dirname
here = os.path.abspath(dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst')... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import codecs
from setuptools import setup
try:
# Python 3
from os import dirname
except ImportError:
# Python 2
from os.path import dirname
here = os.path.abspath(dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst')... | Add some reasonable trove classifiers | Add some reasonable trove classifiers
| Python | mit | kennethreitz/maya,timofurrer/maya,emattiza/maya | ---
+++
@@ -45,6 +45,17 @@
install_requires=required,
license='MIT',
classifiers=(
-
+ 'Development Status :: 5 - Production/Stable',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: MIT License',
+ 'Natural Language :: English',
+ 'Operating System ... |
2800e2cf0a7a998a5081929e6750265f30b09130 | tests/test_bql.py | tests/test_bql.py | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# 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/LICENS... | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# 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/LICENS... | Add some more trivial bql2sql tests. | Add some more trivial bql2sql tests.
| Python | apache-2.0 | probcomp/bayeslite,probcomp/bayeslite | ---
+++
@@ -30,3 +30,8 @@
def test_select_trivial():
assert bql2sql('select 0;') == 'select 0;'
+ assert bql2sql('select 0 as z;') == 'select 0 as "z";'
+ assert bql2sql('select * from t;') == 'select * from "t";'
+ assert bql2sql('select t.* from t;') == 'select "t".* from "t";'
+ assert bql2sql(... |
2d6e0710dbc781f54295e18299be6f4c1bb0ec43 | jsonmerge/jsonvalue.py | jsonmerge/jsonvalue.py | # vim:ts=4 sw=4 expandtab softtabstop=4
class JSONValue(object):
def __init__(self, val=None, ref='#', undef=False):
assert not isinstance(val, JSONValue)
self.val = val
self.ref = ref
self.undef = undef
def is_undef(self):
return self.undef
def _subval(self, key, ... | # vim:ts=4 sw=4 expandtab softtabstop=4
class JSONValue(object):
def __init__(self, val=None, ref='#', undef=False):
assert not isinstance(val, JSONValue)
self.val = val
self.ref = ref
self.undef = undef
def is_undef(self):
return self.undef
def _subval(self, key, ... | Fix Python3 support: remove iteritems | Fix Python3 support: remove iteritems
| Python | mit | avian2/jsonmerge | ---
+++
@@ -29,12 +29,9 @@
else:
return 'JSONValue(%r,%r)' % (self.val, self.ref)
- def iteritems(self):
- for k, v in self.val.iteritems():
+ def items(self):
+ for k, v in self.val.items():
yield (k, self._subval(k, val=v))
-
- def items(self):
- re... |
707e0be6f7e750e580aecc9bced2cc19b9ccf906 | lib/windspharm/__init__.py | lib/windspharm/__init__.py | """Spherical harmonic vector wind analysis."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... | """Spherical harmonic vector wind analysis."""
# Copyright (c) 2012-2014 Andrew Dawson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... | Revert version number on release branch. | Revert version number on release branch.
| Python | mit | nicolasfauchereau/windspharm,ajdawson/windspharm | ---
+++
@@ -29,7 +29,7 @@
__all__ = []
# Package version number.
-__version__ = '1.3.2'
+__version__ = '1.3.x'
try:
from . import cdms |
188f0ac84e041259585172f5cffc21828ac534e3 | setup.py | setup.py | from setuptools import setup
setup(
name='daffodil',
version='0.3.8',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT',
keywords='data filtering',
url='https://github.com/mediapredict/daffodil',
packages=['daffodil'],
install_requires=[
... | from setuptools import setup
setup(
name='daffodil',
version='0.3.9',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT',
keywords='data filtering',
url='https://github.com/mediapredict/daffodil',
packages=['daffodil'],
install_requires=[
... | Upgrade version for new optimization | Upgrade version for new optimization
(for real this time) | Python | mit | igorkramaric/daffodil,mediapredict/daffodil | ---
+++
@@ -2,7 +2,7 @@
setup(
name='daffodil',
- version='0.3.8',
+ version='0.3.9',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT', |
99d3e7972e642050c4586968ba704d46d469e27c | setup.py | setup.py | from setuptools import setup, find_packages
setup(
# packaging information that is likely to be updated between versions
name='icecake',
version='0.6.0',
packages=['icecake'],
py_modules=['cli', 'templates', 'livejs'],
entry_points='''
[console_scripts]
icecake=icecake.cli:cli
... | from setuptools import setup, find_packages
from codec import open
setup(
# packaging information that is likely to be updated between versions
name='icecake',
version='0.6.0',
packages=['icecake'],
py_modules=['cli', 'templates', 'livejs'],
entry_points='''
[console_scripts]
ic... | Fix encoding error preventing install | Fix encoding error preventing install
While running tox the installation of icecake would succeed under Python
2.7.13 but fail under 3.5.2 with an encoding error while trying to read
the long description from README.rst.
py35 inst-nodeps: /icecake/.tox/dist/icecake-0.6.0.zip
ERROR: invocation failed (exit code 1), lo... | Python | mit | cbednarski/icecake,cbednarski/icecake | ---
+++
@@ -1,4 +1,5 @@
from setuptools import setup, find_packages
+from codec import open
setup(
# packaging information that is likely to be updated between versions
@@ -26,7 +27,7 @@
author_email="banzaimonkey@gmail.com",
description="An easy and cool static site generator",
license="MIT",... |
6d8b2453a77008acb6f6cde002c6bfaea2a75621 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='rinse',
version='0.0.3',
description='Python3 SOAP client built with lxml and requests.',
author='Tyson Clugg',
author_email='tyson@clugg.net',
url='http://github.com/tysonclugg/rinse',
license='MIT',
packages=['rinse']... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='rinse',
version='0.0.4',
description='Python3 SOAP client built with lxml and requests.',
author='Tyson Clugg',
author_email='tyson@clugg.net',
url='http://github.com/tysonclugg/rinse',
license='MIT',
packages=['rinse']... | Remove reference to stale source (client.py). | Remove reference to stale source (client.py).
| Python | mit | simudream/rinse,thedrow/rinse,MarkusH/rinse,tysonclugg/rinse,funkybob/rinse,MarkusH/rinse,simudream/rinse,tysonclugg/rinse | ---
+++
@@ -3,7 +3,7 @@
setup(
name='rinse',
- version='0.0.3',
+ version='0.0.4',
description='Python3 SOAP client built with lxml and requests.',
author='Tyson Clugg',
author_email='tyson@clugg.net', |
bc0895f318a9297144e31da3647d6fc5716aafc4 | setup.py | setup.py | '''
Setup script that:
/pyquic:
- compiles pyquic
- copies py_quic into base directory so that we can use the module directly
'''
import os
import shutil
class temp_cd():
def __init__(self, temp_dir):
self._temp_dir = temp_dir
self._return_dir = os.path.dirname(os.path.realpath(__file__))... | '''
Setup script that:
/pyquic:
- compiles pyquic
- copies py_quic into base directory so that we can use the module directly
'''
import os
import shutil
class temp_cd():
def __init__(self, temp_dir):
self._temp_dir = temp_dir
self._return_dir = os.path.dirname(os.path.realpath(__file__))... | Make sure this works the first time you run it | Make sure this works the first time you run it
| Python | mit | skggm/skggm,skggm/skggm | ---
+++
@@ -22,7 +22,9 @@
with temp_cd('pyquic/py_quic'):
os.system('make')
- shutil.rmtree('quic/py_quic')
+ if os.path.exists('quic/py_quic'):
+ shutil.rmtree('quic/py_quic')
+
shutil.copytree('pyquic/py_quic', 'quic/py_quic')
def clean_pyquic(): |
e3e0c8dbce7f3c6fb8887f2f9cc2332020d7480b | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a4.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='W... | from setuptools import setup
setup(
name='tangled.sqlalchemy',
version='0.1a4.dev0',
description='Tangled SQLAlchemy integration',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.sqlalchemy/tags',
author='W... | Upgrade tangled 0.1a7 => 0.1a9 | Upgrade tangled 0.1a7 => 0.1a9
| Python | mit | TangledWeb/tangled.sqlalchemy | ---
+++
@@ -15,12 +15,12 @@
'tangled.sqlalchemy',
],
install_requires=[
- 'tangled>=0.1a7',
+ 'tangled>=0.1a9',
'SQLAlchemy',
],
extras_require={
'dev': [
- 'tangled[dev]>=0.1a7',
+ 'tangled[dev]>=0.1a9',
],
},
class... |
35c3f9a339a199226b34efae9e78d15e85e5f184 | setup.py | setup.py | from setuptools import setup # type: ignore[import]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="objname",
version="0.11.0",
packages=["objname"],
package_data={
"objname": ["__init__.py", "py.typed", "_module.py",
"test_objname.py"],
... | from setuptools import setup # type: ignore[import]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="objname",
version="0.12.0",
packages=["objname"],
package_data={
"objname": ["__init__.py", "py.typed", "_module.py",
"test_objname.py"],
... | Document that python 3.10 is supported and update version number. | Document that python 3.10 is supported and update version number.
| Python | mit | AlanCristhian/namedobject,AlanCristhian/named | ---
+++
@@ -6,7 +6,7 @@
setup(
name="objname",
- version="0.11.0",
+ version="0.12.0",
packages=["objname"],
package_data={
"objname": ["__init__.py", "py.typed", "_module.py",
@@ -28,6 +28,7 @@
'Programming Language :: Python :: 3.7',
'Programming Language :: Python... |
7e341014059c98bdd91a1c876982b8caa47a5586 | setup.py | setup.py | from __future__ import with_statement
from distutils.core import setup
def readme():
try:
with open('README.rst') as f:
return f.read()
except IOError:
return
setup(
name='encodingcontext',
version='0.9.0',
description='A bad idea about the default encoding',
lon... | from __future__ import with_statement
from distutils.core import setup
import re
def readme():
try:
with open('README.rst') as f:
readme = f.read()
except IOError:
return
return re.sub(
r'''
(?P<colon> : \n{2,})?
\.\. [ ] code-block:: \s+ [^\n]+ \n
... | Transform readme into PyPI compliant reST | Transform readme into PyPI compliant reST
| Python | mit | dahlia/encodingcontext | ---
+++
@@ -1,14 +1,29 @@
from __future__ import with_statement
from distutils.core import setup
+import re
def readme():
try:
with open('README.rst') as f:
- return f.read()
+ readme = f.read()
except IOError:
return
+ return re.sub(
+ r'''
+ ... |
31fde6b38329252313c40549b9188c584a2eadd7 | setup.py | setup.py | from __future__ import print_function
try:
from setuptools import setup # try first in case it's already there.
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='vpython',
packages=['vpython'],
version='0.2.0b15',
descri... | from __future__ import print_function
try:
from setuptools import setup # try first in case it's already there.
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
setup(
name='vpython',
packages=['vpython'],
version='0.2.0b16',
descri... | Update version number to 0.2.0b16 | Update version number to 0.2.0b16
| Python | mit | BruceSherwood/vpython-jupyter,BruceSherwood/vpython-jupyter,BruceSherwood/vpython-jupyter,mwcraig/vpython-jupyter,mwcraig/vpython-jupyter,mwcraig/vpython-jupyter,BruceSherwood/vpython-jupyter,sspickle/vpython-jupyter,mwcraig/vpython-jupyter,sspickle/vpython-jupyter | ---
+++
@@ -10,7 +10,7 @@
setup(
name='vpython',
packages=['vpython'],
- version='0.2.0b15',
+ version='0.2.0b16',
description='VPython for Jupyter Notebook',
long_description=open('README.md').read(),
author='John Coady / Ruth Chabay / Bruce Sherwood / Steve Spicklemire', |
5fb38bfb6eae77b7024bf4d9990472f60d576826 | setup.py | setup.py | import pathlib
from crc import LIBRARY_VERSION
from setuptools import setup
current = pathlib.Path(__file__).parent.resolve()
def readme():
return (current / 'README.md').read_text(encoding='utf-8')
if __name__ == '__main__':
setup(
name='crc',
version=LIBRARY_VERSION,
py_modules=['... | import pathlib
from crc import LIBRARY_VERSION
from setuptools import setup
current = pathlib.Path(__file__).parent.resolve()
def readme():
return (current / 'README.md').read_text(encoding='utf-8')
if __name__ == '__main__':
setup(
name='crc',
version=LIBRARY_VERSION,
py_modules=['... | Update package information about supported python versions | Update package information about supported python versions
| Python | bsd-2-clause | Nicoretti/crc | ---
+++
@@ -17,6 +17,7 @@
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
],
url='https://github.com/Nicoretti/crc',
license='BSD', |
40a2a4ace817f3f237d87d802d5bd286eb2bf09e | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='syndicate',
version='0.99.6',
description='A wrapper for REST APIs',
author='Justin Mayfield',
author_email='tooker@gmail.com',
url='https://github.com/mayfield/syndicate/',
license='MIT',
long_description=o... | #!/usr/bin/env python
from setuptools import setup, find_packages
README = 'README.md'
def long_desc():
try:
import pypandoc
except ImportError:
with open(README) as f:
return f.read()
else:
return pypandoc.convert(README, 'rst')
setup(
name='syndicate',
versi... | Make PyPi long_description look pretty with pandoc (if available). | Make PyPi long_description look pretty with pandoc (if available).
| Python | mit | mayfield/syndicate | ---
+++
@@ -2,15 +2,26 @@
from setuptools import setup, find_packages
+README = 'README.md'
+
+def long_desc():
+ try:
+ import pypandoc
+ except ImportError:
+ with open(README) as f:
+ return f.read()
+ else:
+ return pypandoc.convert(README, 'rst')
+
setup(
name=... |
ae280f4f837a23608749e8a8de1cbba98bafc621 | examples/mhs_atmosphere/mhs_atmosphere_plot.py | examples/mhs_atmosphere/mhs_atmosphere_plot.py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 9 12:52:31 2015
@author: stuart
"""
import os
import glob
import yt
model = 'spruit'
datadir = os.path.expanduser('~/mhs_atmosphere/'+model+'/')
files = glob.glob(datadir+'/*')
files.sort()
print(files)
ds = yt.load(files[0])
slc = yt.SlicePlot(ds, fields='density... | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 9 12:52:31 2015
@author: stuart
"""
import os
import glob
import yt
model = 'spruit'
datadir = os.path.expanduser('~/mhs_atmosphere/'+model+'/')
files = glob.glob(datadir+'/*')
files.sort()
print(files)
ds = yt.load(files[0])
# Axes flip for normal='y'
#ds.coordin... | Add x-y flipping code for SlicePlot | Add x-y flipping code for SlicePlot
| Python | bsd-2-clause | SWAT-Sheffield/pysac,Cadair/pysac | ---
+++
@@ -20,5 +20,9 @@
ds = yt.load(files[0])
+# Axes flip for normal='y'
+#ds.coordinates.x_axis = {0: 2, 1: 0, 2: 1, 'x': 2, 'y': 0, 'z': 1}
+#ds.coordinates.y_axis = {0: 1, 1: 2, 2: 0, 'x': 1, 'y': 2, 'z': 0}
+
slc = yt.SlicePlot(ds, fields='density_bg', normal='x')
slc.save('~/yt.png') |
db362bd50c7b8aa6a40a809346eff70df846f82d | setup.py | setup.py | # coding: utf-8
from setuptools import setup
setup(
name='pysuru',
version='0.0.1',
description='Python library to interact with Tsuru API',
long_description=open('README.rst', 'r').read(),
keywords='tsuru',
author='Rodrigo Machado',
author_email='rcmachado@gmail.com',
url='https://git... | # coding: utf-8
from setuptools import setup
setup(
name='pysuru',
version='0.0.1',
description='Python library to interact with Tsuru API',
long_description=open('README.rst', 'r').read(),
keywords='tsuru',
author='Rodrigo Machado',
author_email='rcmachado@gmail.com',
url='https://git... | Add certifi to required packages | Add certifi to required packages
| Python | mit | rcmachado/pysuru | ---
+++
@@ -18,7 +18,8 @@
'Topic :: Software Development :: Libraries',
],
install_requires=[
- 'urllib3>=1.15'
+ 'urllib3>=1.15',
+ 'certifi'
]
packages=['pysuru'],
platforms=['linux', 'osx'] |
38a13415fc4c126c1e115d5af0d0ffde5bcdf08d | setup.py | setup.py | # https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='9',
description='A python libr... | # https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
# http://peterdowns.com/posts/first-time-with-pypi.html
# Upload to PyPI Live
# python setup.py sdist upload -r pypi
from setuptools import setup
setup(
name='axis',
packages=['axis'],
version='10',
description='A python lib... | Bump version number to 10 | Bump version number to 10
| Python | mit | Kane610/axis | ---
+++
@@ -8,13 +8,13 @@
setup(
name='axis',
packages=['axis'],
- version='9',
+ version='10',
description='A python library for communicating with devices from Axis Communications',
author='Robert Svensson',
author_email='Kane610@users.noreply.github.com',
license='MIT',
url='https://github.... |
64d4bcf0862e2715dc0de92a0621adf23dff5818 | source/harmony/schema/collector.py | source/harmony/schema/collector.py | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
from abc import ABCMeta, abstractmethod
class Collector(object):
'''Collect and return schemas.'''
__metaclass__ = ABCMeta
@abstractmethod
def collect(self):
'''Yield collected schemas.
... | # :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
import os
from abc import ABCMeta, abstractmethod
try:
import json
except ImportError:
try:
import simplejson as json
except ImportError:
raise ImportError('Could not import json or simp... | Support collecting schemas from filesystem. | Support collecting schemas from filesystem.
| Python | apache-2.0 | 4degrees/harmony | ---
+++
@@ -2,7 +2,16 @@
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.
+import os
from abc import ABCMeta, abstractmethod
+
+try:
+ import json
+except ImportError:
+ try:
+ import simplejson as json
+ except ImportError:
+ raise ImportError('Could ... |
fa4ef8d171faaf89e81bcd36dfeec082cd86a9e8 | setup.py | setup.py | from distutils.core import setup
setup(
name = "Cytoplasm",
version = "0.04.5",
author = "startling",
author_email = "tdixon51793@gmail.com",
url = "http://cytoplasm.somethingsido.com",
keywords = ["blogging", "site compiler", "blog compiler"],
description = "A static, blog-aware website ge... | from distutils.core import setup
setup(
name = "Cytoplasm",
version = "0.05.0",
author = "startling",
author_email = "tdixon51793@gmail.com",
url = "http://cytoplasm.somethingsido.com",
keywords = ["blogging", "site compiler", "blog compiler"],
description = "A static, blog-aware website ge... | Change version string to "0.05.0". | Change version string to "0.05.0".
This is a medium-ish change because we kind of break compatibility with
older sites.
| Python | mit | startling/cytoplasm | ---
+++
@@ -2,7 +2,7 @@
setup(
name = "Cytoplasm",
- version = "0.04.5",
+ version = "0.05.0",
author = "startling",
author_email = "tdixon51793@gmail.com",
url = "http://cytoplasm.somethingsido.com", |
5e9f41eae1d53cec5c90a104c249b11bfe292225 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.16.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Chris ... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='django-slack',
url="https://chris-lamb.co.uk/projects/django-slack",
version='5.16.0',
description="Provides easy-to-use integration between Django projects and "
"the Slack group chat and IM tool.",
author="Chris ... | Make Python 3.6+ a hard requirement | Make Python 3.6+ a hard requirement
Support for Python 3.5 was dropped in
https://github.com/lamby/django-slack/commit/cd8cce9360fdceb0cb1b4228ef71c0b80a212a4b.
Python 3.5 reached its EOL in September 2020, see
https://www.python.org/dev/peps/pep-0478/.
| Python | bsd-3-clause | lamby/django-slack | ---
+++
@@ -13,6 +13,6 @@
license="BSD-3-Clause",
packages=find_packages(),
include_package_data=True,
- python_requires=">=3.5",
+ python_requires=">=3.6",
install_requires=('Django>=2', 'requests'),
) |
c33038a85f41c2056630897c2b1b8ce590301e62 | setup.py | setup.py | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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-swiftbrowser',
version='0.1',
packages=['swiftbrows... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).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-swiftbrowser',
version='0.1',
packages=['swiftbrows... | Add Django >= 1.5 requirement | Add Django >= 1.5 requirement
| Python | apache-2.0 | honza801/django-swiftbrowser,hbhdytf/django-swiftbrowser,hbhdytf/django-swiftbrowser,bkawula/django-swiftbrowser,honza801/django-swiftbrowser,cschwede/django-swiftbrowser,cschwede/django-swiftbrowser,bkawula/django-swiftbrowser,sunhongtao/django-swiftbrowser,bkawula/django-swiftbrowser,honza801/django-swiftbrowser,bkaw... | ---
+++
@@ -17,7 +17,7 @@
url='http://www.cschwede.com/',
author='Christian Schwede',
author_email='info@cschwede.de',
- install_requires=['django', 'python-swiftclient'],
+ install_requires=['django>=1.5', 'python-swiftclient'],
classifiers=[
'Environment :: Web Environment',
... |
2349fa984e584fbfb022d01ce3d3e349dbe7870c | setup.py | setup.py | import textwrap
from setuptools import setup
setup(name='dip',
version='1.0.0b0',
author='amancevice',
author_email='smallweirdnum@gmail.com',
packages=['dip'],
url='http://www.smallweirdnumber.com',
description='Install CLIs using docker-compose',
long_description=textwrap.d... | import textwrap
from setuptools import setup
setup(name='dip',
version='1.0.0b0',
author='amancevice',
author_email='smallweirdnum@gmail.com',
packages=['dip'],
url='http://www.smallweirdnumber.com',
description='Install CLIs using docker-compose',
long_description=textwrap.d... | Remove Alpha from dev status. | Remove Alpha from dev status.
| Python | mit | amancevice/dip | ---
+++
@@ -12,8 +12,7 @@
long_description=textwrap.dedent(
'''See GitHub_ for documentation.
.. _GitHub: https://github.com/amancevice/dip'''),
- classifiers=['Development Status :: 3 - Alpha',
- 'Intended Audience :: Developers',
+ classifiers=['Intended Audi... |
c7e726744b28ee0d502b51cdf8f7d6f0d9ef24e1 | setup.py | setup.py | from setuptools import setup
url = ""
version = "0.1.0"
readme = open('README.rst').read()
setup(
name="dtool-create",
packages=["dtool_create"],
version=version,
description="Dtool plugin for creating datasets and collections",
long_description=readme,
include_package_data=True,
author="T... | from setuptools import setup
url = ""
version = "0.1.0"
readme = open('README.rst').read()
setup(
name="dtool-create",
packages=["dtool_create"],
version=version,
description="Dtool plugin for creating datasets and collections",
long_description=readme,
include_package_data=True,
author="T... | Remove redundant click-plugins and add dtoolcore dependency; add entry point for dataset create | Remove redundant click-plugins and add dtoolcore dependency; add entry point for dataset create
| Python | mit | jic-dtool/dtool-create | ---
+++
@@ -16,8 +16,13 @@
url=url,
install_requires=[
"Click",
- "click-plugins",
+ "dtoolcore",
],
+ entry_points={
+ "dtool.dataset": [
+ "create=dtool_create.dataset:create",
+ ],
+ },
download_url="{}/tarball/{}".format(url, version),
... |
e42dc9fe06bad4eff195d64f031d5a2445a15cc8 | setup.py | setup.py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import six
from setuptools import setup, Command
import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("nose").setLevel(logging.DEBUG)
setup_requires=["nose>=1.0", "coverage>=4.0", "Sphinx>=1.3"]
if six.PY2:
... | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import six
from setuptools import setup, Command
import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("nose").setLevel(logging.DEBUG)
setup_requires=["nose>=1.0", "coverage>=4.0", "Sphinx>=1.3"]
if six.PY2:
... | Update supported languages to indicate Python 3+ support. | Update supported languages to indicate Python 3+ support.
| Python | apache-2.0 | dacut/python-aws-sig | ---
+++
@@ -13,7 +13,7 @@
setup(
name="awssig",
- version="0.2",
+ version="0.2.1",
packages=['awssig'],
install_requires=["six>=1.0"],
setup_requires=setup_requires,
@@ -29,6 +29,8 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License... |
3e403ed0962b62b19247dd1021f672507d003f07 | labware/microplates.py | labware/microplates.py | from .grid import GridContainer, GridItem
from .liquids import LiquidContainer, LiquidWell
class Microplate(GridContainer):
rows = 8
cols = 12
volume = 100
min_vol = 50
max_vol = 90
height = 14.45
length = 127.76
width = 85.47
diameter = 7.15
depth ... | from .grid import GridContainer, GridItem
from .liquids import LiquidContainer, LiquidWell
class Microplate(GridContainer, LiquidContainer):
rows = 8
cols = 12
volume = 100
min_vol = 50
max_vol = 90
height = 14.45
length = 127.76
width = 85.47
diameter = ... | Refactor of LiquidContainer vs. GridContainer to support grids which don't contain liquids. | Refactor of LiquidContainer vs. GridContainer to support grids which don't contain liquids.
| Python | apache-2.0 | OpenTrons/opentrons-api,OpenTrons/opentrons-api,OpenTrons/opentrons_sdk,OpenTrons/opentrons-api,OpenTrons/opentrons-api,OpenTrons/opentrons-api,Opentrons/labware | ---
+++
@@ -2,7 +2,7 @@
from .liquids import LiquidContainer, LiquidWell
-class Microplate(GridContainer):
+class Microplate(GridContainer, LiquidContainer):
rows = 8
cols = 12
volume = 100
@@ -16,8 +16,6 @@
a1_x = 14.38
a1_y = 11.24
spacing = 9
-
- chil... |
605af19623b2536752304275f2403ce2b4fa52f8 | bluebottle/test/factory_models/projects.py | bluebottle/test/factory_models/projects.py | import factory
import logging
from django.conf import settings
from bluebottle.projects.models import (
Project, ProjectTheme, ProjectDetailField, ProjectBudgetLine)
from .accounts import BlueBottleUserFactory
# Suppress debug information for Factory Boy
logging.getLogger('factory').setLevel(logging.WARN)
clas... | import factory
import logging
from django.conf import settings
from bluebottle.projects.models import (
Project, ProjectTheme, ProjectDetailField, ProjectBudgetLine)
from .accounts import BlueBottleUserFactory
# Suppress debug information for Factory Boy
logging.getLogger('factory').setLevel(logging.WARN)
clas... | Remove phase from project factory | Remove phase from project factory
| Python | bsd-3-clause | onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle | ---
+++
@@ -15,7 +15,6 @@
FACTORY_FOR = Project
owner = factory.SubFactory(BlueBottleUserFactory)
- phase = settings.PROJECT_PHASES[0][1][0][0]
title = factory.Sequence(lambda n: 'Project_{0}'.format(n))
|
3cc8dc8de4fe75f0abf92f89979b0b7e48d9c137 | splearn/ensemble/tests/__init__.py | splearn/ensemble/tests/__init__.py | import numpy as np
from nose.tools import assert_true
from sklearn.ensemble import RandomForestClassifier
from splearn.ensemble import SparkRandomForestClassifier
from splearn.utils.testing import SplearnTestCase
from splearn.utils.validation import check_rdd_dtype
class TestSparkRandomForest(SplearnTestCase):
d... | import numpy as np
from nose.tools import assert_true
from sklearn.ensemble import RandomForestClassifier
from splearn.ensemble import SparkRandomForestClassifier
from splearn.utils.testing import SplearnTestCase
from splearn.utils.validation import check_rdd_dtype
class TestSparkRandomForest(SplearnTestCase):
d... | Raise allowed difference for RandomForest | Raise allowed difference for RandomForest
| Python | apache-2.0 | lensacom/sparkit-learn,taynaud/sparkit-learn,taynaud/sparkit-learn,lensacom/sparkit-learn | ---
+++
@@ -19,5 +19,5 @@
y_conv = dist.to_scikit().predict(X)
assert_true(check_rdd_dtype(y_dist, (np.ndarray,)))
- assert(sum(y_local != y_dist.toarray()) < len(y_local) * 2./100.)
- assert(sum(y_local != y_conv) < len(y_local) * 2./100.)
+ assert(sum(y_local != y_dist.toarr... |
451951b311ef6e2bb76348a116dc0465f735348e | pytest_watch/config.py | pytest_watch/config.py | try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
import pytest
CLI_OPTION_PREFIX = '--'
class CollectConfig(object):
"""
A pytest plugin to gets the configuration file.
"""
def __init__(self):
self.path = None
def pytest_cmdli... | try:
from configparser import ConfigParser
except ImportError:
from ConfigParser import ConfigParser
import pytest
CLI_OPTION_PREFIX = '--'
class CollectConfig(object):
"""
A pytest plugin to gets the configuration file.
"""
def __init__(self):
self.path = None
def pytest_cmdli... | Fix running when pytest.ini is not present. | Fix running when pytest.ini is not present.
| Python | mit | joeyespo/pytest-watch | ---
+++
@@ -17,7 +17,8 @@
self.path = None
def pytest_cmdline_main(self, config):
- self.path = str(config.inifile)
+ if config.inifile:
+ self.path = str(config.inifile)
def merge_config(args): |
b690d4be60d9c72eb805b779c61f6d3001881bd2 | raven/conf/__init__.py | raven/conf/__init__.py | """
raven.conf
~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import urlparse
def load(dsn, scope):
"""
Parses a Sentry compatible DSN and loads it
into the given scope.
>>> import raven
>>> dsn = 'https://publi... | """
raven.conf
~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import urlparse
def load(dsn, scope):
"""
Parses a Sentry compatible DSN and loads it
into the given scope.
>>> import raven
>>> dsn = 'https://publi... | Support udp scheme in raven.load | Support udp scheme in raven.load
| Python | bsd-3-clause | Goldmund-Wyldebeast-Wunderliebe/raven-python,someonehan/raven-python,dbravender/raven-python,jbarbuto/raven-python,ticosax/opbeat_python,akheron/raven-python,smarkets/raven-python,getsentry/raven-python,patrys/opbeat_python,jmp0xf/raven-python,jmagnusson/raven-python,recht/raven-python,hzy/raven-python,akalipetis/raven... | ---
+++
@@ -19,7 +19,7 @@
>>> raven.load(dsn, locals())
"""
url = urlparse.urlparse(dsn)
- if url.scheme not in ('http', 'https'):
+ if url.scheme not in ('http', 'https', 'udp'):
raise ValueError('Unsupported Sentry DSN scheme: %r' % url.scheme)
netloc = url.hostname
if url.po... |
0f40869157ef56df0ff306fb510be4401b5cbe5d | test/low_level/test_frame_identifiers.py | test/low_level/test_frame_identifiers.py | import inspect
from pyinstrument.low_level import stat_profile as stat_profile_c
from pyinstrument.low_level import stat_profile_python
class AClass:
def get_frame_identfier_for_a_method(self, getter_function):
frame = inspect.currentframe()
assert frame
return getter_function(frame)
... | import inspect
from pyinstrument.low_level import stat_profile as stat_profile_c
from pyinstrument.low_level import stat_profile_python
class AClass:
def get_frame_identifier_for_a_method(self, getter_function):
frame = inspect.currentframe()
assert frame
return getter_function(frame)
... | Add test for a cell variable | Add test for a cell variable
| Python | bsd-3-clause | joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument | ---
+++
@@ -5,13 +5,24 @@
class AClass:
- def get_frame_identfier_for_a_method(self, getter_function):
+ def get_frame_identifier_for_a_method(self, getter_function):
frame = inspect.currentframe()
assert frame
return getter_function(frame)
+ def get_frame_identifier_with_ce... |
8a607ab7c064f3f593b4cecaa8e4262bec9326fa | corehq/apps/es/forms.py | corehq/apps/es/forms.py | from .es_query import HQESQuery
from . import filters
class FormES(HQESQuery):
index = 'forms'
default_filters = {
'is_xform_instance': {"term": {"doc_type": "xforminstance"}},
'has_xmlns': {"not": {"missing": {"field": "xmlns"}}},
'has_user': {"not": {"missing": {"field": "form.meta.u... | from .es_query import HQESQuery
from . import filters
class FormES(HQESQuery):
index = 'forms'
default_filters = {
'is_xform_instance': {"term": {"doc_type": "xforminstance"}},
'has_xmlns': {"not": {"missing": {"field": "xmlns"}}},
'has_user': {"not": {"missing": {"field": "form.meta.u... | Return more than 10 domains | Return more than 10 domains
| Python | bsd-3-clause | qedsoftware/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq | ---
+++
@@ -23,7 +23,7 @@
return self.terms_facet('form.meta.userID', 'user')
def domain_facet(self):
- return self.terms_facet('domain', 'domain')
+ return self.terms_facet('domain', 'domain', 1000000)
def xmlns(xmlns): |
0d3ae906a9382aca5e00ff403986591223e3a1a7 | pic/flash.py | pic/flash.py |
class ProgramMemory(object):
def __init__(self, size: int, programCounter):
self._operations = [None] * size
self._programCounter = programCounter
@property
def operations(self) -> list:
return self._operations
@property
def programCounter(self):
return self._prog... |
class ProgramMemory(object):
def __init__(self, size: int, programCounter):
self._operations = [None] * size
self._programCounter = programCounter
@property
def operations(self) -> list:
return self._operations
@property
def programCounter(self):
return self._prog... | Change program counter current address reference. | Change program counter current address reference.
| Python | mit | SuperOxigen/pic16f917-simulator | ---
+++
@@ -14,4 +14,4 @@
return self._programCounter
def nextOp(self):
- return self.operations[self.programCounter.value]
+ return self.operations[self.programCounter.address] |
d1da03b40e9a10a07b67eeb76a0bef8cc704a40c | utils/exporter.py | utils/exporter.py | import plotly as py
from os import makedirs
from utils.names import output_file_name
_out_dir = 'graphs/'
def export(fig, module, dates):
graph_dir = '{}{}/'.format(_out_dir, str(module))
makedirs(graph_dir, exist_ok=True)
py.offline.plot(fig, filename=graph_dir + output_file_name(module, dates))
| import plotly as py
from os import makedirs
from utils.names import output_file_name
_out_dir = 'graphs/'
def export(fig, module, dates):
graph_dir = '{}{}/'.format(_out_dir, str(module))[:-3] # remove .py extension from dir names
makedirs(graph_dir, exist_ok=True)
py.offline.plot(fig, filename=graph_di... | Remove .py extension from graph dir names | Remove .py extension from graph dir names
| Python | mit | f-jiang/sleep-pattern-grapher | ---
+++
@@ -6,7 +6,7 @@
_out_dir = 'graphs/'
def export(fig, module, dates):
- graph_dir = '{}{}/'.format(_out_dir, str(module))
+ graph_dir = '{}{}/'.format(_out_dir, str(module))[:-3] # remove .py extension from dir names
makedirs(graph_dir, exist_ok=True)
py.offline.plot(fig, filename=graph_di... |
2f0d71024ab9fb3ab4b97e086741b0dd8564d29e | dadd/master/handlers.py | dadd/master/handlers.py | from flask import send_file, request, redirect, url_for
from dadd.master import app
from dadd.master.files import FileStorage
@app.route('/')
def index():
return redirect(url_for('admin.index'))
@app.route('/files/<path>', methods=['PUT', 'GET'])
def files(path):
storage = FileStorage(app.config['STORAGE_D... | from flask import send_file, request, redirect, url_for
from dadd.master import app
from dadd.master.files import FileStorage
@app.route('/')
def index():
return redirect(url_for('admin.index'))
@app.route('/files/<path:path>', methods=['PUT', 'GET'])
def files(path):
storage = FileStorage(app.config['STOR... | Fix files path argument type. | Fix files path argument type.
| Python | bsd-3-clause | ionrock/dadd,ionrock/dadd,ionrock/dadd,ionrock/dadd | ---
+++
@@ -9,7 +9,7 @@
return redirect(url_for('admin.index'))
-@app.route('/files/<path>', methods=['PUT', 'GET'])
+@app.route('/files/<path:path>', methods=['PUT', 'GET'])
def files(path):
storage = FileStorage(app.config['STORAGE_DIR'])
|
8f753ba1bc3f17146841d1f83f493adb8ea480e1 | voteit/stancer.py | voteit/stancer.py |
def generate_stances(blocs=[], filters={}):
return "banana!"
| from bson.code import Code
from voteit.core import votes
REDUCE = Code("""
function(obj, prev) {
if (!prev.votes.hasOwnProperty(obj.option)) {
prev.votes[obj.option] = 1;
} else {
prev.votes[obj.option]++;
}
//prev.count++;
};
""")
def generate_stances(blocs=[], filters={}):
data... | Replace “banana” with business logic (kind of). | Replace “banana” with business logic (kind of). | Python | mit | tmtmtmtm/voteit-api,pudo/voteit-server,pudo-attic/voteit-server | ---
+++
@@ -1,7 +1,20 @@
+from bson.code import Code
+from voteit.core import votes
+REDUCE = Code("""
+function(obj, prev) {
+ if (!prev.votes.hasOwnProperty(obj.option)) {
+ prev.votes[obj.option] = 1;
+ } else {
+ prev.votes[obj.option]++;
+ }
+ //prev.count++;
+};
+""")
def gene... |
55069f1635a32c57faf7c8afcbfc9b88df093601 | bin/monitor/find_invalid_pipeline_state.py | bin/monitor/find_invalid_pipeline_state.py | import arrow
import logging
import argparse
import emission.core.wrapper.pipelinestate as ecwp
import emission.core.get_database as edb
# Run in containers using:
# sudo docker exec $CONTAINER bash -c 'cd e-mission-server; source setup/activate.sh; ./e-mission-py.bash bin/debug/find_invalid_pipeline_state.py'
def pri... | import arrow
import logging
import argparse
import emission.core.wrapper.pipelinestate as ecwp
import emission.core.get_database as edb
# Run in containers using:
# sudo docker exec $CONTAINER bash -c 'cd e-mission-server; source setup/activate.sh; ./e-mission-py.bash bin/debug/find_invalid_pipeline_state.py'
def pri... | Convert entries to PipelineState objects | Convert entries to PipelineState objects
+ typo in wrapper class name
| Python | bsd-3-clause | shankari/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,e-mission/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,shankari/e-mission-server | ---
+++
@@ -8,9 +8,9 @@
# sudo docker exec $CONTAINER bash -c 'cd e-mission-server; source setup/activate.sh; ./e-mission-py.bash bin/debug/find_invalid_pipeline_state.py'
def print_all_invalid_state():
- all_invalid_states = edb.get_pipeline_state_db().find({"curr_run_ts": {"$ne": None}})
+ all_invalid_sta... |
a689ce5e38c4d4a5ce982037c5c15396f361c7d6 | contrib/examples/sensors/echo_flask_app.py | contrib/examples/sensors/echo_flask_app.py | from flask import request, Flask
from st2reactor.sensor.base import Sensor
class EchoFlaskSensor(Sensor):
def __init__(self, sensor_service, config):
super(EchoFlaskSensor, self).__init__(
sensor_service=sensor_service,
config=config
)
self._host = '127.0.0.1'
... | from flask import request, Flask
from st2reactor.sensor.base import Sensor
class EchoFlaskSensor(Sensor):
def __init__(self, sensor_service, config):
super(EchoFlaskSensor, self).__init__(
sensor_service=sensor_service,
config=config
)
self._host = '127.0.0.1'
... | Make trigger name in .py match .yaml | Make trigger name in .py match .yaml | Python | apache-2.0 | StackStorm/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,nzlosh/st2,Plexxi/st2,Plexxi/st2,nzlosh/st2,Plexxi/st2,Plexxi/st2,nzlosh/st2,StackStorm/st2 | ---
+++
@@ -24,7 +24,7 @@
@self._app.route(self._path, methods=['POST'])
def echo():
payload = request.get_json(force=True)
- self._sensor_service.dispatch(trigger="examples.echo_flask",
+ self._sensor_service.dispatch(trigger="examples.echoflasksensor",
... |
6e8e7a067419166afd632aa63ecb743dd6c3a162 | geokey_dataimports/tests/test_model_helpers.py | geokey_dataimports/tests/test_model_helpers.py | # coding=utf-8
from io import BytesIO
from django.test import TestCase
from geokey_dataimports.helpers.model_helpers import import_from_csv
class ImportFromCSVTest(TestCase):
"""Tests to check that characters can be imported from CSV files.
Notes that these tests are probably not possible or relevant un... | # coding=utf-8
from cStringIO import StringIO
from django.test import TestCase
from geokey_dataimports.helpers.model_helpers import import_from_csv
class ImportFromCSVTest(TestCase):
"""Tests to check that characters can be imported from CSV files.
Notes that these tests are probably not possible or rel... | Simplify test data for easier comparison. | Simplify test data for easier comparison.
| Python | mit | ExCiteS/geokey-dataimports,ExCiteS/geokey-dataimports,ExCiteS/geokey-dataimports | ---
+++
@@ -1,5 +1,5 @@
# coding=utf-8
-from io import BytesIO
+from cStringIO import StringIO
from django.test import TestCase
@@ -13,16 +13,19 @@
"""
def test_import_csv_basic_chars(self):
"""Basic ASCII characters can be imported."""
- mock_csv = BytesIO("abc,cde,efg\n123,456,789")
... |
b8e23194ff0c24bd9460629aff18f69d7a868f6d | likelihood.py | likelihood.py | import math
#Log-likelihood
def ll(ciphertext,perm,mat,k):
s=0.0
for i in range(len(ciphertext)-(k-1)):
kmer = tuple([perm[c] for c in ciphertext[i:i+k]])
s = s + math.log(mat[kmer])
return s
| import math
#Log-likelihood
def ll(ciphertext,perm,mat,k):
if k==1:
return ll_k1(ciphertext,perm,mat)
if k==2:
return ll_k2(ciphertext,perm,mat)
if k==3:
return ll_k3(ciphertext,perm,mat)
s=0.0
for i in range(len(ciphertext)-(k-1)):
kmer = tuple([perm[c] for c in ciph... | Add hard-coded versions of ll function for k=1,2,3 for speed | Add hard-coded versions of ll function for k=1,2,3 for speed
| Python | mit | gputzel/decode | ---
+++
@@ -1,8 +1,38 @@
import math
#Log-likelihood
def ll(ciphertext,perm,mat,k):
+ if k==1:
+ return ll_k1(ciphertext,perm,mat)
+ if k==2:
+ return ll_k2(ciphertext,perm,mat)
+ if k==3:
+ return ll_k3(ciphertext,perm,mat)
s=0.0
for i in range(len(ciphertext)-(k-1)):
... |
50596484c1214a73d3722af116ccea7fa258fb11 | direnaj/direnaj_api/celery_app/server_endpoint.py | direnaj/direnaj_api/celery_app/server_endpoint.py | __author__ = 'onur'
from celery import Celery
import direnaj_api.config.server_celeryconfig as celeryconfig
app_object = Celery()
app_object.config_from_object(celeryconfig)
@app_object.task
def deneme(x, seconds):
print "Sleeping for printing %s for %s seconds.." % (x, seconds)
import time
time.sleep(... | __author__ = 'onur'
from celery import Celery
import direnaj_api.config.server_celeryconfig as celeryconfig
app_object = Celery()
app_object.config_from_object(celeryconfig)
@app_object.task
def deneme(x, seconds):
print "Sleeping for printing %s for %s seconds.." % (x, seconds)
import time
time.sleep(... | Fix for periodic task scheduler (4) | Fix for periodic task scheduler (4)
| Python | mit | boun-cmpe-soslab/drenaj,boun-cmpe-soslab/drenaj,boun-cmpe-soslab/drenaj,boun-cmpe-soslab/drenaj | ---
+++
@@ -20,7 +20,7 @@
from direnaj_api.utils.direnajmongomanager import create_batch_from_watchlist
#@periodic_task(run_every=crontab(minute='*/1'))
-@app_object.task
+@app_object.task(name='check_watchlist_and_dispatch_tasks')
def check_watchlist_and_dispatch_tasks():
batch_size = 10
res_array = c... |
6d2118a87dfb811015727970b1eda74c15769e06 | distutilazy/__init__.py | distutilazy/__init__.py | """
distutilazy
-----------
Extra distutils command classes.
:license: MIT, see LICENSE for more details.
"""
from os.path import dirname, abspath
import sys
__version__ = '0.4.0'
__all__ = ['clean', 'pyinstaller', 'command']
base_dir = abspath(dirname(dirname(__file__)))
if base_dir not in sys.path:
if len(sy... | """
distutilazy
-----------
Extra distutils command classes.
:license: MIT, see LICENSE for more details.
"""
from os.path import dirname, abspath
import sys
__version__ = "0.4.0"
__all__ = ("clean", "pyinstaller", "command")
base_dir = abspath(dirname(dirname(__file__)))
if base_dir not in sys.path:
if len(sy... | Replace ' with " to keep it consistant with other modules | Replace ' with " to keep it consistant with other modules
| Python | mit | farzadghanei/distutilazy | ---
+++
@@ -10,8 +10,8 @@
from os.path import dirname, abspath
import sys
-__version__ = '0.4.0'
-__all__ = ['clean', 'pyinstaller', 'command']
+__version__ = "0.4.0"
+__all__ = ("clean", "pyinstaller", "command")
base_dir = abspath(dirname(dirname(__file__)))
if base_dir not in sys.path: |
8ffe217fe512296d41ae474c9d145ee2de599eac | src/constants.py | src/constants.py | class AppUrl:
"""Class for storing all the URLs used in the application"""
BASE = "http://www.thehindu.com/"
OP_BASE = BASE + "opinion/"
OPINION = OP_BASE + "?service=rss"
EDITORIAL = OP_BASE + "editorial/?service=rss"
SAMPLE = BASE + "op-ed/a-super-visit-in-the-season-of-hope/article7214799.ece"
RSS_ARGS = "?ut... | class AppUrl:
"""Class for storing all the URLs used in the application"""
BASE = "http://www.thehindu.com/"
OP_BASE = BASE + "opinion/"
OPINION = OP_BASE + "?service=rss"
EDITORIAL = OP_BASE + "editorial/?service=rss"
SAMPLE = BASE + "op-ed/a-super-visit-in-the-season-of-hope/article7214799.ece"
RSS_ARGS = "?ut... | Include all but have a supported set | Include all but have a supported set
Rather than commenting out the values, this seems more sensible. And pretty.. of
course.
Signed-off-by: Venkatesh Shukla <8349e50bec2939976da648e286d7e261bcd17fa3@iitbhu.ac.in>
| Python | mit | venkateshshukla/th-editorials-server | ---
+++
@@ -8,17 +8,19 @@
RSS_ARGS = "?utm_source=RSS_Feed&utm_medium=RSS&utm_campaign=RSS_Syndication"
class Kind:
- #BLOGS = 'blogs'
- #CARTOON = 'cartoon'
+ BLOGS = 'blogs'
+ CARTOON = 'cartoon'
COLUMNS = 'columns'
EDITORIAL = 'editorial'
INTERVIEW = 'interview'
LEAD = 'lead'
- #LETTERS = 'letter... |
1fabf53957c4951e36f756c94bea4007cd6a5d6e | run_server.py | run_server.py | #!/usr/bin/env python3
import subprocess
import sys
def main():
ip = '127.0.0.1'
port = 5000
workers_count = 4
if len(sys.argv) > 1:
for arg in sys.argv[1:]:
if ':' in arg:
ip, port = arg.split(':')
port = int(port)
break
... | #!/usr/bin/env python3
import subprocess
import sys
def main():
ip = '127.0.0.1'
port = 5000
workers_count = 4
if len(sys.argv) > 1:
for arg in sys.argv[1:]:
if ':' in arg:
ip, port = arg.split(':')
port = int(port)
break
... | Improve print message for the server address | Improve print message for the server address
| Python | mit | bondarevts/flucalc,bondarevts/flucalc,bondarevts/flucalc | ---
+++
@@ -18,7 +18,7 @@
if arg.isdigit():
port = int(arg)
- print('FluCalc started on {ip}:{port}'.format(ip=ip, port=port))
+ print('FluCalc started on http://{ip}:{port}'.format(ip=ip, port=port))
subprocess.run('gunicorn -w {workers_count} -b {ip}:{port} flucalc.server:... |
af4bdd9339e3905f6489577afe7fac33475e3884 | src/services/listener_bot.py | src/services/listener_bot.py | from logging import info, basicConfig, INFO
from time import sleep
from src.slack.slack_bot import Bot
def main():
basicConfig(level=INFO)
bot = Bot()
info('Connection Slack')
if not bot.slack_client.rtm_connect():
info('Could not connect in web_socket')
exit()
else:
info(... | from logging import info, basicConfig, INFO
from time import sleep
from src.slack.slack_bot import Bot
def main():
basicConfig(level=INFO)
bot = Bot()
info('Connection Slack')
if not bot.slack_client.rtm_connect():
info('Could not connect in web_socket')
exit()
else:
info(... | Improve waiting time to bot listener | Improve waiting time to bot listener
| Python | bsd-3-clause | otherpirate/dbaas-slack-bot | ---
+++
@@ -15,7 +15,7 @@
info('Connected')
while True:
- sleep(0.5)
+ sleep(1)
for message in bot.get_direct_messages():
info(message)
bot.send_message_in_channel(message.message, message.channel) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.