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 |
|---|---|---|---|---|---|---|---|---|---|---|
8a975088008ab33e6cb3dc42567cb1ca195563fa | packs/dimensiondata/actions/create_pool_member.py | packs/dimensiondata/actions/create_pool_member.py | from lib.actions import BaseAction
__all__ = [
'CreatePoolMemberAction'
]
class CreatePoolMemberAction(BaseAction):
api_type = 'loadbalancer'
def run(self, region, pool_id, node_id, port):
driver = self._get_lb_driver(region)
pool = driver.ex_get_pool(pool_id)
node = driver.ex.ge... | from lib.actions import BaseAction
__all__ = [
'CreatePoolMemberAction'
]
class CreatePoolMemberAction(BaseAction):
api_type = 'loadbalancer'
def run(self, region, pool_id, node_id, port):
driver = self._get_lb_driver(region)
pool = driver.ex_get_pool(pool_id)
node = driver.ex_ge... | Fix add pool member code | Fix add pool member code
| Python | apache-2.0 | armab/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,pidah/st2contrib,StackStorm/st2contrib,armab/st2contrib,tonybaloney/st2contrib,StackStorm/st2contrib,pidah/st2contrib,pearsontechnology/st2contrib,pidah/st2contrib,pearsontechnology/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,armab/... | ---
+++
@@ -11,6 +11,6 @@
def run(self, region, pool_id, node_id, port):
driver = self._get_lb_driver(region)
pool = driver.ex_get_pool(pool_id)
- node = driver.ex.get_node(node_id)
+ node = driver.ex_get_node(node_id)
member = driver.ex_create_pool_member(pool, node, por... |
760506e88d22d86be818017fb6075abe7af2a068 | dactyl.py | dactyl.py | from slackbot.bot import respond_to
from slackbot.bot import listen_to
import re
import urllib
| from slackbot.bot import respond_to
from slackbot.bot import listen_to
import re
import urllib
def url_validator(url):
try:
code = urllib.urlopen(url).getcode()
if code == 200:
return True
except:
return False
def test_url(message, url):
if url_validator(url[1:len(url... | Add url_validator function and respond aciton to test url | Add url_validator function and respond aciton to test url
| Python | mit | KrzysztofSendor/dactyl | ---
+++
@@ -2,3 +2,19 @@
from slackbot.bot import listen_to
import re
import urllib
+
+
+def url_validator(url):
+ try:
+ code = urllib.urlopen(url).getcode()
+ if code == 200:
+ return True
+ except:
+ return False
+
+
+def test_url(message, url):
+ if url_validator(url[1:... |
01b67c00b6ab1eea98da9b54737f051a01a726fb | auslib/migrate/versions/009_add_rule_alias.py | auslib/migrate/versions/009_add_rule_alias.py | from sqlalchemy import Column, String, MetaData, Table
def upgrade(migrate_engine):
metadata = MetaData(bind=migrate_engine)
def add_alias(table):
alias = Column('alias', String(50))
alias.create(table)
add_alias(Table('rules', metadata, autoload=True))
add_alias(Table('rules_history'... | from sqlalchemy import Column, String, MetaData, Table
def upgrade(migrate_engine):
metadata = MetaData(bind=migrate_engine)
def add_alias(table):
alias = Column('alias', String(50), unique=True)
alias.create(table)
add_alias(Table('rules', metadata, autoload=True))
add_alias(Table('r... | Create alias column as unique. | Create alias column as unique.
| Python | mpl-2.0 | nurav/balrog,mozbhearsum/balrog,tieu/balrog,mozbhearsum/balrog,aksareen/balrog,aksareen/balrog,aksareen/balrog,mozbhearsum/balrog,tieu/balrog,nurav/balrog,testbhearsum/balrog,mozbhearsum/balrog,nurav/balrog,testbhearsum/balrog,aksareen/balrog,testbhearsum/balrog,tieu/balrog,nurav/balrog,testbhearsum/balrog,tieu/balrog | ---
+++
@@ -5,7 +5,7 @@
metadata = MetaData(bind=migrate_engine)
def add_alias(table):
- alias = Column('alias', String(50))
+ alias = Column('alias', String(50), unique=True)
alias.create(table)
add_alias(Table('rules', metadata, autoload=True))
add_alias(Table('rules_his... |
1b8efb09ac512622ea3541d950ffc67b0a183178 | survey/signals.py | survey/signals.py | import django.dispatch
survey_completed = django.dispatch.Signal(providing_args=["instance", "data"])
| import django.dispatch
# providing_args=["instance", "data"]
survey_completed = django.dispatch.Signal()
| Remove puyrely documental providing-args argument | Remove puyrely documental providing-args argument
See https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
| Python | agpl-3.0 | Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey,Pierre-Sassoulas/django-survey | ---
+++
@@ -1,3 +1,4 @@
import django.dispatch
-survey_completed = django.dispatch.Signal(providing_args=["instance", "data"])
+# providing_args=["instance", "data"]
+survey_completed = django.dispatch.Signal() |
231657e2bbc81b8299cc91fd24dcd7394f74b4ec | python/dpu_utils/codeutils/identifiersplitting.py | python/dpu_utils/codeutils/identifiersplitting.py | from functools import lru_cache
from typing import List
import sys
REGEX_TEXT = ("(?<=[a-z0-9])(?=[A-Z])|"
"(?<=[A-Z0-9])(?=[A-Z][a-z])|"
"(?<=[0-9])(?=[a-zA-Z])|"
"(?<=[A-Za-z])(?=[0-9])|"
"(?<=[@$])(?=[a-zA-Z0-9])|"
"(?<=[a-zA-Z0-9])(?=[@... | from functools import lru_cache
from typing import List
import sys
REGEX_TEXT = ("(?<=[a-z0-9])(?=[A-Z])|"
"(?<=[A-Z0-9])(?=[A-Z][a-z])|"
"(?<=[0-9])(?=[a-zA-Z])|"
"(?<=[A-Za-z])(?=[0-9])|"
"(?<=[@$.'\"])(?=[a-zA-Z0-9])|"
"(?<=[a-zA-Z0-9])(... | Revert to some of the previous behavior for characters that shouldn't appear in identifiers. | Revert to some of the previous behavior for characters that shouldn't appear in identifiers.
| Python | mit | microsoft/dpu-utils,microsoft/dpu-utils | ---
+++
@@ -6,9 +6,9 @@
"(?<=[A-Z0-9])(?=[A-Z][a-z])|"
"(?<=[0-9])(?=[a-zA-Z])|"
"(?<=[A-Za-z])(?=[0-9])|"
- "(?<=[@$])(?=[a-zA-Z0-9])|"
- "(?<=[a-zA-Z0-9])(?=[@$])|"
- "_")
+ "(?<=[@$.'\"])(?=[a-zA-Z0-9])|"
+ ... |
81460f88ee19fb736dfc3453df2905f0ba4b3974 | common/permissions.py | common/permissions.py | from rest_framework.permissions import BasePermission
class ObjectHasTokenUser(BasePermission):
"""
The object's user matches the token's user.
"""
def has_object_permission(self, request, view, obj):
token = request.auth
if not token:
return False
if not hasattr(... | from rest_framework.permissions import BasePermission
class ObjectHasTokenUser(BasePermission):
"""
The object's user matches the token's user.
"""
def has_object_permission(self, request, view, obj):
token = request.auth
if not token:
return False
if not hasattr(... | Remove debugging code, fix typo | Remove debugging code, fix typo
| Python | mit | PersonalGenomesOrg/open-humans,PersonalGenomesOrg/open-humans,PersonalGenomesOrg/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,PersonalGenomesOrg/open-humans,OpenHumans/open-humans | ---
+++
@@ -12,12 +12,9 @@
return False
if not hasattr(token, 'scope'):
- assert False, ('TokenHasReadWriteScope requires the'
+ assert False, ('ObjectHasTokenUser requires the'
'`OAuth2Authentication` authentication '
... |
65336509829a42b91b000d2e423ed4581ac61c98 | app/mpv.py | app/mpv.py | #!/usr/bin/env python
# and add mpv.json to ~/.mozilla/native-messaging-hosts
import sys
import json
import struct
import subprocess
# Read a message from stdin and decode it.
def getMessage():
rawLength = sys.stdin.read(4)
if len(rawLength) == 0:
sys.exit(0)
messageLength = struct.unpack('@I... | #!/usr/bin/env python
import sys
import json
import struct
import subprocess
import shlex
# Read a message from stdin and decode it.
def getMessage():
rawLength = sys.stdin.read(4)
if len(rawLength) == 0:
sys.exit(0)
messageLength = struct.unpack('@I', rawLength)[0]
message = sys.stdin.read(m... | Handle shell args in python scripts | Handle shell args in python scripts
| Python | mit | vayan/external-video,vayan/external-video,vayan/external-video,vayan/external-video | ---
+++
@@ -1,10 +1,10 @@
#!/usr/bin/env python
-# and add mpv.json to ~/.mozilla/native-messaging-hosts
import sys
import json
import struct
import subprocess
+import shlex
# Read a message from stdin and decode it.
@@ -12,9 +12,9 @@
rawLength = sys.stdin.read(4)
if len(rawLength) == 0:
... |
d7298374409912c6ace10e2bec323013cdd4d933 | scripts/poweron/DRAC.py | scripts/poweron/DRAC.py | import subprocess, sys, os.path
class DRAC_NO_SUPP_PACK(Exception):
"""Base Exception class for all transfer plugin errors."""
def __init__(self, *args):
Exception.__init__(self, *args)
class DRAC_POWERON_FAILED(Exception):
"""Base Exception class for all transfer plugin errors."""
def... | import subprocess, sys, os.path
class DRAC_NO_SUPP_PACK(Exception):
"""Base Exception class for all transfer plugin errors."""
def __init__(self, *args):
Exception.__init__(self, *args)
class DRAC_POWERON_FAILED(Exception):
"""Base Exception class for all transfer plugin errors."""
def... | Change path to the supplemental pack | CA-40618: Change path to the supplemental pack
Signed-off-by: Javier Alvarez-Valle <cf4c8668a0b4c5e013f594a6940d05b3d4d9ddcf@citrix.com>
| Python | lgpl-2.1 | simonjbeaumont/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/squeezed,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd,johnelse/xcp-rrdd,sharady/xcp-networkd,simonjbeaumont/xcp-rrdd,djs55/xcp-networkd,sharady/xcp-networkd,djs55/xcp-rrdd,djs55/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/xcp-networkd,koushikcgit/xcp-networkd,robhoes/squeezed,koushi... | ---
+++
@@ -18,7 +18,7 @@
return run.returncode, out, err
-drac_path='/usr/sbin/racadm'
+drac_path='/opt/dell/srvadmin/sbin/racadm'
def DRAC( power_on_ip, user, password):
if( not os.path.exists(drac_path)):
raise DRAC_NO_SUPP_PACK() |
83d5cc3b4ffb4759e8e073d04299a55802df09a8 | src/ansible/views.py | src/ansible/views.py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from .models import Playbook
def index(request):
return "200"
| from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from .models import Playbook
def index(request):
return HttpResponse("200")
| Fix return to use HttpResponse | Fix return to use HttpResponse
| Python | bsd-3-clause | lozadaOmr/ansible-admin,lozadaOmr/ansible-admin,lozadaOmr/ansible-admin | ---
+++
@@ -4,4 +4,4 @@
from .models import Playbook
def index(request):
- return "200"
+ return HttpResponse("200") |
9dcfccc3fc5524c3c2647e66a8977c1aa1758957 | tests/Physics/TestNTC.py | tests/Physics/TestNTC.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from numpy.testing import assert_approx_equal, assert_allclose, assert_array_less
from nose.tools import raises, assert_true, assert_equal
from UliEngineering.Physics.NTC import *
from UliEngineering.Exceptions import *
import functools
import numpy as np
class TestNTC(ob... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from numpy.testing import assert_approx_equal, assert_allclose, assert_array_less
from nose.tools import raises, assert_true, assert_equal
from UliEngineering.Physics.NTC import *
from UliEngineering.Exceptions import *
import functools
import numpy as np
class TestNTC(ob... | Fix wrong unit test value | Fix wrong unit test value
| Python | apache-2.0 | ulikoehler/UliEngineering | ---
+++
@@ -13,4 +13,4 @@
assert_approx_equal(ntc_resistance("47k", "4050K", "25°C"), 47000)
assert_approx_equal(ntc_resistance("47k", "4050K", "0°C"), 162942.79)
assert_approx_equal(ntc_resistance("47k", "4050K", "5°C"), 124819.66)
- assert_approx_equal(ntc_resistance("47k", "4050K"... |
88e5ecad9966057203a9cbecaeaecdca3e76b6da | tests/fake_filesystem.py | tests/fake_filesystem.py | import os
import stat
from StringIO import StringIO
from types import StringTypes
import paramiko as ssh
class FakeFile(StringIO):
def __init__(self, value=None, path=None):
init = lambda x: StringIO.__init__(self, x)
if value is None:
init("")
ftype = 'dir'
si... | import os
import stat
from StringIO import StringIO
from types import StringTypes
import paramiko as ssh
class FakeFile(StringIO):
def __init__(self, value=None, path=None):
init = lambda x: StringIO.__init__(self, x)
if value is None:
init("")
ftype = 'dir'
si... | Define noop close() for FakeFile | Define noop close() for FakeFile
| Python | bsd-2-clause | kxxoling/fabric,rodrigc/fabric,qinrong/fabric,elijah513/fabric,bspink/fabric,MjAbuz/fabric,cmattoon/fabric,hrubi/fabric,felix-d/fabric,askulkarni2/fabric,SamuelMarks/fabric,mathiasertl/fabric,tekapo/fabric,StackStorm/fabric,ploxiln/fabric,kmonsoor/fabric,raimon49/fabric,haridsv/fabric,bitprophet/fabric,fernandezcuesta/... | ---
+++
@@ -30,6 +30,12 @@
StringIO.write(self, value)
self.attributes.st_size = len(self.getvalue())
+ def close(self):
+ """
+ Always hold fake files open.
+ """
+ pass
+
class FakeFilesystem(dict):
def __init__(self, d=None): |
f45b3e73b6258c99aed2bff2e7350f1c797ff849 | providers/provider.py | providers/provider.py | import copy
import json
import requests
import html5lib
from application import APPLICATION as APP
# Be compatible with python 2 and 3
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode
class BaseProvider(object):
# ==== HELPER METHODS ====
def parse_html(self, ur... | import copy
import json
from urllib.parse import urlencode
import html5lib
import requests
from application import APPLICATION as APP
class BaseProvider(object):
# ==== HELPER METHODS ====
def parse_html(self, url, css_selector, timeout=60, cache=True):
html = self._http_get(url, timeout=timeout, cac... | Remove support for Python 2. | Remove support for Python 2.
| Python | mit | EmilStenstrom/nephele | ---
+++
@@ -1,14 +1,11 @@
import copy
import json
+from urllib.parse import urlencode
+
+import html5lib
import requests
-import html5lib
from application import APPLICATION as APP
-# Be compatible with python 2 and 3
-try:
- from urllib import urlencode
-except ImportError:
- from urllib.parse import url... |
cdd32dd3e346f72f823cc5d3f59c79c027db65c8 | common.py | common.py | """Functions common to other modules."""
import json
import os
import re
import time
import urllib.request
from settings import net
def clean(name):
"""Strip all [^a-zA-Z0-9_] characters and convert to lowercase."""
return re.sub(r"\W", r"", name, flags=re.ASCII).lower()
def exists(path):
"""Check to s... | """Functions common to other modules."""
import json
import os
import re
import time
import urllib.request
from settings import net
def clean(name):
"""Strip all [^a-zA-Z0-9_] characters and convert to lowercase."""
return re.sub(r"\W", r"", name, flags=re.ASCII).lower()
def exists(path):
"""Check to s... | Make task an optional argument. | Make task an optional argument.
| Python | bsd-2-clause | chingc/DJRivals,chingc/DJRivals | ---
+++
@@ -40,7 +40,7 @@
raise ConnectionError("Halted: Unable to access resource")
-def urlopen_json(url, task):
+def urlopen_json(url, task="Unknown task"):
"""Retrieve json data from the specified url."""
for attempt in range(0, net.retries):
try: |
d362b066f2c577d731adb0643799e47d30ae2f91 | config.py | config.py | import os.path
"""
TODO:
pylokit.lokit.LoKitExportError: b'no output filter found for provided suffix'
Raised when trying to export to unsupported dest (eg. pptx -> txt)
"""
SUPPORTED_FORMATS = {
"pdf": {
"path": "pdf",
"fmt": "pdf",
},
"txt": {
"path": "txt",
"fmt": "txt"... | import os
"""
TODO:
pylokit.lokit.LoKitExportError: b'no output filter found for provided suffix'
Raised when trying to export to unsupported dest (eg. pptx -> txt)
"""
SUPPORTED_FORMATS = {
"pdf": {
"path": "pdf",
"fmt": "pdf",
},
"txt": {
"path": "txt",
"fmt": "txt",
... | Use DEBUG and LIBREOFFICE_PATH vars from env | Use DEBUG and LIBREOFFICE_PATH vars from env
| Python | mit | docsbox/docsbox | ---
+++
@@ -1,4 +1,4 @@
-import os.path
+import os
"""
TODO:
@@ -27,9 +27,9 @@
}
}
-DEBUG = True
+DEBUG = os.environ.get("DEBUG", False)
-LIBREOFFICE_PATH = "/usr/lib/libreoffice/program/" # for ubuntu 16.04
+LIBREOFFICE_PATH = os.environ.get("LIBREOFFICE_PATH", "/usr/lib/libreoffice/program/") # for ub... |
de1142300a7628289d62f6686833bb795c124979 | config.py | config.py | SECRET_KEY = "TODO-change-this"
SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@localhost/cifer"
USERNAME = "postgres"
PASSWORD = "postgres"
| SECRET_KEY = "TODO-change-this"
SQLALCHEMY_DATABASE_URI = "postgres://ljknddhjuxlbve:V1QbynNKExcP5ZrctxQSXp2Cz1@ec2-54-204-36-244.compute-1.amazonaws.com:5432/d2rvtrvqnshjm9"
USERNAME = "ljknddhjuxlbve"
PASSWORD = "V1QbynNKExcP5ZrctxQSXp2Cz1"
| Use Heroku database connection settings | Use Heroku database connection settings
| Python | mit | uva-financial-engineering/cifer-tournament,uva-financial-engineering/cifer-tournament | ---
+++
@@ -1,5 +1,5 @@
SECRET_KEY = "TODO-change-this"
-SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@localhost/cifer"
-USERNAME = "postgres"
-PASSWORD = "postgres"
+SQLALCHEMY_DATABASE_URI = "postgres://ljknddhjuxlbve:V1QbynNKExcP5ZrctxQSXp2Cz1@ec2-54-204-36-244.compute-1.amazonaws.com:5432/d2rvtrvqn... |
9614fe5657c478c32dcbc4c6b6b0127adac55009 | python/fsurfer/log.py | python/fsurfer/log.py | #!/usr/bin/env python
# Copyright 2016 University of Chicago
# Licensed under the APL 2.0 license
import log
import log.handlers
import os
LOG_FILENAME = '~/logs/fsurf.log'
MAX_BYTES = 1024*1024*50 # 50 MB
NUM_BACKUPS = 10 # 10 files
def initialize_logging():
"""
Initialize logging for fsurf
:retur... | #!/usr/bin/env python
# Copyright 2016 University of Chicago
# Licensed under the APL 2.0 license
import logging
import logging.handlers
import os
LOG_FILENAME = '~/logs/fsurf.log'
MAX_BYTES = 1024*1024*50 # 50 MB
NUM_BACKUPS = 10 # 10 files
def initialize_logging():
"""
Initialize logging for fsurf
... | Fix issues due to module rename | Fix issues due to module rename
| Python | apache-2.0 | OSGConnect/freesurfer_workflow,OSGConnect/freesurfer_workflow | ---
+++
@@ -3,8 +3,8 @@
# Copyright 2016 University of Chicago
# Licensed under the APL 2.0 license
-import log
-import log.handlers
+import logging
+import logging.handlers
import os
@@ -19,13 +19,13 @@
:return: None
"""
- logger = log.getLogger('fsurf')
+ logger = logging.getLogger('fsurf... |
27864fd59c12127bc35f3da2578c77efd8315629 | brickit.py | brickit.py | from datetime import datetime
import io
import os
import legofy
from PIL import Image
from flask import Flask, render_template, request, redirect, send_file
BRICK_PATH = os.path.join(os.path.dirname(legofy.__file__), "assets", "bricks", "1x1.png")
BRICK_IMAGE = Image.open(BRICK_PATH)
app = Flask(__name__)
@app.rou... | from datetime import datetime
import io
import os
import legofy
from PIL import Image
from flask import Flask, render_template, request, redirect, send_file
BRICK_PATH = os.path.join(os.path.dirname(legofy.__file__), "assets", "bricks", "1x1.png")
BRICK_IMAGE = Image.open(BRICK_PATH)
app = Flask(__name__)
@app.rou... | Add debugging if run directly | Add debugging if run directly
| Python | mit | aaronkurtz/bricky,aaronkurtz/bricky | ---
+++
@@ -39,3 +39,6 @@
response.headers['Pragma'] = 'no-cache'
response.headers['Expires'] = '-1'
return response
+
+if __name__ == '__main__':
+ app.run(debug=True) |
86080d1c06637e1d73784100657fc43bd7326e66 | tools/conan/conanfile.py | tools/conan/conanfile.py | from conans import ConanFile, CMake, tools
class LibWFUTConan(ConanFile):
name = "libwfut"
version = "0.2.4"
license = "GPL-2.0+"
author = "Erik Ogenvik <erik@ogenvik.org>"
homepage = "https://www.worldforge.org"
url = "https://github.com/worldforge/libwfut"
description = "A client side C+... | from conans import ConanFile, CMake, tools
class LibWFUTConan(ConanFile):
name = "libwfut"
version = "0.2.4"
license = "GPL-2.0+"
author = "Erik Ogenvik <erik@ogenvik.org>"
homepage = "https://www.worldforge.org"
url = "https://github.com/worldforge/libwfut"
description = "A client side C+... | Build with PIC by default. | Build with PIC by default.
| Python | lgpl-2.1 | worldforge/libwfut,worldforge/libwfut,worldforge/libwfut,worldforge/libwfut | ---
+++
@@ -11,8 +11,8 @@
description = "A client side C++ implementation of WFUT (WorldForge Update Tool)."
topics = ("mmorpg", "worldforge")
settings = "os", "compiler", "build_type", "arch"
- options = {"shared": [False, True]}
- default_options = {"shared": False}
+ options = {"shared": [F... |
b906446bfed0f716b3337fbf33d0b6ded7854669 | genome_designer/main/upload_template_views.py | genome_designer/main/upload_template_views.py | """
Handlers for fetching upload templates.
"""
from django.shortcuts import render
CONTENT_TYPE__CSV = 'text/csv'
TEMPLATE__SAMPLES_BATCH_IMPORT_FROM_SERVER = 'sample_list_targets_template.csv'
TEMPLATE__SAMPLES_BATCH_BROWSER_UPLOAD = (
'sample_list_browser_upload_template.tsv')
def sample_list_targets_... | """
Handlers for fetching upload templates.
"""
from django.shortcuts import render
CONTENT_TYPE__CSV = 'text/csv'
TEMPLATE__SAMPLES_BATCH_IMPORT_FROM_SERVER = 'sample_list_targets_template.csv'
TEMPLATE__SAMPLES_BATCH_BROWSER_UPLOAD = (
'sample_list_browser_upload_template.csv')
def sample_list_targets_... | Fix test broken by last commit. | Fix test broken by last commit.
| Python | mit | churchlab/millstone,woodymit/millstone,woodymit/millstone,churchlab/millstone,churchlab/millstone,churchlab/millstone,woodymit/millstone,woodymit/millstone | ---
+++
@@ -10,7 +10,7 @@
TEMPLATE__SAMPLES_BATCH_IMPORT_FROM_SERVER = 'sample_list_targets_template.csv'
TEMPLATE__SAMPLES_BATCH_BROWSER_UPLOAD = (
- 'sample_list_browser_upload_template.tsv')
+ 'sample_list_browser_upload_template.csv')
def sample_list_targets_template(request): |
0d3322de1944a1a64d6c77d4b52452509979e0c1 | src/cobwebs/setup.py | src/cobwebs/setup.py | import sys
import shutil
import os
from setuptools import setup, find_packages
import cobwebs
import subprocess
if len(sys.argv) > 0:
if sys.argv[1] in ("install", "develop"):
try:
os.mkdir("/etc/spider/")
except FileExistsError:
print("Warning: /etc/spider directory alread... | import sys
import shutil
import os
from setuptools import setup, find_packages
import subprocess
if len(sys.argv) > 0:
if sys.argv[1] in ("install", "develop"):
try:
os.mkdir("/etc/spider/")
except FileExistsError:
print("Warning: /etc/spider directory already exists...")
... | Move import of the main library. | Move import of the main library.
| Python | apache-2.0 | asteroide/immo_spider,asteroide/immo_spider,asteroide/immo_spider,asteroide/immo_spider | ---
+++
@@ -2,7 +2,6 @@
import shutil
import os
from setuptools import setup, find_packages
-import cobwebs
import subprocess
@@ -16,6 +15,9 @@
ret = shutil.copy("conf/cobwebs.yaml", "/etc/spider/cobwebs.yaml")
print(ret)
subprocess.call(["ls", "-l", "/etc/spider"])
+
+
+import cobw... |
bbaf4aa6dbdbb41395b0859260962665b20230ad | __openerp__.py | __openerp__.py | # -*- coding: utf-8 -*-
{
'name': 'Chilean VAT Ledger',
'description': '''
Chilean VAT Ledger Management
=================================
Creates Sale and Purchase VAT report menus in
"accounting/period processing/VAT Ledger"
''',
'version': '0.1',
'author': u'Blanco Martín & Asociados',
'websi... | # -*- coding: utf-8 -*-
{
'name': 'Chilean VAT Ledger',
'license': 'AGPL-3',
'description': '''
Chilean VAT Ledger Management
=================================
Creates Sale and Purchase VAT report menus in
"accounting/period processing/VAT Ledger"
''',
'version': '0.1',
'author': u'Blanco Martín... | Set license to AGPL-3 in manifest | Set license to AGPL-3 in manifest
| Python | agpl-3.0 | odoo-chile/l10n_cl_account_vat_ledger,odoo-chile/l10n_cl_account_vat_ledger | ---
+++
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
{
'name': 'Chilean VAT Ledger',
+ 'license': 'AGPL-3',
'description': '''
Chilean VAT Ledger Management
================================= |
3964cb1645c2d0f1a7080c195ff33c36a590358a | sklearn_pmml/extensions/linear_regression.py | sklearn_pmml/extensions/linear_regression.py | from sklearn.linear_model import LinearRegression
from bs4 import BeautifulSoup
import numpy
def from_pmml(self, pmml):
"""Returns a model with the intercept and coefficients represented in PMML file."""
model = self()
# Reads the input PMML file with BeautifulSoup.
with open(pmml, "r") as f:
... | from sklearn.linear_model import LinearRegression
from bs4 import BeautifulSoup
import numpy
def from_pmml(self, pmml):
"""Returns a model with the intercept and coefficients represented in PMML file."""
model = self()
# Reads the input PMML file with BeautifulSoup.
with open(pmml, "r") as f:
... | Change the intercept and coefficients to be floats, not unicode | Change the intercept and coefficients to be floats, not unicode
| Python | mit | jeenalee/sklearn_pmml | ---
+++
@@ -21,7 +21,7 @@
intercept = 0
if "intercept" in lm_soup.RegressionTable.attrs:
intercept = lm_soup.RegressionTable['intercept']
- model.intercept_ = intercept
+ model.intercept_ = float(intercept)
# Pulls out coefficients from the PMML file, and assign... |
dcd9f381bc7eeaa0ffad72d286bb6dc26ebf37a4 | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Sergey Margaritov
# Copyright (c) 2013 Sergey Margaritov
#
# License: MIT
#
"""This module exports the scss-lint plugin linter class."""
import os
from SublimeLinter.lint import Linter, util
class Scss(Linter):
... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Sergey Margaritov
# Copyright (c) 2013 Sergey Margaritov
#
# License: MIT
#
"""This module exports the scss-lint plugin linter class."""
import os
from SublimeLinter.lint import RubyLinter, util
class Scss(RubyLin... | Use RubyLinter instead of Linter so rbenv and rvm are supported | Use RubyLinter instead of Linter so rbenv and rvm are supported
| Python | mit | attenzione/SublimeLinter-scss-lint | ---
+++
@@ -11,14 +11,14 @@
"""This module exports the scss-lint plugin linter class."""
import os
-from SublimeLinter.lint import Linter, util
+from SublimeLinter.lint import RubyLinter, util
-class Scss(Linter):
+class Scss(RubyLinter):
"""Provides an interface to the scss-lint executable."""
- ... |
150e338b7d2793c434d7e2f21aef061f35634476 | openspending/test/__init__.py | openspending/test/__init__.py | """\
OpenSpending test module
========================
Run the OpenSpending test suite by running
nosetests
in the root of the repository, while in an active virtualenv. See
doc/install.rst for more information.
"""
import os
import sys
from paste.deploy import appconfig
from openspending import mongo
from he... | """\
OpenSpending test module
========================
Run the OpenSpending test suite by running
nosetests
in the root of the repository, while in an active virtualenv. See
doc/install.rst for more information.
"""
import os
import sys
from pylons import config
from openspending import mongo
from .helpers im... | Use config given on command line | Use config given on command line
| Python | agpl-3.0 | pudo/spendb,openspending/spendb,openspending/spendb,nathanhilbert/FPA_Core,pudo/spendb,johnjohndoe/spendb,CivicVision/datahub,USStateDept/FPA_Core,johnjohndoe/spendb,USStateDept/FPA_Core,CivicVision/datahub,nathanhilbert/FPA_Core,johnjohndoe/spendb,openspending/spendb,USStateDept/FPA_Core,spendb/spendb,nathanhilbert/FP... | ---
+++
@@ -13,15 +13,13 @@
import os
import sys
-from paste.deploy import appconfig
+from pylons import config
from openspending import mongo
-from helpers import clean_all
+from .helpers import clean_all
__all__ = ['TestCase', 'DatabaseTestCase']
-here_dir = os.getcwd()
-config = appconfig('config:test.... |
37a0cb41a88114ab9edb514e29447756b0c3e92a | tests/test_cli.py | tests/test_cli.py | # -*- coding: utf-8 -*-
from click.testing import CliRunner
import pytest
from cibopath.cli import main
from cibopath import __version__
runner = CliRunner()
@pytest.fixture(params=['-V', '--version'])
def version_cli_flag(request):
return request.param
def test_cli_group_version_option(version_cli_flag):
... | # -*- coding: utf-8 -*-
import pytest
from cibopath import __version__
@pytest.fixture(params=['-V', '--version'])
def version_cli_flag(request):
return request.param
def test_cli_group_version_option(cli_runner, version_cli_flag):
result = cli_runner([version_cli_flag])
assert result.exit_code == 0
... | Use cli_runner fixture in test | Use cli_runner fixture in test
| Python | bsd-3-clause | hackebrot/cibopath | ---
+++
@@ -1,12 +1,8 @@
# -*- coding: utf-8 -*-
-from click.testing import CliRunner
import pytest
-from cibopath.cli import main
from cibopath import __version__
-
-runner = CliRunner()
@pytest.fixture(params=['-V', '--version'])
@@ -14,7 +10,7 @@
return request.param
-def test_cli_group_versio... |
f814e945d3e62c87c5f86ef5ac37c5feb733b83d | tests/test_ext.py | tests/test_ext.py | from __future__ import absolute_import, unicode_literals
import unittest
from mopidy import config, ext
class ExtensionTest(unittest.TestCase):
def setUp(self): # noqa: N802
self.ext = ext.Extension()
def test_dist_name_is_none(self):
self.assertIsNone(self.ext.dist_name)
def test_ex... | from __future__ import absolute_import, unicode_literals
import pytest
from mopidy import config, ext
@pytest.fixture
def extension():
return ext.Extension()
def test_dist_name_is_none(extension):
assert extension.dist_name is None
def test_ext_name_is_none(extension):
assert extension.ext_name is N... | Convert ext test to pytests | tests: Convert ext test to pytests
| Python | apache-2.0 | mokieyue/mopidy,bencevans/mopidy,ZenithDK/mopidy,jodal/mopidy,quartz55/mopidy,pacificIT/mopidy,pacificIT/mopidy,quartz55/mopidy,ali/mopidy,swak/mopidy,tkem/mopidy,bencevans/mopidy,mopidy/mopidy,SuperStarPL/mopidy,dbrgn/mopidy,hkariti/mopidy,glogiotatidis/mopidy,mokieyue/mopidy,ali/mopidy,bacontext/mopidy,glogiotatidis/... | ---
+++
@@ -1,35 +1,41 @@
from __future__ import absolute_import, unicode_literals
-import unittest
+import pytest
from mopidy import config, ext
-class ExtensionTest(unittest.TestCase):
+@pytest.fixture
+def extension():
+ return ext.Extension()
- def setUp(self): # noqa: N802
- self.ext = ... |
7127520c3539bd65c6241d6c4a36e3cb6bfe6195 | scripts/launch_app.py | scripts/launch_app.py | #! /usr/bin/env python3
"""Launch the flask-forecaster application."""
import os
from flask_forecaster import app
if __name__ == '__main__':
app.run(host='0.0.0.0', port=int(os.getenv('PORT')))
| #! /usr/bin/env python3
"""Launch the flask-forecaster application."""
import os
import sys
from flask_forecaster import app
if __name__ == '__main__':
app.run(
debug='debug' in sys.argv,
host='0.0.0.0',
port=int(os.getenv('PORT'))
)
| Allow running the app in debug mode from the command line | Allow running the app in debug mode from the command line
| Python | isc | textbook/flask-forecaster,textbook/flask-forecaster | ---
+++
@@ -1,8 +1,13 @@
#! /usr/bin/env python3
"""Launch the flask-forecaster application."""
import os
+import sys
from flask_forecaster import app
if __name__ == '__main__':
- app.run(host='0.0.0.0', port=int(os.getenv('PORT')))
+ app.run(
+ debug='debug' in sys.argv,
+ host='0.0.0.0'... |
27ffcae96c5dce976517035b25a5c72f10e2ec99 | tool_spatialdb.py | tool_spatialdb.py | # SpatialDB scons tool
#
# It builds the library for the SpatialDB C++ class library,
# and provides CPP and linker specifications for the header
# and libraries.
#
# SpatialDB depends on SqliteDB, which provides the interface to
# sqlite3. It also depends on SpatiaLite. Since SpatiaLite is
# is also needed by SQLit... | # SpatialDB scons tool
#
# It builds the library for the SpatialDB C++ class library,
# and provides CPP and linker specifications for the header
# and libraries.
#
# SpatialDB depends on SqliteDB, which provides the interface to
# sqlite3. It also depends on SpatiaLite. Since SpatiaLite is
# is also needed by SQLit... | Use GLOBAL_TOOLs rather than Export/Import for project wide configuration. | Use GLOBAL_TOOLs rather than Export/Import for project wide configuration.
| Python | bsd-3-clause | ncareol/spatialdb,ncareol/spatialdb | ---
+++
@@ -27,7 +27,6 @@
env.AppendLibrary('proj')
if (platform != 'posix'):
env.AppendLibrary('iconv')
- env.Replace(CCFLAGS=['-g','-O2'])
env.Require(tools)
Export('spatialdb') |
dd021344c081d47f51212165584ad646868f5720 | test_standalone.py | test_standalone.py | # Shamelessly borrowed from
# http://stackoverflow.com/questions/3841725/how-to-launch-tests-for-django-reusable-app/3851333#3851333
import os
import sys
from django.conf import settings
DIRNAME = os.path.dirname(__file__)
settings.configure(
DEBUG=True,
DATABASES={
'default': {
'ENGINE':
... | # Shamelessly borrowed from
# http://stackoverflow.com/questions/3841725/how-to-launch-tests-for-django-reusable-app/3851333#3851333
import os
import sys
from django.conf import settings
DIRNAME = os.path.dirname(__file__)
settings.configure(
DEBUG=True,
DATABASES={
'default': {
'ENGINE':
... | Add mortgage insurance in apps list | Add mortgage insurance in apps list
| Python | cc0-1.0 | fna/owning-a-home-api,amymok/owning-a-home-api,cfpb/owning-a-home-api | ---
+++
@@ -16,7 +16,9 @@
USE_TZ=True,
ROOT_URLCONF='oahapi.oahapi.urls',
INSTALLED_APPS=('ratechecker',
- 'countylimits')
+ 'countylimits',
+ 'mortgageinsurance',
+ )
)
|
da59d7481668a7133eebcd12b4d5ecfb655296a6 | test/test_blob_filter.py | test/test_blob_filter.py | """Test the blob filter."""
from pathlib import Path
from typing import Sequence, Tuple
from unittest.mock import MagicMock
import pytest
from git.index.typ import BlobFilter, StageType
from git.objects import Blob
from git.types import PathLike
# fmt: off
@pytest.mark.parametrize('paths, stage_type, path, expected... | """Test the blob filter."""
from pathlib import Path
from typing import Sequence, Tuple
from unittest.mock import MagicMock
import pytest
from git.index.typ import BlobFilter, StageType
from git.objects import Blob
from git.types import PathLike
# fmt: off
@pytest.mark.parametrize('paths, path, expected_result', [
... | Remove stage type as parameter from blob filter test | Remove stage type as parameter from blob filter test
| Python | bsd-3-clause | gitpython-developers/GitPython,gitpython-developers/gitpython,gitpython-developers/GitPython,gitpython-developers/gitpython | ---
+++
@@ -11,18 +11,19 @@
# fmt: off
-@pytest.mark.parametrize('paths, stage_type, path, expected_result', [
- ((Path("foo"),), 0, Path("foo"), True),
- ((Path("foo"),), 0, Path("foo/bar"), True),
- ((Path("foo/bar"),), 0, Path("foo"), False),
- ((Path("foo"), Path("bar")), 0, Path("foo"), True),
+... |
431ca4f2d44656ef9f97be50718712c6f3a0fa9b | qtawesome/tests/test_qtawesome.py | qtawesome/tests/test_qtawesome.py | r"""
Tests for QtAwesome.
"""
# Standard library imports
import subprocess
# Test Library imports
import pytest
# Local imports
import qtawesome as qta
from qtawesome.iconic_font import IconicFont
def test_segfault_import():
output_number = subprocess.call('python -c "import qtawesome '
... | r"""
Tests for QtAwesome.
"""
# Standard library imports
import subprocess
import collections
# Test Library imports
import pytest
# Local imports
import qtawesome as qta
from qtawesome.iconic_font import IconicFont
def test_segfault_import():
output_number = subprocess.call('python -c "import qtawesome '
... | Make the test more comprehensive. | Make the test more comprehensive.
| Python | mit | spyder-ide/qtawesome | ---
+++
@@ -3,6 +3,7 @@
"""
# Standard library imports
import subprocess
+import collections
# Test Library imports
import pytest
@@ -30,13 +31,14 @@
resource = qta._instance()
assert isinstance(resource, IconicFont)
- prefixes = list(resource.fontname.keys())
- assert prefixes
-
- fontnam... |
3d8ec94e61735b84c3b24b44d79fcd57611a93ee | mndeps.py | mndeps.py | #!/usr/bin/env python
# XXX: newer mininet version also has MinimalTopo
from mininet.topo import ( SingleSwitchTopo, LinearTopo,
SingleSwitchReversedTopo )
from mininet.topolib import TreeTopo
from mininet.util import buildTopo
import psycopg2
TOPOS = { 'linear': LinearTopo,
'reve... | #!/usr/bin/env python
# XXX: newer mininet version also has MinimalTopo
from mininet.topo import ( SingleSwitchTopo, LinearTopo,
SingleSwitchReversedTopo )
from mininet.topolib import TreeTopo
from mininet.util import buildTopo
import psycopg2
TOPOS = { 'linear': LinearTopo,
'reve... | Fix bug after removing torus | Fix bug after removing torus
| Python | apache-2.0 | ravel-net/ravel,ravel-net/ravel | ---
+++
@@ -10,8 +10,8 @@
TOPOS = { 'linear': LinearTopo,
'reversed': SingleSwitchReversedTopo,
'single': SingleSwitchTopo,
- 'tree': TreeTopo,
- 'torus': TorusTopo }
+ 'tree': TreeTopo
+ }
def build(opts):
return buildTopo(TOPOS, opts) |
8ac492be603f958a29bbc6bb5215d79ec469d269 | tests/test_init.py | tests/test_init.py | """Test the checkers"""
from nose.tools import ok_, eq_
from preflyt import check
CHECKERS = [
{"checker": "env", "name": "USER"}
]
BAD_CHECKERS = [
{"checker": "env", "name": "USER1231342dhkfgjhk2394dv09324jk12039csdfg01231"}
]
def test_everything():
"""Test the check method."""
good, results = che... | """Test the checkers"""
from nose.tools import ok_, eq_
from preflyt import check
CHECKERS = [
{"checker": "env", "name": "PATH"}
]
BAD_CHECKERS = [
{"checker": "env", "name": "PATH1231342dhkfgjhk2394dv09324jk12039csdfg01231"}
]
def test_everything():
"""Test the check method."""
good, results = c... | Update environment test to have cross platform support | Update environment test to have cross platform support
| Python | mit | humangeo/preflyt | ---
+++
@@ -4,11 +4,11 @@
from preflyt import check
CHECKERS = [
- {"checker": "env", "name": "USER"}
+ {"checker": "env", "name": "PATH"}
]
BAD_CHECKERS = [
- {"checker": "env", "name": "USER1231342dhkfgjhk2394dv09324jk12039csdfg01231"}
+ {"checker": "env", "name": "PATH1231342dhkfgjhk2394dv09324... |
131fb74b0f399ad3abff5dcc2b09621cac1226e7 | config/nox_routing.py | config/nox_routing.py | from experiment_config_lib import ControllerConfig
from sts.control_flow import Fuzzer
from sts.input_traces.input_logger import InputLogger
from sts.invariant_checker import InvariantChecker
from sts.simulation_state import SimulationConfig
# Use NOX as our controller
command_line = "./nox_core -i ptcp:6633 routing"
... | from experiment_config_lib import ControllerConfig
from sts.control_flow import Fuzzer
from sts.input_traces.input_logger import InputLogger
from sts.invariant_checker import InvariantChecker
from sts.simulation_state import SimulationConfig
from sts.topology import MeshTopology
# Use NOX as our controller
command_lin... | Update NOX config to use sample_routing | Update NOX config to use sample_routing
| Python | apache-2.0 | ucb-sts/sts,jmiserez/sts,jmiserez/sts,ucb-sts/sts | ---
+++
@@ -3,15 +3,25 @@
from sts.input_traces.input_logger import InputLogger
from sts.invariant_checker import InvariantChecker
from sts.simulation_state import SimulationConfig
+from sts.topology import MeshTopology
# Use NOX as our controller
-command_line = "./nox_core -i ptcp:6633 routing"
+command_line ... |
96e86fb389d67d55bf6b4e0f3f0f318e75b532dd | kirppu/management/commands/accounting_data.py | kirppu/management/commands/accounting_data.py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from django.utils.translation import activate
from kirppu.accounting import accounting_receipt
class Command(BaseCommand):
help = 'Dump accounting CSV to standard output'
def add_arguments(self, parser):
parser.add_argument(... | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from django.utils.translation import activate
from kirppu.accounting import accounting_receipt
class Command(BaseCommand):
help = 'Dump accounting CSV to standard output'
def add_arguments(self, parser):
parser.add_argument(... | Fix accounting data dump command. | Fix accounting data dump command.
| Python | mit | jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu | ---
+++
@@ -10,8 +10,12 @@
def add_arguments(self, parser):
parser.add_argument('--lang', type=str, help="Change language, for example: en")
+ parser.add_argument('event', type=str, help="Event slug to dump data for")
def handle(self, *args, **options):
if "lang" in options:
... |
019b4ed21eddaa176c9445f40f91dc0becad7b4a | towel/mt/forms.py | towel/mt/forms.py | """
Forms
=====
These three form subclasses will automatically add limitation by tenant
to all form fields with a ``queryset`` attribute.
.. warning::
If you customized the dropdown using ``choices`` you have to limit the
choices by the current tenant yourself.
"""
from django import forms
from towel impor... | """
Forms
=====
These three form subclasses will automatically add limitation by tenant
to all form fields with a ``queryset`` attribute.
.. warning::
If you customized the dropdown using ``choices`` you have to limit the
choices by the current tenant yourself.
"""
from django import forms
from towel impor... | Stop evaluating querysets when processing form fields | towel.mt: Stop evaluating querysets when processing form fields
| Python | bsd-3-clause | matthiask/towel,matthiask/towel,matthiask/towel,matthiask/towel | ---
+++
@@ -19,7 +19,7 @@
def _process_fields(form, request):
for field in form.fields.values():
- if getattr(field, 'queryset', None):
+ if hasattr(field, 'queryset'):
model = field.queryset.model
field.queryset = safe_queryset_and( |
fc076d4b390c8e28fceb9613b04423ad374930e5 | config/fuzz_pox_mesh.py | config/fuzz_pox_mesh.py | from experiment_config_lib import ControllerConfig
from sts.topology import MeshTopology
from sts.control_flow import Fuzzer, Interactive
from sts.input_traces.input_logger import InputLogger
from sts.invariant_checker import InvariantChecker
from sts.simulation_state import SimulationConfig
# Use POX as our controlle... | from experiment_config_lib import ControllerConfig
from sts.topology import MeshTopology
from sts.control_flow import Fuzzer, Interactive
from sts.input_traces.input_logger import InputLogger
from sts.invariant_checker import InvariantChecker
from sts.simulation_state import SimulationConfig
# Use POX as our controlle... | Switch to normal pox instead of betta | Switch to normal pox instead of betta
| Python | apache-2.0 | jmiserez/sts,jmiserez/sts,ucb-sts/sts,ucb-sts/sts | ---
+++
@@ -6,12 +6,11 @@
from sts.simulation_state import SimulationConfig
# Use POX as our controller
-command_line = ('''./pox.py --verbose openflow.debug ''' #sts.syncproto.pox_syncer '''
- '''forwarding.l2_multi '''
- #'''sts.util.socket_mux.pox_monkeypatcher '''
+command_line =... |
2f0920d932067a8935eb6e88cc855145ff3c08e2 | mne/realtime/tests/test_stim_client_server.py | mne/realtime/tests/test_stim_client_server.py | import threading
import time
import Queue
from mne.realtime import StimServer, StimClient
from nose.tools import assert_equal
def test_connection():
"""Test TCP/IP connection for StimServer <-> StimClient.
"""
# have to start a thread to simulate the effect of two
# different computers since stim_se... | import threading
import time
import Queue
from mne.realtime import StimServer, StimClient
from nose.tools import assert_equal
def test_connection():
"""Test TCP/IP connection for StimServer <-> StimClient.
"""
# have to start a thread to simulate the effect of two
# different computers since stim_se... | FIX : increase test timer for buildbot in realtime | FIX : increase test timer for buildbot in realtime
| Python | bsd-3-clause | teonlamont/mne-python,drammock/mne-python,rkmaddox/mne-python,ARudiuk/mne-python,wmvanvliet/mne-python,agramfort/mne-python,adykstra/mne-python,Eric89GXL/mne-python,agramfort/mne-python,alexandrebarachant/mne-python,ARudiuk/mne-python,Eric89GXL/mne-python,aestrivex/mne-python,jniediek/mne-python,rkmaddox/mne-python,blo... | ---
+++
@@ -35,12 +35,12 @@
"""Helper method that instantiates the StimClient.
"""
# just wait till the main thread reaches stim_server.start()
- time.sleep(0.1)
+ time.sleep(1.)
# instantiate StimClient
stim_client = StimClient('localhost', port=4218)
# wait a bit more for scr... |
ca75631f513c433c6024a2f00d045f304703a85d | webapp/tests/test_browser.py | webapp/tests/test_browser.py | import os
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from . import DATA_DIR
class BrowserTest(TestCase):
def test_browser(self):
url = reverse('graphite.browser.views.browser')
response = self.client.get(url)
... | import os
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from . import DATA_DIR
class BrowserTest(TestCase):
def test_browser(self):
url = reverse('graphite.browser.views.browser')
... | Add tests for making sure a user is dynamically created | Add tests for making sure a user is dynamically created
| Python | apache-2.0 | EinsamHauer/graphite-web-iow,bpaquet/graphite-web,Skyscanner/graphite-web,disqus/graphite-web,synedge/graphite-web,gwaldo/graphite-web,blacked/graphite-web,cosm0s/graphite-web,brutasse/graphite-web,blacked/graphite-web,bbc/graphite-web,gwaldo/graphite-web,Invoca/graphite-web,atnak/graphite-web,deniszh/graphite-web,dhte... | ---
+++
@@ -1,5 +1,6 @@
import os
+from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
@@ -14,9 +15,13 @@
self.assertContains(response, 'Graphite Browser')
def test_header(self):... |
20bd5c16d5850f988e92c39db3ff041c37c83b73 | contract_sale_generation/models/abstract_contract.py | contract_sale_generation/models/abstract_contract.py | # Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ContractAbstractContract(models.AbstractModel):
_inherit = "contract.abstract.contract"
sale_autoconfirm = f... | # Copyright 2017 Pesol (<http://pesol.es>)
# Copyright 2017 Angel Moya <angel.moya@pesol.es>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
class ContractAbstractContract(models.AbstractModel):
_inherit = "contract.abstract.contract"
sale_autoconfirm = f... | Align method on Odoo conventions | [14.0][IMP] contract_sale_generation: Align method on Odoo conventions
| Python | agpl-3.0 | OCA/contract,OCA/contract,OCA/contract | ---
+++
@@ -11,7 +11,7 @@
sale_autoconfirm = fields.Boolean(string="Sale Autoconfirm")
@api.model
- def _get_generation_type_selection(self):
- res = super()._get_generation_type_selection()
+ def _selection_generation_type(self):
+ res = super()._selection_generation_type()
r... |
6422f6057d43dfb5259028291991f39c5b81b446 | spreadflow_core/flow.py | spreadflow_core/flow.py | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from collections import defaultdict
class Flowmap(dict):
def __init__(self):
super(Flowmap, self).__init__()
self.decorators = []
self.annotations = {}
def graph(self):
... | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from collections import defaultdict, MutableMapping
class Flowmap(MutableMapping):
def __init__(self):
super(Flowmap, self).__init__()
self.annotations = {}
self.connections = {}... | Refactor Flowmap into a MutableMapping | Refactor Flowmap into a MutableMapping
| Python | mit | spreadflow/spreadflow-core,znerol/spreadflow-core | ---
+++
@@ -2,14 +2,30 @@
from __future__ import division
from __future__ import unicode_literals
-from collections import defaultdict
+from collections import defaultdict, MutableMapping
-class Flowmap(dict):
+class Flowmap(MutableMapping):
def __init__(self):
super(Flowmap, self).__init__()
+ ... |
45810cb89a26a305df0724b0f27f6136744b207f | bookshop/bookshop/urls.py | bookshop/bookshop/urls.py | """bookshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | """bookshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | Add a URL to urlpatterns for home page | Add a URL to urlpatterns for home page
| Python | mit | djangogirlstaipei/eshop,djangogirlstaipei/eshop,djangogirlstaipei/eshop,djangogirlstaipei/eshop | ---
+++
@@ -16,6 +16,9 @@
from django.conf.urls import url
from django.contrib import admin
+from books import views
+
urlpatterns = [
+ url(r'^$', views.home, name='home'),
url(r'^admin/', admin.site.urls),
] |
64e515f87fa47f44ed8c18e9c9edc76fee49ce84 | setup.py | setup.py | # -*- coding: utf-8 -*-
#
# setup.py
# colorific
#
"""
Package information for colorific.
"""
import sys
# check for the supported Python version
version = tuple(sys.version_info[:2])
if version != (2, 7):
sys.stderr.write('colorific requires Python 2.7 (you have %d.%d)\n' %\
version)
sys.stder... | # -*- coding: utf-8 -*-
#
# setup.py
# colorific
#
"""
Package information for colorific.
"""
import sys
# check for the supported Python version
version = tuple(sys.version_info[:2])
if version != (2, 7):
sys.stderr.write('colorific requires Python 2.7 (you have %d.%d)\n' %\
version)
sys.stder... | Use patched Pillow as a packaging dependency. | Use patched Pillow as a packaging dependency.
| Python | isc | 99designs/colorific | ---
+++
@@ -33,9 +33,12 @@
url='http://github.com/99designs/colorific',
py_modules=['colorific'],
install_requires=[
- 'PIL>=1.1.6',
+ 'Pillow==1.7.8',
'colormath>=1.0.8',
'numpy>=1.6.1',
+ ],
+ dependency_links=[
+ 'http://github.com... |
4789e7d32bdec3afc6b76f20bf193a51410bbab1 | setup.py | setup.py | from setuptools import setup, find_packages
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, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='llvmcpy',
version='... | from setuptools import setup, find_packages
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, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='llvmcpy',
version='... | Update version number to 0.1.2 | Update version number to 0.1.2
| Python | mit | revng/llvmcpy | ---
+++
@@ -10,7 +10,7 @@
setup(
name='llvmcpy',
- version='0.1.1',
+ version='0.1.2',
description='Python bindings for LLVM auto-generated from the LLVM-C API',
long_description=long_description,
url='https://rev.ng/llvmcpy', |
01bb927847de1a59adc97d9aa4bf745f4fa49ff5 | 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.24',
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.25',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | Update the PyPI version to 0.2.25. | Update the PyPI version to 0.2.25.
| Python | mit | Doist/todoist-python | ---
+++
@@ -10,7 +10,7 @@
setup(
name='todoist-python',
- version='0.2.24',
+ version='0.2.25',
packages=['todoist', 'todoist.managers'],
author='Doist Team',
author_email='info@todoist.com', |
12689fdabfb89453b7289ec70a5a2bd170ce8a8f | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='reddit2Kindle',
entry_points={
'console_scripts': [
'r2k = r2klib.cli:from_cli'
]
},
packages=find_packages(),
install_requires=[
'markdown2',
'praw',
... | #!/usr/bin/env python
# encoding: utf-8
from setuptools import setup, find_packages
setup(
name='reddit2kindle',
entry_points={
'console_scripts': [
'r2k = r2klib.cli:from_cli'
]
},
packages=find_packages(),
install_requires=[
'markdown2',
'praw',
... | Fix odd casing of reddit2kindle | Fix odd casing of reddit2kindle
| Python | mit | Antrikshy/reddit2Kindle | ---
+++
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
setup(
- name='reddit2Kindle',
+ name='reddit2kindle',
entry_points={
'console_scripts': [
'r2k = r2klib.cli:from_cli'
@@ -19,13 +19,13 @@
version='0.6.0',
author='Antriksh Yadav',
author_email='ant... |
995b771579b985bae2e27faaa1a7f861012edb25 | setup.py | setup.py | from setuptools import setup, find_packages
from foliant import __version__ as foliant_version
SHORT_DESCRIPTION = 'Modular, Markdown-based documentation generator that makes \
pdf, docx, html, and more.'
try:
with open('README.md', encoding='utf8') as readme:
LONG_DESCRIPTION = readme.read()
except Fi... | from setuptools import setup, find_packages
from foliant import __version__ as foliant_version
SHORT_DESCRIPTION = 'Modular, Markdown-based documentation generator that makes \
pdf, docx, html, and more.'
try:
with open('README.md', encoding='utf8') as readme:
LONG_DESCRIPTION = readme.read()
except Fi... | Define content type Markdown for description. | Setup: Define content type Markdown for description.
| Python | mit | foliant-docs/foliant | ---
+++
@@ -24,6 +24,7 @@
author_email='moigagoo@live.com',
description=SHORT_DESCRIPTION,
long_description=LONG_DESCRIPTION,
+ long_description_content_type='text/markdown',
packages=find_packages(),
platforms='any',
install_requires=[ |
06646f5c73f886a93ed8507419a07fe69014f418 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="django-twitter-bootstrap",
version="3.0.0",
packages=find_packages(),
package_data={
'twitter_bootstrap': [
'static/fonts/glyphicons-halflings-regular.*',
'static/js/*.js',
's... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name="django-twitter-bootstrap",
version="3.0.0",
packages=find_packages(),
package_data={
'twitter_bootstrap': [
'static/fonts/glyphicons-halflings-regular.*',
'static/js/*.js',
's... | Mark the package as Python 3 compatible. | Mark the package as Python 3 compatible.
| Python | mit | estebistec/django-twitter-bootstrap | ---
+++
@@ -31,7 +31,9 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3.3',
... |
f09decf4d57e83c8bf13fab697bd9cfb3b983c22 | setup.py | setup.py | from setuptools import setup
with open('README.md') as file:
long_description = file.read()
setup(
name="chalupas-files",
version="0.1.0",
author="Antonin Messinger",
author_email="antonin.messinger@gmail.com",
description=" Convert any document",
long_description=long_description,
li... | from setuptools import setup
with open('README.md') as file:
long_description = file.read()
setup(
name="chalupas-files",
version="0.1.0",
author="Antonin Messinger",
author_email="antonin.messinger@gmail.com",
description=" Convert any document",
long_description=long_description,
li... | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656 | Upgrade to Flask 0.12.3 to fix CVE-2018-1000656
| Python | mit | Antojitos/chalupas | ---
+++
@@ -28,7 +28,7 @@
packages=['chalupas'],
install_requires=[
- 'Flask==0.10.1',
+ 'Flask==0.12.3',
'pypandoc==1.1.3'
],
|
533eb2c759eb58cdc483b73dd40d8a4460f44e73 | setup.py | setup.py | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='django-conference',
version='0.1',
description='A complete conference management system based on Python/Django.',
license='BSD',
author='Mason Malone',
author_email='ma... | #!/usr/bin/env python
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(name='django-conference',
version='0.1',
description='A complete conference management system based on Python/Django.',
license='BSD',
author='Mason Malone',
author_email='ma... | Update Django requirements for 1.8 | Update Django requirements for 1.8
| Python | bsd-3-clause | MasonM/hssonline-conference,MasonM/hssonline-conference,MasonM/hssonline-conference | ---
+++
@@ -13,13 +13,13 @@
packages=find_packages(exclude=['example_project', 'example_project.*']),
include_package_data=True,
tests_require=[
- 'django>=1.6,<1.8',
+ 'django>=1.8,<1.9',
'freezegun',
'unittest2',
],
test_suite='runtests.runtests',
instal... |
12e374c3797cee21d1cd47bba5e7bcd11439e50c | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name = 'dreamBeam',
version = '0.4',
description = 'Measurement equation framework for interferometry in Radio Astronomy.',
author = 'Tobia D. Carozzi',
author_email = 'tobia.carozzi@chalmers.se',
packages = find_pac... | #!/usr/bin/env python
from setuptools import setup, find_packages
from dreambeam import __version__
setup(name='dreamBeam',
version=__version__,
description='Measurement equation framework for radio interferometry.',
author='Tobia D. Carozzi',
author_email='tobia.carozzi@chalmers.se',
pa... | Change to import version from package. | Change to import version from package.
| Python | isc | 2baOrNot2ba/dreamBeam,2baOrNot2ba/dreamBeam | ---
+++
@@ -1,17 +1,19 @@
#!/usr/bin/env python
from setuptools import setup, find_packages
+from dreambeam import __version__
-setup(name = 'dreamBeam',
- version = '0.4',
- description = 'Measurement equation framework for interferometry in Radio Astronomy.',
- author = 'Tobia D. Carozzi',
- ... |
6adf64a1f39e9455851ba93fa6fcae8e02b0b3ea | setup.py | setup.py | from setuptools import setup, find_packages
import inbox
requirements = [
"click",
]
setup(
name="inbox",
version=inbox.__version__,
url='TODO',
description=inbox.__doc__,
author=inbox.__author__,
license=inbox.__license__,
long_description="TODO",
packages=find_packages(),
in... | from setuptools import setup, find_packages
import inbox
requirements = [
"click",
"github3.py",
]
setup(
name="inbox",
version=inbox.__version__,
url='TODO',
description=inbox.__doc__,
author=inbox.__author__,
license=inbox.__license__,
long_description="TODO",
packages=find_... | Add github3.py to the requirements | Add github3.py to the requirements
| Python | mit | k4nar/inbox | ---
+++
@@ -4,6 +4,7 @@
requirements = [
"click",
+ "github3.py",
]
setup( |
edf32f4ac0527fbe97cd4ccf2a87f22e503e3111 | setup.py | setup.py | ###############################################################################
# Copyright 2015-2020 University of Florida. All rights reserved.
# This file is part of UF CTS-IT's NACCulator project.
# Use of this source code is governed by the license found in the LICENSE file.
#######################################... | ###############################################################################
# Copyright 2015-2020 University of Florida. All rights reserved.
# This file is part of UF CTS-IT's NACCulator project.
# Use of this source code is governed by the license found in the LICENSE file.
#######################################... | Modify cappy dependency to work with Python 3.8 | Modify cappy dependency to work with Python 3.8
| Python | bsd-2-clause | ctsit/nacculator,ctsit/nacculator,ctsit/nacculator | ---
+++
@@ -31,8 +31,11 @@
]
},
+ dependency_links=[
+ "git+https://github.com/ctsit/cappy.git@2.0.0#egg=cappy-2.0.0"
+ ],
install_requires=[
- "cappy @ git+https://github.com/ctsit/cappy.git@2.0.0"
+ "cappy==2.0.0"
],
python_requires=">=3.6.0", |
5beb443d4c9cf834be03ff33a2fb01605f8feb80 | pyof/v0x01/symmetric/hello.py | pyof/v0x01/symmetric/hello.py | """Defines Hello message."""
# System imports
# Third-party imports
from pyof.foundation.base import GenericMessage
from pyof.v0x01.common.header import Header, Type
__all__ = ('Hello',)
# Classes
class Hello(GenericMessage):
"""OpenFlow Hello Message.
This message does not contain a body beyond the Ope... | """Defines Hello message."""
# System imports
# Third-party imports
from pyof.foundation.base import GenericMessage
from pyof.foundation.basic_types import BinaryData
from pyof.v0x01.common.header import Header, Type
__all__ = ('Hello',)
# Classes
class Hello(GenericMessage):
"""OpenFlow Hello Message.
... | Add optional elements in v0x01 Hello | Add optional elements in v0x01 Hello
For spec compliance. Ignore the elements as they're not used.
Fix #379
| Python | mit | kytos/python-openflow | ---
+++
@@ -5,6 +5,7 @@
# Third-party imports
from pyof.foundation.base import GenericMessage
+from pyof.foundation.basic_types import BinaryData
from pyof.v0x01.common.header import Header, Type
__all__ = ('Hello',)
@@ -19,3 +20,4 @@
"""
header = Header(message_type=Type.OFPT_HELLO, length=8)
+ ... |
69386a024e461a7b4a46f7c68d4512e0c7d4f277 | setup.py | setup.py | from setuptools import setup
setup(
name='xwing',
version='0.0.1.dev0',
url='https://github.com/victorpoluceno/xwing',
license='ISC',
description='Xwing is a Python library writen using that help '
'to distribute connect to a single port to other process',
author='Victor Poluceno',
... | from setuptools import setup
setup(
name='xwing',
version='0.0.1.dev0',
url='https://github.com/victorpoluceno/xwing',
license='ISC',
description='Xwing is a Python library writen using that help '
'to distribute connect to a single port to other process',
author='Victor Poluceno',
... | Add attrs as project requirement | chore: Add attrs as project requirement
| Python | isc | victorpoluceno/xwing | ---
+++
@@ -13,6 +13,7 @@
packages=['xwing'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
+ install_requires=['attrs==16.2.0'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers', |
a185f70b64986b2e98457e18b0a420cf2b97688b | setup.py | setup.py | from setuptools import find_packages
from distutils.core import setup
setup(
name='skipper',
version='0.0.1',
url='http://github.com/Stratoscale/skipper',
author='Adir Gabai',
author_mail='adir@stratoscale.com',
packages=find_packages(include=['skipper*']),
data_files=[
('/etc/bash_... | import os
from setuptools import find_packages
from distutils.core import setup
data_files = []
# Add bash completion script in case we are running as root
if os.getuid() == 0:
data_files=[
('/etc/bash_completion.d', ['data/skipper-complete.sh'])
]
setup(
name='skipper',
version='0.0.1',
... | Install bash completion script only when running the installation script as root. This is also a workaround for a bug that prevents tox from install the above script while creating the virtual environment. | Install bash completion script only when running the installation script
as root. This is also a workaround for a bug that prevents tox from install the
above script while creating the virtual environment.
| Python | apache-2.0 | Stratoscale/skipper,Stratoscale/skipper | ---
+++
@@ -1,5 +1,15 @@
+import os
from setuptools import find_packages
from distutils.core import setup
+
+
+
+data_files = []
+# Add bash completion script in case we are running as root
+if os.getuid() == 0:
+ data_files=[
+ ('/etc/bash_completion.d', ['data/skipper-complete.sh'])
+ ]
setup(
... |
6ea8a4b07139460e89c6208cf08e195e9b8483ba | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from azurectl.version import __VERSION__
config = {
'description': 'Manage Azure PubCloud Service',
'author': 'PubCloud Development team',
'url': 'https://github.com/SUSE/azurectl',
'download_url': 'https://... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from azurectl.version import __VERSION__
config = {
'description': 'Manage Azure PubCloud Service',
'author': 'PubCloud Development team',
'url': 'https://github.com/SUSE/azurectl',
'download_url': 'https://... | Increment azure-sdk dependency to match version in OBS. | Increment azure-sdk dependency to match version in OBS.
| Python | apache-2.0 | SUSE/azurectl,SUSE/azurectl,SUSE/azurectl | ---
+++
@@ -16,7 +16,7 @@
'docopt==0.6.2',
'APScheduler==3.0.2',
'pyliblzma==0.5.3',
- 'azure==0.11.0',
+ 'azure==0.11.1',
'python-dateutil==2.1'
],
'packages': ['azurectl'], |
7b5794132f3f1e93c9dda3bb332a6594fb369018 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = "django-waitinglist",
version = "1.0b8",
author = "Brian Rosner",
author_email = "brosner@gmail.com",
description = "a Django waiting list app for running a private beta with cohorts support",
long_description = open("README.rst").read(... | from setuptools import setup, find_packages
setup(
name = "django-waitinglist",
version = "1.0b9",
author = "Brian Rosner",
author_email = "brosner@gmail.com",
description = "a Django waiting list app for running a private beta with cohorts support",
long_description = open("README.rst").read(... | Fix packaging (again) - 1.0b9 | Fix packaging (again) - 1.0b9
| Python | mit | pinax/django-waitinglist,pinax/django-waitinglist | ---
+++
@@ -3,7 +3,7 @@
setup(
name = "django-waitinglist",
- version = "1.0b8",
+ version = "1.0b9",
author = "Brian Rosner",
author_email = "brosner@gmail.com",
description = "a Django waiting list app for running a private beta with cohorts support",
@@ -11,6 +11,7 @@
license = "M... |
1423085230a010b5a96ce9eaf63abeb9e5af58a4 | setup.py | setup.py | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file, used for the long desc.
def read(fn):
return open(os.path.join(os.path.dirname(__file__), fn)).read()
setup(
name='planet_alignment',
version='1.0.0',
... | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Utility function to read the README file, used for the long desc.
def read(fn):
return open(os.path.join(os.path.dirname(__file__), fn)).read()
setup(
name='planet_alignment',
version='1.0.0',
... | Add a data_files option to install the config and plugin files in /etc/planet_alignment. | Add a data_files option to install the config and plugin files in /etc/planet_alignment.
| Python | mit | paulfanelli/planet_alignment | ---
+++
@@ -38,5 +38,8 @@
'planet_alignment = planet_alignment.__main__:main'
]
},
- include_package_data=True
+ include_package_data=True,
+ data_files=[
+ ('/etc/planet_alignment', ['align1.py', 'align2.py', 'system.yaml'])
+ ]
) |
3339b9e865adf7a2fcfc27d3c9390724ca82086d | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.5.2',
keywords="django bootstrap pagination templatetag",
author... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('README.rst', 'rb') as readme:
readme_text = readme.read().decode('utf-8')
setup(
name='django-bootstrap-pagination',
version='1.6.0',
keywords="django bootstrap pagination templatetag",
author... | Prepare for 1.6.0 on pypi | Prepare for 1.6.0 on pypi
| Python | mit | jmcclell/django-bootstrap-pagination,jmcclell/django-bootstrap-pagination | ---
+++
@@ -8,7 +8,7 @@
setup(
name='django-bootstrap-pagination',
- version='1.5.2',
+ version='1.6.0',
keywords="django bootstrap pagination templatetag",
author=u'Jason McClellan',
author_email='jason@jasonmccllelan.net',
@@ -20,9 +20,21 @@
zip_safe=False,
include_package_dat... |
3b590e0a9719a9cbec6b75a591fa92f5178cdc4e | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
version = '0.1.2b2'
requires = [
'eduid-common[webapp]>=0.2.1b7',
'Flask==0.10.1',
]
test_requires = [
'WebTest==2.0.18',
'mock==1.0.1',
]
testing_extras = test_requires + [
'nose==1.2.1',
'coverage==3.6',
'no... | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
version = '0.1.2b3'
requires = [
'eduid-common[webapp]>=0.2.1b9',
'Flask==0.10.1',
]
test_requires = [
'WebTest==2.0.18',
'mock==1.0.1',
]
testing_extras = test_requires + [
'nose==1.2.1',
'coverage==3.6',
'no... | Bump version and eduid_common requirement | Bump version and eduid_common requirement
| Python | bsd-3-clause | SUNET/eduid-webapp,SUNET/eduid-webapp,SUNET/eduid-webapp | ---
+++
@@ -3,10 +3,10 @@
from setuptools import setup, find_packages
import sys
-version = '0.1.2b2'
+version = '0.1.2b3'
requires = [
- 'eduid-common[webapp]>=0.2.1b7',
+ 'eduid-common[webapp]>=0.2.1b9',
'Flask==0.10.1',
]
|
e00ebeaa185ed2fc50c68eddd282194d8633a89c | setup.py | setup.py | __doc__ = """
Manipulate audio with an simple and easy high level interface.
See the README file for details, usage info, and a list of gotchas.
"""
from setuptools import setup
setup(
name='pydub',
version='0.16.3',
author='James Robert',
author_email='jiaaro@gmail.com',
description='Manipulate ... | __doc__ = """
Manipulate audio with an simple and easy high level interface.
See the README file for details, usage info, and a list of gotchas.
"""
from setuptools import setup
setup(
name='pydub',
version='0.16.4',
author='James Robert',
author_email='jiaaro@gmail.com',
description='Manipulate ... | Increment version for 24-bit wav bug fix | Increment version for 24-bit wav bug fix | Python | mit | jiaaro/pydub | ---
+++
@@ -8,7 +8,7 @@
setup(
name='pydub',
- version='0.16.3',
+ version='0.16.4',
author='James Robert',
author_email='jiaaro@gmail.com',
description='Manipulate audio with an simple and easy high level interface', |
41570584ec50017d86e319be132420b81feed671 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name="htmlgen",
version="2.0.0",
description="HTML 5 Generator",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Sebastian Rittau",
author_email="srittau@rittau.biz",
url="https... | #!/usr/bin/env python
from setuptools import setup
setup(
name="htmlgen",
version="2.0.0",
description="HTML 5 Generator",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Sebastian Rittau",
author_email="srittau@rittau.biz",
url="https... | Add Python 3.8 to trove classifiers | Add Python 3.8 to trove classifiers
| Python | mit | srittau/python-htmlgen | ---
+++
@@ -25,6 +25,7 @@
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Text Processing :: Mark... |
5d9c602a07e329f135c8e1f4c0acc0cba0efd148 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.md') as readme_file:
readme = readme_file.read()
with open('HISTORY.md') as history_file:
history = history_file.read().replace('.. :changelog:', ''... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.md') as readme_file:
readme = readme_file.read()
with open('HISTORY.md') as history_file:
history = history_file.read().replace('.. :changelog:', ''... | REmove python 3 (not ready yet) | REmove python 3 (not ready yet)
| Python | isc | marcoslhc/xyvio,marcoslhc/xyvio,marcoslhc/xyvio | ---
+++
@@ -48,9 +48,6 @@
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.... |
c9f8b832761525c2f04a71515b743be87f2e4a58 | setup.py | setup.py | from distutils.core import setup
setup(name='q', version='2.3', py_modules=['q'],
description='Quick-and-dirty debugging output for tired programmers',
author='Ka-Ping Yee', author_email='ping@zesty.ca',
license='Apache License 2.0',
url='http://github.com/zestyping/q', classifiers=[
'... | from distutils.core import setup
setup(name='q', version='2.4', py_modules=['q'],
description='Quick-and-dirty debugging output for tired programmers',
author='Ka-Ping Yee', author_email='ping@zesty.ca',
license='Apache License 2.0',
url='http://github.com/zestyping/q', classifiers=[
'... | Advance PyPI version to 2.4. | Advance PyPI version to 2.4.
| Python | apache-2.0 | zestyping/q | ---
+++
@@ -1,5 +1,5 @@
from distutils.core import setup
-setup(name='q', version='2.3', py_modules=['q'],
+setup(name='q', version='2.4', py_modules=['q'],
description='Quick-and-dirty debugging output for tired programmers',
author='Ka-Ping Yee', author_email='ping@zesty.ca',
license='Apache L... |
699cd767551744adf3fcff4862ed754496782526 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='clize',
version='3.0a2',
description='Command-line argument parsing for Python, without the effort',
license='MIT',
url='https://github.com/epsy/clize',
author='Yann Kaiser',
author_email='kaiser.yann@gmail.com',
install_r... | #!/usr/bin/env python
from setuptools import setup
setup(
name='clize',
version='3.0a2',
description='Command-line argument parsing for Python, without the effort',
license='MIT',
url='https://github.com/epsy/clize',
author='Yann Kaiser',
author_email='kaiser.yann@gmail.com',
install_r... | Fix "Python :: 2" being listed twice in pypi classifiers | Fix "Python :: 2" being listed twice in pypi classifiers
| Python | mit | epsy/clize | ---
+++
@@ -26,7 +26,7 @@
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 2",
+ "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2"... |
da32f549ef882680484a20084d5cfa5f7106f5e7 | setup.py | setup.py | from setuptools import setup
description = 'RDFLib SPARQLStore and SPARQLUpdateStore implementation for VIVO.'
setup(
name = 'vivo-rdflib-sparqlstore',
version = '0.0.1',
url = 'https://github.com/lawlesst/rdflib-vivo-sparqlstore',
author = 'Ted Lawless',
author_email = 'lawlesst@gmail.com',
p... | from setuptools import setup
description = 'RDFLib SPARQLStore and SPARQLUpdateStore implementation for VIVO.'
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name = 'vivo-rdflib-sparqlstore',
version = '0.0.1',
url = 'https://github.com/lawlesst/rdflib-vivo-sparqlstore',
... | Read requirements. Add vivoUpdate to modules. | Read requirements. Add vivoUpdate to modules.
| Python | mit | lawlesst/vivo-rdflib-sparqlstore | ---
+++
@@ -1,6 +1,9 @@
from setuptools import setup
description = 'RDFLib SPARQLStore and SPARQLUpdateStore implementation for VIVO.'
+
+with open('requirements.txt') as f:
+ required = f.read().splitlines()
setup(
name = 'vivo-rdflib-sparqlstore',
@@ -8,13 +11,10 @@
url = 'https://github.com/law... |
9a0adb5fc4d07aa4ec4d725e1ddc9b651e622fce | setup.py | setup.py | """Model-like encapsulation of big dict structure (like JSON data)."""
from setuptools import setup, find_packages
setup(
name='barrel',
version='0.1.3',
description='python interface to reaktor API',
long_description=__doc__,
license='BSD',
author='txtr web team',
author_email='web-dev@tx... | """Model-like encapsulation of big dict structure (like JSON data)."""
from setuptools import setup, find_packages
setup(
name='barrel',
version='0.2.0',
description='Python stores for JSON data encapsulation',
long_description=__doc__,
license='BSD',
author='txtr web team',
author_email='... | Bump version to 0.2.0 and update description. | Bump version to 0.2.0 and update description.
| Python | bsd-2-clause | storecast/barrel | ---
+++
@@ -4,8 +4,8 @@
setup(
name='barrel',
- version='0.1.3',
- description='python interface to reaktor API',
+ version='0.2.0',
+ description='Python stores for JSON data encapsulation',
long_description=__doc__,
license='BSD',
author='txtr web team', |
b692e57988b279c8d2c4f88bf3995bc7b8bde355 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
extra = {}
if sys.version_info >= (3, 0):
extra["use_2to3"] = True
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.7.0',
description='Utility for installin... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
extra = {}
if sys.version_info >= (3, 0):
extra["use_2to3"] = True
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.7.0',
description='Utility for installin... | Update dodge.py for better support for versions of Python other than 2.7 | Update dodge.py for better support for versions of Python other than 2.7
| Python | bsd-2-clause | mwilliamson/whack | ---
+++
@@ -27,7 +27,7 @@
"catchy>=0.2.0,<0.3",
"beautifulsoup4>=4.1.3,<5",
"spur.local>=0.3.6,<0.4",
- "dodge>=0.1.4,<0.2",
+ "dodge>=0.1.5,<0.2",
"six>=1.4.1,<2.0"
],
**extra |
a1154d3c9788a6cbaeac4245d916f65dbd9adf12 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import restless
setup(
name='restless',
version=restless.VERSION,
description='A lightweight REST miniframework for Python.',
author='Daniel Lindsley',
author_email='daniel@toastdriven.com',
url='http://github.com/toas... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
import restless
setup(
name='restless',
version=restless.VERSION,
description='A lightweight REST miniframework for Python.',
author='Daniel Lindsley',
author_email='daniel@toastdriven.com',
url='http://github.com/toas... | Add python_requires to help pip | Add python_requires to help pip
| Python | bsd-3-clause | toastdriven/restless | ---
+++
@@ -26,6 +26,7 @@
'mock',
'tox',
],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment', |
57d6bcee40fe2df5ce6c21d93c26f34d7fdad672 | setup.py | setup.py | from setuptools import setup, find_packages
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('ascii')
func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
codecs.register(func)
setup(
... | from setuptools import setup, find_packages
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('ascii')
func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
codecs.register(func)
setup(
... | Add cookiecutter to install reqs | Add cookiecutter to install reqs
| Python | mit | Empiria/matador | ---
+++
@@ -29,7 +29,7 @@
packages=find_packages(),
setup_requires=['pytest-runner'],
tests_require=['pytest'],
- install_requires=['pyyaml', 'dulwich', 'openpyxl'],
+ install_requires=['pyyaml', 'dulwich', 'openpyxl', 'cookiecutter'],
license='The MIT License (MIT)',
description='Chang... |
33563cdda68bc12fc4038128f7833d837bd76af3 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='tst',
version='0.9a18',
description='TST Student Testing',
url='http://github.com/daltonserey/tst',
author='Dalton Serey',
author_email='daltonserey@gmail.com',
license='MIT',
packages=find_packages(),
include_packa... | from setuptools import setup, find_packages
setup(name='tst',
version='0.9a18',
description='TST Student Testing',
url='http://github.com/daltonserey/tst',
author='Dalton Serey',
author_email='daltonserey@gmail.com',
license='MIT',
packages=find_packages(),
include_packa... | Add cache dependency to improve web requests | Add cache dependency to improve web requests
Also add filecache optional to control locks.
| Python | agpl-3.0 | daltonserey/tst,daltonserey/tst | ---
+++
@@ -25,7 +25,8 @@
],
install_requires=[
'pyyaml',
- 'requests'
+ 'requests',
+ 'cachecontrol[filecache]'
],
entry_points = {
'console_scripts': [ |
015d536e591d5af7e93f299e84504fe8a17f76b3 | tests.py | tests.py | import logging
import unittest
from StringIO import StringIO
class TestArgParsing(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
from script import parseargs
self.parseargs = parseargs
def test_parseargs(self):
opts, args = self.parseargs(["foo"])
... | import logging
import unittest
from StringIO import StringIO
class TestArgParsing(unittest.TestCase):
def setUp(self):
unittest.TestCase.setUp(self)
from script import parseargs
self.parseargs = parseargs
def test_parseargs(self):
opts, args = self.parseargs(["foo"])
... | Test that log messages go to stderr. | Test that log messages go to stderr.
| Python | isc | whilp/python-script,whilp/python-script | ---
+++
@@ -51,3 +51,4 @@
self.assertEqual(result, None)
self.assertEqual(len(self.buffer), 1)
self.assertEqual(self.buffer[0].msg, "Ready to run")
+ self.assertTrue("Ready to run" in self.err.getvalue()) |
bc6001d6c25bdb5d83830e5a65fe5aea9fc1eb99 | ume/cmd.py | ume/cmd.py | # -*- coding: utf-8 -*-
import logging as l
import argparse
from ume.utils import (
save_mat,
dynamic_load,
)
def parse_args():
p = argparse.ArgumentParser(
description='CLI interface UME')
p.add_argument('--config', dest='inifile', default='config.ini')
subparsers = p.add_subparsers(
... | # -*- coding: utf-8 -*-
import logging as l
import argparse
import os
from ume.utils import (
save_mat,
dynamic_load,
)
def parse_args():
p = argparse.ArgumentParser(
description='CLI interface UME')
p.add_argument('--config', dest='inifile', default='config.ini')
subparsers = p.add_subp... | Add init function to create directories | Add init function to create directories
| Python | mit | smly/ume,smly/ume,smly/ume,smly/ume | ---
+++
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import logging as l
import argparse
+import os
from ume.utils import (
save_mat,
@@ -19,6 +20,7 @@
f_parser = subparsers.add_parser('feature')
f_parser.add_argument('-n', '--name', type=str, required=True)
+ i_parser = subparsers.add_parser('in... |
1b75fe13249eba8d951735ad422dc512b1e28caf | test/test_all_stores.py | test/test_all_stores.py | import store_fixture
import groundstation.store
class TestGitStore(store_fixture.StoreTestCase):
storeClass = groundstation.store.git_store.GitStore
| import os
import store_fixture
import groundstation.store
class TestGitStore(store_fixture.StoreTestCase):
storeClass = groundstation.store.git_store.GitStore
def test_creates_required_dirs(self):
for d in groundstation.store.git_store.GitStore.required_dirs:
path = os.path.join(self.pat... | Add testcase for database initialization | Add testcase for database initialization
| Python | mit | richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation | ---
+++
@@ -1,6 +1,14 @@
+import os
+
import store_fixture
import groundstation.store
class TestGitStore(store_fixture.StoreTestCase):
storeClass = groundstation.store.git_store.GitStore
+
+ def test_creates_required_dirs(self):
+ for d in groundstation.store.git_store.GitStore.required_dirs:
+ ... |
2f9a4029e909f71539f3b7326b867e27386c3378 | tests/interface_test.py | tests/interface_test.py | import unittest
import aiozmq
class ZmqTransportTests(unittest.TestCase):
def test_interface(self):
tr = aiozmq.ZmqTransport()
self.assertRaises(NotImplementedError, tr.write, [b'data'])
self.assertRaises(NotImplementedError, tr.abort)
self.assertRaises(NotImplementedError, tr.get... | import unittest
import aiozmq
class ZmqTransportTests(unittest.TestCase):
def test_interface(self):
tr = aiozmq.ZmqTransport()
self.assertRaises(NotImplementedError, tr.write, [b'data'])
self.assertRaises(NotImplementedError, tr.abort)
self.assertRaises(NotImplementedError, tr.get... | Add missing tests for interfaces | Add missing tests for interfaces
| Python | bsd-2-clause | MetaMemoryT/aiozmq,claws/aiozmq,asteven/aiozmq,aio-libs/aiozmq | ---
+++
@@ -12,6 +12,8 @@
self.assertRaises(NotImplementedError, tr.setsockopt, 1, 2)
self.assertRaises(NotImplementedError, tr.set_write_buffer_limits)
self.assertRaises(NotImplementedError, tr.get_write_buffer_size)
+ self.assertRaises(NotImplementedError, tr.pause_reading)
+ ... |
5b3d26b6c9256f869d3bc08dfa00bf9b8de58f85 | tests/test_cli_parse.py | tests/test_cli_parse.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Dominik Gresch <greschd@gmx.ch>
import os
import pytest
import tempfile
from click.testing import CliRunner
import tbmodels
from tbmodels._cli import cli
from parameters import SAMPLES_DIR
@pytest.mark.parametrize('prefix', ['silicon', 'bi'])
def test_cli_p... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author: Dominik Gresch <greschd@gmx.ch>
import os
import pytest
import tempfile
from click.testing import CliRunner
import tbmodels
from tbmodels._cli import cli
from parameters import SAMPLES_DIR
@pytest.mark.parametrize('prefix', ['silicon', 'bi'])
def test_cli_p... | Change from TemporaryDirectory to NamedTemporaryFile | Change from TemporaryDirectory to NamedTemporaryFile
| Python | apache-2.0 | Z2PackDev/TBmodels,Z2PackDev/TBmodels | ---
+++
@@ -16,9 +16,8 @@
@pytest.mark.parametrize('prefix', ['silicon', 'bi'])
def test_cli_parse(models_equal, prefix):
runner = CliRunner()
- with tempfile.TemporaryDirectory() as d:
- out_file = os.path.join(d, 'model_out.hdf5')
- runner.invoke(cli, ['parse', '-o', out_file, '-f', SAMPLES_... |
b577abd12524979ab3cd76c39242713ff78ea011 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
this_dir = os.path.abspath(os.path.dirname(__file__))
VERSIONFILE = os.path.join(this_dir, "textx", "__init__.py")
VERSION = None
for line in open(VERSIONFILE, "r").readlines():
if line.startswith('__version__'):
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup
this_dir = os.path.abspath(os.path.dirname(__file__))
VERSIONFILE = os.path.join(this_dir, "textx", "__init__.py")
VERSION = None
for line in open(VERSIONFILE, "r").readlines():
if line.startswith('__version__'):
... | Remove check if wheel package is installed | Remove check if wheel package is installed
| Python | mit | igordejanovic/textX,igordejanovic/textX,igordejanovic/textX | ---
+++
@@ -16,9 +16,6 @@
raise RuntimeError('No version defined in textx.__init__.py')
if sys.argv[-1].startswith('publish'):
- if os.system("pip list | grep wheel"):
- print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
- sys.exit()
if os.system("pip list | grep twine"):
... |
6e1d9bcfaf74b7d41b22147b9ba5e861543f6c90 | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "cmsplugin-filer",
version = "0.9.4pbs3",
url = 'http://github.com/stefanfoulis/cmsplugin-filer',
license = 'BSD',
description = "django-cms p... | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "cmsplugin-filer",
version = "0.9.4pbs4",
url = 'http://github.com/stefanfoulis/cmsplugin-filer',
license = 'BSD',
description = "django-cms p... | Bump version since there are commits since last tag. | Bump version since there are commits since last tag. | Python | bsd-3-clause | pbs/cmsplugin-filer,pbs/cmsplugin-filer,pbs/cmsplugin-filer,pbs/cmsplugin-filer | ---
+++
@@ -6,7 +6,7 @@
setup(
name = "cmsplugin-filer",
- version = "0.9.4pbs3",
+ version = "0.9.4pbs4",
url = 'http://github.com/stefanfoulis/cmsplugin-filer',
license = 'BSD',
description = "django-cms plugins for django-filer", |
bed1bb8dd9964230a621d065ed5d1a63f4634486 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2018 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | Switch to pycryptodome rather than pycrypto | Switch to pycryptodome rather than pycrypto
| Python | apache-2.0 | google/python-lakeside | ---
+++
@@ -43,7 +43,7 @@
],
install_requires=[
"protobuf",
- "pycrypto",
+ "pycryptodome",
"requests",
]
) |
1c5dbc45213262051ff2472cc0454273d88b82d0 | setup.py | setup.py | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Endpoints Proto Datastore API',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleCloudPlatform/endpoi... | #!/usr/bin/env python
import setuptools
import os
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/GoogleClo... | Change desc to clearly advertise that this is a library to work with Google Cloud Endpoints | Change desc to clearly advertise that this is a library to work with
Google Cloud Endpoints
| Python | apache-2.0 | jbergant/endpoints-proto-datastore,mnieper/endpoints-proto-datastore,maxandron/endpoints-proto-datastore,dhermes/endpoints-proto-datastore,GoogleCloudPlatform/endpoints-proto-datastore | ---
+++
@@ -6,7 +6,7 @@
setuptools.setup(
name='endpoints-proto-datastore',
version='0.9.0',
- description='Endpoints Proto Datastore API',
+ description='Google Cloud Endpoints Proto Datastore Library',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url... |
6fd86d15d896a5fcfc3d013cb9be47405be6491b | setup.py | setup.py | from setuptools import setup
setup(
name="teamscale-client",
version="3.1.1",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | from setuptools import setup
setup(
name="teamscale-client",
version="3.2.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."),
license="Apache",
keywords="rest api teamscale",
url="https://... | Update Client Version to 3.2 | Update Client Version to 3.2
| Python | apache-2.0 | cqse/teamscale-client-python | ---
+++
@@ -2,7 +2,7 @@
setup(
name="teamscale-client",
- version="3.1.1",
+ version="3.2.0",
author="Thomas Kinnen - CQSE GmbH",
author_email="kinnen@cqse.eu",
description=("A simple service client to interact with Teamscale's REST API."), |
2ebb6b2f4c2f0008355ae0eb268cf156a6eb686e | setup.py | setup.py | #!/usr/bin/env python
import sys, os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
# Hack to prevent "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when setup.py exits
# (see http://www.eby-sarna.com/pi... | #!/usr/bin/env python
import sys, os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
# Hack to prevent "TypeError: 'NoneType' object is not callable" error
# in multiprocessing/util.py _exit_function when setup.py exits
# (see http://www.eby-sarna.com/pi... | Change "Development Status" classifier to "5 - Production/Stable" | Change "Development Status" classifier to "5 - Production/Stable" | Python | bsd-3-clause | gasman/Willow,torchbox/Willow,gasman/Willow,torchbox/Willow | ---
+++
@@ -29,7 +29,7 @@
include_package_data=True,
license='BSD',
classifiers=[
- 'Development Status :: 2 - Pre-Alpha',
+ 'Development Status :: 5 - Production/Stable',
'Topic :: Multimedia :: Graphics',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
... |
ec7aab6caccab6fa14024adcdbcbbe1bed6ba346 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'cityhall',
packages = ['cityhall'], # this must be the same as the name above
version = '0.0.10',
description = 'A library for accessing City Hall... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'cityhall',
packages = ['cityhall'], # this must be the same as the name above
version = '0.0.10',
description = 'A library for accessing City Hall... | Update package to have the tag/release match | Update package to have the tag/release match
| Python | agpl-3.0 | f00f-nyc/cityhall-python | ---
+++
@@ -15,7 +15,7 @@
author = 'Alex Popa',
author_email = 'alex.popa@digitalborderlands.com',
url = 'https://github.com/f00f-nyc/cityhall-python',
- download_url = 'https://codeload.github.com/f00f-nyc/cityhall-python/legacy.tar.gz/v0.0.6',
+ download_url = 'https://codeload.github.com/f00f-... |
9c84f8f759963b331204095fda9be881862440da | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='example_ppp_module',
version='0.1',
description='Example python module for the PPP.',
url='https://github.com/ProjetPP',
author='Valentin Lorentz',
author_email='valentin.lorentz+ppp@ens-lyon.org',
license='MIT... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='example_ppp_module',
version='0.1',
description='Example python module for the PPP.',
url='https://github.com/ProjetPP',
author='Valentin Lorentz',
author_email='valentin.lorentz+ppp@ens-lyon.org',
license='MIT... | Mark dependencies on recent core and datamodel versions. | Mark dependencies on recent core and datamodel versions.
| Python | mit | ProjetPP/ExamplePPPModule-Python,ProjetPP/ExamplePPPModule-Python | ---
+++
@@ -24,8 +24,8 @@
'Topic :: Software Development :: Libraries',
],
install_requires=[
- 'ppp_datamodel',
- 'ppp_core',
+ 'ppp_datamodel>=0.2',
+ 'ppp_core>=0.2',
],
packages=[
'example_ppp_module', |
20eebb23a0aafd03e62b91fdba154518bb3898e8 | setup.py | setup.py | from setuptools import setup, find_packages
package = 'bsdetector'
version = '0.1'
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
# class PostDevelopCommand(develop):
# """Post-installation for development mode."""
# def run(self):
#... | from setuptools import setup, find_packages
package = 'bsdetector'
version = '0.1'
from setuptools import setup
from setuptools.command.develop import develop
from setuptools.command.install import install
# class PostDevelopCommand(develop):
# """Post-installation for development mode."""
# def run(self):
#... | Update to remove requirement for unused 'lexicons' dir | Update to remove requirement for unused 'lexicons' dir
| Python | mit | cjhutto/bsd,cjhutto/bsd,cjhutto/bsd | ---
+++
@@ -24,7 +24,7 @@
print(find_packages('bsdetector'))
setup(name=package,
version=version,
- packages=['bsdetector', 'lexicons', 'additional_resources'],
+ packages=['bsdetector', 'additional_resources'],
install_requires=['decorator', 'requests', 'textstat', 'vaderSentiment',
... |
f958d337c171dea92237d2f7ef84618756db6f46 | setup.py | setup.py | from distutils.core import setup
setup(name='pyresttest',
version='1.0b',
description='Python RESTful API Testing & Microbenchmarking Tool',
long_description='Python RESTful API Testing & Microbenchmarking Tool',
maintainer='Sam Van Oort',
maintainer_email='acetonespam@gmail.com',
url='https://... | from distutils.core import setup
setup(name='pyresttest',
version='1.0',
description='Python RESTful API Testing & Microbenchmarking Tool',
long_description='Python RESTful API Testing & Microbenchmarking Tool',
maintainer='Sam Van Oort',
maintainer_email='acetonespam@gmail.com',
url='https://g... | Revert "Set version to b for beta" | Revert "Set version to b for beta"
This reverts commit db3395cc44f6b18d59a06593ad48f14e4c99ad05.
| Python | apache-2.0 | svanoort/pyresttest,TimYi/pyresttest,netjunki/pyresttest,janusnic/pyresttest,MorrisJobke/pyresttest,sunyanhui/pyresttest,sunyanhui/pyresttest,alazaro/pyresttest,wirewit/pyresttest,alazaro/pyresttest,suvarnaraju/pyresttest,svanoort/pyresttest,MorrisJobke/pyresttest,holdenweb/pyresttest,TimYi/pyresttest,holdenweb/pyrestt... | ---
+++
@@ -1,7 +1,7 @@
from distutils.core import setup
setup(name='pyresttest',
- version='1.0b',
+ version='1.0',
description='Python RESTful API Testing & Microbenchmarking Tool',
long_description='Python RESTful API Testing & Microbenchmarking Tool',
maintainer='Sam Van Oort', |
ad29d682af36f3f27144fefd1cf72d869106ac46 | setup.py | setup.py | from setuptools import setup
setup(
name='urlwait',
version='1.0',
description='A CLI utility for blocking until a service is listening',
long_description=open('README.rst').read(),
author='Paul McLanahan',
author_email='paul@mclanahan.net',
license='MIT',
py_modules=['urlwait'],
e... | from setuptools import setup
setup(
name='urlwait',
version='1.0',
description='A CLI utility for blocking until a service is listening',
long_description=open('README.rst').read(),
author='Paul McLanahan',
author_email='paul@mclanahan.net',
license='MIT',
py_modules=['urlwait'],
e... | Upgrade the Development Status classifier to stable | Upgrade the Development Status classifier to stable
[skip ci]
| Python | mit | pmclanahan/urlwait,pmclanahan/urlwait | ---
+++
@@ -15,7 +15,7 @@
},
url='https://github.com/pmac/urlwait',
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: O... |
78edc5479212af75a412cf321d321283978a6d79 | setup.py | setup.py | from distutils.core import setup
setup(name='nikeplus',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee',
author_email='durdenmisc@gmail.com',
url='http://www.lukelee.me',
packages=['nikeplus'],
entry_points={
"console_scripts": [
... | from distutils.core import setup
setup(name='nikeplusapi',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee',
author_email='durdenmisc@gmail.com',
url='http://www.lukelee.me',
packages=['nikeplus'],
entry_points={
"console_scripts": [
... | Change package name for pypi, nikeplus was taken :( | Change package name for pypi, nikeplus was taken :(
| Python | mit | durden/nikeplus | ---
+++
@@ -1,6 +1,6 @@
from distutils.core import setup
-setup(name='nikeplus',
+setup(name='nikeplusapi',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee', |
ff77e5e6323b05260c89ee735bfd6dc083211def | setup.py | setup.py | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='noseprogressive',
version='0.1',
description='Nose plugin to show progress bar and tracebacks during tests',
long_description="""The philosophy of nosep... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='nose-progressive',
version='0.1',
description='Nose plugin to show progress bar and tracebacks during tests',
long_description="""The philosophy of nose... | Tweak package name to conform to nose's built-in plugins' convention. | Tweak package name to conform to nose's built-in plugins' convention.
| Python | mit | veo-labs/nose-progressive,olivierverdier/nose-progressive,erikrose/nose-progressive,pmclanahan/pytest-progressive | ---
+++
@@ -7,7 +7,7 @@
extra_setup['use_2to3'] = True
setup(
- name='noseprogressive',
+ name='nose-progressive',
version='0.1',
description='Nose plugin to show progress bar and tracebacks during tests',
long_description="""The philosophy of noseprogressive is to get useful information ... |
70ab0f7bb46318330b5e75be107bb380e96b7716 | setup.py | setup.py | from setuptools import setup
setup(
name='chainpoint', version='1.0',
description='Federated server for building blockchain notarized Merkle trees.',
author='Shawn Wilkinson', author_email='shawn+chainpoint@storj.io',
url='http://storj.io',
# Uncomment one or more lines below in the install_requi... | from setuptools import setup
setup(
name='chainpoint', version='1.0',
description='Federated server for building blockchain notarized Merkle trees.',
author='Shawn Wilkinson', author_email='shawn+chainpoint@storj.io',
# Uncomment one or more lines below in the install_requires section
# for the ... | Remove Storj and Trigger Travis | Remove Storj and Trigger Travis | Python | mit | isghe/chainpoint | ---
+++
@@ -4,7 +4,6 @@
name='chainpoint', version='1.0',
description='Federated server for building blockchain notarized Merkle trees.',
author='Shawn Wilkinson', author_email='shawn+chainpoint@storj.io',
- url='http://storj.io',
# Uncomment one or more lines below in the install_requires s... |
f66f4858816646f8f070910de63e11064a69d4e0 | setup.py | setup.py | from setuptools import setup, find_packages
import re
#pattern = re.compile(r'^VERSION=(.+)$')
#version = None
#for line in open('Makefile'):
# match = pattern.match(line)
# if match is None:
# continue
# version = match.group(1)
# break
#if version is None:
# raise EnvironmentError, '/^VERSION=/... | from setuptools import setup, find_packages
import re
#pattern = re.compile(r'^VERSION=(.+)$')
#version = None
#for line in open('Makefile'):
# match = pattern.match(line)
# if match is None:
# continue
# version = match.group(1)
# break
#if version is None:
# raise EnvironmentError, '/^VERSION=/... | Include scripts in the PyPI package. | Include scripts in the PyPI package.
| Python | bsd-2-clause | AndBicScadMedia/blueprint,nginxxx/blueprint,volcomism/blueprint,AndBicScadMedia/blueprint,nginxxx/blueprint,devstructure/blueprint,volcomism/blueprint,volcomism/blueprint,AndBicScadMedia/blueprint,devstructure/blueprint,nginxxx/blueprint | ---
+++
@@ -20,5 +20,11 @@
author_email='richard@devstructure.com',
url='http://devstructure.com/',
packages=find_packages(),
+ scripts=['bin/blueprint',
+ 'bin/blueprint-apply',
+ 'bin/blueprint-create',
+ 'bin/blueprint-destroy',
+ 'b... |
3de90ff1f33d05d30e295279e7ad4cdd0e6bbc9b | setup.py | setup.py | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info <= (2, 4):
error = 'Requires Python Version 2.5 or above... exiting.'
print >> sys.stderr, error
sys.exit(1)
requirements = [
'requests',
]
setup(name='googlemaps',
version='2... | import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info <= (2, 4):
error = 'Requires Python Version 2.5 or above... exiting.'
print >> sys.stderr, error
sys.exit(1)
requirements = [
'requests',
]
setup(name='googlemaps',
version='2... | Change from planning to in beta | Change from planning to in beta
| Python | apache-2.0 | garydonovan/google-maps-services-python,edwardsamuel/google-maps-services-python,cmontezano/google-maps-services-python,ambrozic/google-maps-services-python,quevedin/google-maps-services-python,codeAshu/google-maps-services-python,Scronker/google-maps-services-python,googlemaps/google-maps-services-python,Prindle19/goo... | ---
+++
@@ -27,7 +27,7 @@
platforms='Posix; MacOS X; Windows',
setup_requires=requirements,
install_requires=requirements,
- classifiers=['Development Status :: 1 - Planning',
+ classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
... |
45ec0f85bf4b244738220b920dc2046183ba707e | setup.py | setup.py | """
Package configuration
"""
# pylint:disable=no-name-in-module, import-error
from distutils.core import setup
from setuptools import find_packages
setup(
name='IXWSAuth',
version='0.1.1',
author='Infoxchanhe Australia dev team',
author_email='devs@infoxchange.net.au',
packages=find_packages(),
... | """
Package configuration
"""
# pylint:disable=no-name-in-module, import-error
from distutils.core import setup
from setuptools import find_packages
setup(
name='IXWSAuth',
version='0.1.1',
author='Infoxchanhe Australia dev team',
author_email='devs@infoxchange.net.au',
packages=find_packages(),
... | Downgrade tastypie to test-only dependency | Downgrade tastypie to test-only dependency
| Python | mit | infoxchange/ixwsauth | ---
+++
@@ -17,11 +17,11 @@
long_description=open('README').read(),
install_requires=(
'Django >= 1.4.0',
- 'django-tastypie',
'IXDjango >= 0.1.1',
),
tests_require=(
'aloe',
+ 'django-tastypie',
'mock',
'pep8',
'pylint', |
b57a0a89cd2596174300319ee0a83490ad987177 | setup.py | setup.py | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | from os import path
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(path.join(pa... | Add Python 3.11 support as of version 1.10.0 | Add Python 3.11 support as of version 1.10.0
| Python | mit | andrasmaroy/pconf | ---
+++
@@ -12,7 +12,7 @@
setup(
name="pconf",
- version="1.9.1",
+ version="1.10.0",
author="Andras Maroy",
author_email="andras@maroy.hu",
description=("Hierarchical python configuration with files, environment variables, command-line arguments."),
@@ -31,7 +31,8 @@
'Programmin... |
d8a39009565ca8aff4b6fbddae5d2ef7aada7213 | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="feedinlib",
version="0.1.0rc2",
description="Creating time series from pv or wind power plants.",
url="http://github.com/oemof/feedinlib",
author="oemof dev... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name="feedinlib",
version="0.1.0rc2",
description="Creating time series from pv or wind power plants.",
url="http://github.com/oemof/feedinlib",
author="oemof dev... | Add tables package to run pvlib modelchain with default parameters | Add tables package to run pvlib modelchain with default parameters
| Python | mit | oemof/feedinlib | ---
+++
@@ -29,6 +29,7 @@
"tables",
"windpowerlib >= 0.2.0",
"xarray >= 0.12.0",
+ "tables"
],
extras_require={
"dev": [ |
42d765c8dbcc099f7bd2ac77485a0b5351a1b0a7 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.3',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | #!/usr/bin/env python
from setuptools import setup,find_packages
METADATA = dict(
name='django-socialregistration',
version='0.4.3',
author='Alen Mujezinovic',
author_email='alen@caffeinehit.com',
description='Django application enabling registration through a variety of APIs',
long_description... | Remove django requirement to prevent version conflicts when using pip | Remove django requirement to prevent version conflicts when using pip
| Python | mit | aditweb/django-socialregistration,bopo/django-socialregistration,lgapontes/django-socialregistration,0101/django-socialregistration,mark-adams/django-socialregistration,brodie/django-socialregistration,mark-adams/django-socialregistration,minlex/django-socialregistration,flashingpumpkin/django-socialregistration,kapt/d... | ---
+++
@@ -10,7 +10,7 @@
long_description=open('README.rst').read(),
url='http://github.com/flashingpumpkin/django-socialregistration',
keywords='django facebook twitter oauth openid registration',
- install_requires=['django', 'oauth2', 'python-openid'],
+ install_requires=['oauth2', 'python-op... |
90ba2679c712e87ac750affdc389bed1de0a422a | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='l1',
version='0.1',
description='L1',
author='Bugra Akyildiz',
author_email='vbugra@gmail.com',
url='bugra.github.io',
packages=['l1'],
install_requires=['pandas==1.1.0',
'cvxopt==1.2.5',
... | #!/usr/bin/env python
from setuptools import setup
setup(name='l1',
version='0.1',
description='L1',
author='Bugra Akyildiz',
author_email='vbugra@gmail.com',
url='bugra.github.io',
packages=['l1'],
install_requires=['pandas==1.1.1',
'cvxopt==1.2.5',
... | Bump pandas from 1.1.0 to 1.1.1 | Bump pandas from 1.1.0 to 1.1.1
Bumps [pandas](https://github.com/pandas-dev/pandas) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/pandas-dev/pandas/releases)
- [Changelog](https://github.com/pandas-dev/pandas/blob/master/RELEASE.md)
- [Commits](https://github.com/pandas-dev/pandas/compare/v1.1.0...v1.1.1)... | Python | apache-2.0 | bugra/l1 | ---
+++
@@ -9,7 +9,7 @@
author_email='vbugra@gmail.com',
url='bugra.github.io',
packages=['l1'],
- install_requires=['pandas==1.1.0',
+ install_requires=['pandas==1.1.1',
'cvxopt==1.2.5',
'statsmodels==0.11.1',
] |
131bc5e7e52ff2cda42647ac7209e40246e857eb | setup.py | setup.py | import os
import io
from setuptools import setup, find_packages
cwd = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(cwd, 'README.rst'), encoding='utf-8') as fd:
long_description = fd.read()
setup(
name='pytest-tornado',
version='0.5.0',
description=('A py.test plugin providin... | import os
import io
from setuptools import setup, find_packages
cwd = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(cwd, 'README.rst'), encoding='utf-8') as fd:
long_description = fd.read()
setup(
name='pytest-tornado',
version='0.5.0',
description=('A py.test plugin providin... | Install requires pytest 3.6 or greater | Install requires pytest 3.6 or greater
| Python | apache-2.0 | eugeniy/pytest-tornado | ---
+++
@@ -36,7 +36,7 @@
keywords=('pytest py.test tornado async asynchronous '
'testing unit tests plugin'),
packages=find_packages(exclude=["tests.*", "tests"]),
- install_requires=['pytest', 'tornado>=4'],
+ install_requires=['pytest>=3.6', 'tornado>=4'],
entry_points={
... |
420644b26d0e355a5fa9d94d18555fbf7494deb6 | setup.py | setup.py | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | from setuptools import setup
setup(
name='tangled.website',
version='0.1.dev0',
description='tangledframework.org',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.website/tags',
author='Wyatt Baldwin',
... | Use the pg8000 pure-Python Postgres DBAPI module | Use the pg8000 pure-Python Postgres DBAPI module
| Python | mit | TangledWeb/tangled.website | ---
+++
@@ -16,6 +16,7 @@
],
include_package_data=True,
install_requires=[
+ 'pg8000>=1.10.6',
'tangled.auth>=0.1a3',
'tangled.session>=0.1a2',
'tangled.site>=0.1a2', |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.