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
c9ca274a1a5e9596de553d2ae16950a845359321
examples/plotting/file/geojson_points.py
examples/plotting/file/geojson_points.py
from bokeh.io import output_file, show from bokeh.models import GeoJSONDataSource from bokeh.plotting import figure from bokeh.sampledata.sample_geojson import geojson output_file("geojson_points.html", title="GeoJSON Points") p = figure() p.circle(line_color=None, fill_alpha=0.8, source=GeoJSONDataSource(geojson=geo...
from bokeh.io import output_file, show from bokeh.models import GeoJSONDataSource, HoverTool from bokeh.plotting import figure from bokeh.sampledata.sample_geojson import geojson output_file("geojson_points.html", title="GeoJSON Points") p = figure() p.circle(line_color=None, fill_alpha=0.8, size=20, source=GeoJSONDa...
Add HoverTool to show off properties availability
Add HoverTool to show off properties availability
Python
bsd-3-clause
draperjames/bokeh,bokeh/bokeh,timsnyder/bokeh,dennisobrien/bokeh,maxalbert/bokeh,phobson/bokeh,jakirkham/bokeh,stonebig/bokeh,jakirkham/bokeh,bokeh/bokeh,DuCorey/bokeh,justacec/bokeh,dennisobrien/bokeh,clairetang6/bokeh,azjps/bokeh,timsnyder/bokeh,aiguofer/bokeh,timsnyder/bokeh,ericmjl/bokeh,DuCorey/bokeh,rs2/bokeh,bok...
--- +++ @@ -1,10 +1,11 @@ from bokeh.io import output_file, show -from bokeh.models import GeoJSONDataSource +from bokeh.models import GeoJSONDataSource, HoverTool from bokeh.plotting import figure from bokeh.sampledata.sample_geojson import geojson output_file("geojson_points.html", title="GeoJSON Points") ...
a0fc801130fa9068c5acc0a48d389f469cdb4bb2
tasks.py
tasks.py
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(show=True): """Build the docs and show them in default web browser.""" run('sphinx-build docs docs/_build') ...
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" build_cmd ...
Add more options to the `docs` task
Add more options to the `docs` task
Python
bsd-3-clause
Xion/callee
--- +++ @@ -12,8 +12,12 @@ @task -def docs(show=True): +def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" - run('sphinx-build docs docs/_build') + build_cmd = 'sphinx-build -b {output} {all} docs docs/_build'.format( + output=output, +...
704439e7ae99d215948c94a5dfa61ee1f3f57971
fireplace/cards/tgt/neutral_legendary.py
fireplace/cards/tgt/neutral_legendary.py
from ..utils import * ## # Minions # Confessor Paletress class AT_018: inspire = Summon(CONTROLLER, RandomMinion(rarity=Rarity.LEGENDARY)) # Skycap'n Kragg class AT_070: cost = lambda self, i: i - len(self.controller.field.filter(race=Race.PIRATE))
from ..utils import * ## # Minions # Confessor Paletress class AT_018: inspire = Summon(CONTROLLER, RandomMinion(rarity=Rarity.LEGENDARY)) # Skycap'n Kragg class AT_070: cost = lambda self, i: i - len(self.controller.field.filter(race=Race.PIRATE)) # Gormok the Impaler class AT_122: play = Hit(TARGET, 4) # ...
Implement more TGT Neutral Legendaries
Implement more TGT Neutral Legendaries
Python
agpl-3.0
Ragowit/fireplace,liujimj/fireplace,oftc-ftw/fireplace,amw2104/fireplace,amw2104/fireplace,beheh/fireplace,smallnamespace/fireplace,smallnamespace/fireplace,NightKev/fireplace,liujimj/fireplace,oftc-ftw/fireplace,jleclanche/fireplace,Ragowit/fireplace,Meerkov/fireplace,Meerkov/fireplace
--- +++ @@ -12,3 +12,33 @@ # Skycap'n Kragg class AT_070: cost = lambda self, i: i - len(self.controller.field.filter(race=Race.PIRATE)) + + +# Gormok the Impaler +class AT_122: + play = Hit(TARGET, 4) + + +# Chillmaw +class AT_123: + deathrattle = HOLDING_DRAGON & Hit(ALL_MINIONS, 3) + + +# Nexus-Champion Saraad...
d86a4b75b1d8b4d18aadbb2bc98387b5ce78f939
tests/web/splinter/test_view_album.py
tests/web/splinter/test_view_album.py
from __future__ import unicode_literals from tests import with_settings from tests.web.splinter import TestCase from catsnap import Client from catsnap.table.image import Image from catsnap.table.album import Album from nose.tools import eq_ class TestUploadImage(TestCase): @with_settings(bucket='humptydump') ...
from __future__ import unicode_literals from tests import with_settings from tests.web.splinter import TestCase from catsnap import Client from catsnap.table.image import Image from catsnap.table.album import Album from nose.tools import eq_ class TestViewAlbum(TestCase): @with_settings(bucket='humptydump') d...
Fix a test class name
Fix a test class name
Python
mit
ErinCall/catsnap,ErinCall/catsnap,ErinCall/catsnap
--- +++ @@ -7,7 +7,7 @@ from catsnap.table.album import Album from nose.tools import eq_ -class TestUploadImage(TestCase): +class TestViewAlbum(TestCase): @with_settings(bucket='humptydump') def test_view_an_album(self): session = Client().session()
eac78bcb95e2c34a5c2de75db785dd6532306819
ibei/main.py
ibei/main.py
# -*- coding: utf-8 -*- import numpy as np from astropy import constants from astropy import units from sympy.mpmath import polylog def uibei(order, energy_lo, temp, chem_potential): """ Upper incomplete Bose-Einstein integral. """ kT = temp * constants.k_B reduced_energy_lo = energy_lo / kT ...
# -*- coding: utf-8 -*- import numpy as np from astropy import constants from astropy import units from sympy.mpmath import polylog def uibei(order, energy_lo, temp, chem_potential): """ Upper incomplete Bose-Einstein integral. """ kT = temp * constants.k_B reduced_energy_lo = energy_lo / kT ...
Add draft of DeVos solar cell power function
Add draft of DeVos solar cell power function
Python
mit
jrsmith3/tec,jrsmith3/ibei,jrsmith3/tec
--- +++ @@ -33,3 +33,13 @@ Blackbody radiant power (Stefan-Boltzmann). """ return constants.sigma_sb * temp**4 + + +def devos_power(bandgap, temp_sun, temp_planet, voltage): + """ + Power calculated according to DeVos Eq. 6.4. + """ + sun = uibei(2, bandgap, temp_sun, 0) + solar_cell = u...
8377bbca8b49a7a973d5521795d6df238774db8b
codenamegenerator/__init__.py
codenamegenerator/__init__.py
from typing import List import csv import os import random DICT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "dicts") def dictionary_sample(name: str, sample: int = 1) -> List[str]: # TODO: Cache counting, and use file.seek to speed file reading. fname = os.path.join(DICT_DIR, f"{name}.cs...
from typing import List import csv import os import random DICT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "dicts") def dictionary_sample(name: str, sample: int = 1) -> List[str]: # TODO: Cache counting, and use file.seek to speed file reading. fname = os.path.join(DICT_DIR, f"{name}.cs...
Fix for empty lines in data sets
Fix for empty lines in data sets
Python
mit
mariocesar/namegenerator
--- +++ @@ -20,7 +20,7 @@ csvfile, fieldnames=["NAME"], delimiter=",", quotechar='"' ) - names = [row["NAME"] for row in csvreader] + names = [row["NAME"] for row in csvreader if row["NAME"].strip() != ""] return random.sample(names, sample)
1650c9d9620ba9b9262598d3a47208c6c8180768
app/views.py
app/views.py
from flask import render_template, jsonify from app import app from models import Show, Episode @app.route('/') @app.route('/index') def index(): return render_template('index.html') @app.route("/api/new-episodes/") def new_episodes(): data = { "items": [] } for episode in Episode.query.filter_b...
from flask import render_template, jsonify from app import app from models import Show, Episode @app.route('/') @app.route('/index') def index(): return render_template('index.html') @app.route("/api/new-episodes/") def new_episodes(): # Return all episodes with showcase set to True. data = { "items...
Make shows and episodes only appear if published is true.
Make shows and episodes only appear if published is true.
Python
mit
frequencyasia/website,frequencyasia/website
--- +++ @@ -10,6 +10,7 @@ @app.route("/api/new-episodes/") def new_episodes(): + # Return all episodes with showcase set to True. data = { "items": [] } @@ -27,7 +28,8 @@ "shows": [] } for show in Show.query.order_by('name').all(): - shows_dict["shows"].append(show.to_api...
f32685ef4ad847bd237845da6b5b8c44dac0ea9b
tests/skipif_markers.py
tests/skipif_markers.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ skipif_markers -------------- Contains pytest skipif markers to be used in the suite. """ import pytest import os try: travis = os.environ[u'TRAVIS'] except KeyError: travis = False try: no_network = os.environ[u'DISABLE_NETWORK_TESTS'] except KeyError...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ skipif_markers -------------- Contains pytest skipif markers to be used in the suite. """ import pytest import os try: os.environ[u'TRAVIS'] except KeyError: travis = False else: travis = True try: os.environ[u'DISABLE_NETWORK_TESTS'] except KeyErr...
Fix travis, make sure skipif condition resolves to a bool
Fix travis, make sure skipif condition resolves to a bool
Python
bsd-3-clause
audreyr/cookiecutter,dajose/cookiecutter,kkujawinski/cookiecutter,hackebrot/cookiecutter,venumech/cookiecutter,vintasoftware/cookiecutter,pjbull/cookiecutter,lucius-feng/cookiecutter,ramiroluz/cookiecutter,venumech/cookiecutter,0k/cookiecutter,christabor/cookiecutter,hackebrot/cookiecutter,Vauxoo/cookiecutter,Springerl...
--- +++ @@ -13,14 +13,18 @@ try: - travis = os.environ[u'TRAVIS'] + os.environ[u'TRAVIS'] except KeyError: travis = False +else: + travis = True try: - no_network = os.environ[u'DISABLE_NETWORK_TESTS'] + os.environ[u'DISABLE_NETWORK_TESTS'] except KeyError: no_network = False +else:...
114a6eb827c0e3dd4557aee8f76fde1bbd111bb9
archalice.py
archalice.py
#!/usr/bin/env python import os import re import time import sys from threading import Thread class testit(Thread): def __init__ (self,ip): Thread.__init__(self) self.ip = ip self.status = -1 self.responsetime = -1 def run(self): pingaling = os.popen("ping -q -c2 "+self.ip,"r") ...
#!/usr/bin/env python import os import re import time import sys from threading import Thread class testit(Thread): def __init__ (self,ip): Thread.__init__(self) self.ip = ip self.status = -1 self.responsetime = -1 def run(self): pingaling = os.popen("ping -q -c2 "+sel...
Update indentation to 4 spaces
Update indentation to 4 spaces
Python
mit
imrehg/archalice
--- +++ @@ -7,24 +7,24 @@ from threading import Thread class testit(Thread): - def __init__ (self,ip): - Thread.__init__(self) - self.ip = ip - self.status = -1 - self.responsetime = -1 + def __init__ (self,ip): + Thread.__init__(self) + self.ip = ip + self.status = -...
b63bda37aa2e9b5251cf6c54d59785d2856659ca
tests/python/unittest/test_random.py
tests/python/unittest/test_random.py
import os import mxnet as mx import numpy as np def same(a, b): return np.sum(a != b) == 0 def check_with_device(device): with mx.Context(device): a, b = -10, 10 mu, sigma = 10, 2 shape = (100, 100) mx.random.seed(128) ret1 = mx.random.normal(mu, sigma, shape) u...
import os import mxnet as mx import numpy as np def same(a, b): return np.sum(a != b) == 0 def check_with_device(device): with mx.Context(device): a, b = -10, 10 mu, sigma = 10, 2 for i in range(5): shape = (100 + i, 100 + i) mx.random.seed(128) ret1...
Update random number generator test
Update random number generator test
Python
apache-2.0
sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet
--- +++ @@ -9,18 +9,19 @@ with mx.Context(device): a, b = -10, 10 mu, sigma = 10, 2 - shape = (100, 100) - mx.random.seed(128) - ret1 = mx.random.normal(mu, sigma, shape) - un1 = mx.random.uniform(a, b, shape) - mx.random.seed(128) - ret2 = mx.random.no...
221413b5715286bb7b61e18f8e678f2ca097a5e1
rover.py
rover.py
class Rover: compass = ['N', 'E', 'S', 'W'] def __init__(self, x=0, y=0, direction='N'): self.x = x self.y = y self.direction = direction @property def position(self): return self.x, self.y, self.direction
class Rover: compass = ['N', 'E', 'S', 'W'] def __init__(self, x=0, y=0, direction='N'): self.x = x self.y = y self.direction = direction @property def position(self): return self.x, self.y, self.direction def set_position(self, x, y, direction): self.x = ...
Add set_position method to Rover
Add set_position method to Rover
Python
mit
authentik8/rover
--- +++ @@ -10,3 +10,8 @@ @property def position(self): return self.x, self.y, self.direction + + def set_position(self, x, y, direction): + self.x = x + self.y = y + self.direction = direction
64038fad35e7a1b9756921a79b6b13d59925e682
tests/test_endpoints.py
tests/test_endpoints.py
import unittest from soccermetrics.rest import SoccermetricsRestClient class ClientEndpointTest(unittest.TestCase): """ Test endpoints of API resources in client. """ def setUp(self): self.client = SoccermetricsRestClient(account="APP_ID",api_key="APP_KEY") def test_service_root(self): ...
import unittest from soccermetrics.rest import SoccermetricsRestClient class ClientEndpointTest(unittest.TestCase): """ Test endpoints of API resources in client. """ def setUp(self): self.client = SoccermetricsRestClient(account="APP_ID",api_key="APP_KEY") def test_service_root(self): ...
Expand test on URL endpoints in API client
Expand test on URL endpoints in API client
Python
mit
soccermetrics/soccermetrics-client-py
--- +++ @@ -12,3 +12,28 @@ def test_service_root(self): self.assertEqual(self.client.root.endpoint, "/v1/") + + def test_base_endpoints(self): + self.assertEqual(self.client.validation.phases.endpoint, "/v1/phases") + self.assertEqual(self.client.validation.groupRounds.endpoint, '/v1/...
238494a1323d82a791b244a84af64eda3d9be750
tests/services/test_reverse_proxy.py
tests/services/test_reverse_proxy.py
from unittest.mock import Mock from jupyterhub import orm from remoteappmanager.services.reverse_proxy import ReverseProxy from tornado import gen, testing class TestReverseProxy(testing.AsyncTestCase): @testing.gen_test def test_reverse_proxy_operations(self): coroutine_out = None @gen.coro...
from unittest.mock import Mock from jupyterhub import orm from remoteappmanager.services.reverse_proxy import ReverseProxy from tornado import gen, testing class TestReverseProxy(testing.AsyncTestCase): @testing.gen_test def test_reverse_proxy_operations(self): coroutine_out = None @gen.coro...
Solve deprecation warning from Traitlets
Solve deprecation warning from Traitlets
Python
bsd-3-clause
simphony/simphony-remote,simphony/simphony-remote,simphony/simphony-remote,simphony/simphony-remote
--- +++ @@ -16,7 +16,9 @@ yield gen.sleep(0.1) coroutine_out = dict(args=args, kwargs=kwargs) - reverse_proxy = ReverseProxy("http://fake/api", "token") + reverse_proxy = ReverseProxy( + endpoint_url="http://fake/api", + auth_token="token") reve...
dac770314da39c5494ff6c1ccd46d507ff1b2540
tests/test_errorware.py
tests/test_errorware.py
from tg.error import ErrorReporter def simple_app(environ, start_response): status = '200 OK' headers = [('Content-type', 'text/plain')] start_response(status, headers) return ['HELLO'] class TestErrorReporterConfig(object): def test_disable_all(self): app = ErrorReporter(simple_app, {})...
from tg.error import ErrorReporter from tg.error import SlowReqsReporter def simple_app(environ, start_response): status = '200 OK' headers = [('Content-type', 'text/plain')] start_response(status, headers) return ['HELLO'] class TestErrorReporterConfig(object): def test_disable_all(self): ...
Add tests for slow requests reporting configuration
Add tests for slow requests reporting configuration
Python
mit
lucius-feng/tg2,lucius-feng/tg2
--- +++ @@ -1,4 +1,5 @@ from tg.error import ErrorReporter +from tg.error import SlowReqsReporter def simple_app(environ, start_response): @@ -24,3 +25,21 @@ app = ErrorReporter(simple_app, {}, sentry_dsn='http://public:secret@example.com/1') reporters = [r.__class__.__name__ for r in app.repo...
6b9cc519deaecd093087d5190888b97b7b7eaf02
icekit/project/settings/_production.py
icekit/project/settings/_production.py
from ._base import * SITE_PUBLIC_PORT = None # Default: SITE_PORT # DJANGO ###################################################################### CACHES['default'].update({ # 'BACKEND': 'django_redis.cache.RedisCache', 'BACKEND': 'redis_lock.django_cache.RedisCache', 'LOCATION': 'redis://redis:6379/1', ...
from ._base import * SITE_PUBLIC_PORT = None # Default: SITE_PORT # DJANGO ###################################################################### CACHES['default'].update({ # 'BACKEND': 'django_redis.cache.RedisCache', 'BACKEND': 'redis_lock.django_cache.RedisCache', 'LOCATION': 'redis://redis:6379/1', ...
Remove vestigial hard coded production settings. These should be defined in a dotenv file, now.
Remove vestigial hard coded production settings. These should be defined in a dotenv file, now.
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
--- +++ @@ -10,9 +10,6 @@ 'LOCATION': 'redis://redis:6379/1', }) -# EMAIL_HOST = '' -# EMAIL_HOST_USER = '' - LOGGING['handlers']['logfile']['backupCount'] = 100 # CELERY EMAIL ################################################################ @@ -21,6 +18,4 @@ # STORAGES ################################...
96d798685c53f4568edaaf990b0bbe8e2e10e24a
tests_tf/test_mnist_tutorial_jsma.py
tests_tf/test_mnist_tutorial_jsma.py
import unittest class TestMNISTTutorialJSMA(unittest.TestCase): def test_mnist_tutorial_jsma(self): from tutorials import mnist_tutorial_jsma # Run the MNIST tutorial on a dataset of reduced size # and disable visualization. jsma_tutorial_args = {'train_start': 0, ...
import unittest class TestMNISTTutorialJSMA(unittest.TestCase): def test_mnist_tutorial_jsma(self): from tutorials import mnist_tutorial_jsma # Run the MNIST tutorial on a dataset of reduced size # and disable visualization. jsma_tutorial_args = {'train_start': 0, ...
Update JSMA test tutorial constant
Update JSMA test tutorial constant
Python
mit
cleverhans-lab/cleverhans,cleverhans-lab/cleverhans,openai/cleverhans,carlini/cleverhans,cihangxie/cleverhans,cleverhans-lab/cleverhans,carlini/cleverhans,fartashf/cleverhans
--- +++ @@ -8,7 +8,7 @@ # Run the MNIST tutorial on a dataset of reduced size # and disable visualization. jsma_tutorial_args = {'train_start': 0, - 'train_end': 10000, + 'train_end': 1000, 'test_start'...
e19b11c8598fe7a7e68640638a3489c05002f968
tests/test_supercron.py
tests/test_supercron.py
#!/usr/bin/env python import sys import os import unittest from subprocess import Popen, PIPE ROOT_DIR = os.path.join(os.path.dirname(__file__), "..") sys.path.append(ROOT_DIR) from supercron import SuperCron class RunTests(unittest.TestCase): """class that tests supercron for behavior correctness""" def setUp...
#!/usr/bin/env python import sys import os import unittest from subprocess import Popen, PIPE ROOT_DIR = os.path.join(os.path.dirname(__file__), "..") sys.path.append(ROOT_DIR) from supercron import SuperCron class RunTests(unittest.TestCase): """class that tests supercron for behavior correctness""" def setUp...
Delete the jobs in tearDown() in tests
Delete the jobs in tearDown() in tests
Python
bsd-3-clause
linostar/SuperCron
--- +++ @@ -18,8 +18,11 @@ def setUp(self): pass + def tearDown(self): + SuperCron.delete_job("ls") + def get_crontab(self): - p = Popen(["crontab", "-l"], stdout=PIPE) + p = Popen(["crontab", "-l"], stdout=PIPE, stderr=PIPE) crontab_out, crontab_err = p.communicate() return crontab_out
b0b2c03f04a5f29e11dc01558d272e27665555ce
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-append-url-to-sql', description="Appends the request URL to SQL statements in Django.", version='1.0.1', url='https://chris-lamb.co.uk/projects/django-append-url-to-sql', author='Chris Lamb', author_email='c...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-append-url-to-sql', description="Appends the request URL to SQL statements in Django.", version='1.0.1', url='https://chris-lamb.co.uk/projects/django-append-url-to-sql', author='Chris Lamb', author_email='c...
Update Django requirement to latest LTS
Update Django requirement to latest LTS
Python
bsd-3-clause
lamby/django-append-url-to-sql
--- +++ @@ -13,4 +13,8 @@ license='BSD', packages=find_packages(), + + install_requires=( + 'Django>=1.8', + ), )
566fa441f3864be4f813673dbaf8ffff87d28e17
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup, Extension elp_srcs = ['src/periodic.c', 'src/prdic_math.c', \ 'src/prdic_fd.c', \ 'src/prdic_pfd.c', \ 'src/prdic_main_fd.c', 'src/prdic_main_pfd.c', \ 'src/prdic_main.c', \ 'src/prdic_recfilter.c', 'src/prdic_shmtrig.c', \ 'src/prdic_sign.c'] module1 = E...
#!/usr/bin/env python from distutils.core import setup, Extension import os elp_srcs = ['src/periodic.c', 'src/prdic_math.c', \ 'src/prdic_fd.c', \ 'src/prdic_pfd.c', \ 'src/prdic_main_fd.c', 'src/prdic_main_pfd.c', \ 'src/prdic_main.c', \ 'src/prdic_recfilter.c', 'src/prdic_shmtrig.c', \ 'src/prdic_sign.c'] m...
Add NO_PY_EXT environment variable to disable compilation of the C module, which is not working very well in cross-compile mode.
Add NO_PY_EXT environment variable to disable compilation of the C module, which is not working very well in cross-compile mode.
Python
bsd-2-clause
sobomax/libelperiodic,sobomax/libelperiodic,sobomax/libelperiodic,sobomax/libelperiodic
--- +++ @@ -1,6 +1,7 @@ #!/usr/bin/env python from distutils.core import setup, Extension +import os elp_srcs = ['src/periodic.c', 'src/prdic_math.c', \ 'src/prdic_fd.c', \ @@ -13,6 +14,11 @@ module1 = Extension('_elperiodic', sources = elp_srcs, \ extra_link_args = ['-Wl,--version-script=src/Symbol.ma...
9ffd929e200fd5b292a24d990cb549beaef20379
setup.py
setup.py
from setuptools import setup setup(name='sobol_seq', version='0.1.2', description='Sobol sequence generator', url='https://github.com/naught101/sobol_seq', author='naught101', author_email='naught101@gmail.com', license='MIT', packages=['sobol_seq'], zip_safe=False)
from setuptools import setup setup(name='sobol_seq', version='0.1.2', description='Sobol sequence generator', url='https://github.com/naught101/sobol_seq', author='naught101', author_email='naught101@gmail.com', license='MIT', packages=['sobol_seq'], install_requires=[ ...
Add the "scipy" and "numpy" packages as dependencies.
Add the "scipy" and "numpy" packages as dependencies. By specifying the dependencies of a package we allow the user to install "sobol_seq" with a single `pip install` command, even in a clean environment.
Python
mit
naught101/sobol_seq
--- +++ @@ -8,4 +8,8 @@ author_email='naught101@gmail.com', license='MIT', packages=['sobol_seq'], + install_requires=[ + 'scipy', + 'numpy' + ], zip_safe=False)
5ce630f820652c4d4e984e14cf93a4ac49b297aa
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup settings = dict() settings.update( name="pykwalify", version="0.1.2", description='Python lib/cli for JSON/YAML schema validation', long_description='Python lib/cli for JSON/YAML schema validation', auth...
try: from setuptools import setup except ImportError: from distutils.core import setup settings = dict() settings.update( name="pykwalify", version="0.1.3", description='Python lib/cli for JSON/YAML schema validation', long_description='Python lib/cli for JSON/YAML schema validation', auth...
Test trigger for Travis CI
Test trigger for Travis CI
Python
mit
grokzen/pykwalify
--- +++ @@ -7,7 +7,7 @@ settings.update( name="pykwalify", - version="0.1.2", + version="0.1.3", description='Python lib/cli for JSON/YAML schema validation', long_description='Python lib/cli for JSON/YAML schema validation', author="Grokzen",
1e817a833ae0f86338199635ab2e43c592331d08
setup.py
setup.py
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(os.path.dirname(os.path.abspath(__file__), 'version.txt')), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'...
Fix issue with path variable
Fix issue with path variable
Python
apache-2.0
odin-public/osaAPI
--- +++ @@ -7,7 +7,7 @@ def version(): def version_file(mode='r'): - return open(os.path.join(os.path.dirname(os.path.abspath(__file__), 'version.txt')), mode) + return open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'version.txt'), mode) if os.getenv('TRAVIS'): wit...
a6b13f81ce7e39462ec188fad998755a2b66d26c
setup.py
setup.py
#! /usr/bin/env python from distutils.core import setup from youtube_dl_gui import version setup(name='Youtube-DLG', version=version.__version__, description='Youtube-dl GUI', long_description='A cross platform front-end GUI of the popular youtube-dl written in wxPython.', license='UNLICENSE',...
#! /usr/bin/env python from distutils.core import setup from youtube_dl_gui import version name = 'Youtube-DLG' desc = 'Youtube-dl GUI' ldesc = 'A cross platform front-end GUI of the popular youtube-dl written in wxPython' license = 'UNLICENSE' platform = 'Cross-Platform' author = 'Sotiris Papadopoulos' author_email ...
Add icons on package install
Add icons on package install
Python
unlicense
Sofronio/youtube-dl-gui,pr0d1r2/youtube-dl-gui,dstftw/youtube-dl-gui,dstftw/youtube-dl-gui,pr0d1r2/youtube-dl-gui,MrS0m30n3/youtube-dl-gui,Sofronio/youtube-dl-gui,ukazap/youtube-dl-gui,MrS0m30n3/youtube-dl-gui,ukazap/youtube-dl-gui
--- +++ @@ -3,14 +3,26 @@ from distutils.core import setup from youtube_dl_gui import version -setup(name='Youtube-DLG', +name = 'Youtube-DLG' +desc = 'Youtube-dl GUI' +ldesc = 'A cross platform front-end GUI of the popular youtube-dl written in wxPython' +license = 'UNLICENSE' +platform = 'Cross-Platform' +autho...
c2297672afff206bdae91aa479cb946b932a35e9
setup.py
setup.py
from setuptools import setup, find_packages with open('README.md') as readme: long_description = readme.read() with open('requirements.txt') as requirements: dependencies = [line.strip() for line in requirements] setup( name='nbtlib', version='1.2.2', license='MIT', descript...
from setuptools import setup, find_packages with open('README.md') as readme: long_description = readme.read() with open('requirements.txt') as requirements: dependencies = [line.strip() for line in requirements] setup( name='nbtlib', version='1.2.2', license='MIT', descript...
Switch to the "Stable" development status classifier
Switch to the "Stable" development status classifier
Python
mit
vberlier/nbtlib
--- +++ @@ -24,7 +24,7 @@ platforms=['any'], python_requires='>=3.6', classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating Syste...
e7ea098a4700c6f338fc7ef223b696aaed448629
test/test_gn.py
test/test_gn.py
''' GotoNewest tests ''' import unittest import sys sys.path.append('../src/') import gn TEST_DIR = '/tmp/test' class TestGotoNewest(unittest.TestCase): ''' Test class for GotoNewest ''' def test_empty_base_dir(self): ''' If the base directory is empty, raise an AttributeError ''...
''' GotoNewest tests ''' import unittest import sys sys.path.append('../src/') import gn TEST_DIR = '/tmp/test' class TestGotoNewest(unittest.TestCase): ''' Test class for GotoNewest ''' def test_empty_base_dir(self): ''' If the base directory is empty, raise an AttributeError ''...
Add test for one subdirectory
Add test for one subdirectory
Python
bsd-2-clause
ambidextrousTx/GotoNewest
--- +++ @@ -25,6 +25,12 @@ ''' self.assertRaises(AttributeError, gn.transfer, TEST_DIR) + def test_one_subdirectory(self): + ''' If there is only one subdirectory in the base + directory, return the directory + ''' + self.assertRaises('temp', gn.transfer, TEST_DIR) +...
cc55521c1e2af71893eff701bebc51acc112fa75
setup.py
setup.py
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.1.1', packages=find_packages(), include_package_data=True, install_requires=[ ...
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.1.1', packages=find_packages(), include_package_data=True, install_requires=[ ...
Update requests requirement from <2.24,>=2.4.2 to >=2.4.2,<2.25
Update requests requirement from <2.24,>=2.4.2 to >=2.4.2,<2.25 Updates the requirements on [requests](https://github.com/psf/requests) to permit the latest version. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md) - [Commits](https://git...
Python
apache-2.0
zooniverse/panoptes-python-client
--- +++ @@ -9,7 +9,7 @@ packages=find_packages(), include_package_data=True, install_requires=[ - 'requests>=2.4.2,<2.24', + 'requests>=2.4.2,<2.25', 'future>=0.16,<0.19', 'python-magic>=0.4,<0.5', 'redo>=1.7',
28460d76d483e47b6faa63f5b9c3013031a68dea
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup if sys.argv[-1] == 'publish': os.system('python setup.py register sdist bdist_wheel upload') sys.exit() setup( name='sentry-sso-google', version='1.1', description='Google SSO support for Sentry', author='Educreations ...
#!/usr/bin/env python import os import sys from setuptools import setup if sys.argv[-1] == 'publish': os.system('python setup.py register sdist bdist_wheel upload') sys.exit() with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: readme = f.read() setup( name='sentry-sso-google'...
Use new README.rst as package long_description
Use new README.rst as package long_description
Python
mit
educreations/sentry-sso-google
--- +++ @@ -11,10 +11,15 @@ sys.exit() +with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: + readme = f.read() + + setup( name='sentry-sso-google', version='1.1', description='Google SSO support for Sentry', + long_description=readme, author='Educreations Engine...
9e88d6eb6d6d97ea9046dbf842cdc0b5beb62b90
src/main.py
src/main.py
import tweepy, time, random def main(): CONSUMER_KEY = 'your_consumer_key' CONSUMER_SECRET = 'your_consumer_secret' ACCESS_KEY = 'your_access_key' ACCESS_SECRET = 'your_access_secret' auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) ...
import tweepy, time, random def main(): CONSUMER_KEY = 'your_consumer_key' CONSUMER_SECRET = 'your_consumer_secret' ACCESS_KEY = 'your_access_key' ACCESS_SECRET = 'your_access_secret' auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) ...
Add better error support for answers file
Add better error support for answers file
Python
mit
djangokillen/minion-hate-bot
--- +++ @@ -13,9 +13,12 @@ while True: minion_tweets = api.search(q="minions") - answers_file = open('custom/answers/answers.txt', 'r') - minion_answers = answers_file.read().splitlines() - answers_file.close() + try: + answers_file = open('custom/answers/answers...
daa004f214956ee0e906540313bdb84b8e31a3e8
setup.py
setup.py
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
Increment version after making parser properties non-private
Increment version after making parser properties non-private
Python
bsd-3-clause
consbio/gis-metadata-parser
--- +++ @@ -28,7 +28,7 @@ long_description=long_description, long_description_content_type='text/markdown', keywords='arcgis,fgdc,iso,ISO-19115,ISO-19139,gis,metadata,parser,xml,gis_metadata,gis_metadata_parser', - version='1.2.1', + version='1.2.2', packages=[ 'gis_metadata', 'gis_...
4f1124c7526ee1d30f0de180d459f42d716ad2c8
setup.py
setup.py
#from distutils.core import setup from setuptools import setup descr = """Tree representations and algorithms for Python. Viridis is named after the green tree python, Morelia viridis. """ DISTNAME = 'viridis' DESCRIPTION = 'Tree data structures and algorithms' LONG_DESCRIPTION = descr MAINTAIN...
#from distutils.core import setup from setuptools import setup descr = """Tree representations and algorithms for Python. Viridis is named after the green tree python, Morelia viridis. """ DISTNAME = 'viridis' DESCRIPTION = 'Tree data structures and algorithms' LONG_DESCRIPTION = descr MAINTAIN...
Update master version to 0.3-dev
Update master version to 0.3-dev
Python
mit
jni/viridis
--- +++ @@ -14,7 +14,7 @@ URL = 'https://github.com/jni/viridis' LICENSE = 'BSD 3-clause' DOWNLOAD_URL = 'https://github.com/jni/viridis' -VERSION = '0.2-dev' +VERSION = '0.3-dev' PYTHON_VERSION = (2, 7) INST_DEPENDENCIES = {}
045b8add1a2e45e120f1353f5412b8047dfa1a81
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.6.3', author='James Robert', author_email='jiaaro@gmail.com', description='Manipulate a...
__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.7.0', author='James Robert', author_email='jiaaro@gmail.com', description='Manipulate a...
Increment version number for release of new features and bug fixes to pypi
Increment version number for release of new features and bug fixes to pypi
Python
mit
lepinsk/pydub,cbelth/pyMusic,joshrobo/pydub,miguelgrinberg/pydub,jiaaro/pydub,Geoion/pydub,sgml/pydub
--- +++ @@ -8,7 +8,7 @@ setup( name='pydub', - version='0.6.3', + version='0.7.0', author='James Robert', author_email='jiaaro@gmail.com', description='Manipulate audio with an simple and easy high level interface',
a0d17f10dd269aa0a1be97276c312f3f522787f5
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='isystem-to-mqtt', version='0.1.0', author='Nicolas Graziano', author_email='nicolas.graziano+py@gmail.com', packages= find_packages(), scripts=['bin/poll_isystem_mqtt.py', 'bin/dump_isystem.p...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='isystem-to-mqtt', version='0.2.0', author='Nicolas Graziano', author_email='nicolas.graziano+py@gmail.com', packages= find_packages(), scripts=['bin/poll_isystem_mqtt.py', 'bin/dump_isystem.p...
Increase version and add python 3 classifier
Increase version and add python 3 classifier
Python
mit
ngraziano/isystem-to-mqtt
--- +++ @@ -5,7 +5,7 @@ setup( name='isystem-to-mqtt', - version='0.1.0', + version='0.2.0', author='Nicolas Graziano', author_email='nicolas.graziano+py@gmail.com', packages= find_packages(), @@ -14,5 +14,6 @@ install_requires=['MinimalModbus', 'paho-mqtt'], license='LICENSE', ...
b0dda121e03f593afb6ee1b3959b71b615df2b39
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup from Registry import _version_ setup(name='python-registry', version=_version_, description='Read access to Windows Registry files.', author='Willi Ballenthin', author_email='willi.ballenthin@gmail.com', url='http://www.williballenthin.c...
#!/usr/bin/env python from setuptools import setup from Registry import _version_ setup(name='python-registry', version=_version_, description='Read access to Windows Registry files.', author='Willi Ballenthin', author_email='willi.ballenthin@gmail.com', url='http://www.williballenthin.c...
Replace enum34 with enum-compat to allow use with Py3.6+
Replace enum34 with enum-compat to allow use with Py3.6+
Python
apache-2.0
williballenthin/python-registry
--- +++ @@ -15,6 +15,6 @@ "Programming Language :: Python :: 3", "Operating System :: OS Independent", "License :: OSI Approved :: Apache Software License"], - install_requires=['enum34','unicodecsv'] + install_requires=['enum-compat','unicode...
0ff0389d017de119053b3cd38e503eb3d8bdadff
setup.py
setup.py
from setuptools import find_packages, setup setup( name='jupyter-notebook-gist', version='0.4.0', description='Create a gist from the Jupyter Notebook UI', author='Mozilla Firefox Data Platform', author_email='fx-data-platform@mozilla.com', packages=find_packages(where='src'), package_dir={...
from setuptools import find_packages, setup setup( name='jupyter-notebook-gist', version='0.4.0', description='Create a gist from the Jupyter Notebook UI', author='Mozilla Firefox Data Platform', author_email='fx-data-platform@mozilla.com', packages=find_packages(where='src'), package_dir={...
Add six to the explicit dependencies
Add six to the explicit dependencies
Python
mpl-2.0
mozilla/jupyter-notebook-gist,mreid-moz/jupyter-notebook-gist,mozilla/jupyter-notebook-gist,mreid-moz/jupyter-notebook-gist
--- +++ @@ -15,6 +15,7 @@ 'notebook >= 4.2', 'jupyter', 'requests', + 'six', 'widgetsnbextension', ], url='https://github.com/mozilla/jupyter-notebook-gist',
52609334bdd25eb89dbc67b75921029c37babd63
setup.py
setup.py
import os import sys from setuptools import setup __author__ = 'Ryan McGrath <ryan@venodesigns.net>' __version__ = '2.10.0' packages = [ 'twython', 'twython.streaming' ] if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( # Basic package information. na...
import os import sys from setuptools import setup __author__ = 'Ryan McGrath <ryan@venodesigns.net>' __version__ = '2.10.0' packages = [ 'twython', 'twython.streaming' ] if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( # Basic package information. na...
Update description and long description
Update description and long description [ci skip]
Python
mit
joebos/twython,Oire/twython,fibears/twython,Devyani-Divs/twython,Hasimir/twython,akarambir/twython,ping/twython,vivek8943/twython,ryanmcgrath/twython,Fueled/twython
--- +++ @@ -32,9 +32,10 @@ author_email='ryan@venodesigns.net', license='MIT License', url='http://github.com/ryanmcgrath/twython/tree/master', - keywords='twitter search api tweet twython', - description='An easy (and up to date) way to access Twitter data with Python.', - long_description=op...
ea30858852815043fd95888add674778893bac42
setup.py
setup.py
from setuptools import setup, find_packages setup( name="go_auth", version="0.1.0a", url='http://github.com/praekelt/go_auth', license='BSD', description="Authentication services and utilities for Vumi Go APIs.", long_description=open('README.rst', 'r').read(), author='Praekelt Foundation',...
from setuptools import setup, find_packages setup( name="go_auth", version="0.1.0a", url='http://github.com/praekelt/go_auth', license='BSD', description="Authentication services and utilities for Vumi Go APIs.", long_description=open('README.rst', 'r').read(), author='Praekelt Foundation',...
Add PyYAML as a direct dependency for tests.
Add PyYAML as a direct dependency for tests.
Python
bsd-3-clause
praekelt/go-auth,praekelt/go-auth
--- +++ @@ -15,6 +15,7 @@ 'cyclone', 'oauthlib', 'go_api', + 'PyYAML', ], classifiers=[ 'Development Status :: 4 - Beta',
81fc515539474e720a9b96ef1bc5679e053952f9
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='bettercache', version='0.5.3', description = "A suite of better cache tools for Django.", license = "MIT", author='Calvin Spealman', author_email='ironfroggy@gmail.com', url='http://github.com/ironfroggy/django-better...
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='bettercache', version='0.5.3', description = "A suite of better cache tools for Django.", license = "MIT", author='Calvin Spealman', author_email='ironfroggy@gmail.com', url='http://github.com/ironfroggy/django-better...
Add new requirements from CMG middleware
Add new requirements from CMG middleware
Python
mit
ironfroggy/django-better-cache,ironfroggy/django-better-cache
--- +++ @@ -9,4 +9,8 @@ author_email='ironfroggy@gmail.com', url='http://github.com/ironfroggy/django-better-cache', packages = find_packages(), + install_requires = [ + 'celery >= 2.4.2', + 'httplib2 >= 0.6.0', + ], )
f7aedd45ad103e66621bad04bfcbbba7d30b4e35
tv_namer.py
tv_namer.py
#!/usr/bin/python3 # tv_namer.py - Renames passed media files of TV shows import shutil import os import sys import logging import videoLister import scrapeTVDB import regSplit logger = logging.getLogger(__name__) logging.basicConfig(filename='tv_namer.log',level=logging.DEBUG, format='%(asctime)...
#!/usr/bin/python3 # tv_namer.py - Renames passed media files of TV shows import shutil import os import sys import logging import videoLister import scrapeTVDB import regSplit logger = logging.getLogger(__name__) logging.basicConfig(filename='tv_namer.log',level=logging.DEBUG, format='%(asctime)...
Change info to warning if files not renamed
Change info to warning if files not renamed
Python
mit
samcheck/PyMedia,samcheck/PyMedia,samcheck/PyMedia
--- +++ @@ -34,4 +34,4 @@ shutil.move(item, (os.path.join(os.path.dirname(item), new_name))) else: - logger.info("File not renamed: ", item) + logger.warning("File not renamed: ", item)
ab417052f3d41ee5b140e3044a6a925c3895d1ee
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup import ibei setup(name = "ibei", version = ibei.__version__, author = "Joshua Ryan Smith", author_email = "joshua.r.smith@gmail.com", packages = ["ibei"], url = "https://github.com/jrsmith3/ibei", description = "Calculator for...
# -*- coding: utf-8 -*- from distutils.core import setup import ibei setup(name = "ibei", version = ibei.__version__, author = "Joshua Ryan Smith", author_email = "joshua.r.smith@gmail.com", packages = ["ibei", "physicalproperty"], url = "https://github.com/jrsmith3/ibei", descripti...
Add 'physicalproperty' to pkg list for install
Add 'physicalproperty' to pkg list for install
Python
mit
jrsmith3/ibei
--- +++ @@ -6,7 +6,7 @@ version = ibei.__version__, author = "Joshua Ryan Smith", author_email = "joshua.r.smith@gmail.com", - packages = ["ibei"], + packages = ["ibei", "physicalproperty"], url = "https://github.com/jrsmith3/ibei", description = "Calculator for incomplete...
ca38e933f4dd43fc3fdcc4db27564b5e1559edf1
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="sigseekr", version="0.2.0", packages=find_packages(), scripts=['sigseekr/sigseekr.py'], author="Andrew Low", author_email="andrew.low@inspection.gc.ca", url="https://github.com/lowandrew/SigSeekr", install_r...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="sigseekr", version="0.2.1", packages=find_packages(), scripts=['sigseekr/sigseekr.py'], author="Andrew Low", author_email="andrew.low@inspection.gc.ca", url="https://github.com/lowandrew/SigSeekr", install_r...
Increment version to 0.2.1 - now with primer3 function
Increment version to 0.2.1 - now with primer3 function
Python
mit
OLC-Bioinformatics/SigSeekr
--- +++ @@ -4,7 +4,7 @@ setup( name="sigseekr", - version="0.2.0", + version="0.2.1", packages=find_packages(), scripts=['sigseekr/sigseekr.py'], author="Andrew Low",
1780c1d6230669922c9fef2798fdfccf56bbe294
setup.py
setup.py
# coding: utf-8 -*- # # Setup file for geocluster # from setuptools import setup, find_packages import os # Get the description file here = os.path.dirname(os.path.abspath(__file__)) long_description = open(os.path.join(here, "DESCRIPTION.rst"), 'r').read() setup( name='geocluster', author=u'Régis FLORET', ...
# coding: utf-8 -*- # # Setup file for geocluster # from setuptools import setup, find_packages import os # Get the description file here = os.path.dirname(os.path.abspath(__file__)) long_description = open(os.path.join(here, "DESCRIPTION.rst"), 'r').read() setup( name='geocluster', author=u'Régis FLORET', ...
Add information (url, download url, ...) for packaging
Add information (url, download url, ...) for packaging
Python
mit
regisf/geocluster
--- +++ @@ -14,7 +14,10 @@ name='geocluster', author=u'Régis FLORET', author_email='regis@regisblog.fr', - version='1.0.0', + version='1.0.1', + url='http://www.regisblog.fr/geocluster/', + download_url='https://github.com/regisf/geocluster', + platforms=['any',], description='GeoCl...
16e2d0180cc48c2d3be238ebe17797d8c0acbf62
setup.py
setup.py
from setuptools import setup setup( name='devour', version='0.4', url='', author='http://github.com/brandoshmando', author_email='brancraft@gmail.com', license='MIT', packages=['devour',], install_requires=[ 'pykafka', 'kazoo' ], include_package_data=True, te...
from setuptools import setup setup( name='devour', version='0.4', url='', author='http://github.com/brandoshmando', author_email='brancraft@gmail.com', license='MIT', packages=['devour',], install_requires=[ 'pykafka', 'kazoo' ], include_package_data=True, te...
Fix typo for cli entrypoint
Fix typo for cli entrypoint
Python
mit
brandoshmando/devour
--- +++ @@ -18,7 +18,7 @@ zip_safe=False, entry_points={ 'console_scripts': [ - 'devour = devour.bin.devour_commandst:main' + 'devour = devour.bin.devour_commands:main' ] }, keywords = ['kafka', 'django', 'pykafka', 'python', 'devour']
c92fe387725ee16ba7d452454fea65aacfe429b4
setup.py
setup.py
from setuptools import setup, find_packages CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', 'Programming Language :: Python :: 2.7', 'Topic :: Software Development ::...
from setuptools import setup, find_packages CLASSIFIERS = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', 'Programming Language :: Python :: 2.7', 'Topic :: Software Development ::...
Enable Python 3 compatibility using 2to3.
Enable Python 3 compatibility using 2to3.
Python
lgpl-2.1
kszys/num2words,savoirfairelinux/num2words
--- +++ @@ -26,4 +26,5 @@ keywords=' number word numbers words convert conversion i18n localisation localization internationalisation internationalization', url='https://github.com/savoirfairelinux/num2words', packages=find_packages(), + use_2to3=True, )
8fed7f136912fecf8dfb223807b818f37ee306e8
setup.py
setup.py
# Copyright 2019 The Empirical Calibration Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
# Copyright 2019 The Empirical Calibration Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
Remove enum and add absl-py.
Remove enum and add absl-py. PiperOrigin-RevId: 256969582
Python
apache-2.0
google/empirical_calibration
--- +++ @@ -27,13 +27,12 @@ license='Apache 2.0', packages=find_packages(), install_requires=[ - 'enum', + 'absl-py', 'numpy >= 1.11.1', 'pandas', 'patsy', 'scipy', 'six', 'sklearn', - 'typing', ], )
7fb2155a7884bbebe3b29c1580b37354309c0d1e
setup.py
setup.py
from setuptools import find_packages import os try: from setuptools import setup except ImportError: from distutils.core import setup # Get version and release info, which is all stored in AFQ/version.py ver_file = os.path.join('AFQ', 'version.py') with open(ver_file) as f: exec(f.read()) REQUIRES = [] ...
from setuptools import find_packages import os try: from setuptools import setup except ImportError: from distutils.core import setup # Get version and release info, which is all stored in AFQ/version.py ver_file = os.path.join('AFQ', 'version.py') with open(ver_file) as f: exec(f.read()) REQUIRES = [] ...
Use install_requires to install the requirements.
Use install_requires to install the requirements.
Python
bsd-2-clause
arokem/pyAFQ,yeatmanlab/pyAFQ,arokem/pyAFQ,yeatmanlab/pyAFQ
--- +++ @@ -34,6 +34,7 @@ platforms=PLATFORMS, version=VERSION, packages=find_packages(), + install_requires=REQUIRES, requires=REQUIRES, scripts=SCRIPTS)
82b24bde5a681a0630056c2649ebece7c5b35686
setup.py
setup.py
import setuptools def read_long_description(): with open('README') as f: data = f.read() return data setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client library for Python", long_description=read_long_description(), use_hg_version=True, ...
import sys import setuptools def read_long_description(): with open('README') as f: data = f.read() return data importlib_req = ['importlib'] if sys.version_info < (2,7) else [] setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client library for P...
Declare importlib requirement on Python 2.6
Declare importlib requirement on Python 2.6
Python
lgpl-2.1
sim0629/irc
--- +++ @@ -1,9 +1,13 @@ +import sys + import setuptools def read_long_description(): with open('README') as f: data = f.read() return data + +importlib_req = ['importlib'] if sys.version_info < (2,7) else [] setup_params = dict( name="irc", @@ -23,6 +27,8 @@ "Programming Langu...
e9ac75d7f3f023bb0116446a2d358faa36fa90e2
setup.py
setup.py
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a12', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
import sys from setuptools import find_packages, setup VERSION = '2.0.dev0' install_requires = [ 'django-local-settings>=1.0a13', 'stashward', ] if sys.version_info[:2] < (3, 4): install_requires.append('enum34') setup( name='django-arcutils', version=VERSION, url='https://github.com/PSU...
Upgrade django-local-settings 1.0a12 => 1.0a13
Upgrade django-local-settings 1.0a12 => 1.0a13
Python
mit
PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils
--- +++ @@ -7,7 +7,7 @@ install_requires = [ - 'django-local-settings>=1.0a12', + 'django-local-settings>=1.0a13', 'stashward', ]
983bdcc48c8feef5e65280e02a83a1f3721bce70
setup.py
setup.py
#!/usr/bin/env python ############################################################################ # # # Copyright 2014 Prelert Ltd # # ...
#!/usr/bin/env python ############################################################################ # # # Copyright 2014 Prelert Ltd # # ...
Change version number to 1.4
Change version number to 1.4
Python
apache-2.0
pemontto/engine-python,prelert/engine-python
--- +++ @@ -23,7 +23,7 @@ from distutils.core import setup setup(name='Prelert', description='Python packages for Prelert', - version='1.3', + version='1.4', license='Apache License, Version 2.0', url='https://github.com/prelert/engine-python', packages=['prelert', 'prelert.eng...
330f4a6829f39684b7a37961f6f2ee5f692c536d
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import os import sys if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( name='Flask-Simon', version='0.3.0', description='Simple MongoDB Models for Flask', long_description=open('README.rst').read(), ...
#!/usr/bin/env python from setuptools import setup import os import sys if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( name='Flask-Simon', version='0.3.0', description='Simple MongoDB Models for Flask', long_description=open('README.rst').read(), ...
Add Python 3 to supported languages
Add Python 3 to supported languages Closes #8
Python
bsd-3-clause
dirn/Flask-Simon,dirn/Flask-Simon
--- +++ @@ -32,6 +32,7 @@ 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Langu...
66581c78e4abf9ff94b954ba0500e6f93fda1d35
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='windpowerlib', version='0.1.2dev', description='Creating time series of wind power plants.', url='http://github.com/wind-python/windpowerlib', author='oe...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name='windpowerlib', version='0.1.2dev', description='Creating time series of wind power plants.', url='http://github.com/wind-python/windpowerlib', author='oe...
Add installation requirements for developers
Add installation requirements for developers
Python
mit
wind-python/windpowerlib
--- +++ @@ -19,4 +19,6 @@ long_description=read('README.rst'), zip_safe=False, install_requires=['pandas >= 0.19.1', - 'requests']) + 'requests'], + extras_require={ + 'dev': ['sphinx_rtd_theme', 'pytest']})
a6147357f93295e5b363f36da1c14fd3db7dc062
setup.py
setup.py
"""Millipede installation script https://github.com/evadot/millipede """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f: long_description = f.read() setup( ...
"""Millipede installation script https://github.com/evadot/millipede """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f: long_description = f.read() setup( ...
Add email (required) and packages
Add email (required) and packages
Python
bsd-3-clause
evadot/millipede-python,evadot/millipede-python,getmillipede/millipede-python,moul/millipede-python,EasonYi/millipede-python,moul/millipede-python,EasonYi/millipede-python,getmillipede/millipede-python
--- +++ @@ -18,18 +18,19 @@ description="A millipede generator", long_description=long_description, - url="https://github.com/evadot/millipede" + url="https://github.com/evadot/millipede", - author="The millipede fan club" + author="The millipede fan club", + author_email="millipede@bidou...
213b6303eba6edb4ebb0f9f5101ab2a1e76acfaf
setup.py
setup.py
# -*- coding: utf-8 -*- import io from setuptools import setup, find_packages setup( name='django-pipeline', version='1.5.2', description='Pipeline is an asset packaging library for Django.', long_description=io.open('README.rst', encoding='utf-8').read() + '\n\n' + io.open('HISTORY.rst', enc...
# -*- coding: utf-8 -*- import io from setuptools import setup, find_packages import sys install_requires = [] if (sys.version_info[0], sys.version_info[1]) < (3, 2): install_requires.append('futures>=2.1.3') setup( name='django-pipeline', version='1.5.2', description='Pipeline is an asset packaging ...
Remove useless requirement on Python 3.2+
Remove useless requirement on Python 3.2+
Python
mit
perdona/django-pipeline,chipx86/django-pipeline,cyberdelia/django-pipeline,kronion/django-pipeline,cyberdelia/django-pipeline,skolsuper/django-pipeline,kronion/django-pipeline,beedesk/django-pipeline,sideffect0/django-pipeline,lexqt/django-pipeline,jazzband/django-pipeline,theatlantic/django-pipeline,chipx86/django-pip...
--- +++ @@ -2,7 +2,11 @@ import io from setuptools import setup, find_packages +import sys +install_requires = [] +if (sys.version_info[0], sys.version_info[1]) < (3, 2): + install_requires.append('futures>=2.1.3') setup( name='django-pipeline', @@ -16,9 +20,7 @@ license='MIT', packages=fin...
88f241b77438ae59912be6df75b66260a39c7c12
setup.py
setup.py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name = "ucldc-iiif", version = "0.0.1", description...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name = "ucldc-iiif", version = "0.0.1", description...
Change package name from 's3' to 'ucldc_iiif'.
Change package name from 's3' to 'ucldc_iiif'.
Python
bsd-3-clause
barbarahui/ucldc-iiif,mredar/ucldc-iiif,mredar/ucldc-iiif,barbarahui/ucldc-iiif
--- +++ @@ -24,6 +24,6 @@ 'python-magic', 'UCLDC-Deep-Harvester' ], - packages=['s3'], + packages=['ucldc_iiif'], test_suite='tests' )
efacef78764f9b74d57adb3e092fdd8ac24939b3
setup.py
setup.py
from setuptools import setup, find_packages setup( name='panya', version='0.1.6', description='Panya base app.', long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(), author='Praekelt Foundation', author_email='dev@praekelt.com'...
from setuptools import setup, find_packages setup( name='panya', version='0.1.6', description='Panya base app.', long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rst', 'r').read(), author='Praekelt Foundation', author_email='dev@praekelt.com'...
Allow use of newer django-photologue
Allow use of newer django-photologue
Python
bsd-3-clause
praekelt/panya
--- +++ @@ -13,11 +13,12 @@ dependency_links = [ 'http://dist.plone.org/thirdparty/', 'http://github.com/praekelt/django-photologue/tarball/2.6.praekelt#egg=django-photologue-2.6.praekelt', + 'http://github.com/praekelt/django-photologue/tarball/2.7.praekelt#egg=django-photologue-2.7.pra...
a8163b0da1da0c303f4b7427473360ddddf982e8
setup.py
setup.py
from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: readme = f.read() setup( name='manuale', version='1.0.1.dev0', license='MIT', description="A fully manual Let's Encr...
import subprocess from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) readme = path.join(here, 'README.md') # Convert the README to reStructuredText for PyPI if pandoc is available. # Otherwise, just read it. try: readme = subprocess.check_output(['...
Convert the README to rst if pandoc is installed
Convert the README to rst if pandoc is installed
Python
mit
veeti/manuale
--- +++ @@ -1,10 +1,18 @@ +import subprocess from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) -with open(path.join(here, 'README.md'), encoding='utf-8') as f: - readme = f.read() +readme = path.join(here, 'README.md') + +# Convert the README...
a84102f0736105fb6fb257c1feddc40633d11fcb
setup.py
setup.py
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md')) as f: jgo_long_description = f.read() setup( name='jgo', version='0.1.0', author='Philipp Hanslovsky, Curtis Rueden', author_email='hanslovskyp@janelia.hhmi.org', ...
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md')) as f: jgo_long_description = f.read() setup( name='jgo', version='0.1.1.dev0', author='Philipp Hanslovsky, Curtis Rueden', author_email='hanslovskyp@janelia.hhmi.or...
Bump to next development cycle
Bump to next development cycle
Python
unlicense
ctrueden/jrun,ctrueden/jrun
--- +++ @@ -8,7 +8,7 @@ setup( name='jgo', - version='0.1.0', + version='0.1.1.dev0', author='Philipp Hanslovsky, Curtis Rueden', author_email='hanslovskyp@janelia.hhmi.org', description='Launch Java code from Python and the CLI, installation-free.',
001f9a3520daefdc64e16e7c29887d27e68d9f4b
setup.py
setup.py
from setuptools import setup, find_packages import sys, os here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() version = '0.1' setup(name='nested_formset', version=version, description="", long_description=README, classifiers=[ ...
from setuptools import setup, find_packages import sys, os here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() version = '0.1' setup(name='nested_formset', version=version, description="", long_description=README, classifiers=[ ...
Mark the package not zipsafe so test discovery finds directories.
Mark the package not zipsafe so test discovery finds directories.
Python
bsd-3-clause
nyergler/nested-formset
--- +++ @@ -21,7 +21,7 @@ packages=find_packages('src'), package_dir={'': 'src'}, include_package_data=True, - zip_safe=True, + zip_safe=False, install_requires=[ 'Django>=1.5', 'django-discover-runner',
4a601336ee5fccfe2cb4ebf50bd7fdfe127f3a61
setup.py
setup.py
from setuptools import setup import io import os here = os.path.abspath(os.path.dirname(__file__)) def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in filenames: with io.open(filename, encoding=encoding) as f: ...
from setuptools import setup import io import os here = os.path.abspath(os.path.dirname(__file__)) def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in filenames: with io.open(filename, encoding=encoding) as f: ...
Update deps and bump version. ANL-10319
Update deps and bump version. ANL-10319
Python
apache-2.0
uberVU/mongo-pool,uberVU/mongo-pool
--- +++ @@ -17,14 +17,14 @@ setup( name='mongo-pool', - version='0.4.2', + version='0.5.0', url='http://github.com/ubervu/mongo-pool/', description='The tool that keeps all your mongos in one place', long_description=long_description, license='Apache Software License', author='U...
758c80b543bfe095718082673901533c2603e69f
setup.py
setup.py
#!/usr/bin/env python """Setup script for The Coverage Space CLI.""" import setuptools from coveragespace import __project__, __version__, CLI try: README = open("README.rst").read() CHANGES = open("CHANGES.rst").read() except IOError: DESCRIPTION = "<placeholder>" else: DESCRIPTION = README + '\n' ...
#!/usr/bin/env python """Setup script for The Coverage Space CLI.""" import setuptools from coveragespace import __project__, __version__, CLI try: README = open("README.rst").read() CHANGES = open("CHANGES.rst").read() except IOError: DESCRIPTION = "<placeholder>" else: DESCRIPTION = README + '\n' ...
Use the same headline as the API
Use the same headline as the API
Python
mit
jacebrowning/coverage-space-cli
--- +++ @@ -18,7 +18,7 @@ name=__project__, version=__version__, - description="Command-line client for The Coverage Space.", + description="A place to track your code coverage metrics.", url='https://github.com/jacebrowning/coverage-space-cli', author='Jace Browning', author_email='j...
e2cdf1be3a9f1e9eb501332a4f2358f037dea0bd
setup.py
setup.py
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='crane', version='0.1.0', description="A simple tool for building Dockerfiles", author='Victor Lin', author_email='bornstub@gmail.com', keywords='docker dockerfile build', url='http...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='docker-crane', version='0.1.0', description="A simple tool for building Dockerfiles", author='Victor Lin', author_email='bornstub@gmail.com', keywords='docker dockerfile build', ur...
Use docker-crane for pypi name, since somebody already took crane
Use docker-crane for pypi name, since somebody already took crane
Python
apache-2.0
victorlin/crane
--- +++ @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup( - name='crane', + name='docker-crane', version='0.1.0', description="A simple tool for building Dockerfiles", author='Victor Lin',
dcae89428a6d1e1f003fe029f8220a0b382ec2c9
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup(packages=find_packages())
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='debian-devel-changes-bot', packages=find_packages())
Use a name= kwarg to avoid UNKNOWN.
Use a name= kwarg to avoid UNKNOWN. Signed-off-by: Chris Lamb <29e6d179a8d73471df7861382db6dd7e64138033@debian.org>
Python
agpl-3.0
xtaran/debian-devel-changes-bot,lamby/debian-devel-changes-bot,lamby/debian-devel-changes-bot,lamby/debian-devel-changes-bot,sebastinas/debian-devel-changes-bot,xtaran/debian-devel-changes-bot
--- +++ @@ -2,4 +2,4 @@ from setuptools import setup, find_packages -setup(packages=find_packages()) +setup(name='debian-devel-changes-bot', packages=find_packages())
64c4c3329f25ed4ee565ce8cbd2db1b3141605b2
setup.py
setup.py
import sys import setuptools py26_reqs = ['argparse', 'importlib'] if sys.version_info < (2,7) else [] setuptools.setup( name='librarypaste', use_hg_version=dict(increment='0.1'), author='Jamie Turner', author_email='jamie@jamwt.com', url='http://bitbucket.org/chmullig/librarypaste/', descrip...
import sys import setuptools py26_reqs = ['argparse', 'importlib'] if sys.version_info < (2,7) else [] setuptools.setup( name='librarypaste', use_hg_version=dict(increment='0.1'), author='Jamie Turner', author_email='jamie@jamwt.com', url='http://bitbucket.org/chmullig/librarypaste/', descrip...
Configure to run tests under pytest runner
Configure to run tests under pytest runner
Python
mit
yougov/librarypaste,yougov/librarypaste
--- +++ @@ -29,6 +29,10 @@ ] + py26_reqs, setup_requires=[ 'hgtools', + 'pytest-runner', + ], + tests_require=[ + 'pytest', ], zip_safe=False, )
6bfcfaffcb1695f142c11b6864951f9471e52d60
setup.py
setup.py
#!/usr/bin/env python """Setup file and install script SciLife python scripts. """ from setuptools import setup, find_packages try: with open("requirements.txt", "r") as f: install_requires = [x.strip() for x in f.readlines()] except IOError: install_requires = [] setup(name="status", author="Sc...
#!/usr/bin/env python """Setup file and install script SciLife python scripts. """ from setuptools import setup, find_packages try: with open("requirements.txt", "r") as f: install_requires = [x.strip() for x in f.readlines()] except IOError: install_requires = [] setup(name="status", author="Sc...
Add suggestion box script to PATH
Add suggestion box script to PATH
Python
mit
remiolsen/status,remiolsen/status,ewels/genomics-status,ewels/genomics-status,SciLifeLab/genomics-status,SciLifeLab/genomics-status,Galithil/status,Galithil/status,remiolsen/status,ewels/genomics-status,Galithil/status,kate-v-stepanova/genomics-status,kate-v-stepanova/genomics-status,kate-v-stepanova/genomics-status,Sc...
--- +++ @@ -14,7 +14,7 @@ author_email="genomics_support@scilifelab.se", description="Webapp for keeping track of metadata status at SciLifeLab", license="MIT", - scripts=["status_app.py"], + scripts=["status_app.py", "scripts/update_suggestion_box"], install_requires=install_req...
db76777575162aab69aec9429455f2e7d841a605
lambdas/dynamo_to_sns/dynamo_to_sns.py
lambdas/dynamo_to_sns/dynamo_to_sns.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ """ import json import os from sns_utils import publish_sns_message def main(event, _): print(f'Received event:\n{event}') stream_topic_map = json.loads(os.environ["STREAM_TOPIC_MAP"]) new_image = event['Records'][0]['dynamodb']['NewImage'] topic_a...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ """ import os from sns_utils import publish_sns_message def main(event, _): print(f'Received event:\n{event}') stream_topic_map = os.environ["STREAM_TOPIC_MAP"] new_image = event['Records'][0]['dynamodb']['NewImage'] topic_arn = stream_topic_map[ev...
Fix loading of map from environment variables
Fix loading of map from environment variables
Python
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
--- +++ @@ -3,7 +3,6 @@ """ """ -import json import os from sns_utils import publish_sns_message @@ -11,7 +10,7 @@ def main(event, _): print(f'Received event:\n{event}') - stream_topic_map = json.loads(os.environ["STREAM_TOPIC_MAP"]) + stream_topic_map = os.environ["STREAM_TOPIC_MAP"] new_i...
4bc1810f6f04a639726f68b06273722b5fc6e87f
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='0.1.0', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_profiling'], url='http://github.com/jospolfliet/pandas-profiling...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='0.1.0', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_profiling'], url='http://github.com/jospolfliet/pandas-profiling...
Add *.mplstyle as package data
Add *.mplstyle as package data
Python
mit
JosPolfliet/pandas-profiling,JosPolfliet/pandas-profiling
--- +++ @@ -17,4 +17,6 @@ "pandas", "matplotlib" ], + include_package_data = True, + package_data={'pandas_profiling': ['pandas_profiling.mplstyle']}, )
8e7eb5dec20ee75d34b566341af3c22b57503dcb
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name="setquery", version="0.1", description="Set arithmetic evaluator", author="Paul Scott", author_email="paul@duedil.com", url="https://github.com/icio/setquery", download_url="https://github.com/icio/setquery/tarball/0.1", set...
#!/usr/bin/env python from setuptools import setup setup( name="setquery", version="0.1", description="Set arithmetic evaluator", author="Paul Scott", author_email="paul@duedil.com", url="https://github.com/icio/setquery", download_url="https://github.com/icio/setquery/tarball/0.1", set...
Include test_setquery module in distribution
Include test_setquery module in distribution
Python
mit
icio/evil
--- +++ @@ -10,7 +10,7 @@ url="https://github.com/icio/setquery", download_url="https://github.com/icio/setquery/tarball/0.1", setup_requires=["nose", "rednose"], - py_modules=["setquery"], + py_modules=["setquery", "test_setquery"], license="MIT", keywords=['set', 'expression', 'eval',...
c1ce60a964a1ef46b7d971fe91f007f3cf94d558
setup.py
setup.py
#!/usr/bin/env python3 # encoding: utf-8 try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='autoprop', version='0.0.0', author='Kale Kundert', author_email='kale@thekunderts.net', long_description=open('README.rst').read(), url='https://...
#!/usr/bin/env python3 # encoding: utf-8 try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='autoprop', version='0.0.0', author='Kale Kundert', author_email='kale@thekunderts.net', long_description=open('README.rst').read(), url='https://...
Upgrade the development status to beta.
Upgrade the development status to beta.
Python
mit
kalekundert/autoprop
--- +++ @@ -23,12 +23,12 @@ 'getter', 'setter' ], classifiers=[ - 'Development Status :: 2 - Pre-Alpha', + 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', - ...
270c9e61646f4fe45e01b06e45dde15ea0856106
setup.py
setup.py
from distutils.core import setup version = __import__('shopify_auth').__version__ setup( name = 'django-shopify-auth', version = version, description = 'An simple package for adding Shopify authentication to Django apps.', long_description = open('README.md').read(), author = 'Gavin Ballard', ...
from distutils.core import setup version = __import__('shopify_auth').__version__ setup( name = 'django-shopify-auth', version = version, description = 'An simple package for adding Shopify authentication to Django apps.', long_description = open('README.md').read(), author = 'Gavin Ballard', ...
Add the ShopifyAPI package as a dependency.
Add the ShopifyAPI package as a dependency.
Python
mit
discolabs/django-shopify-auth,funkybob/django-shopify-auth,discolabs/django-shopify-auth,RafaAguilar/django-shopify-auth,RafaAguilar/django-shopify-auth,funkybob/django-shopify-auth
--- +++ @@ -27,6 +27,7 @@ install_requires = [ 'django', + 'shopify', ], zip_safe = True,
fbd1407608505a1107042c14b8fc5cc6017d9e78
setup.py
setup.py
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.2.0', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
from setuptools import setup from os import path with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: readme = f.read() setup( name='ghstats', version='1.2.0', packages=['ghstats'], description='GitHub Release download count and other statistics.', long_description=re...
Add Python 3.7 to the list of supported versions
Add Python 3.7 to the list of supported versions
Python
mit
kefir500/ghstats
--- +++ @@ -33,6 +33,7 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Topic :: Utilities' ] )
644a25e2b61bec8847af2f6d64b9b41b8798092d
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages VERSION = '0.4.2' def readme(): with open('README.rst') as f: return f.read() setup( name='django-backupdb', version=VERSION, description='Management commands for backing up and restoring databases in Django.', long_des...
#!/usr/bin/env python from setuptools import setup, find_packages VERSION = '0.4.2' def readme(): with open('README.rst') as f: return f.read() setup( name='django-backupdb', version=VERSION, description='Management commands for backing up and restoring databases in Django.', long_des...
Add coverage as a testing requirement
Add coverage as a testing requirement
Python
bsd-2-clause
fusionbox/django-backupdb
--- +++ @@ -27,10 +27,12 @@ setup_requires=[ 'nose==1.2.1', 'mock==1.0.1', + 'coverage==3.6', ], tests_require=[ 'nose==1.2.1', 'mock==1.0.1', + 'coverage==3.6', ], install_requires=[ 'django>=1.3',
2adfcea14f292bacfbae906a70d6395304acf607
addons/bestja_volunteer_pesel/models.py
addons/bestja_volunteer_pesel/models.py
# -*- coding: utf-8 -*- from operator import mul from openerp import models, fields, api, exceptions class Volunteer(models.Model): _inherit = 'res.users' pesel = fields.Char(string=u"PESEL") def __init__(self, pool, cr): super(Volunteer, self).__init__(pool, cr) self._add_permitted_fiel...
# -*- coding: utf-8 -*- from operator import mul from openerp import models, fields, api, exceptions class Volunteer(models.Model): _inherit = 'res.users' pesel = fields.Char(string=u"PESEL") def __init__(self, pool, cr): super(Volunteer, self).__init__(pool, cr) self._add_permitted_fiel...
Fix a problem with PESEL validation
Fix a problem with PESEL validation
Python
agpl-3.0
KrzysiekJ/bestja,ludwiktrammer/bestja,EE/bestja,ludwiktrammer/bestja,EE/bestja,EE/bestja,KrzysiekJ/bestja,ludwiktrammer/bestja,KrzysiekJ/bestja
--- +++ @@ -23,7 +23,10 @@ except ValueError: raise exceptions.ValidationError("Numer PESEL może składać się wyłącznie z cyfr!") + if len(digits) != 11: + raise exceptions.ValidationError("Numer PESEL musi składać się z 11 cyfr!") + weights = (1, 3, 7, 9, 1, 3, 7, 9,...
f6b818222d8e6eb9bb6ad3a0d8ab55513eb90673
gui/driver.py
gui/driver.py
from __future__ import print_function, division from sys import argv, stderr def run_gui(): '''Start the event loop to calucate spectra interactively''' # Import Qt functions. Do so here to handle errors better try: from PyQt4.QtGui import QApplication except ImportError: print("Cannot...
from __future__ import print_function, division from sys import argv, stderr def run_gui(): '''Start the event loop to calucate spectra interactively''' # Import Qt functions. Do so here to handle errors better try: from PyQt4.QtGui import QApplication except ImportError: print("Cannot...
Raise window to focus on Mac
Raise window to focus on Mac
Python
mit
jensengrouppsu/rapid,jensengrouppsu/rapid
--- +++ @@ -23,4 +23,5 @@ app = QApplication(argv) window = MainWindow() window.show() + window.raise_() return app.exec_()
f8e800219ac2c2c76bb5ac10b2dfdac038edbb5d
circuits/tools/__init__.py
circuits/tools/__init__.py
# Module: __init__ # Date: 8th November 2008 # Author: James Mills, prologic at shortcircuit dot net dot au """Circuits Tools circuits.tools contains a standard set of tools for circuits. These tools are installed as executables with a prefix of "circuits." """ try: from cStringIO import StringIO except ImportE...
# Module: __init__ # Date: 8th November 2008 # Author: James Mills, prologic at shortcircuit dot net dot au """Circuits Tools circuits.tools contains a standard set of tools for circuits. These tools are installed as executables with a prefix of "circuits." """ def graph(x): s = [] d = 0 i = 0 done...
Remove StringIO import. Use a simple list to build up the output and return .join(s)
tools: Remove StringIO import. Use a simple list to build up the output and return .join(s)
Python
mit
treemo/circuits,eriol/circuits,eriol/circuits,treemo/circuits,treemo/circuits,nizox/circuits,eriol/circuits
--- +++ @@ -8,13 +8,8 @@ tools are installed as executables with a prefix of "circuits." """ -try: - from cStringIO import StringIO -except ImportError: - from StringIO import StringIO - def graph(x): - s = StringIO() + s = [] d = 0 i = 0 @@ -25,10 +20,10 @@ while not done: ...
ec24e051e9d10b4cb24d135a3c08e9e9f87c6b8c
social/apps/django_app/utils.py
social/apps/django_app/utils.py
from functools import wraps from django.conf import settings from django.core.urlresolvers import reverse from social.utils import setting_name, module_member from social.strategies.utils import get_strategy BACKENDS = settings.AUTHENTICATION_BACKENDS STRATEGY = getattr(settings, setting_name('STRATEGY'), ...
from functools import wraps from django.conf import settings from django.core.urlresolvers import reverse from social.utils import setting_name, module_member from social.strategies.utils import get_strategy BACKENDS = settings.AUTHENTICATION_BACKENDS STRATEGY = getattr(settings, setting_name('STRATEGY'), ...
Allow to override strategy getter
Allow to override strategy getter
Python
bsd-3-clause
fearlessspider/python-social-auth,MSOpenTech/python-social-auth,clef/python-social-auth,JJediny/python-social-auth,firstjob/python-social-auth,muhammad-ammar/python-social-auth,henocdz/python-social-auth,ariestiyansyah/python-social-auth,python-social-auth/social-app-django,falcon1kr/python-social-auth,lamby/python-soc...
--- +++ @@ -20,7 +20,7 @@ return get_strategy(BACKENDS, STRATEGY, STORAGE, *args, **kwargs) -def strategy(redirect_uri=None): +def strategy(redirect_uri=None, load_strategy=load_strategy): def decorator(func): @wraps(func) def wrapper(request, backend, *args, **kwargs):
04f7f28ef3123452d8eb06ab1f3cbfa6dded8be4
go_metrics/metrics/tests/test_dummy.py
go_metrics/metrics/tests/test_dummy.py
from twisted.trial.unittest import TestCase from go_metrics.metrics.dummy import Fixtures, DummyMetrics, DummyBackend DummyBackend, DummyMetrics class TestFixtures(TestCase): def test_add(self): fixtures = Fixtures() fixtures.add(foo='bar', result={'baz': 'quux'}) self.assertEqual(fixture...
from twisted.trial.unittest import TestCase from go_metrics.metrics.dummy import Fixtures, DummyMetrics, DummyBackend class TestFixtures(TestCase): def test_add(self): fixtures = Fixtures() fixtures.add(foo='bar', result={'baz': 'quux'}) self.assertEqual(fixtures.items, [{ 'fo...
Remove no longer needed references for keeping pep8 happy
Remove no longer needed references for keeping pep8 happy
Python
bsd-3-clause
praekelt/go-metrics-api,praekelt/go-metrics-api
--- +++ @@ -1,7 +1,6 @@ from twisted.trial.unittest import TestCase from go_metrics.metrics.dummy import Fixtures, DummyMetrics, DummyBackend -DummyBackend, DummyMetrics class TestFixtures(TestCase):
823e767f52bc6e3bf78a91950e9407a1acf811d2
tests/test_server.py
tests/test_server.py
import os import unittest import tempfile # Local modules import library.server as server class ServerTestCase(unittest.TestCase): @classmethod def setUp(self): self.db_fd, server.app.config['DATABASE'] = tempfile.mkstemp() server.app.config['TESTING'] = True self.app = server.app.te...
import os import unittest import tempfile # Local modules import library.server as server class ServerTestCase(unittest.TestCase): @classmethod def setUp(self): self.db_fd, server.app.config['DATABASE'] = tempfile.mkstemp() server.app.config['TESTING'] = True self.app = server.app.te...
Refactor test case into two classes
Refactor test case into two classes
Python
mit
HoldYourBreath/Library,HoldYourBreath/Library,HoldYourBreath/Library,HoldYourBreath/Library
--- +++ @@ -21,10 +21,14 @@ os.close(self.db_fd) os.unlink(server.app.config['DATABASE']) + +class RootTestCase(ServerTestCase): def test_root(self): rv = self.app.get('/') self.assertEqual(rv.status_code, 200) + +class BookTestCase(ServerTestCase): def test_book_post...
a92397bb2218f174a2df0b5090dd31bde2164561
tg/error.py
tg/error.py
import logging from paste.deploy.converters import asbool log = logging.getLogger(__name__) def _turbogears_backlash_context(environ): tgl = environ.get('tg.locals') return {'request':getattr(tgl, 'request', None)} def ErrorHandler(app, global_conf, **errorware): """ErrorHandler Toggle If debug ...
import logging from paste.deploy.converters import asbool log = logging.getLogger(__name__) def _turbogears_backlash_context(environ): tgl = environ.get('tg.locals') return {'request':getattr(tgl, 'request', None)} def ErrorHandler(app, global_conf, **errorware): """ErrorHandler Toggle If debug ...
Enable context provider for TraceErrorsMiddleware
Enable context provider for TraceErrorsMiddleware
Python
mit
lucius-feng/tg2,lucius-feng/tg2
--- +++ @@ -40,6 +40,7 @@ from backlash.trace_errors import EmailReporter if not asbool(global_conf.get('debug')): - app = backlash.TraceErrorsMiddleware(app, [EmailReporter(**errorware)]) + app = backlash.TraceErrorsMiddleware(app, [EmailReporter(**errorware)], + ...
1ad0ca50d1f4c61513bea33a4ffd999406c69600
accelerator/migrations/0019_add_deferred_user_role.py
accelerator/migrations/0019_add_deferred_user_role.py
# Generated by Django 2.2.10 on 2020-04-09 21:24 from django.db import migrations def add_deferred_user_role(apps, schema_editor): DEFERRED_MENTOR = 'Deferred Mentor' UserRole = apps.get_model('accelerator', 'UserRole') Program = apps.get_model('accelerator', 'Program') ProgramRole = apps.get_model('...
# Generated by Django 2.2.10 on 2020-04-09 21:24 from django.db import migrations def add_deferred_user_role(apps, schema_editor): DEFERRED_MENTOR = 'Deferred Mentor' UserRole = apps.get_model('accelerator', 'UserRole') Program = apps.get_model('accelerator', 'Program') ProgramRole = apps.get_model('...
Merge remote-tracking branch 'origin/development' into AC-7469
[AC-7469] Merge remote-tracking branch 'origin/development' into AC-7469
Python
mit
masschallenge/django-accelerator,masschallenge/django-accelerator
--- +++ @@ -9,7 +9,7 @@ Program = apps.get_model('accelerator', 'Program') ProgramRole = apps.get_model('accelerator', 'ProgramRole') if UserRole.objects.filter(name=DEFERRED_MENTOR).exists(): - user_role = UserRole.objects.filter(user=DEFERRED_MENTOR)[0] + user_role = UserRole.objects.fi...
e5d88beba41de18ebab33e0770ddd8bb5174491e
pyfr/quadrules/__init__.py
pyfr/quadrules/__init__.py
# -*- coding: utf-8 -*- import re from pyfr.quadrules.base import BaseQuadRule, BaseTabulatedQuadRule from pyfr.quadrules.line import BaseLineQuadRule from pyfr.quadrules.tri import BaseTriQuadRule from pyfr.util import subclass_map def get_quadrule(basecls, rule, npts): # See if rule looks like the name of a s...
# -*- coding: utf-8 -*- import re from pyfr.quadrules.base import BaseQuadRule, BaseTabulatedQuadRule from pyfr.quadrules.line import BaseLineQuadRule from pyfr.util import subclass_map def get_quadrule(basecls, rule, npts): # See if rule looks like the name of a scheme if re.match(r'[a-zA-Z0-9\-+_]+$', rul...
Fix a bug in the quadrules.
Fix a bug in the quadrules.
Python
bsd-3-clause
tjcorona/PyFR,tjcorona/PyFR,iyer-arvind/PyFR,BrianVermeire/PyFR,tjcorona/PyFR,Aerojspark/PyFR
--- +++ @@ -4,7 +4,6 @@ from pyfr.quadrules.base import BaseQuadRule, BaseTabulatedQuadRule from pyfr.quadrules.line import BaseLineQuadRule -from pyfr.quadrules.tri import BaseTriQuadRule from pyfr.util import subclass_map
010de29acb284250667b393f9e1ba7b34b53aaf5
pygametemplate/__init__.py
pygametemplate/__init__.py
"""pygametemplate module for making creating games with Pygame easier.""" from __future__ import absolute_import __version__ = "0.2.0" __author__ = "Andrew Dean" from pygametemplate.game import Game
"""pygametemplate module for making creating games with Pygame easier.""" from __future__ import absolute_import __version__ = "0.2.0" __author__ = "Andrew Dean" from pygametemplate.game import Game from pygametemplate.view import View
Add View as a first class member of pygametemplate
Add View as a first class member of pygametemplate
Python
mit
AndyDeany/pygame-template
--- +++ @@ -9,3 +9,4 @@ from pygametemplate.game import Game +from pygametemplate.view import View
c39c60de325f5ce827de423abc646bd8662c80fb
pyp2rpmlib/package_data.py
pyp2rpmlib/package_data.py
class PackageData(object): def __init__(self, local_file, name, version): self.local_file = local_file self.name = name self.version = version class PypiData(PackageData): def __init__(self, local_file, name, version, md5, url): super(PackageData, self).__init__(local_file, name...
class PackageData(object): def __init__(self, local_file, name, version): self.local_file = local_file self.name = name self.version = version def __getattr__(self, name): if name in self.__dict__: return self.__dict__[name] return None class PypiData(Packa...
Package data objects should return None for missing attributes.
Package data objects should return None for missing attributes.
Python
mit
mcyprian/pyp2rpm,henrysher/spec4pypi,MichaelMraka/pyp2rpm,pombredanne/pyp2rpm,yuokada/pyp2rpm,fedora-python/pyp2rpm,joequant/pyp2rpm
--- +++ @@ -3,6 +3,12 @@ self.local_file = local_file self.name = name self.version = version + + def __getattr__(self, name): + if name in self.__dict__: + return self.__dict__[name] + + return None class PypiData(PackageData): def __init__(self, local_f...
7f38276fddc3d94f791d29d3bcbff4bfc9d4ee98
tests/chainer_tests/datasets_tests/test_tuple_dataset.py
tests/chainer_tests/datasets_tests/test_tuple_dataset.py
import unittest import numpy from chainer import cuda from chainer import datasets from chainer import testing from chainer.testing import attr class TestTupleDataset(unittest.TestCase): def setUp(self): self.x0 = numpy.random.rand(3, 4) self.x1 = numpy.random.rand(3, 5) def check_tuple_da...
import unittest import numpy from chainer import cuda from chainer import datasets from chainer import testing from chainer.testing import attr class TestTupleDataset(unittest.TestCase): def setUp(self): self.x0 = numpy.random.rand(3, 4) self.x1 = numpy.random.rand(3, 5) self.z0 = numpy...
Add exception test cases for TupleDataset
Add exception test cases for TupleDataset
Python
mit
okuta/chainer,cupy/cupy,hvy/chainer,keisuke-umezawa/chainer,niboshi/chainer,anaruse/chainer,ronekko/chainer,keisuke-umezawa/chainer,jnishi/chainer,chainer/chainer,hvy/chainer,keisuke-umezawa/chainer,ktnyt/chainer,kikusu/chainer,okuta/chainer,delta2323/chainer,niboshi/chainer,niboshi/chainer,rezoo/chainer,wkentaro/chain...
--- +++ @@ -13,6 +13,7 @@ def setUp(self): self.x0 = numpy.random.rand(3, 4) self.x1 = numpy.random.rand(3, 5) + self.z0 = numpy.random.rand(4, 4) def check_tuple_dataset(self, x0, x1): td = datasets.TupleDataset(x0, x1) @@ -34,5 +35,14 @@ def test_tuple_dataset_gpu(...
16091eebd0242782715600df9f6db9596f5797fe
tagging_autocomplete/urls.py
tagging_autocomplete/urls.py
from django.conf.urls import patterns, url urlpatterns = patterns( 'tagging_autocomplete.views', url(r'^list$', 'list_tags', name='tagging_autocomplete-list'), )
from django.conf.urls import url urlpatterns = [ 'tagging_autocomplete.views', url(r'^list$', 'list_tags', name='tagging_autocomplete-list'), ]
Drop the deprecated way of specifying url patterns
Drop the deprecated way of specifying url patterns
Python
mit
ludwiktrammer/django-tagging-autocomplete
--- +++ @@ -1,7 +1,7 @@ -from django.conf.urls import patterns, url +from django.conf.urls import url -urlpatterns = patterns( +urlpatterns = [ 'tagging_autocomplete.views', url(r'^list$', 'list_tags', name='tagging_autocomplete-list'), -) +]
397099cc8e2628a548c66957168dfab3de7f7f59
estudios_socioeconomicos/tests.py
estudios_socioeconomicos/tests.py
# from django.test import TestCase # Create your tests here.
from django.test import TestCase from .models import Pregunta, Seccion, Subseccion from .load import load_data class TestLoadPreguntas(TestCase): """ Suite to test the script to load questions. """ def test_load_preguntas(self): """ Test that the script to load questions works properly. ...
Add test for loading script.
Add test for loading script.
Python
mit
erikiado/jp2_online,erikiado/jp2_online,erikiado/jp2_online
--- +++ @@ -1,3 +1,20 @@ -# from django.test import TestCase +from django.test import TestCase +from .models import Pregunta, Seccion, Subseccion +from .load import load_data -# Create your tests here. + +class TestLoadPreguntas(TestCase): + """ Suite to test the script to load questions. + + """ + + def t...
5a764e0b91db628efd20d63d70c5ed688695f8b1
app/routes.py
app/routes.py
from app import app from flask import redirect, render_template @app.route('/') def index(): return render_template('index.html') # default 'catch all' route @app.route('/', defaults={'path': ''}) @app.route('/<path:path>') def catch_all(path): return redirect('/')
from app import app from app.models import Digit from flask import redirect, render_template, request, jsonify @app.route('/') def index(): return render_template('index.html') # api route # parameters # # id: id to query, will return all otherwise # select: one value per item in the query # limit: limit, obvious...
Add basic functional DB /api route
Add basic functional DB /api route
Python
mit
starcalibre/MNIST3D,starcalibre/MNIST3D,starcalibre/MNIST3D
--- +++ @@ -1,9 +1,30 @@ from app import app -from flask import redirect, render_template +from app.models import Digit +from flask import redirect, render_template, request, jsonify @app.route('/') def index(): return render_template('index.html') + +# api route +# parameters +# +# id: id to query, will re...
e6d9524d6e29077cfb805cbafd99caf2b080a1c6
src/hyperloop/aero.py
src/hyperloop/aero.py
from openmdao.main.api import Component from openmdao.lib.datatypes.api import Float #put inside pod class Aero(Component): """Place holder for real aerodynamic calculations of the capsule""" #Inputs coef_drag = Float(1, iotype="in", desc="capsule drag coefficient") area_capsule = Float(18000, iotype...
from openmdao.main.api import Component from openmdao.lib.datatypes.api import Float #put inside pod class Aero(Component): """Place holder for real aerodynamic calculations of the capsule""" #Inputs coef_drag = Float(1, iotype="in", desc="capsule drag coefficient") area_capsule = Float(18000, iotype...
Fix velocity_capsule description and drag formula
Fix velocity_capsule description and drag formula Drag force should be quadratically dependent on speed instead of linearly dependent.
Python
apache-2.0
HyperloopTeam/Hyperloop,paulopperman/Hyperloop,whiplash01/Hyperloop,whiplash01/Hyperloop,UwHyperloop/Hyperloop,UwHyperloop/Hyperloop,HyperloopTeam/Hyperloop,paulopperman/Hyperloop,kishenr12/Hyperloop,kishenr12/Hyperloop
--- +++ @@ -7,7 +7,7 @@ #Inputs coef_drag = Float(1, iotype="in", desc="capsule drag coefficient") area_capsule = Float(18000, iotype="in", units="cm**2", desc="capsule frontal area") - velocity_capsule = Float(600, iotype="in", units="m/s", desc="capsule frontal area") + velocity_capsule = Float...
e6cf8c244cdffa08d67a45c3a44236c3b91aab78
examples/rmg/liquid_phase/input.py
examples/rmg/liquid_phase/input.py
# Data sources database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [], seedMechanisms = [], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) # List of species species( label='octane', reactive=True, structur...
# Data sources database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [], seedMechanisms = [], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) # Constraints on generated species generatedSpeciesConstraints( maximumRad...
Update RMG example liquid_phase with multiplicity label
Update RMG example liquid_phase with multiplicity label
Python
mit
chatelak/RMG-Py,pierrelb/RMG-Py,enochd/RMG-Py,comocheng/RMG-Py,chatelak/RMG-Py,nyee/RMG-Py,enochd/RMG-Py,nickvandewiele/RMG-Py,nyee/RMG-Py,pierrelb/RMG-Py,nickvandewiele/RMG-Py,comocheng/RMG-Py
--- +++ @@ -8,15 +8,22 @@ kineticsEstimator = 'rate rules', ) +# Constraints on generated species +generatedSpeciesConstraints( + maximumRadicalElectrons = 3, +) + # List of species species( label='octane', + multiplicity = 1, reactive=True, structure=SMILES("C(CCCCC)CC"), ) species...
9541fd723308d51f7c380649a81b4992074a1193
workout_manager/urls.py
workout_manager/urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^', include('manager.urls')), url(r'exercise/', include('exercises.urls')), url(r'weight/', include('weight.urls')), ...
from django.conf.urls import patterns, include, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin admin.autodiscover() urlpatterns = i18n_patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^', include('manager.urls')), url(r'exercise/', include('exercises.ur...
Append the name of the current language to the URLs
Append the name of the current language to the URLs --HG-- branch : 1.1-dev
Python
agpl-3.0
DeveloperMal/wger,petervanderdoes/wger,DeveloperMal/wger,kjagoo/wger_stark,petervanderdoes/wger,wger-project/wger,kjagoo/wger_stark,rolandgeider/wger,wger-project/wger,DeveloperMal/wger,kjagoo/wger_stark,DeveloperMal/wger,petervanderdoes/wger,wger-project/wger,rolandgeider/wger,rolandgeider/wger,kjagoo/wger_stark,peter...
--- +++ @@ -1,9 +1,10 @@ from django.conf.urls import patterns, include, url +from django.conf.urls.i18n import i18n_patterns from django.contrib import admin admin.autodiscover() -urlpatterns = patterns('', +urlpatterns = i18n_patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^', inclu...
038e60b342367e3ea6499d16d4f8a9666d99d0bf
django_custom_500/example_project/tests/test_basic.py
django_custom_500/example_project/tests/test_basic.py
# -*- encoding: utf-8 -*- # ! python2 from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals """Tests for django-custom-500's decorators""" import unittest import requests from django.test import TestCase, LiveServerTestCase class NormalViewTestCase(Tes...
# -*- encoding: utf-8 -*- # ! python2 from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals """Tests for django-custom-500's decorators""" import unittest import requests from django.test import TestCase, LiveServerTestCase class NormalViewTestCase(Tes...
Fix for 3.3 and 3.4
Fix for 3.3 and 3.4
Python
mit
illagrenan/django-custom-500,illagrenan/django-custom-500
--- +++ @@ -16,7 +16,7 @@ def test_normal_view(self): ok_response = self.client.get('/normal-view-that-returns-data') - self.assertTrue('42' in ok_response.content) + self.assertIn('42', ok_response.content) class InternalErrorTestCase(LiveServerTestCase):
cca7dee87863219b382321ba563cb48b1e58a4fb
tests/chainer_tests/functions_tests/pooling_tests/test_pooling_nd_kernel.py
tests/chainer_tests/functions_tests/pooling_tests/test_pooling_nd_kernel.py
import unittest import mock import chainer from chainer.functions.pooling import pooling_nd_kernel from chainer import testing from chainer.testing import attr @testing.parameterize(*testing.product({ 'ndim': [2, 3, 4], })) @attr.gpu class TestPoolingNDKernelMemo(unittest.TestCase): def setUp(self): ...
import unittest import mock import chainer from chainer.functions.pooling import pooling_nd_kernel from chainer import testing from chainer.testing import attr @testing.parameterize(*testing.product({ 'ndim': [2, 3, 4], })) @attr.gpu class TestPoolingNDKernelMemo(unittest.TestCase): def setUp(self): ...
Add comments for tests of caching.
Add comments for tests of caching.
Python
mit
cupy/cupy,hvy/chainer,jnishi/chainer,ysekky/chainer,kashif/chainer,jnishi/chainer,delta2323/chainer,keisuke-umezawa/chainer,jnishi/chainer,niboshi/chainer,niboshi/chainer,hvy/chainer,keisuke-umezawa/chainer,okuta/chainer,wkentaro/chainer,wkentaro/chainer,tkerola/chainer,ronekko/chainer,ktnyt/chainer,chainer/chainer,kei...
--- +++ @@ -24,6 +24,8 @@ pooling_nd_kernel.PoolingNDKernelForward.generate(ndim) m.assert_called_once_with(ndim) pooling_nd_kernel.PoolingNDKernelForward.generate(ndim) + # Check that the mocked _generate() function is called just once + # because the resu...
5e4c12067ee2b1d9affceaea789405422f7233a1
ce/common.py
ce/common.py
#!/usr/bin/env python # vim: set fileencoding=UTF-8 : import inspect class DynamicMethods(object): def list_methods(self, predicate): """Find all transform methods within the class that satisfies the predicate. Returns: A list of tuples containing method names and correspon...
#!/usr/bin/env python # vim: set fileencoding=UTF-8 : import inspect class DynamicMethods(object): def list_methods(self, predicate): """Find all transform methods within the class that satisfies the predicate. Returns: A list of tuples containing method names and correspon...
Fix broken list_methods due to inspect behaviour
Fix broken list_methods due to inspect behaviour
Python
mit
admk/soap
--- +++ @@ -15,8 +15,8 @@ A list of tuples containing method names and corresponding methods that can be called with a tree as the argument for each method. """ - methods = [member[0] for member in inspect.getmembers( - self.__class__, predicate=inspect.ismethod)] ...
012ab9bf79ae2f70079534ce6ab527f8e08a50f3
doc/tutorials/python/secure-msg-template.py
doc/tutorials/python/secure-msg-template.py
async def init(): me = input('Who are you? ').strip() wallet_name = '%s-wallet' % me # 1. Create Wallet and Get Wallet Handle try: await wallet.create_wallet(pool_name, wallet_name, None, None, None) except: pass wallet_handle = await wallet.open_wallet(wallet_name, None, None) ...
import asyncio import time import re async def prep(wallet_handle, my_vk, their_vk, msg): print('prepping %s' % msg) async def init(): return None, None, None, None, None async def read(wallet_handle, my_vk): print('reading') async def demo(): wallet_handle, my_did, my_vk, their_did, their_vk = awai...
Fix template that was accidentally overwritten
Fix template that was accidentally overwritten
Python
apache-2.0
anastasia-tarasova/indy-sdk,anastasia-tarasova/indy-sdk,Artemkaaas/indy-sdk,anastasia-tarasova/indy-sdk,srottem/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,srottem/indy-sdk,srottem/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,srottem/indy-sdk,srottem/indy-sdk,srottem/indy-sdk,anastasia-tarasova/indy-sdk,Art...
--- +++ @@ -1,17 +1,36 @@ +import asyncio +import time +import re + +async def prep(wallet_handle, my_vk, their_vk, msg): + print('prepping %s' % msg) + async def init(): - me = input('Who are you? ').strip() - wallet_name = '%s-wallet' % me + return None, None, None, None, None - # 1. Create Wallet...
a118e2b7133cf4391c1df41d95f9e4329a0bf5e9
tests/__init__.py
tests/__init__.py
import logging import unittest import os import shutil from sqlalchemy import create_engine from rtrss import config, database logging.disable(logging.ERROR) engine = create_engine(config.SQLALCHEMY_DATABASE_URI, echo=False, client_encoding='utf8') # Reconfigure sessio...
import logging import unittest import os import shutil from sqlalchemy import create_engine from rtrss import config, database logging.disable(logging.ERROR) engine = create_engine(config.SQLALCHEMY_DATABASE_URI, echo=False, client_encoding='utf8') # Reconfigure sessio...
Remove test data folder with all contents during setUp
Remove test data folder with all contents during setUp
Python
apache-2.0
notapresent/rtrss,notapresent/rtrss,notapresent/rtrss,notapresent/rtrss
--- +++ @@ -28,7 +28,7 @@ @classmethod def setUpClass(cls): if os.path.isdir(config.DATA_DIR): - os.rmdir(config.DATA_DIR) + shutil.rmtree(config.DATA_DIR) os.makedirs(config.DATA_DIR) @classmethod
1de254b56eba45ecdc88d26272ab1f123e734e25
tests/test_dem.py
tests/test_dem.py
import unittest import numpy as np class CalculationMethodsTestCase(unittest.TestCase): def setUp(self): self.dem = DEMGrid() def test_calculate_slope(self): sx, sy = self.dem._calculate_slope() def test_calculate_laplacian(self): del2z = self.dem._calculate_lapalacian() ...
import unittest import numpy as np import filecmp TESTDATA_FILENAME = os.path.join(os.path.dirname(__file__), 'data/big_basin.tif') class CalculationMethodsTestCase(unittest.TestCase): def setUp(self): self.dem = DEMGrid(TESTDATA_FILENAME) def test_calculate_slope(self): ...
Add test for writing spatial grid to file
Add test for writing spatial grid to file
Python
mit
stgl/scarplet,rmsare/scarplet
--- +++ @@ -1,21 +1,32 @@ import unittest import numpy as np +import filecmp + +TESTDATA_FILENAME = os.path.join(os.path.dirname(__file__), 'data/big_basin.tif') + class CalculationMethodsTestCase(unittest.TestCase): + + def setUp(self): - self.dem = DEMGrid() + + self.dem = DE...
28f25bb7ca5a415bbc3ca2aabd7e290339140a9f
tests/test_dns.py
tests/test_dns.py
from .utils import TestCase, skipUnless from dynsupdate import client import os class DnsTests(TestCase): @skipUnless(os.getenv("SLOW"), "To slow") def test_build_resolver(self): domain = 'google-public-dns-a.google.com' res = client.NameUpdate.build_resolver(domain) self.assertListEq...
from .utils import TestCase, skipUnless, mock from dynsupdate import client import os class DnsTests(TestCase): @skipUnless(os.getenv("SLOW"), "To slow") def test_build_resolver(self): domain = 'google-public-dns-a.google.com' res = client.NameUpdate.build_resolver(domain) self.assert...
Add mocked test of build_resolver
Add mocked test of build_resolver
Python
bsd-3-clause
bacher09/dynsupdate
--- +++ @@ -1,4 +1,4 @@ -from .utils import TestCase, skipUnless +from .utils import TestCase, skipUnless, mock from dynsupdate import client import os @@ -10,3 +10,17 @@ domain = 'google-public-dns-a.google.com' res = client.NameUpdate.build_resolver(domain) self.assertListEqual(res.na...
36dd1493f329e82edd4ed514bfaaa0b58c882141
virtool/processes.py
virtool/processes.py
STEP_COUNTS = { "delete_reference": 2, "import_reference": 0, "setup_remote_reference": 0, "update_remote_reference": 0, "update_software": 0, "install_hmms": 0 } FIRST_STEPS = { "delete_reference": "delete_indexes", "import_reference": "load_file", "setup_remote_reference": "", ...
STEP_COUNTS = { "delete_reference": 2, "import_reference": 0, "setup_remote_reference": 0, "update_remote_reference": 0, "update_software": 0, "install_hmms": 0 } FIRST_STEPS = { "delete_reference": "delete_indexes", "import_reference": "load_file", "setup_remote_reference": "", ...
Fix not awaited ProgressTracker bug
Fix not awaited ProgressTracker bug
Python
mit
virtool/virtool,virtool/virtool,igboyes/virtool,igboyes/virtool
--- +++ @@ -43,7 +43,7 @@ return self.progress - async def reported(self): + def reported(self): self.last_reported = self.progress @property
7653f2c6e4f72e40eefee5d70d83ceafb8bc4282
lib/extend.py
lib/extend.py
from collections import OrderedDict import ruamel.yaml yaml = ruamel.yaml.YAML() class Operation(): def __init__(self, extension): self.extension = extension class Merge(Operation): def apply(self, base): ret = base.copy() for key, value in self.extension.items(): if key i...
from collections import OrderedDict import ruamel.yaml yaml = ruamel.yaml.YAML() class Operation(): def __init__(self, extension): self.extension = extension class Merge(Operation): def apply(self, base): ret = base.copy() for key, value in self.extension.items(): if key i...
Use context manager to read syntax file
Use context manager to read syntax file
Python
mit
Thom1729/YAML-Macros
--- +++ @@ -32,5 +32,6 @@ base = extension['_base'] del extension['_base'] - syntax = yaml.load( open(base, 'r') ) + with open(base, 'r') as base_file: + syntax = yaml.load(base_file) return Merge(extension).apply(syntax)
616e542ee32b1ac83dd4d1977119ef670520c476
saleor/warehouse/models.py
saleor/warehouse/models.py
import uuid from django.db import models from django.utils.translation import pgettext_lazy from ..account.models import Address from ..shipping.models import ShippingZone class WarehouseQueryset(models.QuerySet): def prefetch_data(self): return self.select_related("address").prefetch_related("shipping_...
import uuid from typing import Set from django.db import models from django.utils.translation import pgettext_lazy from ..account.models import Address from ..shipping.models import ShippingZone class WarehouseQueryset(models.QuerySet): def prefetch_data(self): return self.select_related("address").pref...
Simplify getting countries associated with warehouse
Simplify getting countries associated with warehouse
Python
bsd-3-clause
mociepka/saleor,mociepka/saleor,mociepka/saleor
--- +++ @@ -1,4 +1,5 @@ import uuid +from typing import Set from django.db import models from django.utils.translation import pgettext_lazy @@ -46,6 +47,15 @@ def __str__(self): return self.name + @property + def countries(self) -> Set[str]: + countries_zone = ",".join( + ...
b6d9e7c24b0185d6a715adee4fc457afda6078f4
src/waldur_core/core/migrations/0008_changeemailrequest_uuid.py
src/waldur_core/core/migrations/0008_changeemailrequest_uuid.py
from django.db import migrations import waldur_core.core.fields class Migration(migrations.Migration): dependencies = [ ('core', '0007_changeemailrequest'), ] operations = [ migrations.AddField( model_name='changeemailrequest', name='uuid', field=wald...
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_changeemailrequest'), ] operations = [ migrations.AddField( model_name='changeemailrequest', name='uuid', field=models.UUIDField(), ), ]
Fix UUID field migration for change email request model.
Fix UUID field migration for change email request model. We should have been used builtin UUID field because our own field has uniqueness constraint.
Python
mit
opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/waldur-mastermind
--- +++ @@ -1,6 +1,4 @@ -from django.db import migrations - -import waldur_core.core.fields +from django.db import migrations, models class Migration(migrations.Migration): @@ -11,8 +9,6 @@ operations = [ migrations.AddField( - model_name='changeemailrequest', - name='uuid',...
a06ca6899062bab407cb4c6884d0bf148a380b1f
netsecus/task.py
netsecus/task.py
from __future__ import unicode_literals class Task(object): def __init__(self, number, description, maxPoints): self.number = number self.description = description self.maxPoints = maxPoints
from __future__ import unicode_literals class Task(object): def __init__(self, number, description, maxPoints, reachedPoints): self.number = number self.description = description self.maxPoints = maxPoints self.reachedPoints = reachedPoints
Add a variable to hold reached points
Add a variable to hold reached points
Python
mit
hhucn/netsec-uebungssystem,hhucn/netsec-uebungssystem,hhucn/netsec-uebungssystem
--- +++ @@ -3,7 +3,8 @@ class Task(object): - def __init__(self, number, description, maxPoints): + def __init__(self, number, description, maxPoints, reachedPoints): self.number = number self.description = description self.maxPoints = maxPoints + self.reachedPoints = reac...