commit
stringlengths
40
40
old_file
stringlengths
4
118
new_file
stringlengths
4
118
old_contents
stringlengths
0
2.94k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
444
message
stringlengths
16
3.45k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
5
43.2k
prompt
stringlengths
17
4.58k
response
stringlengths
1
4.43k
prompt_tagged
stringlengths
58
4.62k
response_tagged
stringlengths
1
4.43k
text
stringlengths
132
7.29k
text_tagged
stringlengths
173
7.33k
e7ffd40f5ff1ac15f37a466bb1ad183c5205cdcf
erroneous/signals.py
erroneous/signals.py
import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=None, *args, **kwa...
import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=None, *args, **kwa...
Store error id in session
Store error id in session
Python
mit
mbelousov/django-erroneous,mbelousov/django-erroneous
import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=None, *args, **kwa...
import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=None, *args, **kwa...
<commit_before>import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=Non...
import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=None, *args, **kwa...
import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=None, *args, **kwa...
<commit_before>import traceback import sys from django.views.debug import ExceptionReporter from django.http import Http404 from erroneous.models import Error class LoggingExceptionHandler(object): """ The logging exception handler """ @staticmethod def create_from_exception(sender, request=Non...
dfce6a7956a579631961587b0518d352aae675e2
run_development_server.py
run_development_server.py
#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, port=5566)
#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, host='0.0.0.0', port=5566)
Make it easier to test API with multiple machines
Make it easier to test API with multiple machines Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk>
Python
agpl-3.0
antismash/db-api,antismash/db-api
#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, port=5566) Make it easier to test API with multiple machines Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk>
#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, host='0.0.0.0', port=5566)
<commit_before>#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, port=5566) <commit_msg>Make it easier to test API with multiple machines Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk><commit_after>
#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, host='0.0.0.0', port=5566)
#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, port=5566) Make it easier to test API with multiple machines Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk>#!/usr/bin/env python from api import app if __name__ == "__main__": app.ru...
<commit_before>#!/usr/bin/env python from api import app if __name__ == "__main__": app.run(debug=True, port=5566) <commit_msg>Make it easier to test API with multiple machines Signed-off-by: Kai Blin <ad3597797f6179d503c382b2627cc19939309418@biosustain.dtu.dk><commit_after>#!/usr/bin/env python from api import a...
5598a6ae434f85b3657120aae8944b5814e5ec37
samples/barebone/views.py
samples/barebone/views.py
import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: self.write(f...
import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: self.write(f...
Put detailed error message for development environment in index view.
Put detailed error message for development environment in index view.
Python
mit
kuasha/cosmos
import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: self.write(f...
import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: self.write(f...
<commit_before>import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: ...
import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: self.write(f...
import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: self.write(f...
<commit_before>import settings __author__ = 'Maruf Maniruzzaman' import tornado from tornado import gen from cosmos.service.requesthandler import RequestHandler class IndexHandler(RequestHandler): @gen.coroutine def get(self): try: with open(settings.INDEX_HTML_PATH) as f: ...
2073942c49cb85664c068412951f2c1f7351679f
add_random_answers.py
add_random_answers.py
import pandas as pd import time from datetime import datetime, date start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: print(date)
import pandas as pd import time from datetime import datetime, date from random import randint start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: random_hour = randint(10, 17) random_minute = randint(0, 59) random_second = randi...
Print random time based on date range
Print random time based on date range
Python
mit
andrewlrogers/srvy
import pandas as pd import time from datetime import datetime, date start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: print(date) Print random time based on date range
import pandas as pd import time from datetime import datetime, date from random import randint start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: random_hour = randint(10, 17) random_minute = randint(0, 59) random_second = randi...
<commit_before>import pandas as pd import time from datetime import datetime, date start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: print(date) <commit_msg>Print random time based on date range<commit_after>
import pandas as pd import time from datetime import datetime, date from random import randint start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: random_hour = randint(10, 17) random_minute = randint(0, 59) random_second = randi...
import pandas as pd import time from datetime import datetime, date start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: print(date) Print random time based on date rangeimport pandas as pd import time from datetime import datetime, date ...
<commit_before>import pandas as pd import time from datetime import datetime, date start_date = date(2014, 1, 1) end_date = datetime.now() date_range = pd.date_range(start_date, end_date) for date in date_range: print(date) <commit_msg>Print random time based on date range<commit_after>import pandas as pd import ...
c680235a36c72e7229fde6fd68a80a39ab63f104
muninn/tools/pull.py
muninn/tools/pull.py
# # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args.verify_hash els...
# # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args.verify_hash els...
Make sure expression operator precedence is correct
Make sure expression operator precedence is correct
Python
bsd-3-clause
stcorp/muninn,stcorp/muninn
# # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args.verify_hash els...
# # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args.verify_hash els...
<commit_before># # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args....
# # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args.verify_hash els...
# # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args.verify_hash els...
<commit_before># # Copyright (C) 2014-2017 S[&]T, The Netherlands. # from __future__ import absolute_import, division, print_function import logging import muninn from .utils import create_parser, parse_args_and_run def pull(args): with muninn.open(args.archive) as archive: verify_hash = True if args....
22c6976985f565260b71439a0519e2d3b38ddf01
moa/tools.py
moa/tools.py
__all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False': return False return not not val ...
__all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False' or val == '0': return False return ...
Fix to_bool to accept 0.
Fix to_bool to accept 0.
Python
mit
matham/moa
__all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False': return False return not not val ...
__all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False' or val == '0': return False return ...
<commit_before> __all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False': return False return...
__all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False' or val == '0': return False return ...
__all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False': return False return not not val ...
<commit_before> __all__ = ('to_bool', 'ConfigPropertyList') from kivy.properties import ConfigParserProperty from re import compile, split to_list_pat = compile('(?:, *)?\\n?') def to_bool(val): ''' Takes anything and converts it to a bool type. ''' if val == 'False': return False return...
8b78686d889e4915dbecdccdb1b4c4d0d71103fe
snactor/executors/bash.py
snactor/executors/bash.py
import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init) self....
import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init) self....
Check if there is any output processor
Check if there is any output processor
Python
apache-2.0
leapp-to/snactor
import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init) self....
import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init) self....
<commit_before>import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init...
import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init) self....
import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init) self....
<commit_before>import snactor.output_processors from snactor.executors.payload import PayloadExecutor, registered_executor from snactor.registry import get_output_processor class BashExecutorDefinition(PayloadExecutor.Definition): def __init__(self, init): super(BashExecutorDefinition, self).__init__(init...
7d743d02f0069c7db91dd78a525babd5c0f6f4d9
opps/api/__init__.py
opps/api/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from tastypie.constants import ALL class MetaBase: allowed_methods = ['get'] filtering = { 'site_domain': ALL, 'channel_long_slug': ALL, 'child_class': ALL, 'tags': ALL, }
Write api MetaBase to tastypie
Write api MetaBase to tastypie
Python
mit
jeanmask/opps,opps/opps,williamroot/opps,YACOWS/opps,opps/opps,opps/opps,YACOWS/opps,williamroot/opps,YACOWS/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,jeanmask/opps,opps/opps,williamroot/opps,williamroot/opps
Write api MetaBase to tastypie
#!/usr/bin/env python # -*- coding: utf-8 -*- from tastypie.constants import ALL class MetaBase: allowed_methods = ['get'] filtering = { 'site_domain': ALL, 'channel_long_slug': ALL, 'child_class': ALL, 'tags': ALL, }
<commit_before> <commit_msg>Write api MetaBase to tastypie<commit_after>
#!/usr/bin/env python # -*- coding: utf-8 -*- from tastypie.constants import ALL class MetaBase: allowed_methods = ['get'] filtering = { 'site_domain': ALL, 'channel_long_slug': ALL, 'child_class': ALL, 'tags': ALL, }
Write api MetaBase to tastypie#!/usr/bin/env python # -*- coding: utf-8 -*- from tastypie.constants import ALL class MetaBase: allowed_methods = ['get'] filtering = { 'site_domain': ALL, 'channel_long_slug': ALL, 'child_class': ALL, 'tags': ALL, }
<commit_before> <commit_msg>Write api MetaBase to tastypie<commit_after>#!/usr/bin/env python # -*- coding: utf-8 -*- from tastypie.constants import ALL class MetaBase: allowed_methods = ['get'] filtering = { 'site_domain': ALL, 'channel_long_slug': ALL, 'child_class': ALL, 'ta...
29021a01cbba9724a0f6a070470a69cb311c24ad
setup.py
setup.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("*", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: from testr.setup_h...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("Ska.Numpy.fastss", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: fro...
Fix the location of the C extension
Fix the location of the C extension
Python
bsd-3-clause
sot/Ska.Numpy
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("*", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: from testr.setup_h...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("Ska.Numpy.fastss", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: fro...
<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("*", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: fro...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("Ska.Numpy.fastss", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: fro...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("*", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: from testr.setup_h...
<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst from setuptools import setup, Extension import numpy as np from Cython.Build import cythonize fastss_ext = Extension("*", ['Ska/Numpy/fastss.pyx'], include_dirs=[np.get_include()]) try: fro...
8c528fb604c67a06ec8babb0ad595a9693993451
api/projects/tasks.py
api/projects/tasks.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = logging.getLogger('p...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = logging.getLogger('p...
Fix issue with celery rescheduling task
Fix issue with celery rescheduling task
Python
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = logging.getLogger('p...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = logging.getLogger('p...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = loggi...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = logging.getLogger('p...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = logging.getLogger('p...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging from api.settings import CeleryTasks, Intervals from api.celery_api import app as celery_app from experiments.tasks import build_experiment from projects.models import ExperimentGroup logger = loggi...
04cbfb1a0d7506e37dbb48569e6815b0d06c5238
orders/views.py
orders/views.py
from django.http import HttpResponse from django.template import RequestContext, loader from orders.models import Item def index(request): item_list = Item.objects.all() template = loader.get_template('orders/index.html') context = RequestContext(request, { 'item_list': item_list, }) retur...
from django.shortcuts import render from orders.models import Item def index(request): item_list = Item.objects.all() context = {'item_list': item_list} return render(request, 'orders/index.html', context)
Use render in the index view
Use render in the index view
Python
cc0-1.0
joostrijneveld/eetFestijn,WKuipers/eetFestijn,joostrijneveld/eetFestijn,joostrijneveld/eetFestijn,WKuipers/eetFestijn,WKuipers/eetFestijn
from django.http import HttpResponse from django.template import RequestContext, loader from orders.models import Item def index(request): item_list = Item.objects.all() template = loader.get_template('orders/index.html') context = RequestContext(request, { 'item_list': item_list, }) retur...
from django.shortcuts import render from orders.models import Item def index(request): item_list = Item.objects.all() context = {'item_list': item_list} return render(request, 'orders/index.html', context)
<commit_before>from django.http import HttpResponse from django.template import RequestContext, loader from orders.models import Item def index(request): item_list = Item.objects.all() template = loader.get_template('orders/index.html') context = RequestContext(request, { 'item_list': item_list, ...
from django.shortcuts import render from orders.models import Item def index(request): item_list = Item.objects.all() context = {'item_list': item_list} return render(request, 'orders/index.html', context)
from django.http import HttpResponse from django.template import RequestContext, loader from orders.models import Item def index(request): item_list = Item.objects.all() template = loader.get_template('orders/index.html') context = RequestContext(request, { 'item_list': item_list, }) retur...
<commit_before>from django.http import HttpResponse from django.template import RequestContext, loader from orders.models import Item def index(request): item_list = Item.objects.all() template = loader.get_template('orders/index.html') context = RequestContext(request, { 'item_list': item_list, ...
f0f3c50a65aae1393928579ca0e48891d1ac8f18
app/access_control.py
app/access_control.py
from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login to continue.", "...
from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login to continue.", "...
Create a decorator `for_guest` for access control on pages for guests.
Create a decorator `for_guest` for access control on pages for guests.
Python
mit
alchermd/flask-todo-app,alchermd/flask-todo-app
from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login to continue.", "...
from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login to continue.", "...
<commit_before>from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login t...
from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login to continue.", "...
from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login to continue.", "...
<commit_before>from functools import wraps from flask import flash, redirect, url_for, session from app import views def login_required(f): @wraps(f) def decorated_function(*args, **kwargs): if 'logged_in' in session: return f(*args, **kwargs) else: flash("Please login t...
fba7d42a743dc3b0411ea574c70688a96cf0ab69
setup.py
setup.py
__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple wid...
__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple wid...
Add localization files to egg
Add localization files to egg
Python
bsd-3-clause
asaglimbeni/clean-image-crop-uploader,hobarrera/clean-image-crop-uploader,hobarrera/clean-image-crop-uploader,asaglimbeni/clean-image-crop-uploader,hobarrera/clean-image-crop-uploader,DOOMer/clean-image-crop-uploader-v3,DOOMer/clean-image-crop-uploader-v3,DOOMer/clean-image-crop-uploader-v3
__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple wid...
__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple wid...
<commit_before>__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields wi...
__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple wid...
__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields with a simple wid...
<commit_before>__author__ = 'Alfredo Saglimbeni' from distutils.core import setup from setuptools import setup, find_packages setup(name = "clean-image-crop-uploader", version = "0.2.2", description = "Clean Image Crop Uploader (CICU) provides AJAX file upload and image CROP functionalities for ImageFields wi...
67125258eae5b8ed4c51f811bec521004beccf67
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programm...
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programm...
Use README as the long description on PyPI
fix: Use README as the long description on PyPI
Python
bsd-3-clause
skorokithakis/shortuuid
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programm...
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programm...
<commit_before>#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5"...
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programm...
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programm...
<commit_before>#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "3.5", "Requires Python v3.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3.5"...
3c0e434385558871e75ffb0d1810382ad9893143
functional_tests.py
functional_tests.py
from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): browser.get('http://localhost:800...
from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): # Jan visits the site browser...
Change FT to expect site name in title
Change FT to expect site name in title
Python
mit
jvanbrug/scout,jvanbrug/scout
from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): browser.get('http://localhost:800...
from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): # Jan visits the site browser...
<commit_before>from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): browser.get('http:...
from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): # Jan visits the site browser...
from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): browser.get('http://localhost:800...
<commit_before>from selenium import webdriver import pytest @pytest.fixture(scope='function') def browser(request): browser_ = webdriver.Firefox() def fin(): browser_.quit() request.addfinalizer(fin) return browser_ def test_can_show_a_relevant_code_snippet(browser): browser.get('http:...
081e2a4e2e98e385cae1671c69638db825e10e8a
wtfhack/settings/__init__.py
wtfhack/settings/__init__.py
""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: #exc.args = tuple( # ['%s (did you rename settings/local-dist.py?)' % exc.args[0]]) #raise exc
""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: print '%s (did you rename settings/local-dist.py?)' % exc.args[0]
Add code that actually works
Add code that actually works
Python
bsd-3-clause
sloria/wtfhack,sloria/wtfhack,sloria/wtfhack,sloria/wtfhack,sloria/wtfhack
""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: #exc.args = tuple( # ['%s (did you rename settings/local-dist.py?)' % exc.args[0]]) #raise exc Add code that actually works
""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: print '%s (did you rename settings/local-dist.py?)' % exc.args[0]
<commit_before>""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: #exc.args = tuple( # ['%s (did you rename settings/local-dist.py?)' % exc.args[0]]) #raise exc <commit_msg>Add code that actually works<commit_after>
""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: print '%s (did you rename settings/local-dist.py?)' % exc.args[0]
""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: #exc.args = tuple( # ['%s (did you rename settings/local-dist.py?)' % exc.args[0]]) #raise exc Add code that actually works""" Settings for wtfhack """ from .base import * try: from .local import...
<commit_before>""" Settings for wtfhack """ from .base import * try: from .local import * except ImportError, exc: #exc.args = tuple( # ['%s (did you rename settings/local-dist.py?)' % exc.args[0]]) #raise exc <commit_msg>Add code that actually works<commit_after>""" Settings for wtfhack """ from ....
925bf95f364676b26254afe5da90720e08dc3846
app/initial_tables.py
app/initial_tables.py
from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ CREATE TABLE file_upload_meta( document_name TEXT NOT NULL , document_slug TEXT NOT NULL , time_uploaded TEXT NOT NU...
from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ DROP TABLE IF EXISTS file_upload_meta; """ ) conn.commit() cur.execute( """ CREATE TABLE file_upload_meta( docum...
Drop table if exists in initial tables before creating
Drop table if exists in initial tables before creating
Python
mit
sprin/heroku-tut
from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ CREATE TABLE file_upload_meta( document_name TEXT NOT NULL , document_slug TEXT NOT NULL , time_uploaded TEXT NOT NU...
from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ DROP TABLE IF EXISTS file_upload_meta; """ ) conn.commit() cur.execute( """ CREATE TABLE file_upload_meta( docum...
<commit_before>from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ CREATE TABLE file_upload_meta( document_name TEXT NOT NULL , document_slug TEXT NOT NULL , time_uploa...
from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ DROP TABLE IF EXISTS file_upload_meta; """ ) conn.commit() cur.execute( """ CREATE TABLE file_upload_meta( docum...
from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ CREATE TABLE file_upload_meta( document_name TEXT NOT NULL , document_slug TEXT NOT NULL , time_uploaded TEXT NOT NU...
<commit_before>from tables import engine def create_tables(): """ Create tables the lazy way... with raw SQL. """ conn = engine.raw_connection() cur = conn.cursor() cur.execute( """ CREATE TABLE file_upload_meta( document_name TEXT NOT NULL , document_slug TEXT NOT NULL , time_uploa...
e6b30db144af2abc1bfe0c9336c29c800a07a6c8
setup.py
setup.py
import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', long...
import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', long...
Set cov-core dependency to 1.8
Set cov-core dependency to 1.8
Python
mit
moreati/pytest-cov,wushaobo/pytest-cov,opoplawski/pytest-cov,pytest-dev/pytest-cov,ionelmc/pytest-cover,schlamar/pytest-cov
import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', long...
import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', long...
<commit_before>import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', ...
import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', long...
import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', long...
<commit_before>import setuptools setuptools.setup(name='pytest-cov', version='1.6', description='py.test plugin for coverage reporting with ' 'support for both centralised and distributed testing, ' 'including subprocesses and multiprocessing', ...
991c6164ac5577ce74754a40a33db878d5cd6a6a
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.0', packages=['sirtrevor'], include_package_data=True, ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.1', packages=['sirtrevor'], include_package_data=True, ...
Remove importlib from install_requires because of issues with py3k. This breaks compatibility with Python 2.6, but these users just need to 'pip install importlib' to fix this.
Remove importlib from install_requires because of issues with py3k. This breaks compatibility with Python 2.6, but these users just need to 'pip install importlib' to fix this.
Python
mit
zerc/django-sirtrevor,rense/django-sirtrevor,philippbosch/django-sirtrevor,zerc/django-sirtrevor,rense/django-sirtrevor,zerc/django-sirtrevor,zerc/django-sirtrevor,rense/django-sirtrevor,philippbosch/django-sirtrevor,philippbosch/django-sirtrevor,rense/django-sirtrevor
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.0', packages=['sirtrevor'], include_package_data=True, ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.1', packages=['sirtrevor'], include_package_data=True, ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.0', packages=['sirtrevor'], include_package_...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.1', packages=['sirtrevor'], include_package_data=True, ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.0', packages=['sirtrevor'], include_package_data=True, ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup setup( name='django-sirtrevor', version= '0.2.0', packages=['sirtrevor'], include_package_...
ffedbff5ecc4473a2f7fb745822a77be47727948
setup.py
setup.py
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name = "waipy", ...
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name = "waipy", ...
Revert "remove pandas from requirements"
Revert "remove pandas from requirements" This reverts commit b44d6a76eded00aa7ae03774548987c7c36455ac.
Python
bsd-3-clause
mabelcalim/waipy,mabelcalim/waipy,mabelcalim/waipy
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name = "waipy", ...
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name = "waipy", ...
<commit_before># -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name...
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name = "waipy", ...
# -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name = "waipy", ...
<commit_before># -*- coding: utf-8 -*- """ Created on Mon Jun 17 14:03 2013 @author: Mabel Calim Costa """ import os from setuptools import setup #from distutils.core import setup for line in open('lib/waipy/__init__.py').readlines(): if line.startswith('__version__'): exec(line.strip()) setup( name...
f745ce828a0949b63b4e83e13ac8106273d0a162
setup.py
setup.py
#!/usr/bin/env python import setuptools with open('VERSION') as f: version = f.read().strip() with open('README.md') as f: readme = f.read() setuptools.setup( name='alerta', version=version, description='Alerta unified command-line tool and SDK', long_description=readme, url='http://gith...
#!/usr/bin/env python import os import setuptools def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setuptools.setup( name='alerta', version=read('VERSION'), description='Alerta unified command-line tool and SDK', long_description=read('README.md'), ...
Use markdown as README format
Use markdown as README format
Python
apache-2.0
alerta/python-alerta-client,alerta/python-alerta,alerta/python-alerta-client
#!/usr/bin/env python import setuptools with open('VERSION') as f: version = f.read().strip() with open('README.md') as f: readme = f.read() setuptools.setup( name='alerta', version=version, description='Alerta unified command-line tool and SDK', long_description=readme, url='http://gith...
#!/usr/bin/env python import os import setuptools def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setuptools.setup( name='alerta', version=read('VERSION'), description='Alerta unified command-line tool and SDK', long_description=read('README.md'), ...
<commit_before>#!/usr/bin/env python import setuptools with open('VERSION') as f: version = f.read().strip() with open('README.md') as f: readme = f.read() setuptools.setup( name='alerta', version=version, description='Alerta unified command-line tool and SDK', long_description=readme, u...
#!/usr/bin/env python import os import setuptools def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setuptools.setup( name='alerta', version=read('VERSION'), description='Alerta unified command-line tool and SDK', long_description=read('README.md'), ...
#!/usr/bin/env python import setuptools with open('VERSION') as f: version = f.read().strip() with open('README.md') as f: readme = f.read() setuptools.setup( name='alerta', version=version, description='Alerta unified command-line tool and SDK', long_description=readme, url='http://gith...
<commit_before>#!/usr/bin/env python import setuptools with open('VERSION') as f: version = f.read().strip() with open('README.md') as f: readme = f.read() setuptools.setup( name='alerta', version=version, description='Alerta unified command-line tool and SDK', long_description=readme, u...
788a301fbfd2dcaad176e15ea77a4e9c200d6801
setup.py
setup.py
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( name='octohatrack', version='0.5.1', description='Show _all_ the co...
from setuptools import setup, find_packages from codecs import open from os import path import sys # Exit unless we're in pip3/Python 3 if not sys.version_info[0] == 3: print("\noctohatrack requires a Python 3 environment.\n\nTry `pip3 install` instead") sys.exit(1) here = path.abspath(path.dirname(__file__))...
Exit unless we're explicitly in a Python3 environment
Exit unless we're explicitly in a Python3 environment
Python
bsd-3-clause
glasnt/octohat,LABHR/octohatrack
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( name='octohatrack', version='0.5.1', description='Show _all_ the co...
from setuptools import setup, find_packages from codecs import open from os import path import sys # Exit unless we're in pip3/Python 3 if not sys.version_info[0] == 3: print("\noctohatrack requires a Python 3 environment.\n\nTry `pip3 install` instead") sys.exit(1) here = path.abspath(path.dirname(__file__))...
<commit_before>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( name='octohatrack', version='0.5.1', description='Sh...
from setuptools import setup, find_packages from codecs import open from os import path import sys # Exit unless we're in pip3/Python 3 if not sys.version_info[0] == 3: print("\noctohatrack requires a Python 3 environment.\n\nTry `pip3 install` instead") sys.exit(1) here = path.abspath(path.dirname(__file__))...
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( name='octohatrack', version='0.5.1', description='Show _all_ the co...
<commit_before>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( name='octohatrack', version='0.5.1', description='Sh...
5d3ab973c58cb3ff05224b1c6c7cd86e1bc0d6a5
setup.py
setup.py
from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( DATABASES...
from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( DATABASES...
Test db instead of memory db
Test db instead of memory db
Python
mit
achavez/django-bakery,stvkas/django-bakery,stvkas/django-bakery,stvkas/django-bakery,datadesk/django-bakery,achavez/django-bakery,datadesk/django-bakery,achavez/django-bakery,datadesk/django-bakery
from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( DATABASES...
from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( DATABASES...
<commit_before>from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( ...
from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( DATABASES...
from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( DATABASES...
<commit_before>from setuptools import setup from distutils.core import Command class TestCommand(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): from django.conf import settings settings.configure( ...
20cc4bd113bc60ec757f4ac980cefa71efb7e401
setup.py
setup.py
from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', packages=['lda...
from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', packages=['lda...
Add jupyterhub as a requirement
Add jupyterhub as a requirement
Python
bsd-3-clause
yuvipanda/ldapauthenticator
from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', packages=['lda...
from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', packages=['lda...
<commit_before>from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', ...
from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', packages=['lda...
from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', packages=['lda...
<commit_before>from setuptools import setup setup( name='jupyterhub-ldapauthenticator', version='1.0', description='LDAP Authenticator for JupyterHub', url='https://github.com/yuvipanda/ldapauthenticator', author='Yuvi Panda', author_email='yuvipanda@riseup.net', license='3 Clause BSD', ...
0c2e53fd96e00631e1da00ba9d7a6e57bbfbb467
setup.py
setup.py
from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about__.py")) as file...
from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about__.py")) as file...
Add statistics module as dependency if python2
Add statistics module as dependency if python2
Python
mit
erkghlerngm44/malaffinity
from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about__.py")) as file...
from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about__.py")) as file...
<commit_before>from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about_...
from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about__.py")) as file...
from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about__.py")) as file...
<commit_before>from setuptools import setup from codecs import open from os import path # Open up settings here = path.abspath(path.dirname(__file__)) about = {} with open(path.join(here, "README.rst"), encoding="utf-8") as file: long_description = file.read() with open(path.join(here, "malaffinity", "__about_...
c388dcf8c1ce9bc464e21e128fd38e93eced9287
setup.py
setup.py
from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python...
from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python...
Remove GDAL as a dependency
Remove GDAL as a dependency
Python
mit
fitodic/centerline,fitodic/polygon-centerline,fitodic/centerline
from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python...
from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python...
<commit_before>from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Lan...
from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python...
from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python...
<commit_before>from setuptools import setup setup( name='centerline', version='0.1', description='Calculate the centerline of a polygon', long_description='README.rst', classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: MIT License', 'Programming Lan...
f6e65fc730417be440f47f3baaa860d26560ceaf
setup.py
setup.py
from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='django-uuidfield', version='0.3', author='David Cramer', author_email='dcramer@gmail.com', ...
from setuptools import setup, find_packages setup( name='django-uuidfield', version='0.4.0', author='David Cramer', author_email='dcramer@gmail.com', description='UUIDField in Django', url='https://github.com/dcramer/django-uuidfield', zip_safe=False, install_requires=[ 'django'...
Remove test suite hackery and bump version to 0.4.0
Remove test suite hackery and bump version to 0.4.0
Python
bsd-3-clause
nebstrebor/django-shortuuidfield,mriveralee/django-shortuuidfield,kracekumar/django-uuidfield,dcramer/django-uuidfield
from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='django-uuidfield', version='0.3', author='David Cramer', author_email='dcramer@gmail.com', ...
from setuptools import setup, find_packages setup( name='django-uuidfield', version='0.4.0', author='David Cramer', author_email='dcramer@gmail.com', description='UUIDField in Django', url='https://github.com/dcramer/django-uuidfield', zip_safe=False, install_requires=[ 'django'...
<commit_before>from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='django-uuidfield', version='0.3', author='David Cramer', author_email='dcram...
from setuptools import setup, find_packages setup( name='django-uuidfield', version='0.4.0', author='David Cramer', author_email='dcramer@gmail.com', description='UUIDField in Django', url='https://github.com/dcramer/django-uuidfield', zip_safe=False, install_requires=[ 'django'...
from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='django-uuidfield', version='0.3', author='David Cramer', author_email='dcramer@gmail.com', ...
<commit_before>from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='django-uuidfield', version='0.3', author='David Cramer', author_email='dcram...
2c35ef06e54dd3491e7cc686c8169ce1789a64ca
setup.py
setup.py
import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationships between auth....
import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationships between auth....
Make sure the package data is actually installed from a source distribution. This is additionally to the manifest template. Also don't install the "example" module.
Make sure the package data is actually installed from a source distribution. This is additionally to the manifest template. Also don't install the "example" module.
Python
mit
maroux/django-relationships,maroux/django-relationships,coleifer/django-relationships,coleifer/django-relationships
import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationships between auth....
import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationships between auth....
<commit_before>import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationship...
import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationships between auth....
import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationships between auth....
<commit_before>import os from setuptools import setup, find_packages from relationships import VERSION f = open(os.path.join(os.path.dirname(__file__), 'README.rst')) readme = f.read() f.close() setup( name='django-relationships', version=".".join(map(str, VERSION)), description='descriptive relationship...
9fad3f99e7956f5f23673beb6fd0952c0d80b251
setup.py
setup.py
from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packages=find_package...
from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packages=find_package...
Fix classifier error while pishing to pypi
Fix classifier error while pishing to pypi
Python
mit
localmed/pyserializer,localmed/pyserializer
from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packages=find_package...
from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packages=find_package...
<commit_before>from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packag...
from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packages=find_package...
from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packages=find_package...
<commit_before>from setuptools import find_packages, setup setup( name='pyserializer', version='0.0.1', description='Simple python serialization library.', author='LocalMed', author_email='ecordell@localmed.com, pete@localmed.com, joel.james@localmed.com', url='', license='MIT', packag...
629a6011edcc27cfe495996bdb2c64cd440cc72c
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', long_descri...
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', long_descri...
Add columns to src packages.
Add columns to src packages.
Python
mit
JoeGermuska/agate,onyxfish/agate,wireservice/agate,captainsafia/agate,TylerFisher/agate,flother/agate,dwillis/agate,onyxfish/journalism
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', long_descri...
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', long_descri...
<commit_before>#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', ...
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', long_descri...
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', long_descri...
<commit_before>#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1', 'python-dateutil>=2.2', 'pytimeparse>=1.1.5' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') setup( name='agate', version='0.6.0', description='', ...
6850d0dfdfbd4e4557da81857237d9d597752268
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
Move pyuntl dependency from here to requirements-test.txt file.
Move pyuntl dependency from here to requirements-test.txt file.
Python
bsd-3-clause
unt-libraries/aubreylib
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/au...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.2.2', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/au...
7d88939b5d7a6e7cf7c5f4fe7cb54cee78c5aafa
setup.py
setup.py
""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-python-tools/tarball...
""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-python-tools/tarball...
Revert "Revert "cleaning up a few unnecessary modules""
Revert "Revert "cleaning up a few unnecessary modules"" This reverts commit b6b8c8e12b18515591c0b053cac9e515314b819e. There was no problem to begin with.
Python
mit
jut-io/jut-python-tools
""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-python-tools/tarball...
""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-python-tools/tarball...
<commit_before>""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-pytho...
""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-python-tools/tarball...
""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-python-tools/tarball...
<commit_before>""" setup script """ from setuptools import setup, find_packages _VERSION = '0.7' setup( name='jut-tools', version=_VERSION, author='Rodney Gomes', author_email='rodney@jut.io', url='https://github.com/jut-io/jut-python-tools', download_url='https://github.com/jut-io/jut-pytho...
ba34ea366d8ee9ac47f1bb3044ad04dcd482c6eb
cybox/test/objects/win_mailslot_test.py
cybox/test/objects/win_mailslot_test.py
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "WindowsMailslot...
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "WindowsMailslot...
Fix WinMailslot object to only use a single handle rather than a list
Fix WinMailslot object to only use a single handle rather than a list
Python
bsd-3-clause
CybOXProject/python-cybox
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "WindowsMailslot...
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "WindowsMailslot...
<commit_before># Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "...
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "WindowsMailslot...
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "WindowsMailslot...
<commit_before># Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import unittest from cybox.objects.win_mailslot_object import WinMailslot from cybox.test.objects import ObjectTestCase class TestWinMailslot(ObjectTestCase, unittest.TestCase): object_type = "...
53f98ee4f0f5922bc154e109aac0e4447f4ed062
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup with open('requirements.txt') as reqs: requirements = reqs.read().split() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', author='João ...
# -*- coding: utf-8 -*- from distutils.core import setup with open('README.md') as f: long_description = f.read() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', long_description=long_descript...
Remove parâmetros inutilizados e adiciona a descrição longa
Remove parâmetros inutilizados e adiciona a descrição longa
Python
mit
joaocarlosmendes/pybrdst
# -*- coding: utf-8 -*- from distutils.core import setup with open('requirements.txt') as reqs: requirements = reqs.read().split() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', author='João ...
# -*- coding: utf-8 -*- from distutils.core import setup with open('README.md') as f: long_description = f.read() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', long_description=long_descript...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup with open('requirements.txt') as reqs: requirements = reqs.read().split() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', ...
# -*- coding: utf-8 -*- from distutils.core import setup with open('README.md') as f: long_description = f.read() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', long_description=long_descript...
# -*- coding: utf-8 -*- from distutils.core import setup with open('requirements.txt') as reqs: requirements = reqs.read().split() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', author='João ...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup with open('requirements.txt') as reqs: requirements = reqs.read().split() setup( name='pybrdst', packages=['pybrdst'], # this must be the same as the name above version='0.1', description='Brazilian daylight saving time', ...
b58438703854f88432ec01b51bb79ce7ba6515dc
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, Extension setup( name='javelin', version='0.1.0', description='', url='https://github.com/rosswhitfield/javelin', author='Ross Whitfield', author_email='whitfieldre@ornl.gov', license='MIT', packages=['javelin'], ext_modules=[Exten...
#!/usr/bin/env python from setuptools import setup, Extension, distutils if distutils.ccompiler.get_default_compiler() == 'msvc': extra_compile_args = ['/openmp'] extra_link_args = None else: extra_compile_args = ['-fopenmp'] extra_link_args = ['-fopenmp'] setup( name='javelin', version='0.1.0...
Fix openmp flags for windows
Fix openmp flags for windows
Python
mit
rosswhitfield/javelin
#!/usr/bin/env python from setuptools import setup, Extension setup( name='javelin', version='0.1.0', description='', url='https://github.com/rosswhitfield/javelin', author='Ross Whitfield', author_email='whitfieldre@ornl.gov', license='MIT', packages=['javelin'], ext_modules=[Exten...
#!/usr/bin/env python from setuptools import setup, Extension, distutils if distutils.ccompiler.get_default_compiler() == 'msvc': extra_compile_args = ['/openmp'] extra_link_args = None else: extra_compile_args = ['-fopenmp'] extra_link_args = ['-fopenmp'] setup( name='javelin', version='0.1.0...
<commit_before>#!/usr/bin/env python from setuptools import setup, Extension setup( name='javelin', version='0.1.0', description='', url='https://github.com/rosswhitfield/javelin', author='Ross Whitfield', author_email='whitfieldre@ornl.gov', license='MIT', packages=['javelin'], ext...
#!/usr/bin/env python from setuptools import setup, Extension, distutils if distutils.ccompiler.get_default_compiler() == 'msvc': extra_compile_args = ['/openmp'] extra_link_args = None else: extra_compile_args = ['-fopenmp'] extra_link_args = ['-fopenmp'] setup( name='javelin', version='0.1.0...
#!/usr/bin/env python from setuptools import setup, Extension setup( name='javelin', version='0.1.0', description='', url='https://github.com/rosswhitfield/javelin', author='Ross Whitfield', author_email='whitfieldre@ornl.gov', license='MIT', packages=['javelin'], ext_modules=[Exten...
<commit_before>#!/usr/bin/env python from setuptools import setup, Extension setup( name='javelin', version='0.1.0', description='', url='https://github.com/rosswhitfield/javelin', author='Ross Whitfield', author_email='whitfieldre@ornl.gov', license='MIT', packages=['javelin'], ext...
62876a5691afff441a37bca9037857d6c419b57a
setup.py
setup.py
from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open('README.md').r...
from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open('README.md').r...
Add github3.py depedency to be able to list all plugins from Github.
Add github3.py depedency to be able to list all plugins from Github.
Python
mit
supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer
from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open('README.md').r...
from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open('README.md').r...
<commit_before>from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open...
from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open('README.md').r...
from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open('README.md').r...
<commit_before>from setuptools import setup, find_packages setup( name='weaveserver', version='0.8', author='Srivatsan Iyer', author_email='supersaiyanmode.rox@gmail.com', packages=find_packages(), license='MIT', description='Library to interact with Weave Server', long_description=open...
23f76482b0a57f858ba6056743ef03f94fbc8749
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.1', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
Update aubreylib version and version of pyuntl required.
Update aubreylib version and version of pyuntl required.
Python
bsd-3-clause
unt-libraries/aubreylib
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.1', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/au...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.1', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/aubreylib', l...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='aubreylib', version='1.0.0', description='A helper library for the Aubrey access system.', author='University of North Texas Libraries', author_email='mark.phillips@unt.edu', url='https://github.com/unt-libraries/au...
cb5a954f0e376dfe85d701af009c2bdd3a0de98c
edisgo/tools/__init__.py
edisgo/tools/__init__.py
from egoio.tools.db import connection from sqlalchemy.orm import sessionmaker from contextlib import contextmanager Session = sessionmaker(bind=connection(readonly=True)) @contextmanager def session_scope(): """Function to ensure that sessions are closed properly.""" session = Session() print('start') ...
Add contextmanager for session handling
Add contextmanager for session handling
Python
agpl-3.0
openego/eDisGo,openego/eDisGo
Add contextmanager for session handling
from egoio.tools.db import connection from sqlalchemy.orm import sessionmaker from contextlib import contextmanager Session = sessionmaker(bind=connection(readonly=True)) @contextmanager def session_scope(): """Function to ensure that sessions are closed properly.""" session = Session() print('start') ...
<commit_before><commit_msg>Add contextmanager for session handling<commit_after>
from egoio.tools.db import connection from sqlalchemy.orm import sessionmaker from contextlib import contextmanager Session = sessionmaker(bind=connection(readonly=True)) @contextmanager def session_scope(): """Function to ensure that sessions are closed properly.""" session = Session() print('start') ...
Add contextmanager for session handlingfrom egoio.tools.db import connection from sqlalchemy.orm import sessionmaker from contextlib import contextmanager Session = sessionmaker(bind=connection(readonly=True)) @contextmanager def session_scope(): """Function to ensure that sessions are closed properly.""" se...
<commit_before><commit_msg>Add contextmanager for session handling<commit_after>from egoio.tools.db import connection from sqlalchemy.orm import sessionmaker from contextlib import contextmanager Session = sessionmaker(bind=connection(readonly=True)) @contextmanager def session_scope(): """Function to ensure tha...
0a631de1ad76f59777d44d1e8aa02982411603fd
setup.py
setup.py
from setuptools import setup VERSION = '0.0.1' setup( name='pyq', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=False, platf...
from setuptools import setup VERSION = '0.0.1' setup( name='pyqtool', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=False, p...
Change name to pyqtool (available on PyPI)
Change name to pyqtool (available on PyPI)
Python
mit
caioariede/pyq
from setuptools import setup VERSION = '0.0.1' setup( name='pyq', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=False, platf...
from setuptools import setup VERSION = '0.0.1' setup( name='pyqtool', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=False, p...
<commit_before>from setuptools import setup VERSION = '0.0.1' setup( name='pyq', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=F...
from setuptools import setup VERSION = '0.0.1' setup( name='pyqtool', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=False, p...
from setuptools import setup VERSION = '0.0.1' setup( name='pyq', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=False, platf...
<commit_before>from setuptools import setup VERSION = '0.0.1' setup( name='pyq', version=VERSION, description="Search Python code with jQuery-like selectors", author="Caio Ariede", author_email="caio.ariede@gmail.com", url="http://github.com/caioariede/pyq", license="MIT", zip_safe=F...
c32e9666925de601ef2a5dfd9b1018d7bfac00e6
setup.py
setup.py
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.1', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
Add missing dependencies, new release (0.1.1).
Add missing dependencies, new release (0.1.1).
Python
mit
PythonicNinja/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,PythonicNinja/django-ddp,django-ddp/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,commoncode/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,PythonicNinja/django-ddp
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.1', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
<commit_before>#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', aut...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.1', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', author_email='tyso...
<commit_before>#!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import os.path from setuptools import setup, find_packages setup( name='django-ddp', version='0.1.0', description=__doc__, long_description=open('README.rst').read(), author='Tyson Clugg', aut...
f72c0b792f41daed065df1c8a42be8da6938e691
setup.py
setup.py
from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for the Flask', ...
from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for the Flask', ...
Update pillow and stop requiring exact pillow version
Update pillow and stop requiring exact pillow version
Python
mit
silentsokolov/flask-thumbnails
from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for the Flask', ...
from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for the Flask', ...
<commit_before>from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for t...
from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for the Flask', ...
from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for the Flask', ...
<commit_before>from distutils.core import setup setup( name='Flask-thumbnails', version='0.2.1', url='https://github.com/SilentSokolov/flask-thumbnails', license='MIT', author='Dmitriy Sokolov', author_email='silentsokolov@gmail.com', description='A simple extension to create a thumbs for t...
0efe5ad130e1037d8ec5065777d16d4345f97a46
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import os version = '1.0' + os.environ.get('BUILD_SUFFIX', '') setup(name='confab', version=version, description='Configuration management with Fabric and Jinja2.', author='Location Labs', author_email='info@locationlabs.com', ...
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '1.0' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='confab', version=__version__ + __build__, description='Configuration management with Fabric and Jinja2.', author='Location Labs', ...
Use __build__ syntax instead of os.environ
Use __build__ syntax instead of os.environ
Python
apache-2.0
locationlabs/confab
#!/usr/bin/env python from setuptools import setup, find_packages import os version = '1.0' + os.environ.get('BUILD_SUFFIX', '') setup(name='confab', version=version, description='Configuration management with Fabric and Jinja2.', author='Location Labs', author_email='info@locationlabs.com', ...
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '1.0' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='confab', version=__version__ + __build__, description='Configuration management with Fabric and Jinja2.', author='Location Labs', ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import os version = '1.0' + os.environ.get('BUILD_SUFFIX', '') setup(name='confab', version=version, description='Configuration management with Fabric and Jinja2.', author='Location Labs', author_email='info@loca...
#!/usr/bin/env python from setuptools import setup, find_packages __version__ = '1.0' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='confab', version=__version__ + __build__, description='Configuration management with Fabric and Jinja2.', author='Location Labs', ...
#!/usr/bin/env python from setuptools import setup, find_packages import os version = '1.0' + os.environ.get('BUILD_SUFFIX', '') setup(name='confab', version=version, description='Configuration management with Fabric and Jinja2.', author='Location Labs', author_email='info@locationlabs.com', ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import os version = '1.0' + os.environ.get('BUILD_SUFFIX', '') setup(name='confab', version=version, description='Configuration management with Fabric and Jinja2.', author='Location Labs', author_email='info@loca...
83f84b9ebc9309e8aadd2668ad2f6a49383b8199
setup.py
setup.py
from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", url="https://gith...
from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", url="https://gith...
Add ebi_metagenomics as package script
Add ebi_metagenomics as package script
Python
mit
bebatut/ebisearch
from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", url="https://gith...
from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", url="https://gith...
<commit_before>from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", ur...
from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", url="https://gith...
from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", url="https://gith...
<commit_before>from setuptools import find_packages, setup setup( name="ebisearch", version="0.0.1", author="Berenice Batut", author_email="berenice.batut@gmail.com", description=("A Python library for interacting with EBI Search's API"), license="MIT", keywords="api api-client ebi", ur...
02ed846cb365e0717a888da0c56065fd54a03a7f
setup.py
setup.py
#!/usr/bin/env python import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, descri...
#!/usr/bin/env python import setuptools import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") import shakyo setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, descri...
Fix point of importing module
Fix point of importing module
Python
unlicense
raviqqe/shakyo
#!/usr/bin/env python import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, descri...
#!/usr/bin/env python import setuptools import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") import shakyo setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, descri...
<commit_before>#!/usr/bin/env python import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__versio...
#!/usr/bin/env python import setuptools import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") import shakyo setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, descri...
#!/usr/bin/env python import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, descri...
<commit_before>#!/usr/bin/env python import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__versio...
83617b63544ccb0336a8afc2726fd2e8dfacb69f
avalon/nuke/workio.py
avalon/nuke/workio.py
"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) nuke.Root()["p...
"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) nuke.Root()["p...
Fix undefined work_dir and scene_dir variables
Fix undefined work_dir and scene_dir variables
Python
mit
mindbender-studio/core,mindbender-studio/core,getavalon/core,getavalon/core
"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) nuke.Root()["p...
"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) nuke.Root()["p...
<commit_before>"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) ...
"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) nuke.Root()["p...
"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) nuke.Root()["p...
<commit_before>"""Host API required Work Files tool""" import os import nuke def file_extensions(): return [".nk"] def has_unsaved_changes(): return nuke.root().modified() def save_file(filepath): path = filepath.replace("\\", "/") nuke.scriptSaveAs(path) nuke.Root()["name"].setValue(path) ...
12b83cde7ec1fdbf74ca0f1dc32200294be5c8bd
avroknife/__init__.py
avroknife/__init__.py
# Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
Fix problem with hyphen after the version number
Fix problem with hyphen after the version number
Python
apache-2.0
CeON/avroknife
# Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
<commit_before># Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
# Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
<commit_before># Copyright 2013-2014 University of Warsaw # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
d54cb3d29f78ce1e06e549de783326c052054777
mezzanine_api/settings.py
mezzanine_api/settings.py
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.Django...
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.Django...
Add LOGIN_URL setting for Oauth2
Add LOGIN_URL setting for Oauth2
Python
mit
gcushen/mezzanine-api,gcushen/mezzanine-api
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.Django...
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.Django...
<commit_before> REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework...
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.Django...
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.Django...
<commit_before> REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication', 'oauth2_provider.ext.rest_framework.OAuth2Authentication', ), 'DEFAULT_FILTER_BACKENDS': ('rest_framework...
5d67010a0ea8e8f23495c8c7aa2d972f1e0cd547
bake/test/test_mix.py
bake/test/test_mix.py
#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@foo@') self.assertEqual...
#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@fo...
Make pep8 happy, remove mixed tabs and spaces
Make pep8 happy, remove mixed tabs and spaces
Python
mit
AlexSzatmary/bake
#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@foo@') self.assertEqual...
#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@fo...
<commit_before>#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@foo@') s...
#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@fo...
#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@foo@') self.assertEqual...
<commit_before>#!/usr/bin/env python import unittest import load import os import mix class parseBPlinesTestCase(unittest.TestCase): def test_overwrite(self): # Test that a later line overwrites a previous line grid = mix.parseBPlines(['@foo@;bar;baz', '@foo@;rag']) self.assertEqual(grid.tokens[0], '@foo@') s...
8f2650961ec2c080037f6a8d7a768563bbde8132
webapp/tests/__init__.py
webapp/tests/__init__.py
# -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app = create_app('t...
# -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app = create_app('t...
Drop database before every test run, too, to remove data from failed tests.
Drop database before every test run, too, to remove data from failed tests.
Python
bsd-3-clause
homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps
# -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app = create_app('t...
# -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app = create_app('t...
<commit_before># -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app ...
# -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app = create_app('t...
# -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app = create_app('t...
<commit_before># -*- coding: utf-8 -*- from unittest import TestCase from byceps.application import create_app from byceps.blueprints.brand.models import Brand from byceps.blueprints.party.models import Party from byceps.database import db class AbstractAppTestCase(TestCase): def setUp(self): self.app ...
22909289586427b4c6ef80e794c02b08d505b416
api/crossref/permissions.py
api/crossref/permissions.py
# -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapted here from co...
# -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapted here from co...
Return False early if mailgun API key isn't set locally
Return False early if mailgun API key isn't set locally
Python
apache-2.0
cslzchen/osf.io,sloria/osf.io,erinspace/osf.io,mattclark/osf.io,aaxelb/osf.io,HalcyonChimera/osf.io,caseyrollins/osf.io,cslzchen/osf.io,brianjgeiger/osf.io,aaxelb/osf.io,mattclark/osf.io,felliott/osf.io,mfraezz/osf.io,adlius/osf.io,mfraezz/osf.io,CenterForOpenScience/osf.io,baylee-d/osf.io,sloria/osf.io,adlius/osf.io,H...
# -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapted here from co...
# -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapted here from co...
<commit_before># -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapt...
# -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapted here from co...
# -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapted here from co...
<commit_before># -*- coding: utf-8 -*- import hmac import hashlib from rest_framework import permissions from rest_framework import exceptions from framework import sentry from website import settings class RequestComesFromMailgun(permissions.BasePermission): """Verify that request comes from Mailgun. Adapt...
a59d756072a72e3110875058729e15f17a4b7f8a
bibliopixel/util/log_errors.py
bibliopixel/util/log_errors.py
from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then only the ...
from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then only the ...
Fix log_error so it now catches exceptions
Fix log_error so it now catches exceptions * This got accidentally disabled
Python
mit
rec/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel
from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then only the ...
from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then only the ...
<commit_before>from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then o...
from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then only the ...
from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then only the ...
<commit_before>from .. util import class_name, log class LogErrors: """ Wraps a function call to catch and report exceptions. """ def __init__(self, function, max_errors=-1): """ :param function: the function to wrap :param int max_errors: if ``max_errors`` is non-zero, then o...
563316ca4df666ada6e2b0c6a224a159b06884d0
tests.py
tests.py
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(s...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(s...
Remove unnecessary call to mock_datareader().
Remove unnecessary call to mock_datareader().
Python
agpl-3.0
scraperwiki/stock-tool,scraperwiki/stock-tool
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(s...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(s...
<commit_before>#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_cal...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(s...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(s...
<commit_before>#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_cal...
f550b3a321b240a5df921905fd47e4026ddc2bbd
gaphor/RAAML/modelinglanguage.py
gaphor/RAAML/modelinglanguage.py
"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems from gaphor.RAAML impo...
"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems, raaml from gaphor.RAA...
Fix STPA modeling elements can't be loaded from saved model
Fix STPA modeling elements can't be loaded from saved model Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>
Python
lgpl-2.1
amolenaar/gaphor,amolenaar/gaphor
"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems from gaphor.RAAML impo...
"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems, raaml from gaphor.RAA...
<commit_before>"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems from ga...
"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems, raaml from gaphor.RAA...
"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems from gaphor.RAAML impo...
<commit_before>"""The RAAML Modeling Language module is the entrypoint for RAAML related assets.""" import gaphor.SysML.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolboxDefinition from gaphor.RAAML import diagramitems from ga...
074f76547fbc01137e135f5de57b28fee82b810c
pylibui/core.py
pylibui/core.py
""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def start(self): """ Starts the application main loop. :return: N...
""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def __enter__(self): self.start() def start(self): """ Star...
Make App a context manager
Make App a context manager This means it can be used either as it is now unchanged or like this: with libui.App(): ... # code Note that (1) the build instructions for libui appear to be wrong "make" vs "cmake ."; and (2) I can't build libui because of a bug in it or Ubuntu 14.04's cmake I don't know which. ...
Python
mit
joaoventura/pylibui,superzazu/pylibui,superzazu/pylibui,joaoventura/pylibui
""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def start(self): """ Starts the application main loop. :return: N...
""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def __enter__(self): self.start() def start(self): """ Star...
<commit_before>""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def start(self): """ Starts the application main loop. ...
""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def __enter__(self): self.start() def start(self): """ Star...
""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def start(self): """ Starts the application main loop. :return: N...
<commit_before>""" Python wrapper for libui. """ from . import libui class App: def __init__(self): """ Creates a new pylibui app. """ options = libui.uiInitOptions() libui.uiInit(options) def start(self): """ Starts the application main loop. ...
6fa13c56c38b14226d1902f8d686241ed88b875a
satnogsclient/scheduler/tasks.py
satnogsclient/scheduler/tasks.py
# -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): raise NotImplementedError def get_jobs(): """Query SatNOGS Network API to GET jobs.""" ...
# -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.observer import Observer from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): obj = kwargs.pop('obj') observer = Observer()...
Initialize and call observer on new observation task.
Initialize and call observer on new observation task.
Python
agpl-3.0
adamkalis/satnogs-client,cshields/satnogs-client,cshields/satnogs-client,adamkalis/satnogs-client
# -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): raise NotImplementedError def get_jobs(): """Query SatNOGS Network API to GET jobs.""" ...
# -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.observer import Observer from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): obj = kwargs.pop('obj') observer = Observer()...
<commit_before># -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): raise NotImplementedError def get_jobs(): """Query SatNOGS Network API t...
# -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.observer import Observer from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): obj = kwargs.pop('obj') observer = Observer()...
# -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): raise NotImplementedError def get_jobs(): """Query SatNOGS Network API to GET jobs.""" ...
<commit_before># -*- coding: utf-8 -*- from urlparse import urljoin import requests from dateutil import parser from satnogsclient import settings from satnogsclient.scheduler import scheduler def spawn_observation(*args, **kwargs): raise NotImplementedError def get_jobs(): """Query SatNOGS Network API t...
d39b44069311355c2e83e59a0b28864c89cd02f7
avenue/database/__init__.py
avenue/database/__init__.py
# Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables # LOCATION = 'sqlite:///:memory:' LOCATION = 'sqlite:////home/mbabich/foo.sqlite' engin...
# Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables LOCATION = 'sqlite:///:memory:' # LOCATION = 'sqlite:////home/mbabich/foo.sqlite' engin...
Switch back to in-memory sqlite.
Switch back to in-memory sqlite.
Python
mit
Aethaeryn/avenue
# Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables # LOCATION = 'sqlite:///:memory:' LOCATION = 'sqlite:////home/mbabich/foo.sqlite' engin...
# Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables LOCATION = 'sqlite:///:memory:' # LOCATION = 'sqlite:////home/mbabich/foo.sqlite' engin...
<commit_before># Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables # LOCATION = 'sqlite:///:memory:' LOCATION = 'sqlite:////home/mbabich/foo...
# Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables LOCATION = 'sqlite:///:memory:' # LOCATION = 'sqlite:////home/mbabich/foo.sqlite' engin...
# Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables # LOCATION = 'sqlite:///:memory:' LOCATION = 'sqlite:////home/mbabich/foo.sqlite' engin...
<commit_before># Copyright (c) 2012 Michael Babich # See LICENSE.txt or http://opensource.org/licenses/MIT '''This submodule manages the database. ''' from sqlalchemy import create_engine, MetaData from avenue.database.tables import get_tables # LOCATION = 'sqlite:///:memory:' LOCATION = 'sqlite:////home/mbabich/foo...
1803cfffb53581b8325ad076d8eb62c5897f911d
other/iterate_deadlock.py
other/iterate_deadlock.py
""" Demonstrates deadlock related to attribute iteration. """ from threading import Thread import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in xrange(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME, 'r') as f: ...
""" Demonstrates deadlock related to attribute iteration. """ from threading import Thread import sys import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in range(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME, 'r')...
Make deadlock script work on Python 3
Make deadlock script work on Python 3
Python
bsd-3-clause
h5py/h5py,h5py/h5py,h5py/h5py
""" Demonstrates deadlock related to attribute iteration. """ from threading import Thread import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in xrange(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME, 'r') as f: ...
""" Demonstrates deadlock related to attribute iteration. """ from threading import Thread import sys import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in range(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME, 'r')...
<commit_before> """ Demonstrates deadlock related to attribute iteration. """ from threading import Thread import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in xrange(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME,...
""" Demonstrates deadlock related to attribute iteration. """ from threading import Thread import sys import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in range(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME, 'r')...
""" Demonstrates deadlock related to attribute iteration. """ from threading import Thread import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in xrange(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME, 'r') as f: ...
<commit_before> """ Demonstrates deadlock related to attribute iteration. """ from threading import Thread import h5py FNAME = "deadlock.hdf5" def make_file(): with h5py.File(FNAME,'w') as f: for idx in xrange(1000): f.attrs['%d'%idx] = 1 def list_attributes(): with h5py.File(FNAME,...
11fdccbc4144c2b1e27d2b124596ce9122c365a2
froide/problem/apps.py
froide/problem/apps.py
import json from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from . import signals # noqa re...
import json from django.apps import AppConfig from django.urls import reverse from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from froid...
Add user merging to problem, menu for moderation
Add user merging to problem, menu for moderation
Python
mit
fin/froide,fin/froide,stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,stefanw/froide,fin/froide,stefanw/froide
import json from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from . import signals # noqa re...
import json from django.apps import AppConfig from django.urls import reverse from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from froid...
<commit_before>import json from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from . import signals # n...
import json from django.apps import AppConfig from django.urls import reverse from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from froid...
import json from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from . import signals # noqa re...
<commit_before>import json from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class ProblemConfig(AppConfig): name = 'froide.problem' verbose_name = _('Problems') def ready(self): from froide.account.export import registry from . import signals # n...
bd5ac74d2aaed956a1db4db2482076470d8c150f
google-oauth-userid/app.py
google-oauth-userid/app.py
from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint = make_google_...
from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint = make_google_...
Update scope to use changed profile
Update scope to use changed profile
Python
mit
openshift-cs/OpenShift-Troubleshooting-Templates,openshift-cs/OpenShift-Troubleshooting-Templates
from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint = make_google_...
from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint = make_google_...
<commit_before>from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint...
from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint = make_google_...
from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint = make_google_...
<commit_before>from gevent.wsgi import WSGIServer from flask import Flask, redirect, url_for from flask_dance.contrib.google import make_google_blueprint, google from werkzeug.contrib.fixers import ProxyFix import os app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app) app.secret_key = os.urandom(64) blueprint...
03b19d542a50f9f897aa759c5921933cba8bf501
sim_services_local/dispatcher.py
sim_services_local/dispatcher.py
# Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in background. Raises RuntimeError if th...
# Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone from django.conf import settings import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in backgrou...
Fix for broken job submission in apache
Fix for broken job submission in apache
Python
mpl-2.0
vecnet/om,vecnet/om,vecnet/om,vecnet/om,vecnet/om
# Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in background. Raises RuntimeError if th...
# Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone from django.conf import settings import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in backgrou...
<commit_before># Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in background. Raises Run...
# Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone from django.conf import settings import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in backgrou...
# Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in background. Raises RuntimeError if th...
<commit_before># Copyright (C) 2015, University of Notre Dame # All rights reserved from django.utils import timezone import subprocess import sys import os from data_services import models as data_models def submit(simulation_group): """ Run a simulation group on a local machine in background. Raises Run...
2466e77906fa7644b3a3a31ca4c3a2c10d4c387d
ereuse_workbench/config.py
ereuse_workbench/config.py
from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') DH_DATABASE = ...
from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') DH_DATABASE = ...
Add default values to env variables
Add default values to env variables
Python
agpl-3.0
eReuse/workbench,eReuse/workbench
from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') DH_DATABASE = ...
from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') DH_DATABASE = ...
<commit_before>from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') ...
from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') DH_DATABASE = ...
from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') DH_DATABASE = ...
<commit_before>from decouple import AutoConfig from ereuse_workbench.test import TestDataStorageLength class WorkbenchConfig: # Path where find .env file config = AutoConfig(search_path='/home/user/') # Env variables for DH parameters DH_TOKEN = config('DH_TOKEN') DH_HOST = config('DH_HOST') ...
a42f3c3899a20505f9aebe100aed6db4c91f4002
coop_cms/apps/email_auth/urls.py
coop_cms/apps/email_auth/urls.py
# -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import login, password_change, password_reset, password_reset_confirm from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm, EmailAuthForm...
# -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import LoginView, PasswordChangeView, PasswordResetView, PasswordResetConfirmView from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm, E...
Fix auth views : use class-based views
Fix auth views : use class-based views
Python
bsd-3-clause
ljean/coop_cms,ljean/coop_cms,ljean/coop_cms
# -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import login, password_change, password_reset, password_reset_confirm from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm, EmailAuthForm...
# -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import LoginView, PasswordChangeView, PasswordResetView, PasswordResetConfirmView from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm, E...
<commit_before># -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import login, password_change, password_reset, password_reset_confirm from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm...
# -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import LoginView, PasswordChangeView, PasswordResetView, PasswordResetConfirmView from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm, E...
# -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import login, password_change, password_reset, password_reset_confirm from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm, EmailAuthForm...
<commit_before># -*- coding: utf-8 -*- """urls""" from __future__ import unicode_literals from django.conf.urls import include, url from django.contrib.auth.views import login, password_change, password_reset, password_reset_confirm from coop_cms.apps.email_auth.forms import BsPasswordChangeForm, BsPasswordResetForm...
b190afa49a6b0939d692adcaee2396c619e632ff
setup.py
setup.py
from distutils.core import setup import os import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path, 'rb').read().decode('utf-8') setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, singular nouns, o...
from distutils.core import setup import os import io import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = io.open(readme_path, encoding='utf-8').read() setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, singular...
Use io module for simplicity and closer alignment to recommended usage.
Use io module for simplicity and closer alignment to recommended usage.
Python
mit
hugovk/inflect.py,pwdyson/inflect.py,jazzband/inflect
from distutils.core import setup import os import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path, 'rb').read().decode('utf-8') setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, singular nouns, o...
from distutils.core import setup import os import io import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = io.open(readme_path, encoding='utf-8').read() setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, singular...
<commit_before>from distutils.core import setup import os import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path, 'rb').read().decode('utf-8') setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, si...
from distutils.core import setup import os import io import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = io.open(readme_path, encoding='utf-8').read() setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, singular...
from distutils.core import setup import os import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path, 'rb').read().decode('utf-8') setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, singular nouns, o...
<commit_before>from distutils.core import setup import os import inflect here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path, 'rb').read().decode('utf-8') setup( name='inflect', version=inflect.__version__, description='Correctly generate plurals, si...
aa78c19f2a78b3cec41a4491e65b9e967794b2b0
setup.py
setup.py
#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( name='klab', ...
#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( name='klab', ...
Fix the make_fragments_QB3_cluster.pl install path.
Fix the make_fragments_QB3_cluster.pl install path.
Python
mit
Kortemme-Lab/klab,Kortemme-Lab/klab,Kortemme-Lab/klab,Kortemme-Lab/klab
#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( name='klab', ...
#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( name='klab', ...
<commit_before>#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( na...
#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( name='klab', ...
#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( name='klab', ...
<commit_before>#!/usr/bin/env python2 from setuptools import setup, find_packages # Uploading to PyPI # ================= # The first time only: # $ python setup.py register -r pypi # # Every version bump: # $ git tag <version>; git push --tags # $ python setup.py sdist upload -r pypi version = '0.4.0' setup( na...
37c213d7054e3bf0f9ed6fbbdd6921fd7ae11e96
setup.py
setup.py
#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore>=0.24.0', 'six>=1.4.0...
#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore==0.63.0', 'six>=1.4.0...
Update dependencies due to botocore critical changes after 0.64.0
Update dependencies due to botocore critical changes after 0.64.0
Python
apache-2.0
henrysher/kotocore,henrysher/kotocore
#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore>=0.24.0', 'six>=1.4.0...
#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore==0.63.0', 'six>=1.4.0...
<commit_before>#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore>=0.24.0', ...
#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore==0.63.0', 'six>=1.4.0...
#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore>=0.24.0', 'six>=1.4.0...
<commit_before>#!/usr/bin/env python """ distutils/setuptools install script. """ import os import sys import kotocore try: from setuptools import setup setup except ImportError: from distutils.core import setup packages = [ 'kotocore', 'kotocore.utils', ] requires = [ 'botocore>=0.24.0', ...
fefab5f18cdd166e9abab5d5652cdc7645f2d6ae
hbase/setup.py
hbase/setup.py
# -*- coding: utf-8 -*- from setuptools import setup setup(name='hbase', version='0.0a1', author='Thomas Bach')
# -*- coding: utf-8 -*- from setuptools import setup import sys PY_VERSION = sys.version_info[:2] tests_require = ['mock'] if PY_VERSION == (2, 6): tests_require.append('unittest2') setup(name='hbase', version='0.0a1', author='Thomas Bach', tests_require=tests_require, test_suite='hbas...
Revert "don't know how to test these things"
Revert "don't know how to test these things" This reverts commit a3e1d48b426000bc182265db336a907f3df4996d.
Python
bsd-3-clause
fuzzy-id/midas,fuzzy-id/midas,fuzzy-id/midas
# -*- coding: utf-8 -*- from setuptools import setup setup(name='hbase', version='0.0a1', author='Thomas Bach') Revert "don't know how to test these things" This reverts commit a3e1d48b426000bc182265db336a907f3df4996d.
# -*- coding: utf-8 -*- from setuptools import setup import sys PY_VERSION = sys.version_info[:2] tests_require = ['mock'] if PY_VERSION == (2, 6): tests_require.append('unittest2') setup(name='hbase', version='0.0a1', author='Thomas Bach', tests_require=tests_require, test_suite='hbas...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup setup(name='hbase', version='0.0a1', author='Thomas Bach') <commit_msg>Revert "don't know how to test these things" This reverts commit a3e1d48b426000bc182265db336a907f3df4996d.<commit_after>
# -*- coding: utf-8 -*- from setuptools import setup import sys PY_VERSION = sys.version_info[:2] tests_require = ['mock'] if PY_VERSION == (2, 6): tests_require.append('unittest2') setup(name='hbase', version='0.0a1', author='Thomas Bach', tests_require=tests_require, test_suite='hbas...
# -*- coding: utf-8 -*- from setuptools import setup setup(name='hbase', version='0.0a1', author='Thomas Bach') Revert "don't know how to test these things" This reverts commit a3e1d48b426000bc182265db336a907f3df4996d.# -*- coding: utf-8 -*- from setuptools import setup import sys PY_VERSION = sys.ver...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup setup(name='hbase', version='0.0a1', author='Thomas Bach') <commit_msg>Revert "don't know how to test these things" This reverts commit a3e1d48b426000bc182265db336a907f3df4996d.<commit_after># -*- coding: utf-8 -*- from setuptools impor...
3781f2b33a69b447f94021842f8b369b627ed478
setup.py
setup.py
#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DESCRIPTION ...
#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DESCRIPTION ...
Update master version to 0.3-dev
Update master version to 0.3-dev
Python
bsd-3-clause
jni/cellom2tif
#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DESCRIPTION ...
#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DESCRIPTION ...
<commit_before>#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DE...
#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DESCRIPTION ...
#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DESCRIPTION ...
<commit_before>#from distutils.core import setup from setuptools import setup descr = """cellom2tif: Convert Cellomics .C01 images to TIFF. This package uses the python-bioformats library to traverse directories and convert files in the Cellomics format (.C01) to TIFF files. """ DISTNAME = 'cellom2tif' DE...
491161d5ecdf6ef3c914b3e28175e8f3da9725f7
i2cADC_read.py
i2cADC_read.py
from ABE_ADCPi import ADCPi from ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Requires python s...
from libs.ABE_ADCPi import ADCPi from libs.ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Require...
Set to work with libs package
Set to work with libs package
Python
apache-2.0
OkTekk/a.gus
from ABE_ADCPi import ADCPi from ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Requires python s...
from libs.ABE_ADCPi import ADCPi from libs.ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Require...
<commit_before>from ABE_ADCPi import ADCPi from ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Re...
from libs.ABE_ADCPi import ADCPi from libs.ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Require...
from ABE_ADCPi import ADCPi from ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Requires python s...
<commit_before>from ABE_ADCPi import ADCPi from ABE_helpers import ABEHelpers import datetime, time import os, sys """ ================================================ ABElectronics ADC Pi 8-Channel ADC data-logger demo Version 1.0 Created 11/05/2014 Version 1.1 16/11/2014 updated code and functions to PEP8 format Re...
cdac4131706384a2d617d54e1b67aa670c9a14e0
setup.py
setup.py
"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='w', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Berkeley CoCoSci',...
"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='wallace-platform', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Ber...
Rename PyPi dist. to wallace-platform
Rename PyPi dist. to wallace-platform
Python
mit
jcpeterson/Dallinger,Dallinger/Dallinger,suchow/Wallace,berkeley-cocosci/Wallace,Dallinger/Dallinger,berkeley-cocosci/Wallace,suchow/Wallace,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,suchow/Wallace,berkeley-cocosci/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dalli...
"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='w', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Berkeley CoCoSci',...
"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='wallace-platform', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Ber...
<commit_before>"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='w', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Ber...
"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='wallace-platform', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Ber...
"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='w', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Berkeley CoCoSci',...
<commit_before>"""Install Wallace as a command line utility.""" from setuptools import setup setup_args = dict( name='w', packages=['wallace'], version="0.11.1", description='Wallace, a platform for experimental cultural evolution', url='http://github.com/berkeley-cocosci/Wallace', author='Ber...
6434ca8c5c8f990f29b9b1aea58c93fc03b85039
setup.py
setup.py
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", author="oemof dev...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", author="oemof dev...
Make open_fred an optional dependency
Make open_fred an optional dependency
Python
mit
oemof/feedinlib
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", author="oemof dev...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", author="oemof dev...
<commit_before>import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", au...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", author="oemof dev...
import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", author="oemof dev...
<commit_before>import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="feedinlib", version="0.1.0rc3", description="Creating time series from pv or wind power plants.", url="http://github.com/oemof/feedinlib", au...
b7465f4745991d61b9ad7e1e56ede34fd87dc198
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot==5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'requests', 'apsche...
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot~=5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'requests', 'apsche...
Allow minor versions of python-telegram-bot dep
Allow minor versions of python-telegram-bot dep
Python
mit
BotDevGroup/marvin,BotDevGroup/marvin,BotDevGroup/marvin
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot==5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'requests', 'apsche...
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot~=5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'requests', 'apsche...
<commit_before>#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot==5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'request...
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot~=5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'requests', 'apsche...
#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot==5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'requests', 'apsche...
<commit_before>#!/usr/bin/env python from distutils.core import setup from setuptools import find_packages REQUIREMENTS = [ 'python-telegram-bot==5.3.0', 'blinker', 'python-dateutil', 'dogpile.cache==0.6.2', 'mongoengine==0.10.6', 'polling', 'pytz', 'ipython', 'ipdb', 'request...
eec57aaa9fe2ad2f9c79966fdc7f7796780675de
setup.py
setup.py
from __future__ import absolute_import from setuptools import setup setup( name='shub', version='2.4.2', packages=['shub'], url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README.rst').read(), author='Scrapinghub', autho...
from __future__ import absolute_import from setuptools import setup, find_packages setup( name='shub', version='2.4.2', packages=find_packages(exclude=('tests', 'tests.*')), url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README...
Include shub.image in package tarball
Include shub.image in package tarball
Python
bsd-3-clause
scrapinghub/shub
from __future__ import absolute_import from setuptools import setup setup( name='shub', version='2.4.2', packages=['shub'], url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README.rst').read(), author='Scrapinghub', autho...
from __future__ import absolute_import from setuptools import setup, find_packages setup( name='shub', version='2.4.2', packages=find_packages(exclude=('tests', 'tests.*')), url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README...
<commit_before>from __future__ import absolute_import from setuptools import setup setup( name='shub', version='2.4.2', packages=['shub'], url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README.rst').read(), author='Scraping...
from __future__ import absolute_import from setuptools import setup, find_packages setup( name='shub', version='2.4.2', packages=find_packages(exclude=('tests', 'tests.*')), url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README...
from __future__ import absolute_import from setuptools import setup setup( name='shub', version='2.4.2', packages=['shub'], url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README.rst').read(), author='Scrapinghub', autho...
<commit_before>from __future__ import absolute_import from setuptools import setup setup( name='shub', version='2.4.2', packages=['shub'], url='http://doc.scrapinghub.com/shub.html', description='Scrapinghub Command Line Client', long_description=open('README.rst').read(), author='Scraping...
f7c30f6d6830a0bcb217fbc89e7f2f20489dd775
setup.py
setup.py
#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_description=open('README....
#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_description=open('README....
Add numexpr as a dependency for pytables
Add numexpr as a dependency for pytables
Python
bsd-3-clause
jasonmhite/vuqutils
#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_description=open('README....
#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_description=open('README....
<commit_before>#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_descriptio...
#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_description=open('README....
#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_description=open('README....
<commit_before>#from distutils.core import setup from setuptools import setup setup( name='vuqutils', version='0.0.2', author='Jason M. Hite', author_email='jasonmhite@gmail.com', packages=['vuqutils'], license='LICENSE.txt', description='Useful stuff for VUQ warriors.', long_descriptio...
3570f23167044731d8a6e2c7b474bbed3985a936
setup.py
setup.py
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
Add a minimum version requirement for numpy.
Add a minimum version requirement for numpy.
Python
mit
pwcazenave/PyFVCOM
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
<commit_before>from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', ...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
<commit_before>from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '2.1.0', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', ...
e3f0d580a61dd3898ada113338e842c2b7a08b3e
setup.py
setup.py
from setuptools import setup, find_packages requirements = [ 'Flask==0.10.1', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description='Simple library...
from setuptools import setup, find_packages requirements = [ 'Flask==1.0.2', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description='Simple library ...
Update Flask version to 1.0.2
Update Flask version to 1.0.2
Python
mit
anurag90x/flask-pundit
from setuptools import setup, find_packages requirements = [ 'Flask==0.10.1', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description='Simple library...
from setuptools import setup, find_packages requirements = [ 'Flask==1.0.2', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description='Simple library ...
<commit_before>from setuptools import setup, find_packages requirements = [ 'Flask==0.10.1', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description=...
from setuptools import setup, find_packages requirements = [ 'Flask==1.0.2', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description='Simple library ...
from setuptools import setup, find_packages requirements = [ 'Flask==0.10.1', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description='Simple library...
<commit_before>from setuptools import setup, find_packages requirements = [ 'Flask==0.10.1', ] setup( name='flask-pundit', version='1.1.0', license='MIT', url='https://github.com/anurag90x/flask-pundit', author='Anurag Chaudhury', author_email='anuragchaudhury@gmail.com', description=...
52565b4ba40a50d1eab45bb2ed8a2fb33f65238e
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: readme = f.read(...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: readme = f.read(...
Bump version to 0.0.3 for Nav440 sensor addition
Bump version to 0.0.3 for Nav440 sensor addition
Python
mit
ruairif/ahrs
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: readme = f.read(...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: readme = f.read(...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: r...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: readme = f.read(...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: readme = f.read(...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = '' with open('README.rst') as f: r...
d4f8b51efd611a9385cbb21e33c9eef6c0147b9a
setup.py
setup.py
from setuptools import setup setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', url='https://github.com/Stewori/pytypes', author='Stefan Richthofer', author_email='stefan.richthofer@jyni.org', license='Apache-2.0', packages=['pytypes'], class...
import os.path from setuptools import setup here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path).read() setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', long_description=readme, url='https://github.co...
Use README.rst for the PyPI long description
Use README.rst for the PyPI long description
Python
apache-2.0
Stewori/pytypes
from setuptools import setup setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', url='https://github.com/Stewori/pytypes', author='Stefan Richthofer', author_email='stefan.richthofer@jyni.org', license='Apache-2.0', packages=['pytypes'], class...
import os.path from setuptools import setup here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path).read() setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', long_description=readme, url='https://github.co...
<commit_before>from setuptools import setup setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', url='https://github.com/Stewori/pytypes', author='Stefan Richthofer', author_email='stefan.richthofer@jyni.org', license='Apache-2.0', packages=['pytyp...
import os.path from setuptools import setup here = os.path.dirname(__file__) readme_path = os.path.join(here, 'README.rst') readme = open(readme_path).read() setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', long_description=readme, url='https://github.co...
from setuptools import setup setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', url='https://github.com/Stewori/pytypes', author='Stefan Richthofer', author_email='stefan.richthofer@jyni.org', license='Apache-2.0', packages=['pytypes'], class...
<commit_before>from setuptools import setup setup( name='pytypes', version='1.0b1', description='Typing toolbox for Python 3 _and_ 2.', url='https://github.com/Stewori/pytypes', author='Stefan Richthofer', author_email='stefan.richthofer@jyni.org', license='Apache-2.0', packages=['pytyp...
a1621b6dd877268998e2b3c6c6c742f0ddf346a5
setup.py
setup.py
from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a10', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=find_packages('src...
from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a11', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=find_packages('src...
Bump to version with package data fix
Bump to version with package data fix
Python
mit
jvivian/rnaseq-lib,jvivian/rnaseq-lib
from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a10', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=find_packages('src...
from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a11', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=find_packages('src...
<commit_before>from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a10', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=fin...
from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a11', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=find_packages('src...
from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a10', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=find_packages('src...
<commit_before>from setuptools import setup, find_packages setup(name='rnaseq-lib', version='1.0a10', description='', url='http://github.com/jvivian/rnaseq-lib', author='John Vivian', author_email='jtvivian@gmail.com', license='MIT', package_dir={'': 'src'}, packages=fin...
708df747d1fba202780e97e1b1eb1af024f26f72
setup.py
setup.py
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require="nose", setup_requires=['pbr'], pbr=True, )
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require=['nose', 'hocr-spec'], setup_requires=['pbr'], pbr=True, )
Add hocr-spec-python to test requirements
Add hocr-spec-python to test requirements
Python
apache-2.0
mittagessen/kraken,mittagessen/kraken,mittagessen/kraken,mittagessen/kraken
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require="nose", setup_requires=['pbr'], pbr=True, ) Add hocr-spec-python to test requirements
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require=['nose', 'hocr-spec'], setup_requires=['pbr'], pbr=True, )
<commit_before>#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require="nose", setup_requires=['pbr'], pbr=True, ) <commit_msg>Add hocr-spec-python to test requ...
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require=['nose', 'hocr-spec'], setup_requires=['pbr'], pbr=True, )
#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require="nose", setup_requires=['pbr'], pbr=True, ) Add hocr-spec-python to test requirements#!/usr/bin/env pyth...
<commit_before>#!/usr/bin/env python from __future__ import absolute_import, division, print_function from setuptools import setup setup( include_package_data=True, test_suite="nose.collector", tests_require="nose", setup_requires=['pbr'], pbr=True, ) <commit_msg>Add hocr-spec-python to test requ...
0bf58503750773c3c39d46fe7405f1103c7c5e37
setup.py
setup.py
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
Exclude tests from getting installed
Exclude tests from getting installed
Python
mit
eventbrite/curator
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
<commit_before>import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in in...
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
<commit_before>import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in in...
83267931164adcbb3df5e869e40ebcf7ee4b12e8
setup.py
setup.py
from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', py_modules=['lektor_s3'], entry_points...
from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', platforms='any', py_modules=['lektor_s...
Add classifiers to PyPi metadata
Add classifiers to PyPi metadata
Python
mit
spenczar/lektor-s3
from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', py_modules=['lektor_s3'], entry_points...
from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', platforms='any', py_modules=['lektor_s...
<commit_before>from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', py_modules=['lektor_s3'], ...
from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', platforms='any', py_modules=['lektor_s...
from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', py_modules=['lektor_s3'], entry_points...
<commit_before>from setuptools import setup setup( name='lektor-s3', description='Lektor plugin to support publishing to S3', version='0.2.2', author=u'Spencer Nelson', author_email='s@spenczar.com', url='https://github.com/spenczar/lektor-s3', license='MIT', py_modules=['lektor_s3'], ...
17e2f4c3a44b06c6f88a7ffcc87420d5762ecc7d
setup.py
setup.py
from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) sys.exit(1) ins...
from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) sys.exit(1) ins...
Remove version number of html2text in install_requires
Remove version number of html2text in install_requires
Python
bsd-3-clause
ugoertz/django-userena,ugoertz/django-userena,ugoertz/django-userena
from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) sys.exit(1) ins...
from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) sys.exit(1) ins...
<commit_before>from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) s...
from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) sys.exit(1) ins...
from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) sys.exit(1) ins...
<commit_before>from setuptools import setup, find_packages import sys userena = __import__('userena') readme_file = 'README.mkd' try: long_description = open(readme_file).read() except IOError: sys.stderr.write("[ERROR] Cannot find file specified as " "``long_description`` (%s)\n" % readme_file) s...
df3583ba3a7a1bade8b411d885a0df1609dd8465
setup.py
setup.py
import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1dev', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.core', 'f...
import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.core', 'fore...
Remove 'dev' from version name and add data files to install process
Remove 'dev' from version name and add data files to install process
Python
mit
osantana/forecast
import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1dev', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.core', 'f...
import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.core', 'fore...
<commit_before>import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1dev', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.co...
import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.core', 'fore...
import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1dev', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.core', 'f...
<commit_before>import os from distutils.core import setup path = os.path.dirname(__file__) setup( name='forecast', version='0.1dev', author="Osvaldo Santana Neto", author_email="forecast@osantana.me", packages=[ 'forecast', 'forecast.applications', 'forecast.applications.co...
003d236daee8b7aca39c62708b18d59bced0bc03
setup.py
setup.py
import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='1.4.1', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_profiling'], ...
import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup # read the contents of README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='ut...
Fix PyPi readme. Bump to 1.4.2
Fix PyPi readme. Bump to 1.4.2
Python
mit
JosPolfliet/pandas-profiling,JosPolfliet/pandas-profiling
import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='1.4.1', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_profiling'], ...
import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup # read the contents of README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='ut...
<commit_before>import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='1.4.1', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_...
import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup # read the contents of README file from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='ut...
import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='1.4.1', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_profiling'], ...
<commit_before>import os __location__ = os.path.dirname(__file__) try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='pandas-profiling', version='1.4.1', author='Jos Polfliet', author_email='jos.polfliet+panpro@gmail.com', packages=['pandas_...
b280771f37b5535cee61ab636f2f3256d6c18cee
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python_version_tuple(...
#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python_version_tuple(...
Add Python 3.4 to classifiers
Add Python 3.4 to classifiers All tests passed on Python 3.4.
Python
mit
astanin/python-tabulate,kyokley/tabulate
#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python_version_tuple(...
#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python_version_tuple(...
<commit_before>#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python...
#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python_version_tuple(...
#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python_version_tuple(...
<commit_before>#!/usr/bin/env python from distutils.core import setup from platform import python_version_tuple import re LICENSE = open("LICENSE").read() # strip links from the descripton on the PyPI LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`") # strip Build Status from the PyPI package if python...
d74d4f5db0045f7fb40925f8f1e32ec17e84e8ca
tasks.py
tasks.py
# Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
Make sure headers are JSON serializable
Make sure headers are JSON serializable
Python
apache-2.0
sorenh/asyncinator
# Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
<commit_before># Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
# Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
<commit_before># Copyright 2017 Mastercard # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
7c9fd4911aa9289310f3aa925e9cb4e6fe23b75b
piptools/sync.py
piptools/sync.py
import pip exceptions = ['pip', 'setuptools', 'wheel'] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = { r.req.key: r for r in requirements } to_be_installed = s...
import pip EXCEPTIONS = [ 'pip', 'pip-tools', 'setuptools', 'wheel', ] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = {r.req.key: r for r in require...
Add pip-tools itself to the list of exceptions
Add pip-tools itself to the list of exceptions
Python
bsd-2-clause
suutari/prequ,suutari/prequ,suutari-ai/prequ
import pip exceptions = ['pip', 'setuptools', 'wheel'] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = { r.req.key: r for r in requirements } to_be_installed = s...
import pip EXCEPTIONS = [ 'pip', 'pip-tools', 'setuptools', 'wheel', ] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = {r.req.key: r for r in require...
<commit_before>import pip exceptions = ['pip', 'setuptools', 'wheel'] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = { r.req.key: r for r in requirements } to_b...
import pip EXCEPTIONS = [ 'pip', 'pip-tools', 'setuptools', 'wheel', ] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = {r.req.key: r for r in require...
import pip exceptions = ['pip', 'setuptools', 'wheel'] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = { r.req.key: r for r in requirements } to_be_installed = s...
<commit_before>import pip exceptions = ['pip', 'setuptools', 'wheel'] def diff(requirements, installed): """ Calculate which modules should be installed or uninstalled, given a set of requirements and a list of installed modules. """ requirements = { r.req.key: r for r in requirements } to_b...
3ff6b8a2e8eecf48bfe74d5a0b0972e29ace15fd
imagetagger/imagetagger/annotations/admin.py
imagetagger/imagetagger/annotations/admin.py
from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat admin.site.register(Annotation) admin.site.register(AnnotationType) admin.site.register(Export) admin.site.register(Verification) admin.site.register(ExportFormat)
from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat @admin.register(Annotation) class AnnotationAdmin(admin.ModelAdmin): raw_id_fields = ( 'image', ) @admin.register(Verification) class VerificationAdmin(admin.ModelAdmin): raw_id_fi...
Use raw id fields for annotation and verification foreign keys
Use raw id fields for annotation and verification foreign keys
Python
mit
bit-bots/imagetagger,bit-bots/imagetagger,bit-bots/imagetagger,bit-bots/imagetagger
from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat admin.site.register(Annotation) admin.site.register(AnnotationType) admin.site.register(Export) admin.site.register(Verification) admin.site.register(ExportFormat) Use raw id fields for annotation and v...
from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat @admin.register(Annotation) class AnnotationAdmin(admin.ModelAdmin): raw_id_fields = ( 'image', ) @admin.register(Verification) class VerificationAdmin(admin.ModelAdmin): raw_id_fi...
<commit_before>from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat admin.site.register(Annotation) admin.site.register(AnnotationType) admin.site.register(Export) admin.site.register(Verification) admin.site.register(ExportFormat) <commit_msg>Use raw id ...
from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat @admin.register(Annotation) class AnnotationAdmin(admin.ModelAdmin): raw_id_fields = ( 'image', ) @admin.register(Verification) class VerificationAdmin(admin.ModelAdmin): raw_id_fi...
from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat admin.site.register(Annotation) admin.site.register(AnnotationType) admin.site.register(Export) admin.site.register(Verification) admin.site.register(ExportFormat) Use raw id fields for annotation and v...
<commit_before>from django.contrib import admin from .models import Annotation, AnnotationType, Export, Verification, ExportFormat admin.site.register(Annotation) admin.site.register(AnnotationType) admin.site.register(Export) admin.site.register(Verification) admin.site.register(ExportFormat) <commit_msg>Use raw id ...
14c9da0610f947c0b4f7f0d19f88e7c592e5e110
numpy/linalg/setup.py
numpy/linalg/setup.py
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = get_info('lapack...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = get_info('lapack...
Disable pythonxerbla.c patch for win32 (the MSVC linker failes on multiple defined symbols) when using optimized lapack.
Disable pythonxerbla.c patch for win32 (the MSVC linker failes on multiple defined symbols) when using optimized lapack. git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@5002 94b884b6-d6fd-0310-90d3-974f1d3f35e1
Python
bsd-3-clause
illume/numpy3k,Ademan/NumPy-GSoC,jasonmccampbell/numpy-refactor-sprint,jasonmccampbell/numpy-refactor-sprint,chadnetzer/numpy-gaurdro,teoliphant/numpy-refactor,illume/numpy3k,teoliphant/numpy-refactor,jasonmccampbell/numpy-refactor-sprint,jasonmccampbell/numpy-refactor-sprint,chadnetzer/numpy-gaurdro,teoliphant/numpy-r...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = get_info('lapack...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = get_info('lapack...
<commit_before> def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = g...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = get_info('lapack...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = get_info('lapack...
<commit_before> def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('linalg',parent_package,top_path) config.add_data_dir('tests') # Configure lapack_lite lapack_info = g...
b2d813956f09e49b72a78b51fa398d17473cd0c7
oauthenticator/tests/test_awscognito.py
oauthenticator/tests/test_awscognito.py
import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username): """Return...
import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username): """Return...
Fix mock results are not in json format
Fix mock results are not in json format
Python
bsd-3-clause
minrk/oauthenticator,NickolausDS/oauthenticator,jupyterhub/oauthenticator
import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username): """Return...
import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username): """Return...
<commit_before>import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username)...
import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username): """Return...
import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username): """Return...
<commit_before>import os from unittest.mock import patch from pytest import fixture with patch.dict(os.environ, AWSCOGNITO_DOMAIN='jupyterhub-test.auth.us-west-1.amazoncognito.com'): from ..awscognito import AWSCognitoAuthenticator, AWSCOGNITO_DOMAIN from .mocks import setup_oauth_mock def user_model(username)...
e87e136dd590134b7be6f5d04aebeed719880c9e
paasta_tools/paasta_native_serviceinit.py
paasta_tools/paasta_native_serviceinit.py
from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools import native_mesos_scheduler from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from paasta_tools.utils import...
from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools.frameworks.native_scheduler import MESOS_TASK_SPACER from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from pa...
Fix broken import in native scheduler
Fix broken import in native scheduler
Python
apache-2.0
Yelp/paasta,somic/paasta,Yelp/paasta,somic/paasta
from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools import native_mesos_scheduler from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from paasta_tools.utils import...
from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools.frameworks.native_scheduler import MESOS_TASK_SPACER from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from pa...
<commit_before>from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools import native_mesos_scheduler from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from paasta_too...
from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools.frameworks.native_scheduler import MESOS_TASK_SPACER from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from pa...
from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools import native_mesos_scheduler from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from paasta_tools.utils import...
<commit_before>from __future__ import absolute_import from __future__ import unicode_literals from paasta_tools import native_mesos_scheduler from paasta_tools.mesos_tools import status_mesos_tasks_verbose from paasta_tools.utils import calculate_tail_lines from paasta_tools.utils import compose_job_id from paasta_too...
eb365afe5b6045260a336ed37aa56cb256ccc3e4
tests/test_kqml_reader.py
tests/test_kqml_reader.py
import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in lst: ass...
import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in lst: ass...
Add unicode test for reading performatives
Add unicode test for reading performatives
Python
bsd-2-clause
bgyori/pykqml
import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in lst: ass...
import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in lst: ass...
<commit_before>import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in l...
import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in lst: ass...
import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in lst: ass...
<commit_before>import sys from io import BytesIO from kqml import KQMLObject from kqml.kqml_reader import KQMLReader from kqml.kqml_list import KQMLList def test_read_list(): s = b'(FAILURE :reason INVALID_DESCRIPTION)' sreader = BytesIO(s) kr = KQMLReader(sreader) lst = kr.read_list() for obj in l...
40fe604adc38095a65b2fd9168badb50daa65b14
thefuck/rules/git_pull.py
thefuck/rules/git_pull.py
def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_upstream = line.replace('<remo...
from thefuck import shells def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_u...
Replace use of '&&' by shells.and_
Replace use of '&&' by shells.and_
Python
mit
scorphus/thefuck,subajat1/thefuck,bigplus/thefuck,beni55/thefuck,barneyElDinosaurio/thefuck,roth1002/thefuck,bigplus/thefuck,nvbn/thefuck,mcarton/thefuck,sekaiamber/thefuck,mlk/thefuck,gogobebe2/thefuck,petr-tichy/thefuck,SimenB/thefuck,hxddh/thefuck,PLNech/thefuck,LawrenceHan/thefuck,gaurav9991/thefuck,redreamality/th...
def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_upstream = line.replace('<remo...
from thefuck import shells def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_u...
<commit_before>def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_upstream = line...
from thefuck import shells def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_u...
def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_upstream = line.replace('<remo...
<commit_before>def match(command, settings): return ('git' in command.script and 'pull' in command.script and 'set-upstream' in command.stderr) def get_new_command(command, settings): line = command.stderr.split('\n')[-3].strip() branch = line.split(' ')[-1] set_upstream = line...
0461ceaa41de142468eff690a1c98a8d3a5b620e
vault.py
vault.py
import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = terms[1] e...
import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = terms[1] e...
Return data as list if field is unset
Return data as list if field is unset
Python
bsd-3-clause
locationlabs/ansible-vault,jhaals/ansible-vault,jhaals/ansible-vault
import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = terms[1] e...
import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = terms[1] e...
<commit_before>import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = ter...
import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = terms[1] e...
import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = terms[1] e...
<commit_before>import os import urllib2 import json import sys from urlparse import urljoin from ansible.errors import AnsibleError from ansible.plugins.lookup import LookupBase class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): key = terms[0] try: field = ter...
a02ed17f79bba6e948c3b38d70ed6c2adbf1d0eb
py/tables.py
py/tables.py
import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) #Should be text...
import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) #Should be text...
Change type of time_posted to DATETIME and add author column
Change type of time_posted to DATETIME and add author column
Python
mit
ollien/Timpani,ollien/Timpani,ollien/Timpani
import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) #Should be text...
import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) #Should be text...
<commit_before>import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) ...
import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) #Should be text...
import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) #Should be text...
<commit_before>import sqlalchemy import sqlalchemy.ext.declarative Base = sqlalchemy.ext.declarative.declarative_base() class Post(Base): __tablename__ = "posts" id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True) title = sqlalchemy.Column(sqlalchemy.String) body = sqlalchemy.Column(sqlalchemy.Text,) ...
18813ca36853296e09a7a4c38cd931f5bb2f8810
pymt/__init__.py
pymt/__init__.py
from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np np.set_printoptions(legacy='1.13')
from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np try: np.set_printoptions(legacy='1.13') except Ty...
Use a try block for numpy<1.14
Use a try block for numpy<1.14
Python
mit
csdms/coupling,csdms/pymt,csdms/coupling
from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np np.set_printoptions(legacy='1.13') Use a try block fo...
from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np try: np.set_printoptions(legacy='1.13') except Ty...
<commit_before>from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np np.set_printoptions(legacy='1.13') <co...
from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np try: np.set_printoptions(legacy='1.13') except Ty...
from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np np.set_printoptions(legacy='1.13') Use a try block fo...
<commit_before>from ._version import get_versions __version__ = get_versions()['version'] del get_versions # See https://github.com/numpy/numpy/blob/master/doc/release/1.14.0-notes.rst#many-changes-to-array-printing-disableable-with-the-new-legacy-printing-mode import numpy as np np.set_printoptions(legacy='1.13') <co...
dc9f61996a19c2181ec9e70e595480366fdfe9d8
2020-03-26-Python-Object-Model/examples/construction-and-finalization.py
2020-03-26-Python-Object-Model/examples/construction-and-finalization.py
# Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = a def __de...
# Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = a def __de...
Add a note concerning __del__() in one of the examples.
2020-03-26: Add a note concerning __del__() in one of the examples.
Python
bsd-3-clause
s3rvac/talks,s3rvac/talks,s3rvac/talks,s3rvac/talks
# Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = a def __de...
# Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = a def __de...
<commit_before># Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = ...
# Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = a def __de...
# Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = a def __de...
<commit_before># Construction and finalization. class A: # __new__() is a special-cased static method so you do not have to declare # it as such. def __new__(cls, a): print('A.__new__()') return super().__new__(cls) def __init__(self, a): print('A.__init__()') self.a = ...
acb79107e8a103122fc461ebe34fb7fb9f689108
ptt_preproc_filter.py
ptt_preproc_filter.py
#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: # read ...
#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: # read ...
Remove the trailing blank line
Remove the trailing blank line
Python
mit
moskytw/mining-news
#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: # read ...
#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: # read ...
<commit_before>#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: ...
#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: # read ...
#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: # read ...
<commit_before>#!/usr/bin/env python import json import sys from os import scandir, remove from datetime import datetime START_DT = datetime(2016, 7, 1, 0, 0, 0) END_DT = datetime(2016, 12, 1, 0, 0, 0) DRY_RUN = False for dir_entry in scandir('preprocessed'): path = dir_entry.path with open(path) as f: ...
296c17310ab89aa19843ec8b5d313e9b622f9f86
14/src.py
14/src.py
import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def key(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', key(n)): lookahead[quint....
import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def basic_hash(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon, hash_func): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', hash_func(n))...
Make the hash function a parameter
Make the hash function a parameter
Python
mit
amalloy/advent-of-code-2016
import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def key(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', key(n)): lookahead[quint....
import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def basic_hash(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon, hash_func): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', hash_func(n))...
<commit_before>import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def key(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', key(n)): l...
import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def basic_hash(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon, hash_func): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', hash_func(n))...
import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def key(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', key(n)): lookahead[quint....
<commit_before>import sys import itertools import re from md5 import md5 puzzle_input = 'yjdafjpo' def key(n): return md5(puzzle_input + str(n)).hexdigest() def otp_keys(horizon): lookahead = {k: -1 for k in '0123456789abcdef'} def update_lookahead(n): for quint in re.finditer(r'(.)\1{4}', key(n)): l...
cefa3ffbcd1efb5cf030ec9d895b630c9fd650ad
newsletter/utils.py
newsletter/utils.py
""" Generic helper functions """ import logging import random from datetime import datetime from hashlib import sha1 from django.contrib.sites.models import Site from django.utils.encoding import force_bytes logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = ('subscribe', 'u...
""" Generic helper functions """ import logging from django.contrib.sites.models import Site from django.utils.crypto import get_random_string logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = ('subscribe', 'unsubscribe', 'update') def make_activation_code(): """ Genera...
Use Django’s crypto code to generate random code.
Use Django’s crypto code to generate random code. Many thanks to Cédric Picard for his extensive security report.
Python
agpl-3.0
dsanders11/django-newsletter,dsanders11/django-newsletter,dsanders11/django-newsletter
""" Generic helper functions """ import logging import random from datetime import datetime from hashlib import sha1 from django.contrib.sites.models import Site from django.utils.encoding import force_bytes logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = ('subscribe', 'u...
""" Generic helper functions """ import logging from django.contrib.sites.models import Site from django.utils.crypto import get_random_string logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = ('subscribe', 'unsubscribe', 'update') def make_activation_code(): """ Genera...
<commit_before>""" Generic helper functions """ import logging import random from datetime import datetime from hashlib import sha1 from django.contrib.sites.models import Site from django.utils.encoding import force_bytes logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = (...
""" Generic helper functions """ import logging from django.contrib.sites.models import Site from django.utils.crypto import get_random_string logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = ('subscribe', 'unsubscribe', 'update') def make_activation_code(): """ Genera...
""" Generic helper functions """ import logging import random from datetime import datetime from hashlib import sha1 from django.contrib.sites.models import Site from django.utils.encoding import force_bytes logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = ('subscribe', 'u...
<commit_before>""" Generic helper functions """ import logging import random from datetime import datetime from hashlib import sha1 from django.contrib.sites.models import Site from django.utils.encoding import force_bytes logger = logging.getLogger(__name__) # Possible actions that user can perform ACTIONS = (...