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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
|
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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
if request:
request.session['error_id'] = error.pk
|
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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
Store error id in session
|
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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
if request:
request.session['error_id'] = error.pk
|
<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=None, *args, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
<commit_msg>Store error id in session<commit_after>
|
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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
if request:
request.session['error_id'] = error.pk
|
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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
Store error id in sessionimport 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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
if request:
request.session['error_id'] = error.pk
|
<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=None, *args, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
<commit_msg>Store error id in session<commit_after>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, **kwargs):
"""
Handles the exception upon receiving the signal.
"""
kind, info, data = sys.exc_info()
if not issubclass(kind, Http404):
error = Error.objects.create(
kind=kind.__name__,
html=ExceptionReporter(request, kind, info,
data).get_traceback_html(),
path=request.build_absolute_uri(),
info=info,
data='\n'.join(traceback.format_exception(kind, info, data)),
)
error.save()
if request:
request.session['error_id'] = error.pk
|
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.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)
|
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.read())
except IOError as e:
raise tornado.web.HTTPError(404, "File not found")
|
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.read())
except IOError as e:
msg = """
File not found {}.
If you are developing cosmos create a local_settings.py file beside cosmosmain.py with following content:
import os
STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app")
TEMPLATE_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/templates")
INDEX_HTML_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app/index.html")
""".format(settings.INDEX_HTML_PATH)
raise tornado.web.HTTPError(404, msg)
|
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.read())
except IOError as e:
raise tornado.web.HTTPError(404, "File not found")
Put detailed error message for development environment in index view.
|
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.read())
except IOError as e:
msg = """
File not found {}.
If you are developing cosmos create a local_settings.py file beside cosmosmain.py with following content:
import os
STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app")
TEMPLATE_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/templates")
INDEX_HTML_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app/index.html")
""".format(settings.INDEX_HTML_PATH)
raise tornado.web.HTTPError(404, msg)
|
<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:
self.write(f.read())
except IOError as e:
raise tornado.web.HTTPError(404, "File not found")
<commit_msg>Put detailed error message for development environment in index view.<commit_after>
|
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.read())
except IOError as e:
msg = """
File not found {}.
If you are developing cosmos create a local_settings.py file beside cosmosmain.py with following content:
import os
STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app")
TEMPLATE_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/templates")
INDEX_HTML_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app/index.html")
""".format(settings.INDEX_HTML_PATH)
raise tornado.web.HTTPError(404, msg)
|
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.read())
except IOError as e:
raise tornado.web.HTTPError(404, "File not found")
Put detailed error message for development environment in index view.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.read())
except IOError as e:
msg = """
File not found {}.
If you are developing cosmos create a local_settings.py file beside cosmosmain.py with following content:
import os
STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app")
TEMPLATE_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/templates")
INDEX_HTML_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app/index.html")
""".format(settings.INDEX_HTML_PATH)
raise tornado.web.HTTPError(404, msg)
|
<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:
self.write(f.read())
except IOError as e:
raise tornado.web.HTTPError(404, "File not found")
<commit_msg>Put detailed error message for development environment in index view.<commit_after>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.read())
except IOError as e:
msg = """
File not found {}.
If you are developing cosmos create a local_settings.py file beside cosmosmain.py with following content:
import os
STATIC_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app")
TEMPLATE_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/templates")
INDEX_HTML_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../adminpanel/app/index.html")
""".format(settings.INDEX_HTML_PATH)
raise tornado.web.HTTPError(404, msg)
|
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 = randint(0, 59)
new_date = (date.year, date.month, date.day, random_hour, random_minute, random_second)
print(new_date)
|
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 = randint(0, 59)
new_date = (date.year, date.month, date.day, random_hour, random_minute, random_second)
print(new_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 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 = randint(0, 59)
new_date = (date.year, date.month, date.day, random_hour, random_minute, random_second)
print(new_date)
|
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
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 = randint(0, 59)
new_date = (date.year, date.month, date.day, random_hour, random_minute, random_second)
print(new_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 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 = randint(0, 59)
new_date = (date.year, date.month, date.day, random_hour, random_minute, random_second)
print(new_date)
|
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 else False
# find all remote products that satisfy filter
expression = "(is_defined(remote_url) and not is_defined(archive_path))"
if args.expression:
expression = "%s and %s" % (expression, args.expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d products', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
|
#
# 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 else False
# find all remote products that satisfy filter
expression = "is_defined(remote_url) and not is_defined(archive_path)"
if args.expression:
expression = "%s and (%s)" % (expression, args.expression)
logging.debug('Going to pull products that match: %s', expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d product(s)', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
|
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 else False
# find all remote products that satisfy filter
expression = "(is_defined(remote_url) and not is_defined(archive_path))"
if args.expression:
expression = "%s and %s" % (expression, args.expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d products', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
Make sure expression operator precedence is correct
|
#
# 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 else False
# find all remote products that satisfy filter
expression = "is_defined(remote_url) and not is_defined(archive_path)"
if args.expression:
expression = "%s and (%s)" % (expression, args.expression)
logging.debug('Going to pull products that match: %s', expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d product(s)', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
|
<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.verify_hash else False
# find all remote products that satisfy filter
expression = "(is_defined(remote_url) and not is_defined(archive_path))"
if args.expression:
expression = "%s and %s" % (expression, args.expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d products', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
<commit_msg>Make sure expression operator precedence is correct<commit_after>
|
#
# 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 else False
# find all remote products that satisfy filter
expression = "is_defined(remote_url) and not is_defined(archive_path)"
if args.expression:
expression = "%s and (%s)" % (expression, args.expression)
logging.debug('Going to pull products that match: %s', expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d product(s)', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
|
#
# 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 else False
# find all remote products that satisfy filter
expression = "(is_defined(remote_url) and not is_defined(archive_path))"
if args.expression:
expression = "%s and %s" % (expression, args.expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d products', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
Make sure expression operator precedence is correct#
# 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 else False
# find all remote products that satisfy filter
expression = "is_defined(remote_url) and not is_defined(archive_path)"
if args.expression:
expression = "%s and (%s)" % (expression, args.expression)
logging.debug('Going to pull products that match: %s', expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d product(s)', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
|
<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.verify_hash else False
# find all remote products that satisfy filter
expression = "(is_defined(remote_url) and not is_defined(archive_path))"
if args.expression:
expression = "%s and %s" % (expression, args.expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d products', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
<commit_msg>Make sure expression operator precedence is correct<commit_after>#
# 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 else False
# find all remote products that satisfy filter
expression = "is_defined(remote_url) and not is_defined(archive_path)"
if args.expression:
expression = "%s and (%s)" % (expression, args.expression)
logging.debug('Going to pull products that match: %s', expression)
num_products = archive.pull(expression, verify_hash=verify_hash)
logging.debug('Pulled %d product(s)', num_products)
return 0
def main():
parser = create_parser(description="Pull remote files into the archive.")
parser.add_argument("--verify-hash", action="store_true",
help="verify the hash of the product after it has been put in the archive")
parser.add_argument("archive", metavar="ARCHIVE", help="identifier of the archive to use")
parser.add_argument("expression", metavar="EXPRESSION", help="expression to filter products to pull")
return parse_args_and_run(parser, pull)
|
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
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
|
__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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
|
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
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
Fix to_bool to accept 0.
|
__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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
|
<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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
<commit_msg>Fix to_bool to accept 0.<commit_after>
|
__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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
|
__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
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
Fix to_bool to accept 0.
__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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
|
<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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
<commit_msg>Fix to_bool to accept 0.<commit_after>
__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 not not val
def ConfigPropertyList(val, section, key, config, val_type, inner_list=False,
**kwargs):
''' Accepts either a list of a string. Nothing else.
'''
def to_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = split(to_list_pat, val.strip(' []()'))
for i, v in enumerate(vals):
vals[i] = val_type(v)
return vals
def to_2d_list(val):
if isinstance(val, list):
vals = list(val)
else:
vals = [split(to_list_pat, line.strip(' []()'))
for line in val.strip(' []()').splitlines()]
for i, line in enumerate(vals):
for j, v in enumerate(line):
vals[i][j] = val_type(v)
return vals
if not isinstance(val, list):
val = [[val]] if inner_list else [val]
v_type = to_2d_list if inner_list else to_list
return ConfigParserProperty(val, section, key, config, val_type=v_type,
**kwargs)
|
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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)
|
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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
if self.definition.executor.output_processor:
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)
|
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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)Check if there is any output processor
|
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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
if self.definition.executor.output_processor:
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)
|
<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)
self.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)<commit_msg>Check if there is any output processor<commit_after>
|
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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
if self.definition.executor.output_processor:
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)
|
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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)Check if there is any output processorimport 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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
if self.definition.executor.output_processor:
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)
|
<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)
self.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)<commit_msg>Check if there is any output processor<commit_after>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.executable = "/bin/bash"
self.output_processor = get_output_processor(init.get('output-processor', None))
@registered_executor('bash')
class BashExecutor(PayloadExecutor):
Definition = BashExecutorDefinition
def handle_stdout(self, stdout, data):
self.log.debug("handle_stdout(%s)", stdout)
if self.definition.executor.output_processor:
self.definition.executor.output_processor.process(stdout, data)
def __init__(self, definition):
super(BashExecutor, self).__init__(definition)
|
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,
'tags': ALL,
}
|
|
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_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
|
# 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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
|
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_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
Fix the location of the C extension
|
# 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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
|
<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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
<commit_msg>Fix the location of the C extension<commit_after>
|
# 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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
|
# 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_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
Fix the location of the C extension# 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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
|
<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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
<commit_msg>Fix the location of the C extension<commit_after># 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:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
setup(name='Ska.Numpy',
author='Tom Aldcroft',
description='Numpy utilities',
author_email='aldcroft@head.cfa.harvard.edu',
py_modules=['Ska.Numpy'],
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
ext_modules=cythonize([fastss_ext]),
zip_safe=False,
packages=['Ska', 'Ska.Numpy', 'Ska.Numpy.tests'],
tests_require=['pytest'],
cmdclass=cmdclass,
)
|
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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(task, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
task.apply_async(experiment_group_id, countdown=Intervals.EXPERIMENTS_SCHEDULER)
|
# -*- 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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(self, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER)
|
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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(task, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
task.apply_async(experiment_group_id, countdown=Intervals.EXPERIMENTS_SCHEDULER)
Fix issue with celery rescheduling task
|
# -*- 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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(self, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER)
|
<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 = logging.getLogger('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(task, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
task.apply_async(experiment_group_id, countdown=Intervals.EXPERIMENTS_SCHEDULER)
<commit_msg>Fix issue with celery rescheduling task<commit_after>
|
# -*- 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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(self, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER)
|
# -*- 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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(task, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
task.apply_async(experiment_group_id, countdown=Intervals.EXPERIMENTS_SCHEDULER)
Fix issue with celery rescheduling task# -*- 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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(self, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER)
|
<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 = logging.getLogger('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(task, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
task.apply_async(experiment_group_id, countdown=Intervals.EXPERIMENTS_SCHEDULER)
<commit_msg>Fix issue with celery rescheduling task<commit_after># -*- 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('polyaxon.tasks.projects')
@celery_app.task(name=CeleryTasks.EXPERIMENTS_START_GROUP, bind=True)
def start_group_experiments(self, experiment_group_id):
try:
experiment_group = ExperimentGroup.objects.get(id=experiment_group_id)
except ExperimentGroup.DoesNotExist:
logger.info('ExperimentGroup `{}` does not exist anymore.'.format(experiment_group_id))
return
pending_experiments = experiment_group.pending_experiments
experiment_to_start = experiment_group.n_experiments_to_start
while experiment_to_start > 0 and pending_experiments:
experiment = pending_experiments.pop()
build_experiment.delay(experiment_id=experiment.id)
experiment_to_start -= 1
if pending_experiments:
# Schedule another task
self.retry(countdown=Intervals.EXPERIMENTS_SCHEDULER)
|
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,
})
return HttpResponse(template.render(context))
|
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,
})
return HttpResponse(template.render(context))
Use render in the index view
|
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,
})
return HttpResponse(template.render(context))
<commit_msg>Use render in the index view<commit_after>
|
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,
})
return HttpResponse(template.render(context))
Use render in the index viewfrom 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,
})
return HttpResponse(template.render(context))
<commit_msg>Use render in the index view<commit_after>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)
|
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.", "danger")
return redirect(url_for("login"))
return decorated_function
|
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.", "danger")
return redirect(url_for("login"))
return decorated_function
def for_guests(f):
@wraps(f)
def decorated_function(*args, **kwrags):
if not 'logged_in' in session:
return f(*args, **kwargs)
else:
flash("Invalid Action.", "danger")
return redirect(url_for("dashboard"))
return decorated_function
|
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.", "danger")
return redirect(url_for("login"))
return decorated_functionCreate a decorator `for_guest` for access control on pages for guests.
|
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.", "danger")
return redirect(url_for("login"))
return decorated_function
def for_guests(f):
@wraps(f)
def decorated_function(*args, **kwrags):
if not 'logged_in' in session:
return f(*args, **kwargs)
else:
flash("Invalid Action.", "danger")
return redirect(url_for("dashboard"))
return decorated_function
|
<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 to continue.", "danger")
return redirect(url_for("login"))
return decorated_function<commit_msg>Create a decorator `for_guest` for access control on pages for guests.<commit_after>
|
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.", "danger")
return redirect(url_for("login"))
return decorated_function
def for_guests(f):
@wraps(f)
def decorated_function(*args, **kwrags):
if not 'logged_in' in session:
return f(*args, **kwargs)
else:
flash("Invalid Action.", "danger")
return redirect(url_for("dashboard"))
return decorated_function
|
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.", "danger")
return redirect(url_for("login"))
return decorated_functionCreate a decorator `for_guest` for access control on pages for guests.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.", "danger")
return redirect(url_for("login"))
return decorated_function
def for_guests(f):
@wraps(f)
def decorated_function(*args, **kwrags):
if not 'logged_in' in session:
return f(*args, **kwargs)
else:
flash("Invalid Action.", "danger")
return redirect(url_for("dashboard"))
return decorated_function
|
<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 to continue.", "danger")
return redirect(url_for("login"))
return decorated_function<commit_msg>Create a decorator `for_guest` for access control on pages for guests.<commit_after>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.", "danger")
return redirect(url_for("login"))
return decorated_function
def for_guests(f):
@wraps(f)
def decorated_function(*args, **kwrags):
if not 'logged_in' in session:
return f(*args, **kwargs)
else:
flash("Invalid Action.", "danger")
return redirect(url_for("dashboard"))
return decorated_function
|
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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=False,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
__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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=True,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=False,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)Add localization files to egg
|
__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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=True,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
<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 with a simple widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=False,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)<commit_msg>Add localization files to egg<commit_after>
|
__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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=True,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
__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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=False,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)Add localization files to egg__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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=True,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
<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 with a simple widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=False,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)<commit_msg>Add localization files to egg<commit_after>__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 widget replacement in the form. It use Modal from twitter-bootstrap.",
long_description=open('README.rst').read(),
author = "asagli",
author_email = "alfredo.saglimbeni@gmail.com",
url = "",
packages = find_packages(),
include_package_data=True,
install_requires = [
'PIL==1.1.7','django>=1.4.3','south>=0.7.6'
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
|
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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
long_description=open("README.rst").read(),
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
|
#!/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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
long_description=open("README.rst").read(),
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
|
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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
long_description=open("README.rst").read(),
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
fix: Use README as the long description on PyPI
|
#!/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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
long_description=open("README.rst").read(),
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
|
<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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
long_description=open("README.rst").read(),
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
<commit_msg>fix: Use README as the long description on PyPI<commit_after>
|
#!/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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
long_description=open("README.rst").read(),
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
|
#!/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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
long_description=open("README.rst").read(),
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
fix: Use README as the long description on PyPI#!/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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
long_description=open("README.rst").read(),
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
|
<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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
long_description=open("README.rst").read(),
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
<commit_msg>fix: Use README as the long description on PyPI<commit_after>#!/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",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
]
setup(
name="shortuuid",
version=__version__,
author="Stochastic Technologies",
author_email="info@stochastictechnologies.com",
url="https://github.com/stochastic-technologies/shortuuid/",
long_description=open("README.rst").read(),
description="A generator library for concise, " "unambiguous and URL-safe UUIDs.",
license="BSD",
python_requires=">=3.5",
classifiers=classifiers,
packages=["shortuuid"],
test_suite="shortuuid.tests",
tests_require=[],
)
|
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:8000')
assert 'Django' in browser.title
|
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.get('http://localhost:8000')
# He notices the title references the site name
site_name = 'Scout'
assert site_name.lower() in browser.title.lower()
assert False, 'incomplete test'
|
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:8000')
assert 'Django' in browser.title
Change FT to expect site name in title
|
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.get('http://localhost:8000')
# He notices the title references the site name
site_name = 'Scout'
assert site_name.lower() in browser.title.lower()
assert False, 'incomplete test'
|
<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://localhost:8000')
assert 'Django' in browser.title
<commit_msg>Change FT to expect site name in title<commit_after>
|
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.get('http://localhost:8000')
# He notices the title references the site name
site_name = 'Scout'
assert site_name.lower() in browser.title.lower()
assert False, 'incomplete test'
|
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:8000')
assert 'Django' in browser.title
Change FT to expect site name in titlefrom 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.get('http://localhost:8000')
# He notices the title references the site name
site_name = 'Scout'
assert site_name.lower() in browser.title.lower()
assert False, 'incomplete test'
|
<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://localhost:8000')
assert 'Django' in browser.title
<commit_msg>Change FT to expect site name in title<commit_after>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.get('http://localhost:8000')
# He notices the title references the site name
site_name = 'Scout'
assert site_name.lower() in browser.title.lower()
assert False, 'incomplete test'
|
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 *
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]
|
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 NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
if __name__ == '__main__':
create_tables()
|
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(
document_name TEXT NOT NULL
, document_slug TEXT NOT NULL
, time_uploaded TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
print "Created tables"
if __name__ == '__main__':
create_tables()
|
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 NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
if __name__ == '__main__':
create_tables()
Drop table if exists in initial tables before creating
|
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(
document_name TEXT NOT NULL
, document_slug TEXT NOT NULL
, time_uploaded TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
print "Created tables"
if __name__ == '__main__':
create_tables()
|
<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_uploaded TEXT NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
if __name__ == '__main__':
create_tables()
<commit_msg>Drop table if exists in initial tables before creating<commit_after>
|
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(
document_name TEXT NOT NULL
, document_slug TEXT NOT NULL
, time_uploaded TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
print "Created tables"
if __name__ == '__main__':
create_tables()
|
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 NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
if __name__ == '__main__':
create_tables()
Drop table if exists in initial tables before creatingfrom 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(
document_name TEXT NOT NULL
, document_slug TEXT NOT NULL
, time_uploaded TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
print "Created tables"
if __name__ == '__main__':
create_tables()
|
<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_uploaded TEXT NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
if __name__ == '__main__':
create_tables()
<commit_msg>Drop table if exists in initial tables before creating<commit_after>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(
document_name TEXT NOT NULL
, document_slug TEXT NOT NULL
, time_uploaded TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now()
, s3_key TEXT NOT NULL
, filename TEXT NOT NULL
, word_counts JSON
, PRIMARY KEY(document_slug, time_uploaded)
);
"""
)
conn.commit()
print "Created tables"
if __name__ == '__main__':
create_tables()
|
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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.6'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.8'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.6'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
Set cov-core dependency to 1.8
|
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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.8'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
<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',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.6'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
<commit_msg>Set cov-core dependency to 1.8<commit_after>
|
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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.8'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.6'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
Set cov-core dependency to 1.8import 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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.8'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
<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',
long_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.6'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
<commit_msg>Set cov-core dependency to 1.8<commit_after>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_description=open('README.rst').read().strip(),
author='Marc Schlaich',
author_email='marc.schlaich@gmail.com',
url='https://github.com/schlamar/pytest-cov',
py_modules=['pytest_cov'],
install_requires=['pytest>=2.5.2',
'cov-core>=1.8'],
entry_points={'pytest11': ['pytest_cov = pytest_cov']},
license='MIT License',
zip_safe=False,
keywords='py.test pytest cover coverage distributed parallel',
classifiers=['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Topic :: Software Development :: Testing'])
|
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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six', 'importlib'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
|
#!/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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
|
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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six', 'importlib'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
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.
|
#!/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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
|
<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_data=True,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six', 'importlib'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
<commit_msg>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.<commit_after>
|
#!/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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
|
#!/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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six', 'importlib'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
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.#!/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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
|
<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_data=True,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six', 'importlib'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
<commit_msg>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.<commit_after>#!/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,
license='MIT License',
description='A simple Django app that provides a model field and corresponding widget based on the fantastic Sir Trevor project',
long_description=open('README.rst', 'r').read(),
url='https://github.com/philippbosch/django-sirtrevor/',
author='Philipp Bosch',
author_email='hello@pb.io',
install_requires=['markdown2', 'django-appconf', 'django', 'six'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
)
|
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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
|
# -*- 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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'pandas', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
|
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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
Revert "remove pandas from requirements"
This reverts commit b44d6a76eded00aa7ae03774548987c7c36455ac.
|
# -*- 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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'pandas', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
|
<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 = "waipy",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
<commit_msg>Revert "remove pandas from requirements"
This reverts commit b44d6a76eded00aa7ae03774548987c7c36455ac.<commit_after>
|
# -*- 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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'pandas', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
|
# -*- 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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
Revert "remove pandas from requirements"
This reverts commit b44d6a76eded00aa7ae03774548987c7c36455ac.# -*- 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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'pandas', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
|
<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 = "waipy",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
<commit_msg>Revert "remove pandas from requirements"
This reverts commit b44d6a76eded00aa7ae03774548987c7c36455ac.<commit_after># -*- 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",
description = ("Wavelet Analysis in Python"),
version=__version__,
author='Mabel Calim Costa',
author_email='mabelcalim@gmail.com',
#url='https://wavelet-analysis.readthedocs.org/en/latest/index.html',
url = 'https://bitbucket.org/mabel/waipy/overview',
long_description="""
This guide includes a Continuous Wavelet Transform (CWT), significance
tests from based on Torrence and Compo (1998) and Cross Wavelet Analysis
(CWA) based on Maraun and Kurths(2004).""",
packages=['waipy', 'waipy.cwt', 'waipy.cwa' ],
package_dir={'':'lib'},
classifiers=['License :: OSI Approved :: BSD License'],
install_requires=['numpy', 'scipy', 'pandas', 'matplotlib'],
extras_require= {
'all': ["netCDF4", "jupyter"],
'load_netcdf': ["netCDF4"],
'jupyer': ["jupyter"],
},
)
|
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://github.com/alerta/python-alerta',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguardian.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
],
python_requires='>=3.5'
)
|
#!/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'),
long_description_content_type='text/markdown',
license='Apache License 2.0',
author='Nick Satterly',
author_email='nick.satterly@gmail.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
'Topic :: Software Development :: Libraries :: Python Modules'
],
python_requires='>=3.5'
)
|
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://github.com/alerta/python-alerta',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguardian.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
],
python_requires='>=3.5'
)
Use markdown as README format
|
#!/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'),
long_description_content_type='text/markdown',
license='Apache License 2.0',
author='Nick Satterly',
author_email='nick.satterly@gmail.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
'Topic :: Software Development :: Libraries :: Python Modules'
],
python_requires='>=3.5'
)
|
<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,
url='http://github.com/alerta/python-alerta',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguardian.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
],
python_requires='>=3.5'
)
<commit_msg>Use markdown as README format<commit_after>
|
#!/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'),
long_description_content_type='text/markdown',
license='Apache License 2.0',
author='Nick Satterly',
author_email='nick.satterly@gmail.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
'Topic :: Software Development :: Libraries :: Python Modules'
],
python_requires='>=3.5'
)
|
#!/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://github.com/alerta/python-alerta',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguardian.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
],
python_requires='>=3.5'
)
Use markdown as README format#!/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'),
long_description_content_type='text/markdown',
license='Apache License 2.0',
author='Nick Satterly',
author_email='nick.satterly@gmail.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
'Topic :: Software Development :: Libraries :: Python Modules'
],
python_requires='>=3.5'
)
|
<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,
url='http://github.com/alerta/python-alerta',
license='MIT',
author='Nick Satterly',
author_email='nick.satterly@theguardian.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
],
python_requires='>=3.5'
)
<commit_msg>Use markdown as README format<commit_after>#!/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'),
long_description_content_type='text/markdown',
license='Apache License 2.0',
author='Nick Satterly',
author_email='nick.satterly@gmail.com',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'Click',
'requests',
'tabulate',
'pytz',
'six'
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'alerta = alertaclient.cli:cli'
]
},
keywords='alerta client unified command line tool sdk',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'Intended Audience :: Telecommunications Industry',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Monitoring',
'Topic :: Software Development :: Libraries :: Python Modules'
],
python_requires='>=3.5'
)
|
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
|
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__))
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
|
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
Exit unless we're explicitly in a Python3 environment
|
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__))
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
|
<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='Show _all_ the contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
<commit_msg>Exit unless we're explicitly in a Python3 environment<commit_after>
|
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__))
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
|
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
Exit unless we're explicitly in a Python3 environmentfrom 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__))
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
|
<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='Show _all_ the contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
<commit_msg>Exit unless we're explicitly in a Python3 environment<commit_after>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__))
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 contributors to a GitHub repository',
long_description=long_description,
url='https://github.com/labhr/octohatrack',
author='Katie McLaughlin',
author_email='katie@glasnt.com',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='octohatrack github contributions',
install_requires=[
'requests',
'simplejson',
'gitpython'
],
entry_points={
'console_scripts': [
"octohatrack = octohatrack.__main__:main"
]
},
packages=find_packages()
)
|
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={
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)
|
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={
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)
|
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={
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)Test db instead of memory db
|
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={
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)
|
<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(
DATABASES={
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)<commit_msg>Test db instead of memory db<commit_after>
|
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={
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)
|
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={
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)Test db instead of memory dbfrom 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={
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)
|
<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(
DATABASES={
'default': {
'NAME': ':memory:',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)<commit_msg>Test db instead of memory db<commit_after>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={
'default': {
'NAME': 'test.db',
'ENGINE': 'django.db.backends.sqlite3'
}
},
INSTALLED_APPS=('bakery',)
)
from django.core.management import call_command
import django
if django.VERSION[:2] >= (1, 7):
django.setup()
call_command('test', 'bakery')
setup(
name='django-bakery',
version='0.7.1',
description='A set of helpers for baking your Django site out as flat files',
author='The Los Angeles Times Data Desk',
author_email='datadesk@latimes.com',
url='http://www.github.com/datadesk/django-bakery/',
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3'
],
install_requires=[
'six==1.5.2',
'boto==2.28',
],
cmdclass={'test': TestCommand}
)
|
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=['ldapauthenticator'],
install_requires=[
'ldap3',
]
)
|
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=['ldapauthenticator'],
install_requires=[
'ldap3',
'jupyterhub',
]
)
|
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=['ldapauthenticator'],
install_requires=[
'ldap3',
]
)
Add jupyterhub as a requirement
|
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=['ldapauthenticator'],
install_requires=[
'ldap3',
'jupyterhub',
]
)
|
<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',
packages=['ldapauthenticator'],
install_requires=[
'ldap3',
]
)
<commit_msg>Add jupyterhub as a requirement<commit_after>
|
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=['ldapauthenticator'],
install_requires=[
'ldap3',
'jupyterhub',
]
)
|
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=['ldapauthenticator'],
install_requires=[
'ldap3',
]
)
Add jupyterhub as a requirementfrom 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=['ldapauthenticator'],
install_requires=[
'ldap3',
'jupyterhub',
]
)
|
<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',
packages=['ldapauthenticator'],
install_requires=[
'ldap3',
]
)
<commit_msg>Add jupyterhub as a requirement<commit_after>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=['ldapauthenticator'],
install_requires=[
'ldap3',
'jupyterhub',
]
)
|
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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
]
}
setup( **settings )
|
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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
],
"extras_require": {
# `statistics` is only included in Py3. Will need this for Py2
":python_version <= '2.7'": ["statistics"]
}
}
setup( **settings )
|
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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
]
}
setup( **settings )
Add statistics module as dependency if python2
|
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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
],
"extras_require": {
# `statistics` is only included in Py3. Will need this for Py2
":python_version <= '2.7'": ["statistics"]
}
}
setup( **settings )
|
<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__.py")) as file:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
]
}
setup( **settings )
<commit_msg>Add statistics module as dependency if python2<commit_after>
|
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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
],
"extras_require": {
# `statistics` is only included in Py3. Will need this for Py2
":python_version <= '2.7'": ["statistics"]
}
}
setup( **settings )
|
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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
]
}
setup( **settings )
Add statistics module as dependency if python2from 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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
],
"extras_require": {
# `statistics` is only included in Py3. Will need this for Py2
":python_version <= '2.7'": ["statistics"]
}
}
setup( **settings )
|
<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__.py")) as file:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
]
}
setup( **settings )
<commit_msg>Add statistics module as dependency if python2<commit_after>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:
exec(file.read(), about)
settings = {
"name": about["__title__"],
"version": about["__version__"],
"description": about["__summary__"],
"long_description": long_description,
"url": about["__uri__"],
"author": about["__author__"],
"author_email": about["__email__"],
"license": about["__license__"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
],
"keywords": "affinity mal myanimelist",
"packages": ["malaffinity"],
"install_requires": [
"bs4",
"lxml",
"requests"
],
"extras_require": {
# `statistics` is only included in Py3. Will need this for Py2
":python_version <= '2.7'": ["statistics"]
}
}
setup( **settings )
|
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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'GDAL>=1.9.2',
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
|
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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
|
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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'GDAL>=1.9.2',
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
Remove GDAL as a dependency
|
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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
|
<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 Language :: Python :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'GDAL>=1.9.2',
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
<commit_msg>Remove GDAL as a dependency<commit_after>
|
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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
|
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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'GDAL>=1.9.2',
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
Remove GDAL as a dependencyfrom 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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
|
<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 Language :: Python :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'GDAL>=1.9.2',
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
<commit_msg>Remove GDAL as a dependency<commit_after>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 :: 2.7',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS'
],
url='https://github.com/fitodic/centerline.git',
author='Filip Todic',
author_email='todic.filip@gmail.com',
license='MIT',
packages=['centerline'],
install_requires=[
'Fiona>=1.6.3'
'Shapely>=1.5.13',
'numpy>=1.10.4',
'scipy>=0.16.1',
],
extras_require={
'dev': [
'pypandoc',
'ipdb',
],
'test': [
'coverage',
'pytest',
'pytest-cov',
'pytest-sugar',
'pytest-runner',
'tox'
],
},
scripts=[
'bin/shp2centerline',
],
include_package_data=True,
zip_safe=False,
)
|
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',
description='UUIDField in Django',
url='https://github.com/dcramer/django-uuidfield',
zip_safe=False,
install_requires=[
'django',
],
packages=find_packages(),
test_suite = 'uuidfield.tests',
include_package_data=True,
cmdclass={"test": mytest},
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
|
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',
],
packages=find_packages(),
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
|
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',
description='UUIDField in Django',
url='https://github.com/dcramer/django-uuidfield',
zip_safe=False,
install_requires=[
'django',
],
packages=find_packages(),
test_suite = 'uuidfield.tests',
include_package_data=True,
cmdclass={"test": mytest},
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
Remove test suite hackery and bump version to 0.4.0
|
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',
],
packages=find_packages(),
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
|
<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='dcramer@gmail.com',
description='UUIDField in Django',
url='https://github.com/dcramer/django-uuidfield',
zip_safe=False,
install_requires=[
'django',
],
packages=find_packages(),
test_suite = 'uuidfield.tests',
include_package_data=True,
cmdclass={"test": mytest},
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
<commit_msg>Remove test suite hackery and bump version to 0.4.0<commit_after>
|
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',
],
packages=find_packages(),
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
|
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',
description='UUIDField in Django',
url='https://github.com/dcramer/django-uuidfield',
zip_safe=False,
install_requires=[
'django',
],
packages=find_packages(),
test_suite = 'uuidfield.tests',
include_package_data=True,
cmdclass={"test": mytest},
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
Remove test suite hackery and bump version to 0.4.0from 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',
],
packages=find_packages(),
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
|
<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='dcramer@gmail.com',
description='UUIDField in Django',
url='https://github.com/dcramer/django-uuidfield',
zip_safe=False,
install_requires=[
'django',
],
packages=find_packages(),
test_suite = 'uuidfield.tests',
include_package_data=True,
cmdclass={"test": mytest},
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
<commit_msg>Remove test suite hackery and bump version to 0.4.0<commit_after>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',
],
packages=find_packages(),
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
"Framework :: Django",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Software Development"
],
)
|
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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(exclude=['example']),
package_data = {
'relationships': [
'fixtures/*.json',
'templates/*.html',
'templates/*/*.html',
'locale/*/LC_MESSAGES/*',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
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.
|
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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(exclude=['example']),
package_data = {
'relationships': [
'fixtures/*.json',
'templates/*.html',
'templates/*/*.html',
'locale/*/LC_MESSAGES/*',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
<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 relationships between auth.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
<commit_msg>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.<commit_after>
|
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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(exclude=['example']),
package_data = {
'relationships': [
'fixtures/*.json',
'templates/*.html',
'templates/*/*.html',
'locale/*/LC_MESSAGES/*',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
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.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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(exclude=['example']),
package_data = {
'relationships': [
'fixtures/*.json',
'templates/*.html',
'templates/*/*.html',
'locale/*/LC_MESSAGES/*',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
<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 relationships between auth.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
<commit_msg>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.<commit_after>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.User',
long_description=readme,
author='Charles Leifer',
author_email='coleifer@gmail.com',
url='http://github.com/coleifer/django-relationships/tree/master',
packages=find_packages(exclude=['example']),
package_data = {
'relationships': [
'fixtures/*.json',
'templates/*.html',
'templates/*/*.html',
'locale/*/LC_MESSAGES/*',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
)
|
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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 1 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 1 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
Fix classifier error while pishing to pypi
|
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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
|
<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',
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 1 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
<commit_msg>Fix classifier error while pishing to pypi<commit_after>
|
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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 1 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
Fix classifier error while pishing to pypifrom 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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
|
<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',
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 1 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
<commit_msg>Fix classifier error while pishing to pypi<commit_after>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_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
install_requires=[
'six==1.8.0'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
],
install_requires=install_requires
)
|
#!/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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
'agate.columns'
],
install_requires=install_requires
)
|
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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
],
install_requires=install_requires
)
Add columns to src packages.
|
#!/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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
'agate.columns'
],
install_requires=install_requires
)
|
<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='',
long_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
],
install_requires=install_requires
)
<commit_msg>Add columns to src packages.<commit_after>
|
#!/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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
'agate.columns'
],
install_requires=install_requires
)
|
#!/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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
],
install_requires=install_requires
)
Add columns to src packages.#!/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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
'agate.columns'
],
install_requires=install_requires
)
|
<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='',
long_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
],
install_requires=install_requires
)
<commit_msg>Add columns to src packages.<commit_after>#!/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_description=open('README').read(),
author='Christopher Groskopf',
author_email='staringmonkey@gmail.com',
url='http://agate.readthedocs.org/',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=[
'agate',
'agate.columns'
],
install_requires=install_requires
)
|
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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
|
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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
Move pyuntl dependency from here to requirements-test.txt file.
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
|
<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/aubreylib',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
<commit_msg>Move pyuntl dependency from here to requirements-test.txt file.<commit_after>
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
Move pyuntl dependency from here to requirements-test.txt file.#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
|
<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/aubreylib',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
<commit_msg>Move pyuntl dependency from here to requirements-test.txt file.<commit_after>#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
]
)
|
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
tests_install=[
'sh==1.11'
],
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
|
"""
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
|
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
tests_install=[
'sh==1.11'
],
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
Revert "Revert "cleaning up a few unnecessary modules""
This reverts commit b6b8c8e12b18515591c0b053cac9e515314b819e.
There was no problem to begin with.
|
"""
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
|
<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-python-tools/tarball/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
tests_install=[
'sh==1.11'
],
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
<commit_msg>Revert "Revert "cleaning up a few unnecessary modules""
This reverts commit b6b8c8e12b18515591c0b053cac9e515314b819e.
There was no problem to begin with.<commit_after>
|
"""
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
|
"""
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
tests_install=[
'sh==1.11'
],
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
Revert "Revert "cleaning up a few unnecessary modules""
This reverts commit b6b8c8e12b18515591c0b053cac9e515314b819e.
There was no problem to begin with."""
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
|
<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-python-tools/tarball/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
tests_install=[
'sh==1.11'
],
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
<commit_msg>Revert "Revert "cleaning up a few unnecessary modules""
This reverts commit b6b8c8e12b18515591c0b053cac9e515314b819e.
There was no problem to begin with.<commit_after>"""
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/%s' % _VERSION,
install_requires=[
'requests==2.7.0',
'websocket-client==0.32.0',
'memoized==0.2',
'tabulate==0.7.5'
],
test_suite='tests',
keywords=[''],
packages=find_packages(exclude=['tests']),
license='MIT License',
description='jut command line tools',
# pypi doesn't support markdown so we can't push the README.md as is
long_description='https://github.com/jut-io/jut-python-tools/blob/master/README.md',
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'jut = jut.cli:main'
]
},
)
|
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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': [
{
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
{
'name': "Second Mailslot Handle",
'xsi:type': "WindowsHandleObjectType",
},
],
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
|
# 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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': {
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
|
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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': [
{
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
{
'name': "Second Mailslot Handle",
'xsi:type': "WindowsHandleObjectType",
},
],
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
Fix WinMailslot object to only use a single handle rather than a list
|
# 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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': {
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
|
<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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': [
{
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
{
'name': "Second Mailslot Handle",
'xsi:type': "WindowsHandleObjectType",
},
],
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
<commit_msg>Fix WinMailslot object to only use a single handle rather than a list<commit_after>
|
# 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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': {
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
|
# 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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': [
{
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
{
'name': "Second Mailslot Handle",
'xsi:type': "WindowsHandleObjectType",
},
],
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
Fix WinMailslot object to only use a single handle rather than a list# 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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': {
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
|
<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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': [
{
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
{
'name': "Second Mailslot Handle",
'xsi:type': "WindowsHandleObjectType",
},
],
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
<commit_msg>Fix WinMailslot object to only use a single handle rather than a list<commit_after># 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 = "WindowsMailslotObjectType"
klass = WinMailslot
_full_dict = {
'handle': {
'name': "First Mailslot Handle",
'type': "Mailslot",
'xsi:type': "WindowsHandleObjectType",
},
'max_message_size': 1024,
'name': "My Mailslot",
'read_timeout': 2000,
'security_attributes': "SecAttributes",
'xsi:type': object_type,
}
if __name__ == "__main__":
unittest.main()
|
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 Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
install_requires=requirements, # noqa
include_package_data=True,
zip_safe=False,
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
|
# -*- 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_description,
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
|
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 Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
install_requires=requirements, # noqa
include_package_data=True,
zip_safe=False,
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
Remove parâmetros inutilizados e adiciona a descrição longa
|
# -*- 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_description,
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
|
<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',
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
install_requires=requirements, # noqa
include_package_data=True,
zip_safe=False,
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
<commit_msg>Remove parâmetros inutilizados e adiciona a descrição longa<commit_after>
|
# -*- 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_description,
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
|
# -*- 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 Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
install_requires=requirements, # noqa
include_package_data=True,
zip_safe=False,
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
Remove parâmetros inutilizados e adiciona a descrição longa# -*- 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_description,
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
|
<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',
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
install_requires=requirements, # noqa
include_package_data=True,
zip_safe=False,
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
<commit_msg>Remove parâmetros inutilizados e adiciona a descrição longa<commit_after># -*- 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_description,
author='João Carlos Mendes',
author_email='joaocarlos.tmendes@gmail.com',
url='https://github.com/joaocarlosmendes/pybrdst',
download_url='https://github.com/joaocarlosmendes/pybrdst/releases/tag/0.1',
license='MIT',
keywords=['DST',
'brazilian',
'daylight',
'saving',
'horário',
'verão',
'brasileiro'],
classifiers=[],
)
|
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=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'])]
)
|
#!/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',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args)]
)
|
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=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'])]
)
Fix openmp flags for windows
|
#!/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',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args)]
)
|
<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_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'])]
)
<commit_msg>Fix openmp flags for windows<commit_after>
|
#!/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',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args)]
)
|
#!/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=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'])]
)
Fix openmp flags for windows#!/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',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args)]
)
|
<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_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=['-fopenmp'], extra_link_args=['-fopenmp'])]
)
<commit_msg>Fix openmp flags for windows<commit_after>#!/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',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('javelin.fourier_cython', ['javelin/fourier_cython.pyx'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args)]
)
|
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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
|
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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
'github3.py',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
|
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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
Add github3.py depedency to be able to list all plugins from Github.
|
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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
'github3.py',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
|
<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('README.md').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
<commit_msg>Add github3.py depedency to be able to list all plugins from Github.<commit_after>
|
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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
'github3.py',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
|
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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
Add github3.py depedency to be able to list all plugins from Github.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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
'github3.py',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
|
<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('README.md').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
<commit_msg>Add github3.py depedency to be able to list all plugins from Github.<commit_after>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').read(),
install_requires=[
'weavelib',
'eventlet!=0.22',
'bottle',
'GitPython',
'redis',
'appdirs',
'peewee',
'virtualenv',
'github3.py',
],
entry_points={
'console_scripts': [
'weave-launch = app:handle_launch',
'weave-main = app:handle_main'
]
}
)
|
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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.0',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
|
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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.0',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
Update aubreylib version and version of pyuntl required.
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
|
<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/aubreylib',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.0',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
<commit_msg>Update aubreylib version and version of pyuntl required.<commit_after>
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
|
#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.0',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
Update aubreylib version and version of pyuntl required.#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
|
<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/aubreylib',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.0',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
<commit_msg>Update aubreylib version and version of pyuntl required.<commit_after>#!/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',
license='BSD',
packages=['aubreylib'],
install_requires=[
'lxml>=3.3.3',
'pyuntl>=1.0.1',
'pypairtree>=1.0.0',
],
classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
]
)
|
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')
try:
print('try')
yield session
except:
print('except')
session.rollback()
raise
finally:
print('finally')
session.close()
|
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')
try:
print('try')
yield session
except:
print('except')
session.rollback()
raise
finally:
print('finally')
session.close()
|
<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')
try:
print('try')
yield session
except:
print('except')
session.rollback()
raise
finally:
print('finally')
session.close()
|
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."""
session = Session()
print('start')
try:
print('try')
yield session
except:
print('except')
session.rollback()
raise
finally:
print('finally')
session.close()
|
<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')
try:
print('try')
yield session
except:
print('except')
session.rollback()
raise
finally:
print('finally')
session.close()
|
|
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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
|
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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
|
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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
Change name to pyqtool (available on PyPI)
|
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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
|
<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=False,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
<commit_msg>Change name to pyqtool (available on PyPI)<commit_after>
|
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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
|
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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
Change name to pyqtool (available on PyPI)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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
|
<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=False,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
<commit_msg>Change name to pyqtool (available on PyPI)<commit_after>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,
platforms=["any"],
packages=['pyq', 'sizzle'],
entry_points={
'console_scripts': ['pyq = pyq.pyq:main'],
},
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],
include_package_data=True,
install_requires=[
'click==6.2',
'Pygments==2.1',
'regex==2016.1.10',
'astor==0.5',
]
)
|
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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
|
#!/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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
'gevent>=1.0',
'gevent-websocket>=0.9',
'meteor-ejson>=1.0',
'psycogreen>=1.0',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
|
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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
Add missing dependencies, new release (0.1.1).
|
#!/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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
'gevent>=1.0',
'gevent-websocket>=0.9',
'meteor-ejson>=1.0',
'psycogreen>=1.0',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
|
<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',
author_email='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
<commit_msg>Add missing dependencies, new release (0.1.1).<commit_after>
|
#!/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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
'gevent>=1.0',
'gevent-websocket>=0.9',
'meteor-ejson>=1.0',
'psycogreen>=1.0',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
|
#!/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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
Add missing dependencies, new release (0.1.1).#!/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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
'gevent>=1.0',
'gevent-websocket>=0.9',
'meteor-ejson>=1.0',
'psycogreen>=1.0',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
|
<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',
author_email='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
<commit_msg>Add missing dependencies, new release (0.1.1).<commit_after>#!/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='tyson@clugg.net',
url='https://github.com/commoncode/django-ddp',
packages=find_packages(),
include_package_data=True,
install_requires=[
'Django>=1.7',
'psycopg2>=2.5.4',
'gevent>=1.0',
'gevent-websocket>=0.9',
'meteor-ejson>=1.0',
'psycogreen>=1.0',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP",
],
)
|
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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow==2.6.0',
],
)
|
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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow>=4.1.1',
],
)
|
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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow==2.6.0',
],
)
Update pillow and stop requiring exact pillow version
|
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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow>=4.1.1',
],
)
|
<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 the Flask',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow==2.6.0',
],
)
<commit_msg>Update pillow and stop requiring exact pillow version<commit_after>
|
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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow>=4.1.1',
],
)
|
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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow==2.6.0',
],
)
Update pillow and stop requiring exact pillow versionfrom 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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow>=4.1.1',
],
)
|
<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 the Flask',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow==2.6.0',
],
)
<commit_msg>Update pillow and stop requiring exact pillow version<commit_after>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',
packages=['flask_thumbnails'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=[
'Flask',
'Pillow>=4.1.1',
],
)
|
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',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
|
#!/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',
author_email='info@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
|
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',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
Use __build__ syntax instead of os.environ
|
#!/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',
author_email='info@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
|
<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@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
<commit_msg>Use __build__ syntax instead of os.environ<commit_after>
|
#!/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',
author_email='info@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
|
#!/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',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
Use __build__ syntax instead of os.environ#!/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',
author_email='info@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
|
<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@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
<commit_msg>Use __build__ syntax instead of os.environ<commit_after>#!/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',
author_email='info@locationlabs.com',
url='http://github.com/locationlabs/confab',
license='Apache2',
packages=find_packages(exclude=['*.tests']),
setup_requires=[
'nose>=1.0'
],
install_requires=[
'Fabric>=1.4',
'Jinja2>=2.4',
'python-magic'
],
test_suite='confab.tests',
entry_points={
'console_scripts': [
'confab = confab.main:main',
]
},
)
|
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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
|
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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
scripts=['ebi_metagenomics'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
|
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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
Add ebi_metagenomics as package script
|
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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
scripts=['ebi_metagenomics'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
|
<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",
url="https://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
<commit_msg>Add ebi_metagenomics as package script<commit_after>
|
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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
scripts=['ebi_metagenomics'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
|
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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
Add ebi_metagenomics as package scriptfrom 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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
scripts=['ebi_metagenomics'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
|
<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",
url="https://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
<commit_msg>Add ebi_metagenomics as package script<commit_after>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://github.com/bebatut/ebisearch",
packages=find_packages(),
entry_points={
'console_scripts': [
'ebisearch = ebisearch.__main__:main'
]
},
scripts=['ebi_metagenomics'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
extras_require={
'testing': ["pytest"],
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
install_requires=['requests', 'Click', 'flake8', 'pprint']
)
|
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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
|
#!/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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
|
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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
Fix point of importing module
|
#!/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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
|
<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.__version__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
<commit_msg>Fix point of importing module<commit_after>
|
#!/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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
|
#!/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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
Fix point of importing module#!/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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
|
<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.__version__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
<commit_msg>Fix point of importing module<commit_after>#!/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__,
description="a tool to learn about something just by copying it by hand",
license="Public Domain",
author="raviqqe",
author_email="raviqqe@gmail.com",
url="http://github.com/raviqqe/shakyo/",
py_modules=[shakyo.__name__],
install_requires=["text_unidecode", "validators"],
classifiers=[
"Development Status :: Alpha",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: Public Domain",
"Operating System :: POSIX",
"Topic :: Education :: Computer Aided Instruction (CAI)",
"Topic :: Games/Entertainment",
],
)
|
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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
|
"""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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
work_dir = session["AVALON_WORKDIR"]
scene_dir = session.get("AVALON_SCENEDIR")
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
|
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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
Fix undefined work_dir and scene_dir variables
|
"""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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
work_dir = session["AVALON_WORKDIR"]
scene_dir = session.get("AVALON_SCENEDIR")
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
|
<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)
nuke.Root()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
<commit_msg>Fix undefined work_dir and scene_dir variables<commit_after>
|
"""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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
work_dir = session["AVALON_WORKDIR"]
scene_dir = session.get("AVALON_SCENEDIR")
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
|
"""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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
Fix undefined work_dir and scene_dir variables"""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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
work_dir = session["AVALON_WORKDIR"]
scene_dir = session.get("AVALON_SCENEDIR")
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
|
<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)
nuke.Root()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
<commit_msg>Fix undefined work_dir and scene_dir variables<commit_after>"""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()["project_directory"].setValue(os.path.dirname(path))
nuke.Root().setModified(False)
def open_file(filepath):
filepath = filepath.replace("\\", "/")
# To remain in the same window, we have to clear the script and read
# in the contents of the workfile.
nuke.scriptClear()
nuke.scriptReadFile(filepath)
nuke.Root()["name"].setValue(filepath)
nuke.Root()["project_directory"].setValue(os.path.dirname(filepath))
nuke.Root().setModified(False)
return True
def current_file():
current_file = nuke.root().name()
# Unsaved current file
if current_file == 'Root':
return None
return os.path.normpath(current_file).replace("\\", "/")
def work_root(session):
work_dir = session["AVALON_WORKDIR"]
scene_dir = session.get("AVALON_SCENEDIR")
if scene_dir:
path = os.path.join(work_dir, scene_dir)
else:
path = work_dir
return os.path.normpath(path).replace("\\", "/")
|
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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'
|
# 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read().strip()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'
|
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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'Fix problem with hyphen after the version number
|
# 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read().strip()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'
|
<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 applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'<commit_msg>Fix problem with hyphen after the version number<commit_after>
|
# 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read().strip()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'
|
# 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'Fix problem with hyphen after the version number# 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read().strip()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'
|
<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 applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'<commit_msg>Fix problem with hyphen after the version number<commit_after># 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 agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os.path
__title__ = 'avroknife'
__author__ = 'Mateusz Kobos, Pawel Szostek'
__email__ = 'mkobos@icm.edu.pl'
__version__ = open(os.path.join(os.path.dirname(__file__), 'RELEASE-VERSION')).read().strip()
__description__ = 'Utility for browsing and simple manipulation of Avro-based files'
__license__ = 'Apache License, Version 2.0'
|
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
|
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
# API login URL for oauth2_provider (based on default routing in urls.py)
LOGIN_URL = "/api/auth/login/"
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
|
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
Add LOGIN_URL setting for Oauth2
|
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
# API login URL for oauth2_provider (based on default routing in urls.py)
LOGIN_URL = "/api/auth/login/"
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
|
<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.filters.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
<commit_msg>Add LOGIN_URL setting for Oauth2<commit_after>
|
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
# API login URL for oauth2_provider (based on default routing in urls.py)
LOGIN_URL = "/api/auth/login/"
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
|
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
Add LOGIN_URL setting for Oauth2
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
# API login URL for oauth2_provider (based on default routing in urls.py)
LOGIN_URL = "/api/auth/login/"
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
|
<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.filters.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
<commit_msg>Add LOGIN_URL setting for Oauth2<commit_after>
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.DjangoFilterBackend',),
'TEST_REQUEST_DEFAULT_FORMAT': 'json',
}
OAUTH2_PROVIDER = {
# this is the list of available scopes
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'}
}
# API login URL for oauth2_provider (based on default routing in urls.py)
LOGIN_URL = "/api/auth/login/"
SWAGGER_SETTINGS = {
'exclude_namespaces': [],
'api_version': '',
'api_path': '/',
'api_key': '', # Your OAuth2 Access Token
'token_type': 'Bearer',
'is_authenticated': False,
'is_superuser': False,
'permission_denied_handler': None,
'info': {
'title': 'API Resource Documentation',
'description': 'The RESTful web API exposes Mezzanine data using JSON serialization and OAuth2 protection. '
'This interactive document will guide you through the relevant API endpoints, data structures, '
'and query parameters for filtering, searching and pagination. Otherwise, for further '
'information and examples, consult the general '
'<a href="http://gcushen.github.io/mezzanine-api" target="_blank">Mezzanine API Documentation'
'</a>.',
},
'doc_expansion': 'none',
}
|
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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
|
#!/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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
|
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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
Make pep8 happy, remove mixed tabs and spaces
|
#!/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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
|
<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@')
self.assertEqual(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
<commit_msg>Make pep8 happy, remove mixed tabs and spaces<commit_after>
|
#!/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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
|
#!/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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
Make pep8 happy, remove mixed tabs and spaces#!/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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
|
<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@')
self.assertEqual(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
<commit_msg>Make pep8 happy, remove mixed tabs and spaces<commit_after>#!/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(grid.list_values[0][0], 'rag')
if __name__ == '__main__':
unittest.main()
|
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('test', initialize=False)
self.db = db
db.app = self.app
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
|
# -*- 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('test', initialize=False)
self.db = db
db.app = self.app
db.drop_all()
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
|
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('test', initialize=False)
self.db = db
db.app = self.app
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
Drop database before every test run, too, to remove data from failed tests.
|
# -*- 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('test', initialize=False)
self.db = db
db.app = self.app
db.drop_all()
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
|
<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 = create_app('test', initialize=False)
self.db = db
db.app = self.app
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
<commit_msg>Drop database before every test run, too, to remove data from failed tests.<commit_after>
|
# -*- 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('test', initialize=False)
self.db = db
db.app = self.app
db.drop_all()
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
|
# -*- 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('test', initialize=False)
self.db = db
db.app = self.app
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
Drop database before every test run, too, to remove data from failed tests.# -*- 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('test', initialize=False)
self.db = db
db.app = self.app
db.drop_all()
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
|
<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 = create_app('test', initialize=False)
self.db = db
db.app = self.app
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
<commit_msg>Drop database before every test run, too, to remove data from failed tests.<commit_after># -*- 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('test', initialize=False)
self.db = db
db.app = self.app
db.drop_all()
db.create_all()
self.create_brand_and_party()
self.client = self.app.test_client()
def create_brand_and_party(self):
brand = Brand(id='acme', title='ACME')
db.session.add(brand)
party = Party(id='acme-2014', brand=brand, title='ACME 2014')
db.session.add(party)
db.session.commit()
def tearDown(self):
db.session.remove()
db.drop_all()
|
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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
|
# -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
if not settings.MAILGUN_API_KEY:
return False
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
|
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,HalcyonChimera/osf.io,saradbowman/osf.io,erinspace/osf.io,icereval/osf.io,CenterForOpenScience/osf.io,erinspace/osf.io,Johnetordoff/osf.io,felliott/osf.io,CenterForOpenScience/osf.io,felliott/osf.io,pattisdr/osf.io,brianjgeiger/osf.io,baylee-d/osf.io,mattclark/osf.io,CenterForOpenScience/osf.io,brianjgeiger/osf.io,sloria/osf.io,caseyrollins/osf.io,Johnetordoff/osf.io,brianjgeiger/osf.io,icereval/osf.io,HalcyonChimera/osf.io,adlius/osf.io,aaxelb/osf.io,icereval/osf.io,cslzchen/osf.io,caseyrollins/osf.io,mfraezz/osf.io,felliott/osf.io,pattisdr/osf.io,mfraezz/osf.io,pattisdr/osf.io,HalcyonChimera/osf.io,baylee-d/osf.io,cslzchen/osf.io,saradbowman/osf.io,Johnetordoff/osf.io,Johnetordoff/osf.io,aaxelb/osf.io,adlius/osf.io
|
# -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
Return False early if mailgun API key isn't set locally
|
# -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
if not settings.MAILGUN_API_KEY:
return False
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
|
<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.
Adapted here from conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
<commit_msg>Return False early if mailgun API key isn't set locally<commit_after>
|
# -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
if not settings.MAILGUN_API_KEY:
return False
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
|
# -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
Return False early if mailgun API key isn't set locally# -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
if not settings.MAILGUN_API_KEY:
return False
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
|
<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.
Adapted here from conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
<commit_msg>Return False early if mailgun API key isn't set locally<commit_after># -*- 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 conferences/message.py
Signature comparisons as recomended from mailgun docs:
https://documentation.mailgun.com/en/latest/user_manual.html#webhooks
"""
def has_permission(self, request, view):
if request.method != 'POST':
raise exceptions.MethodNotAllowed(method=request.method)
data = request.data
if not data:
raise exceptions.ParseError('Request body is empty')
if not settings.MAILGUN_API_KEY:
return False
signature = hmac.new(
key=settings.MAILGUN_API_KEY,
msg='{}{}'.format(
data['timestamp'],
data['token'],
),
digestmod=hashlib.sha256,
).hexdigest()
if 'signature' not in data:
error_message = 'Signature required in request body'
sentry.log_message(error_message)
raise exceptions.ParseError(error_message)
if not hmac.compare_digest(unicode(signature), unicode(data['signature'])):
raise exceptions.ParseError('Invalid signature')
return True
|
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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
raise
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
|
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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
|
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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
raise
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
Fix log_error so it now catches exceptions
* This got accidentally disabled
|
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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
|
<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 only the
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
raise
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
<commit_msg>Fix log_error so it now catches exceptions
* This got accidentally disabled<commit_after>
|
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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
|
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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
raise
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
Fix log_error so it now catches exceptions
* This got accidentally disabledfrom .. 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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
|
<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 only the
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
raise
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
<commit_msg>Fix log_error so it now catches exceptions
* This got accidentally disabled<commit_after>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
first ``max_errors`` error messages are printed
"""
self.function = function
self.max_errors = max_errors
self.errors = 0
def __call__(self, *args, **kwds):
"""
Calls ``self.function`` with the given arguments and keywords, and
returns its value - or if the call throws an exception, returns None.
If is ``self.max_errors`` is `0`, all the exceptions are reported,
otherwise just the first ``self.max_errors`` are.
"""
try:
return self.function(*args, **kwds)
except Exception as e:
args = (class_name.class_name(e),) + e.args
self.errors += 1
if self.max_errors < 0 or self.errors <= self.max_errors:
log.error(str(args))
elif self.errors == self.max_errors + 1:
log.error('Exceeded max_errors of %d', self.max_errors)
|
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(self, mock_datareader):
mock_datareader()
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
|
#!/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(self, mock_datareader):
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
|
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(self, mock_datareader):
mock_datareader()
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
Remove unnecessary call to mock_datareader().
|
#!/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(self, mock_datareader):
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
|
<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_called_correctly(self, mock_datareader):
mock_datareader()
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
<commit_msg>Remove unnecessary call to mock_datareader().<commit_after>
|
#!/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(self, mock_datareader):
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
|
#!/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(self, mock_datareader):
mock_datareader()
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
Remove unnecessary call to mock_datareader().#!/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(self, mock_datareader):
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
|
<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_called_correctly(self, mock_datareader):
mock_datareader()
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
<commit_msg>Remove unnecessary call to mock_datareader().<commit_after>#!/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(self, mock_datareader):
start = datetime.datetime(1999, 4, 3, 0, 0)
end = datetime.datetime(2005, 2, 5, 0, 0)
get_stock('AAPL', start, end)
mock_datareader.assert_called_with('AAPL', 'yahoo', start, end)
def test_get_required_tickers_parses_tickers_with_newline(self):
m = mock.mock_open(read_data='TWTR,FB,AAPL,MSFT\n')
textfile = None # only used to provide valid argument
with mock.patch('pandas_finance.open', m, create=True):
result = get_required_tickers(textfile)
assert_equal('TWTR,FB,AAPL,MSFT', result)
|
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 import fta as raaml
from gaphor.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
|
"""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.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
|
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 import fta as raaml
from gaphor.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
Fix STPA modeling elements can't be loaded from saved model
Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>
|
"""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.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
|
<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 gaphor.RAAML import fta as raaml
from gaphor.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
<commit_msg>Fix STPA modeling elements can't be loaded from saved model
Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me><commit_after>
|
"""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.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
|
"""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 import fta as raaml
from gaphor.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
Fix STPA modeling elements can't be loaded from saved model
Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>"""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.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
|
<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 gaphor.RAAML import fta as raaml
from gaphor.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
<commit_msg>Fix STPA modeling elements can't be loaded from saved model
Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me><commit_after>"""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.RAAML.toolbox import raaml_toolbox_actions
class RAAMLModelingLanguage(ModelingLanguage):
@property
def name(self) -> str:
return gettext("RAAML")
@property
def toolbox_definition(self) -> ToolboxDefinition:
return raaml_toolbox_actions
def lookup_element(self, name):
element_type = getattr(raaml, name, None)
if not element_type:
element_type = getattr(diagramitems, name, None)
return element_type
|
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: None
"""
libui.uiMain()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
|
"""
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):
"""
Starts the application main loop.
:return: None
"""
libui.uiMain()
def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()
self.close()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
|
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. So this change is untested.
|
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: None
"""
libui.uiMain()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
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. So this change is untested.
|
"""
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):
"""
Starts the application main loop.
:return: None
"""
libui.uiMain()
def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()
self.close()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
|
<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.
:return: None
"""
libui.uiMain()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
<commit_msg>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. So this change is untested.<commit_after>
|
"""
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):
"""
Starts the application main loop.
:return: None
"""
libui.uiMain()
def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()
self.close()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
|
"""
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: None
"""
libui.uiMain()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
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. So this change is untested."""
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):
"""
Starts the application main loop.
:return: None
"""
libui.uiMain()
def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()
self.close()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
|
<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.
:return: None
"""
libui.uiMain()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
<commit_msg>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. So this change is untested.<commit_after>"""
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):
"""
Starts the application main loop.
:return: None
"""
libui.uiMain()
def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()
self.close()
def stop(self):
"""
Stops the application main loop.
:return: None
"""
libui.uiQuit()
def close(self):
"""
Closes the application and frees resources.
:return: None
"""
libui.uiUninit()
|
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."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=obj)
|
# -*- 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()
tle = {
'tle0': obj['tle0'],
'tle1': obj['tle1'],
'tle2': obj['tle2']
}
end = parser.parse(obj['end'])
observer.setup(tle=tle, observation_end=end, frequency=obj['frequency'])
observer.observe()
def get_jobs():
"""Query SatNOGS Network API to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
kwargs = {'obj': obj}
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=kwargs)
|
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."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=obj)
Initialize and call observer on new observation task.
|
# -*- 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()
tle = {
'tle0': obj['tle0'],
'tle1': obj['tle1'],
'tle2': obj['tle2']
}
end = parser.parse(obj['end'])
observer.setup(tle=tle, observation_end=end, frequency=obj['frequency'])
observer.observe()
def get_jobs():
"""Query SatNOGS Network API to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
kwargs = {'obj': obj}
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=kwargs)
|
<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 to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=obj)
<commit_msg>Initialize and call observer on new observation task.<commit_after>
|
# -*- 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()
tle = {
'tle0': obj['tle0'],
'tle1': obj['tle1'],
'tle2': obj['tle2']
}
end = parser.parse(obj['end'])
observer.setup(tle=tle, observation_end=end, frequency=obj['frequency'])
observer.observe()
def get_jobs():
"""Query SatNOGS Network API to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
kwargs = {'obj': obj}
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=kwargs)
|
# -*- 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."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=obj)
Initialize and call observer on new observation task.# -*- 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()
tle = {
'tle0': obj['tle0'],
'tle1': obj['tle1'],
'tle2': obj['tle2']
}
end = parser.parse(obj['end'])
observer.setup(tle=tle, observation_end=end, frequency=obj['frequency'])
observer.observe()
def get_jobs():
"""Query SatNOGS Network API to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
kwargs = {'obj': obj}
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=kwargs)
|
<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 to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=obj)
<commit_msg>Initialize and call observer on new observation task.<commit_after># -*- 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()
tle = {
'tle0': obj['tle0'],
'tle1': obj['tle1'],
'tle2': obj['tle2']
}
end = parser.parse(obj['end'])
observer.setup(tle=tle, observation_end=end, frequency=obj['frequency'])
observer.observe()
def get_jobs():
"""Query SatNOGS Network API to GET jobs."""
url = urljoin(settings.NETWORK_API_URL, 'jobs')
params = {'ground_station': settings.GROUND_STATION_ID}
response = requests.get(url, params=params)
if not response.status_code == 200:
raise Exception('Status code: {0} on request: {1}'.format(response.status_code, url))
for job in scheduler.get_jobs():
if job.name == spawn_observation.__name__:
job.remove()
for obj in response.json():
start = parser.parse(obj['start'])
job_id = str(obj['id'])
kwargs = {'obj': obj}
scheduler.add_job(spawn_observation, 'date', run_date=start, id=job_id, kwargs=kwargs)
|
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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
|
# 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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
|
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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
Switch back to in-memory sqlite.
|
# 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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
|
<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.sqlite'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
<commit_msg>Switch back to in-memory sqlite.<commit_after>
|
# 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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
|
# 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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
Switch back to in-memory sqlite.# 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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
|
<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.sqlite'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
<commit_msg>Switch back to in-memory sqlite.<commit_after># 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'
engine = create_engine(LOCATION, echo=False)
metadata = MetaData()
table = get_tables(metadata)
metadata.create_all(engine)
connection = engine.connect()
|
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:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
|
"""
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') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
|
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:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
Make deadlock script work on Python 3
|
"""
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') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
|
<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, 'r') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
<commit_msg>Make deadlock script work on Python 3<commit_after>
|
"""
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') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
|
"""
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:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
Make deadlock script work on Python 3
"""
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') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
|
<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, 'r') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
<commit_msg>Make deadlock script work on Python 3<commit_after>
"""
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') as f:
names = list(f.attrs)
if __name__ == '__main__':
make_file()
thread = Thread(target=list_attributes)
thread.start()
list_attributes()
thread.join()
|
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
registry.register(export_user_data)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
|
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 froide.account import account_merged
from froide.account.menu import menu_registry, MenuItem
from . import signals # noqa
registry.register(export_user_data)
account_merged.connect(merge_user)
def get_moderation_menu_item(request):
from froide.foirequest.auth import is_foirequest_moderator
if not (request.user.is_staff or is_foirequest_moderator(request)):
return None
return MenuItem(
section='after_settings', order=0,
url=reverse('problem-moderation'),
label=_('Moderation')
)
menu_registry.register(get_moderation_menu_item)
registry.register(export_user_data)
def merge_user(sender, old_user=None, new_user=None, **kwargs):
from .models import ProblemReport
ProblemReport.objects.filter(user=old_user).update(
user=new_user
)
ProblemReport.objects.filter(moderator=old_user).update(
moderator=new_user
)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
|
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
registry.register(export_user_data)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
Add user merging to problem, menu for moderation
|
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 froide.account import account_merged
from froide.account.menu import menu_registry, MenuItem
from . import signals # noqa
registry.register(export_user_data)
account_merged.connect(merge_user)
def get_moderation_menu_item(request):
from froide.foirequest.auth import is_foirequest_moderator
if not (request.user.is_staff or is_foirequest_moderator(request)):
return None
return MenuItem(
section='after_settings', order=0,
url=reverse('problem-moderation'),
label=_('Moderation')
)
menu_registry.register(get_moderation_menu_item)
registry.register(export_user_data)
def merge_user(sender, old_user=None, new_user=None, **kwargs):
from .models import ProblemReport
ProblemReport.objects.filter(user=old_user).update(
user=new_user
)
ProblemReport.objects.filter(moderator=old_user).update(
moderator=new_user
)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
|
<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 # noqa
registry.register(export_user_data)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
<commit_msg>Add user merging to problem, menu for moderation<commit_after>
|
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 froide.account import account_merged
from froide.account.menu import menu_registry, MenuItem
from . import signals # noqa
registry.register(export_user_data)
account_merged.connect(merge_user)
def get_moderation_menu_item(request):
from froide.foirequest.auth import is_foirequest_moderator
if not (request.user.is_staff or is_foirequest_moderator(request)):
return None
return MenuItem(
section='after_settings', order=0,
url=reverse('problem-moderation'),
label=_('Moderation')
)
menu_registry.register(get_moderation_menu_item)
registry.register(export_user_data)
def merge_user(sender, old_user=None, new_user=None, **kwargs):
from .models import ProblemReport
ProblemReport.objects.filter(user=old_user).update(
user=new_user
)
ProblemReport.objects.filter(moderator=old_user).update(
moderator=new_user
)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
|
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
registry.register(export_user_data)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
Add user merging to problem, menu for moderationimport 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 froide.account import account_merged
from froide.account.menu import menu_registry, MenuItem
from . import signals # noqa
registry.register(export_user_data)
account_merged.connect(merge_user)
def get_moderation_menu_item(request):
from froide.foirequest.auth import is_foirequest_moderator
if not (request.user.is_staff or is_foirequest_moderator(request)):
return None
return MenuItem(
section='after_settings', order=0,
url=reverse('problem-moderation'),
label=_('Moderation')
)
menu_registry.register(get_moderation_menu_item)
registry.register(export_user_data)
def merge_user(sender, old_user=None, new_user=None, **kwargs):
from .models import ProblemReport
ProblemReport.objects.filter(user=old_user).update(
user=new_user
)
ProblemReport.objects.filter(moderator=old_user).update(
moderator=new_user
)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
|
<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 # noqa
registry.register(export_user_data)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
<commit_msg>Add user merging to problem, menu for moderation<commit_after>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 froide.account import account_merged
from froide.account.menu import menu_registry, MenuItem
from . import signals # noqa
registry.register(export_user_data)
account_merged.connect(merge_user)
def get_moderation_menu_item(request):
from froide.foirequest.auth import is_foirequest_moderator
if not (request.user.is_staff or is_foirequest_moderator(request)):
return None
return MenuItem(
section='after_settings', order=0,
url=reverse('problem-moderation'),
label=_('Moderation')
)
menu_registry.register(get_moderation_menu_item)
registry.register(export_user_data)
def merge_user(sender, old_user=None, new_user=None, **kwargs):
from .models import ProblemReport
ProblemReport.objects.filter(user=old_user).update(
user=new_user
)
ProblemReport.objects.filter(moderator=old_user).update(
moderator=new_user
)
def export_user_data(user):
from .models import ProblemReport
problems = ProblemReport.objects.filter(
user=user
).select_related('message', 'message__request')
if not problems:
return
yield ('problem_reports.json', json.dumps([
{
'message': pb.message.get_absolute_domain_short_url(),
'timestamp': pb.timestamp.isoformat(),
'resolved': pb.resolved,
'kind': pb.kind,
'description': pb.description,
'resolution': pb.resolution,
'resolution_timestamp': (
pb.resolution_timestamp.isoformat()
if pb.resolution_timestamp else None
),
}
for pb in problems]).encode('utf-8')
)
|
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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
|
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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['https://www.googleapis.com/auth/userinfo.profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
|
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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
Update scope to use changed profile
|
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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['https://www.googleapis.com/auth/userinfo.profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
|
<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 = make_google_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
<commit_msg>Update scope to use changed profile<commit_after>
|
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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['https://www.googleapis.com/auth/userinfo.profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
|
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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
Update scope to use changed profilefrom 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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['https://www.googleapis.com/auth/userinfo.profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
|
<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 = make_google_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
<commit_msg>Update scope to use changed profile<commit_after>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_blueprint(
client_id=os.environ.get('GOOGLE_CLIENT_ID', ''),
client_secret=os.environ.get('GOOGLE_CLIENT_SECRET', ''),
scope=['https://www.googleapis.com/auth/userinfo.profile']
)
app.register_blueprint(blueprint, url_prefix='/login')
@app.route('/')
def index():
if not google.authorized:
return redirect(url_for('google.login'))
resp = google.get('/oauth2/v2/userinfo')
assert resp.ok, resp.text
return '<h2>Your Google OAuth ID is: {}</h2>'.format(resp.json()["id"])
if __name__ == "__main__":
http_server = WSGIServer(('0.0.0.0', 8080), app)
print('serving on {}:{}'.format('0.0.0.0', 8080))
http_server.serve_forever()
|
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 the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
subprocess.Popen(sys.executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
|
# 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 background.
Raises RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
executable = sys.executable
if hasattr(settings, "PYTHON_EXECUTABLE"):
executable = settings.PYTHON_EXECUTABLE
subprocess.Popen(executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
|
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 the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
subprocess.Popen(sys.executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
Fix for broken job submission in apache
|
# 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 background.
Raises RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
executable = sys.executable
if hasattr(settings, "PYTHON_EXECUTABLE"):
executable = settings.PYTHON_EXECUTABLE
subprocess.Popen(executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
|
<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 RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
subprocess.Popen(sys.executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
<commit_msg>Fix for broken job submission in apache<commit_after>
|
# 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 background.
Raises RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
executable = sys.executable
if hasattr(settings, "PYTHON_EXECUTABLE"):
executable = settings.PYTHON_EXECUTABLE
subprocess.Popen(executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
|
# 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 the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
subprocess.Popen(sys.executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
Fix for broken job submission in apache# 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 background.
Raises RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
executable = sys.executable
if hasattr(settings, "PYTHON_EXECUTABLE"):
executable = settings.PYTHON_EXECUTABLE
subprocess.Popen(executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
|
<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 RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
subprocess.Popen(sys.executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
<commit_msg>Fix for broken job submission in apache<commit_after># 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 background.
Raises RuntimeError if the submission fails for some reason.
"""
assert isinstance(simulation_group, data_models.SimulationGroup)
base_dir = os.path.dirname(os.path.abspath(__file__))
run_script_filename = os.path.join(base_dir, "run.py")
for simulation in simulation_group.simulations.all():
executable = sys.executable
if hasattr(settings, "PYTHON_EXECUTABLE"):
executable = settings.PYTHON_EXECUTABLE
subprocess.Popen(executable + " " + "%s" % run_script_filename + " " + str(simulation.id), shell=True)
simulation_group.submitted_when = timezone.now()
simulation_group.save()
|
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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', True)
WB_STRESS_TEST = config('WB_STRESS_TEST', 0)
WB_SMART_TEST = config('WB_SMART_TEST', TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', 1)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', False)
WB_DEBUG = config('WB_DEBUG', True)
|
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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', default=True)
WB_STRESS_TEST = config('WB_STRESS_TEST', default=0, cast=int)
WB_SMART_TEST = config('WB_SMART_TEST', default='short', cast=TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', default=1, cast=int)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', default=False)
WB_DEBUG = config('WB_DEBUG', default=True)
|
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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', True)
WB_STRESS_TEST = config('WB_STRESS_TEST', 0)
WB_SMART_TEST = config('WB_SMART_TEST', TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', 1)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', False)
WB_DEBUG = config('WB_DEBUG', True)
Add default values to env variables
|
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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', default=True)
WB_STRESS_TEST = config('WB_STRESS_TEST', default=0, cast=int)
WB_SMART_TEST = config('WB_SMART_TEST', default='short', cast=TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', default=1, cast=int)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', default=False)
WB_DEBUG = config('WB_DEBUG', default=True)
|
<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')
DH_DATABASE = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', True)
WB_STRESS_TEST = config('WB_STRESS_TEST', 0)
WB_SMART_TEST = config('WB_SMART_TEST', TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', 1)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', False)
WB_DEBUG = config('WB_DEBUG', True)
<commit_msg>Add default values to env variables<commit_after>
|
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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', default=True)
WB_STRESS_TEST = config('WB_STRESS_TEST', default=0, cast=int)
WB_SMART_TEST = config('WB_SMART_TEST', default='short', cast=TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', default=1, cast=int)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', default=False)
WB_DEBUG = config('WB_DEBUG', default=True)
|
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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', True)
WB_STRESS_TEST = config('WB_STRESS_TEST', 0)
WB_SMART_TEST = config('WB_SMART_TEST', TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', 1)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', False)
WB_DEBUG = config('WB_DEBUG', True)
Add default values to env variablesfrom 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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', default=True)
WB_STRESS_TEST = config('WB_STRESS_TEST', default=0, cast=int)
WB_SMART_TEST = config('WB_SMART_TEST', default='short', cast=TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', default=1, cast=int)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', default=False)
WB_DEBUG = config('WB_DEBUG', default=True)
|
<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')
DH_DATABASE = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', True)
WB_STRESS_TEST = config('WB_STRESS_TEST', 0)
WB_SMART_TEST = config('WB_SMART_TEST', TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', 1)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', False)
WB_DEBUG = config('WB_DEBUG', True)
<commit_msg>Add default values to env variables<commit_after>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 = config('DH_DATABASE')
DEVICEHUB_URL = 'https://{host}/{db}/'.format(
host=DH_HOST,
db=DH_DATABASE
) # type: str
## Env variables for WB parameters
WB_BENCHMARK = config('WB_BENCHMARK', default=True)
WB_STRESS_TEST = config('WB_STRESS_TEST', default=0, cast=int)
WB_SMART_TEST = config('WB_SMART_TEST', default='short', cast=TestDataStorageLength.Short)
## Erase parameters
WB_ERASE = config('WB_ERASE')
WB_ERASE_STEPS = config('WB_ERASE_STEPS', default=1, cast=int)
WB_ERASE_LEADING_ZEROS = config('WB_ERASE_LEADING_ZERO', default=False)
WB_DEBUG = config('WB_DEBUG', default=True)
|
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, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
login,
{'authentication_form': EmailAuthForm},
name='login'
),
url(r'^password_change/$',
password_change,
{'password_change_form': BsPasswordChangeForm},
name='password_change'
),
url(
r'^password_reset/$',
password_reset,
{'password_reset_form': BsPasswordResetForm},
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
password_reset_confirm,
{'set_password_form': BsSetPasswordForm},
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
|
# -*- 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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
LoginView.as_view(authentication_form=EmailAuthForm),
name='login'
),
url(r'^password_change/$',
PasswordChangeView.as_view(form_class=BsPasswordChangeForm),
name='password_change'
),
url(
r'^password_reset/$',
PasswordResetView.as_view(form_class=BsPasswordResetForm),
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
PasswordResetConfirmView.as_view(form_class=BsSetPasswordForm),
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
|
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, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
login,
{'authentication_form': EmailAuthForm},
name='login'
),
url(r'^password_change/$',
password_change,
{'password_change_form': BsPasswordChangeForm},
name='password_change'
),
url(
r'^password_reset/$',
password_reset,
{'password_reset_form': BsPasswordResetForm},
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
password_reset_confirm,
{'set_password_form': BsSetPasswordForm},
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
Fix auth views : use class-based views
|
# -*- 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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
LoginView.as_view(authentication_form=EmailAuthForm),
name='login'
),
url(r'^password_change/$',
PasswordChangeView.as_view(form_class=BsPasswordChangeForm),
name='password_change'
),
url(
r'^password_reset/$',
PasswordResetView.as_view(form_class=BsPasswordResetForm),
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
PasswordResetConfirmView.as_view(form_class=BsSetPasswordForm),
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
|
<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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
login,
{'authentication_form': EmailAuthForm},
name='login'
),
url(r'^password_change/$',
password_change,
{'password_change_form': BsPasswordChangeForm},
name='password_change'
),
url(
r'^password_reset/$',
password_reset,
{'password_reset_form': BsPasswordResetForm},
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
password_reset_confirm,
{'set_password_form': BsSetPasswordForm},
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
<commit_msg>Fix auth views : use class-based views<commit_after>
|
# -*- 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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
LoginView.as_view(authentication_form=EmailAuthForm),
name='login'
),
url(r'^password_change/$',
PasswordChangeView.as_view(form_class=BsPasswordChangeForm),
name='password_change'
),
url(
r'^password_reset/$',
PasswordResetView.as_view(form_class=BsPasswordResetForm),
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
PasswordResetConfirmView.as_view(form_class=BsSetPasswordForm),
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
|
# -*- 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, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
login,
{'authentication_form': EmailAuthForm},
name='login'
),
url(r'^password_change/$',
password_change,
{'password_change_form': BsPasswordChangeForm},
name='password_change'
),
url(
r'^password_reset/$',
password_reset,
{'password_reset_form': BsPasswordResetForm},
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
password_reset_confirm,
{'set_password_form': BsSetPasswordForm},
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
Fix auth views : use class-based views# -*- 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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
LoginView.as_view(authentication_form=EmailAuthForm),
name='login'
),
url(r'^password_change/$',
PasswordChangeView.as_view(form_class=BsPasswordChangeForm),
name='password_change'
),
url(
r'^password_reset/$',
PasswordResetView.as_view(form_class=BsPasswordResetForm),
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
PasswordResetConfirmView.as_view(form_class=BsSetPasswordForm),
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
|
<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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
login,
{'authentication_form': EmailAuthForm},
name='login'
),
url(r'^password_change/$',
password_change,
{'password_change_form': BsPasswordChangeForm},
name='password_change'
),
url(
r'^password_reset/$',
password_reset,
{'password_reset_form': BsPasswordResetForm},
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
password_reset_confirm,
{'set_password_form': BsSetPasswordForm},
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
<commit_msg>Fix auth views : use class-based views<commit_after># -*- 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, EmailAuthForm, BsSetPasswordForm
urlpatterns = [
url(
r'^login/$',
LoginView.as_view(authentication_form=EmailAuthForm),
name='login'
),
url(r'^password_change/$',
PasswordChangeView.as_view(form_class=BsPasswordChangeForm),
name='password_change'
),
url(
r'^password_reset/$',
PasswordResetView.as_view(form_class=BsPasswordResetForm),
name='password_reset'
),
url(
r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
PasswordResetConfirmView.as_view(form_class=BsSetPasswordForm),
name='password_reset_confirm'
),
url(r'^', include('django.contrib.auth.urls')),
]
|
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, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
|
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 nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
|
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, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
Use io module for simplicity and closer alignment to recommended usage.
|
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 nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
|
<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, singular nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
<commit_msg>Use io module for simplicity and closer alignment to recommended usage.<commit_after>
|
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 nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
|
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, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
Use io module for simplicity and closer alignment to recommended usage.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 nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
|
<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, singular nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
<commit_msg>Use io module for simplicity and closer alignment to recommended usage.<commit_after>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 nouns, ordinals, indefinite articles; convert numbers to words',
long_description=readme,
author='Paul Dyson',
author_email='pwdyson@yahoo.com',
maintainer='Alex Gronholm',
maintainer_email='alex.gronholm@nextday.fi',
url='http://pypi.python.org/pypi/inflect',
py_modules=['inflect'],
provides=['inflect'],
keywords=['plural', 'inflect', 'participle'],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic',
]
)
|
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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_RAP_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
|
#!/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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_QB3_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
|
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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_RAP_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
Fix the make_fragments_QB3_cluster.pl install path.
|
#!/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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_QB3_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
|
<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(
name='klab',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_RAP_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
<commit_msg>Fix the make_fragments_QB3_cluster.pl install path.<commit_after>
|
#!/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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_QB3_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
|
#!/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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_RAP_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
Fix the make_fragments_QB3_cluster.pl install path.#!/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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_QB3_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
|
<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(
name='klab',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_RAP_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
<commit_msg>Fix the make_fragments_QB3_cluster.pl install path.<commit_after>#!/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',
version=version,
author='Kortemme Lab, UCSF',
author_email='support@kortemmelab.ucsf.edu',
url='https://github.com/Kortemme-Lab/klab',
download_url='https://github.com/Kortemme-Lab/klab/tarball/'+version,
license='MIT',
description="A collection of utilities used by our lab for computational biophysics",
long_description=open('README.rst').read(),
keywords=['utilities', 'library', 'biophysics'],
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 3 - Alpha",
'Programming Language :: Python :: 2',
],
packages=find_packages(),
package_data={
'klab.bio.fragments': [
'make_fragments_QB3_cluster.pl',
],
},
install_requires=[],
entry_points={
'console_scripts': [
'klab_generate_fragments=klab.bio.fragments.generate_fragments:main',
],
},
)
|
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',
'jmespath>=0.1.0',
'python-dateutil>=2.1',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
|
#!/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',
'jmespath==0.4.1',
'python-dateutil>=2.1',
'bcdoc==0.12.2',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
|
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',
'jmespath>=0.1.0',
'python-dateutil>=2.1',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
Update dependencies due to botocore critical changes after 0.64.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',
'jmespath==0.4.1',
'python-dateutil>=2.1',
'bcdoc==0.12.2',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
|
<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',
'six>=1.4.0',
'jmespath>=0.1.0',
'python-dateutil>=2.1',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
<commit_msg>Update dependencies due to botocore critical changes after 0.64.0<commit_after>
|
#!/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',
'jmespath==0.4.1',
'python-dateutil>=2.1',
'bcdoc==0.12.2',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
|
#!/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',
'jmespath>=0.1.0',
'python-dateutil>=2.1',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
Update dependencies due to botocore critical changes after 0.64.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',
'jmespath==0.4.1',
'python-dateutil>=2.1',
'bcdoc==0.12.2',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
|
<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',
'six>=1.4.0',
'jmespath>=0.1.0',
'python-dateutil>=2.1',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
<commit_msg>Update dependencies due to botocore critical changes after 0.64.0<commit_after>#!/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',
'jmespath==0.4.1',
'python-dateutil>=2.1',
'bcdoc==0.12.2',
]
setup(
name='kotocore',
version=kotocore.get_version(),
description='Utility for botocore.',
long_description=open('README.rst').read(),
author='Henry Huang',
author_email='henry.s.huang@gmail.com',
url='https://github.com/henrysher/kotocore',
scripts=[],
packages=packages,
package_data={
'kotocore': [
'data/aws/resources/*.json',
]
},
include_package_data=True,
install_requires=requires,
license=open("LICENSE").read(),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
],
)
|
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='hbase.tests')
|
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='hbase.tests')
|
<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='hbase.tests')
|
# -*- 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='hbase.tests')
|
<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='hbase.tests')
|
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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.2-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.3-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
|
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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.2-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
Update master version to 0.3-dev
|
#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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.3-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
|
<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'
DESCRIPTION = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.2-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
<commit_msg>Update master version to 0.3-dev<commit_after>
|
#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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.3-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.2-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
Update master version to 0.3-dev#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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.3-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
|
<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'
DESCRIPTION = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.2-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
<commit_msg>Update master version to 0.3-dev<commit_after>#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 = 'Convert Cellomics images to TIFF.'
LONG_DESCRIPTION = descr
MAINTAINER = 'Juan Nunez-Iglesias'
MAINTAINER_EMAIL = 'juan.n@unimelb.edu.au'
URL = 'https://github.com/jni/cellom2tif'
LICENSE = 'BSD 3-clause'
DOWNLOAD_URL = 'https://github.com/jni/cellom2tif'
VERSION = '0.3-dev'
PYTHON_VERSION = (2, 7)
INST_DEPENDENCIES = {}
if __name__ == '__main__':
setup(name=DISTNAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author=MAINTAINER,
author_email=MAINTAINER_EMAIL,
license=LICENSE,
packages=['cellom2tif'],
install_requires=INST_DEPENDENCIES,
scripts=["bin/cellom2tif"]
)
|
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 smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
|
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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
|
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 smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
Set to work with libs package
|
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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
|
<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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
<commit_msg>Set to work with libs package<commit_after>
|
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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
|
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 smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
Set to work with libs packagefrom 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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
|
<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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
<commit_msg>Set to work with libs package<commit_after>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
Requires python smbus to be installed
run with: python demo-read_voltage.py
================================================
Initialise the ADC device using the default addresses and sample rate, change
this value if you have changed the address selection jumpers
Sample rate can be 12,14, 16 or 18
"""
i2c_helper = ABEHelpers()
bus = i2c_helper.get_smbus()
adc = ADCPi(bus, 0x68, 0x69, 18)
while True:
# read from 8 adc channels and print it to terminal
print("%02f %02f %02f %02f %02f %02f %02f %02f" % (adc.read_voltage(1), adc.read_voltage(2), adc.read_voltage(3), adc.read_voltage(4), adc.read_voltage(5), adc.read_voltage(6), adc.read_voltage(7), adc.read_voltage(8)))
# wait 1 second before reading the pins again
#time.sleep(1)
|
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',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
|
"""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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
|
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/Dallinger
|
"""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',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
Rename PyPi dist. to wallace-platform
|
"""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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
|
<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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
<commit_msg>Rename PyPi dist. to wallace-platform<commit_after>
|
"""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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
|
"""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',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
Rename PyPi dist. to wallace-platform"""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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
|
<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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
<commit_msg>Rename PyPi dist. to wallace-platform<commit_after>"""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='Berkeley CoCoSci',
author_email='wallace@cocosci.berkeley.edu',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[],
zip_safe=False,
entry_points={
'console_scripts': [
'wallace = wallace.command_line:wallace',
],
}
)
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)
|
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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"open_FRED-cli",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
|
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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"data-sources": [
"open_FRED-cli",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
|
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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"open_FRED-cli",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
Make open_fred an optional dependency
|
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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"data-sources": [
"open_FRED-cli",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
|
<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",
author="oemof developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"open_FRED-cli",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
<commit_msg>Make open_fred an optional dependency<commit_after>
|
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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"data-sources": [
"open_FRED-cli",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
|
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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"open_FRED-cli",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
Make open_fred an optional dependencyimport 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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"data-sources": [
"open_FRED-cli",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
|
<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",
author="oemof developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"open_FRED-cli",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
<commit_msg>Make open_fred an optional dependency<commit_after>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 developer group",
author_email="windpowerlib@rl-institut.de",
license="MIT",
packages=["feedinlib"],
long_description=read("README.rst"),
long_description_content_type="text/x-rst",
zip_safe=False,
install_requires=[
"cdsapi >= 0.1.4",
"geopandas",
"numpy >= 1.7.0",
"oedialect >= 0.0.6.dev0",
"pvlib >= 0.7.0",
"tables",
"windpowerlib >= 0.2.0",
"pandas >= 0.13.1",
"xarray >= 0.12.0",
"descartes"
],
extras_require={
"dev": [
"jupyter",
"nbformat",
"punch.py",
"pytest",
"sphinx_rtd_theme",
],
"data-sources": [
"open_FRED-cli",
],
"examples": ["jupyter",
"matplotlib",
"descartes"],
},
)
|
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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
|
#!/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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
|
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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
Allow minor versions of python-telegram-bot dep
|
#!/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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
|
<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',
'requests',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
<commit_msg>Allow minor versions of python-telegram-bot dep<commit_after>
|
#!/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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
|
#!/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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
Allow minor versions of python-telegram-bot dep#!/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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
|
<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',
'requests',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
<commit_msg>Allow minor versions of python-telegram-bot dep<commit_after>#!/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',
'apscheduler'
]
setup(name='marvinbot',
version='0.4',
description='Super Duper Telegram Bot - MK. III',
author='BotDevGroup',
author_email='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
package_data={'': ['*.ini']},
# namespace_packages=["telegrambot",],
install_requires=REQUIREMENTS,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
dependency_links=[
],)
|
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',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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.rst').read(),
author='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
Include shub.image in package tarball
|
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.rst').read(),
author='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
|
<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='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
<commit_msg>Include shub.image in package tarball<commit_after>
|
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.rst').read(),
author='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
Include shub.image in package tarballfrom __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.rst').read(),
author='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
|
<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='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
<commit_msg>Include shub.image in package tarball<commit_after>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.rst').read(),
author='Scrapinghub',
author_email='info@scrapinghub.com',
maintainer='Scrapinghub',
maintainer_email='info@scrapinghub.com',
license='BSD',
entry_points={
'console_scripts': ['shub = shub.tool:cli']
},
include_package_data=True,
zip_safe=False,
install_requires=['click', 'pip', 'requests', 'PyYAML', 'scrapinghub',
'six', 'docker-py', 'retrying'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
'Environment :: Console',
'Topic :: Internet :: WWW/HTTP',
],
)
|
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.txt').read(),
install_requires=[
"seaborn",
"tables"
],
scripts=[
'bin/sdf2hdf5',
]
)
|
#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.txt').read(),
install_requires=[
"seaborn",
"tables",
"numexpr", # for pytables
],
scripts=[
'bin/sdf2hdf5',
]
)
|
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.txt').read(),
install_requires=[
"seaborn",
"tables"
],
scripts=[
'bin/sdf2hdf5',
]
)
Add numexpr as a dependency for pytables
|
#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.txt').read(),
install_requires=[
"seaborn",
"tables",
"numexpr", # for pytables
],
scripts=[
'bin/sdf2hdf5',
]
)
|
<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_description=open('README.txt').read(),
install_requires=[
"seaborn",
"tables"
],
scripts=[
'bin/sdf2hdf5',
]
)
<commit_msg>Add numexpr as a dependency for pytables<commit_after>
|
#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.txt').read(),
install_requires=[
"seaborn",
"tables",
"numexpr", # for pytables
],
scripts=[
'bin/sdf2hdf5',
]
)
|
#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.txt').read(),
install_requires=[
"seaborn",
"tables"
],
scripts=[
'bin/sdf2hdf5',
]
)
Add numexpr as a dependency for pytables#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.txt').read(),
install_requires=[
"seaborn",
"tables",
"numexpr", # for pytables
],
scripts=[
'bin/sdf2hdf5',
]
)
|
<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_description=open('README.txt').read(),
install_requires=[
"seaborn",
"tables"
],
scripts=[
'bin/sdf2hdf5',
]
)
<commit_msg>Add numexpr as a dependency for pytables<commit_after>#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.txt').read(),
install_requires=[
"seaborn",
"tables",
"numexpr", # for pytables
],
scripts=[
'bin/sdf2hdf5',
]
)
|
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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
|
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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy>=1.10.0', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
|
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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
Add a minimum version requirement for numpy.
|
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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy>=1.10.0', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
|
<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',
author_email = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
<commit_msg>Add a minimum version requirement for numpy.<commit_after>
|
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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy>=1.10.0', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
|
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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
Add a minimum version requirement for numpy.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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy>=1.10.0', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
|
<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',
author_email = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
<commit_msg>Add a minimum version requirement for numpy.<commit_after>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 = 'pica@pml.ac.uk',
url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
keywords = ['fvcom', 'unstructured grid', 'mesh'],
license = 'MIT',
platforms = 'any',
install_requires = ['pyshp', 'jdcal', 'scipy', 'numpy>=1.10.0', 'matplotlib', 'netCDF4', 'lxml', 'pyproj', 'pytz', 'networkx', 'UTide'],
classifiers = []
)
|
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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
|
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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
|
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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
Update Flask version to 1.0.2
|
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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
|
<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='Simple library to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
<commit_msg>Update Flask version to 1.0.2<commit_after>
|
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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
|
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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
Update Flask version to 1.0.2from 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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
|
<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='Simple library to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
<commit_msg>Update Flask version to 1.0.2<commit_after>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 to manage resource authorization and scoping',
packages=find_packages(exclude=['tests']),
zip_safe=False,
include_package_data=True,
platforms='any',
test_suite='nose.collector',
install_requires=requirements,
tests_require=['mock==1.3.0'],
classifiers=[
'Framework :: Flask',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'License :: OSI Approved :: MIT License'
]
)
|
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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.2',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
|
#!/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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.3',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
|
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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.2',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
Bump version to 0.0.3 for Nav440 sensor addition
|
#!/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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.3',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
|
<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:
readme = f.read()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.2',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
<commit_msg>Bump version to 0.0.3 for Nav440 sensor addition<commit_after>
|
#!/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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.3',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
|
#!/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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.2',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
Bump version to 0.0.3 for Nav440 sensor addition#!/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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.3',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
|
<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:
readme = f.read()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.2',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
<commit_msg>Bump version to 0.0.3 for Nav440 sensor addition<commit_after>#!/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()
reqs = []
with open('requirements.txt') as f:
reqs = f.read().splitlines()
setup(
name='ahrs_sensors',
version='0.0.3',
description='Read data from the sparkfun SEN-10724 sensor stick',
long_description=readme,
author='Ruairi Fahy',
url='https://github.com/ruairif/ahrs',
packages=[
'ahrs_sensors',
'sensor'
],
include_package_data=True,
install_requires=reqs,
license='MIT',
zip_safe=False,
keywords='sensors',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
]
)
|
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'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
|
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.com/Stewori/pytypes',
author='Stefan Richthofer',
author_email='stefan.richthofer@jyni.org',
license='Apache-2.0',
packages=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
|
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'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
Use README.rst for the PyPI long description
|
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.com/Stewori/pytypes',
author='Stefan Richthofer',
author_email='stefan.richthofer@jyni.org',
license='Apache-2.0',
packages=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
|
<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=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
<commit_msg>Use README.rst for the PyPI long description<commit_after>
|
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.com/Stewori/pytypes',
author='Stefan Richthofer',
author_email='stefan.richthofer@jyni.org',
license='Apache-2.0',
packages=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
|
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'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
Use README.rst for the PyPI long descriptionimport 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.com/Stewori/pytypes',
author='Stefan Richthofer',
author_email='stefan.richthofer@jyni.org',
license='Apache-2.0',
packages=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
|
<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=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
<commit_msg>Use README.rst for the PyPI long description<commit_after>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.com/Stewori/pytypes',
author='Stefan Richthofer',
author_email='stefan.richthofer@jyni.org',
license='Apache-2.0',
packages=['pytypes'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
extras_require={
':python_version == "2.7"': 'typing'
},
entry_points={
'console_scripts': [
'typestubs = pytypes.stubfile_2_converter:main'
]
}
)
|
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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
|
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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
|
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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
Bump to version with package data fix
|
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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
|
<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=find_packages('src'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
<commit_msg>Bump to version with package data fix<commit_after>
|
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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
|
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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
Bump to version with package data fixfrom 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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
|
<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=find_packages('src'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
<commit_msg>Bump to version with package data fix<commit_after>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'),
package_data={'rnaseq_lib.utils': ['data/*']},
install_requires=['pandas',
'numpy',
'seaborn',
'requests'])
|
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 requirements<commit_after>
|
#!/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 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 requirements<commit_after>#!/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,
)
|
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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
|
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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(exclude=['tests']),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
|
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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
Exclude tests from getting installed
|
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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(exclude=['tests']),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
|
<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 initf:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
<commit_msg>Exclude tests from getting installed<commit_after>
|
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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(exclude=['tests']),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
|
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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
Exclude tests from getting installedimport 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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(exclude=['tests']),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
|
<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 initf:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
<commit_msg>Exclude tests from getting installed<commit_after>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:
m = version_re.match(line.strip())
if not m:
continue
return m.groups()[0]
setup(
name='redis-lua-curator',
version=get_version(),
description='Helper for working with lua scripts.',
packages=find_packages(exclude=['tests']),
author='Michael Hahn',
author_email='mwhahn@gmail.com',
url='https://github.com/mhahn/curator/',
download_url='https://github.com/mhahn/curator/tarball/%s' % (
get_version(),
),
setup_requires=[
'nose>=1.0',
'coverage>=1.0',
'mock==1.0.1',
'unittest2==0.5.1',
],
install_requires=[
'redis==2.10.1',
'jinja2==2.7.2',
],
keywords=['redis', 'lua'],
)
|
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={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
]
)
|
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_s3'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
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={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
]
)
Add classifiers to PyPi metadata
|
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_s3'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
<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'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
]
)
<commit_msg>Add classifiers to PyPi metadata<commit_after>
|
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_s3'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
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={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
]
)
Add classifiers to PyPi metadatafrom 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_s3'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
<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'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
]
)
<commit_msg>Add classifiers to PyPi metadata<commit_after>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_s3'],
entry_points={
'lektor.plugins': [
's3 = lektor_s3:S3Plugin',
]
},
install_requires=[
'Lektor',
'boto3>=1.1.4',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP :: Site Management',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|
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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text==2014.12.29']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
|
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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
|
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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text==2014.12.29']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
Remove version number of html2text in install_requires
|
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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
|
<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)
sys.exit(1)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text==2014.12.29']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
<commit_msg>Remove version number of html2text in install_requires<commit_after>
|
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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
|
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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text==2014.12.29']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
Remove version number of html2text in install_requiresfrom 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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
|
<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)
sys.exit(1)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text==2014.12.29']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
<commit_msg>Remove version number of html2text in install_requires<commit_after>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)
install_requires = ['easy_thumbnails', 'django-guardian', 'html2text']
try:
from collections import OrderedDict
except ImportError:
install_requires.append('ordereddict')
setup(name='django-userena',
version=userena.get_version(),
description='Complete user management application for Django',
long_description=long_description,
zip_safe=False,
author='Petar Radosevic',
author_email='petar@wunki.org',
url='https://github.com/bread-and-pepper/django-userena/',
download_url='https://github.com/bread-and-pepper/django-userena/downloads',
packages = find_packages(exclude=['demo', 'demo.*']),
include_package_data=True,
install_requires = install_requires,
test_suite='tests.main',
classifiers = ['Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'],
)
|
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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
scripts=[os.path.join(path, 'bin', 'forecast-admin.py')],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
|
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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
package_dir={
'forecast.skels.project': os.path.join(path, 'forecast', 'skels', 'project'),
},
package_data={
'forecast.skels.project': [
'requirements.txt',
],
},
scripts=[
os.path.join(path, 'bin', 'forecast-admin.py')
],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
|
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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
scripts=[os.path.join(path, 'bin', 'forecast-admin.py')],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
Remove 'dev' from version name and add data files to install process
|
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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
package_dir={
'forecast.skels.project': os.path.join(path, 'forecast', 'skels', 'project'),
},
package_data={
'forecast.skels.project': [
'requirements.txt',
],
},
scripts=[
os.path.join(path, 'bin', 'forecast-admin.py')
],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
|
<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.core',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
scripts=[os.path.join(path, 'bin', 'forecast-admin.py')],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
<commit_msg>Remove 'dev' from version name and add data files to install process<commit_after>
|
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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
package_dir={
'forecast.skels.project': os.path.join(path, 'forecast', 'skels', 'project'),
},
package_data={
'forecast.skels.project': [
'requirements.txt',
],
},
scripts=[
os.path.join(path, 'bin', 'forecast-admin.py')
],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
|
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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
scripts=[os.path.join(path, 'bin', 'forecast-admin.py')],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
Remove 'dev' from version name and add data files to install processimport 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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
package_dir={
'forecast.skels.project': os.path.join(path, 'forecast', 'skels', 'project'),
},
package_data={
'forecast.skels.project': [
'requirements.txt',
],
},
scripts=[
os.path.join(path, 'bin', 'forecast-admin.py')
],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
|
<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.core',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
scripts=[os.path.join(path, 'bin', 'forecast-admin.py')],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
<commit_msg>Remove 'dev' from version name and add data files to install process<commit_after>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',
'forecast.applications.core.commands',
'forecast.skels',
'forecast.skels.application',
'forecast.skels.project',
'forecast.skels.project.settings',
'forecast.tests',
'forecast.tests.settings',
'forecast.tests.test_app',
'forecast.tests.test_app.commands',
],
package_dir={
'forecast.skels.project': os.path.join(path, 'forecast', 'skels', 'project'),
},
package_data={
'forecast.skels.project': [
'requirements.txt',
],
},
scripts=[
os.path.join(path, 'bin', 'forecast-admin.py')
],
url="http://github.com/osantana/forecast",
license='MIT',
description="A small wrapper around Tornado Web Server to force project structure",
long_description=open(os.path.join(path, 'README.txt')).read(),
)
|
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'],
url='http://github.com/jospolfliet/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='pandas data-science data-analysis python jupyter ipython',
)
|
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='utf-8') as f:
long_description = f.read()
setup(
name='pandas-profiling',
version='1.4.2',
author='Jos Polfliet',
author_email='jos.polfliet+panpro@gmail.com',
packages=['pandas_profiling'],
url='https://github.com/pandas-profiling/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='pandas data-science data-analysis python jupyter ipython',
long_description=long_description,
long_description_content_type='text/markdown'
)
|
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'],
url='http://github.com/jospolfliet/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='pandas data-science data-analysis python jupyter ipython',
)
Fix PyPi readme. Bump to 1.4.2
|
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='utf-8') as f:
long_description = f.read()
setup(
name='pandas-profiling',
version='1.4.2',
author='Jos Polfliet',
author_email='jos.polfliet+panpro@gmail.com',
packages=['pandas_profiling'],
url='https://github.com/pandas-profiling/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='pandas data-science data-analysis python jupyter ipython',
long_description=long_description,
long_description_content_type='text/markdown'
)
|
<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_profiling'],
url='http://github.com/jospolfliet/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='pandas data-science data-analysis python jupyter ipython',
)
<commit_msg>Fix PyPi readme. Bump to 1.4.2<commit_after>
|
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='utf-8') as f:
long_description = f.read()
setup(
name='pandas-profiling',
version='1.4.2',
author='Jos Polfliet',
author_email='jos.polfliet+panpro@gmail.com',
packages=['pandas_profiling'],
url='https://github.com/pandas-profiling/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='pandas data-science data-analysis python jupyter ipython',
long_description=long_description,
long_description_content_type='text/markdown'
)
|
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'],
url='http://github.com/jospolfliet/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='pandas data-science data-analysis python jupyter ipython',
)
Fix PyPi readme. Bump to 1.4.2import 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='utf-8') as f:
long_description = f.read()
setup(
name='pandas-profiling',
version='1.4.2',
author='Jos Polfliet',
author_email='jos.polfliet+panpro@gmail.com',
packages=['pandas_profiling'],
url='https://github.com/pandas-profiling/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='pandas data-science data-analysis python jupyter ipython',
long_description=long_description,
long_description_content_type='text/markdown'
)
|
<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_profiling'],
url='http://github.com/jospolfliet/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
],
keywords='pandas data-science data-analysis python jupyter ipython',
)
<commit_msg>Fix PyPi readme. Bump to 1.4.2<commit_after>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='utf-8') as f:
long_description = f.read()
setup(
name='pandas-profiling',
version='1.4.2',
author='Jos Polfliet',
author_email='jos.polfliet+panpro@gmail.com',
packages=['pandas_profiling'],
url='https://github.com/pandas-profiling/pandas-profiling',
license='MIT',
description='Generate profile report for pandas DataFrame',
install_requires=[
"pandas>=0.19",
"matplotlib>=1.4",
"jinja2>=2.8",
"six>=1.9"
],
include_package_data = True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Framework :: IPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='pandas data-science data-analysis python jupyter ipython',
long_description=long_description,
long_description_content_type='text/markdown'
)
|
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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries" ],
py_modules = ['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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
|
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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
Add Python 3.4 to classifiers
All tests passed on Python 3.4.
|
#!/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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
|
<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_version_tuple()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
<commit_msg>Add Python 3.4 to classifiers
All tests passed on Python 3.4.<commit_after>
|
#!/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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries" ],
py_modules = ['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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
Add Python 3.4 to classifiers
All tests passed on Python 3.4.#!/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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
|
<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_version_tuple()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
<commit_msg>Add Python 3.4 to classifiers
All tests passed on Python 3.4.<commit_after>#!/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()[:2] >= ('2', '7'):
LONG_DESCRIPTION = re.sub("^Build status\n(.*\n){7}", "", LONG_DESCRIPTION, flags=re.M)
setup(name='tabulate',
version='0.7.3',
description='Pretty-print tabular data',
long_description=LONG_DESCRIPTION,
author='Sergey Astanin',
author_email='s.astanin@gmail.com',
url='https://bitbucket.org/astanin/python-tabulate',
license=LICENSE,
classifiers= [ "Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development :: Libraries" ],
py_modules = ['tabulate'])
|
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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': resp.headers,
'body': resp.content}, verify=not insecure)
return None
|
# 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': dict(resp.headers),
'body': resp.content}, verify=not insecure)
return None
|
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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': resp.headers,
'body': resp.content}, verify=not insecure)
return None
Make sure headers are JSON serializable
|
# 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': dict(resp.headers),
'body': resp.content}, verify=not insecure)
return None
|
<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 to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': resp.headers,
'body': resp.content}, verify=not insecure)
return None
<commit_msg>Make sure headers are JSON serializable<commit_after>
|
# 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': dict(resp.headers),
'body': resp.content}, verify=not insecure)
return None
|
# 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': resp.headers,
'body': resp.content}, verify=not insecure)
return None
Make sure headers are JSON serializable# 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': dict(resp.headers),
'body': resp.content}, verify=not insecure)
return None
|
<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 to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': resp.headers,
'body': resp.content}, verify=not insecure)
return None
<commit_msg>Make sure headers are JSON serializable<commit_after># 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, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from celery import Celery
import requests
import utils
app = Celery('tasks', broker=utils.redis_broker_url())
@app.task
def do(method, url, headers, body, callback, insecure):
func = getattr(requests, method.lower())
resp = func(url, headers=headers, data=body, verify=not insecure)
requests.post(callback,
json={'status': '%s %s' % (resp.status_code, resp.reason),
'headers': dict(resp.headers),
'body': resp.content}, verify=not insecure)
return None
|
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 = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in exceptions:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
|
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 requirements}
to_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in EXCEPTIONS:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
|
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 = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in exceptions:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
Add pip-tools itself to the list of exceptions
|
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 requirements}
to_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in EXCEPTIONS:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
|
<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_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in exceptions:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
<commit_msg>Add pip-tools itself to the list of exceptions<commit_after>
|
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 requirements}
to_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in EXCEPTIONS:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
|
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 = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in exceptions:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
Add pip-tools itself to the list of exceptionsimport 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 requirements}
to_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in EXCEPTIONS:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
|
<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_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in exceptions:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
<commit_msg>Add pip-tools itself to the list of exceptions<commit_after>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 requirements}
to_be_installed = set()
to_be_uninstalled = set()
satisfied = set()
for module in installed:
key = module.key
if key in EXCEPTIONS:
pass
elif key not in requirements:
to_be_uninstalled.add(module.as_requirement())
elif requirements[key].specifier.contains(module.version):
satisfied.add(key)
for key, requirement in requirements.items():
if key not in satisfied:
to_be_installed.add(requirement.req)
return (to_be_installed, to_be_uninstalled)
def sync(to_be_installed, to_be_uninstalled, verbose=False):
"""
Install and uninstalls the given sets of modules.
"""
flags = []
if not verbose:
flags.append('-q')
if to_be_uninstalled:
pip.main(["uninstall", '-y'] + flags + [str(req) for req in to_be_uninstalled])
if to_be_installed:
pip.main(["install"] + flags + [str(req) for req in to_be_installed])
|
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_fields = (
'annotation',
)
admin.site.register(AnnotationType)
admin.site.register(Export)
admin.site.register(ExportFormat)
|
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 verification foreign keys
|
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_fields = (
'annotation',
)
admin.site.register(AnnotationType)
admin.site.register(Export)
admin.site.register(ExportFormat)
|
<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 fields for annotation and verification foreign keys<commit_after>
|
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_fields = (
'annotation',
)
admin.site.register(AnnotationType)
admin.site.register(Export)
admin.site.register(ExportFormat)
|
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 verification foreign keysfrom 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_fields = (
'annotation',
)
admin.site.register(AnnotationType)
admin.site.register(Export)
admin.site.register(ExportFormat)
|
<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 fields for annotation and verification foreign keys<commit_after>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_fields = (
'annotation',
)
admin.site.register(AnnotationType)
admin.site.register(Export)
admin.site.register(ExportFormat)
|
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
|
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
if sys.platform=='win32':
print "### Warning: pythonxerbla.c is disabled ###"
return ext.depends[:1]
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
|
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-refactor,teoliphant/numpy-refactor,illume/numpy3k,illume/numpy3k,Ademan/NumPy-GSoC,teoliphant/numpy-refactor,efiring/numpy-work,efiring/numpy-work,efiring/numpy-work,efiring/numpy-work,chadnetzer/numpy-gaurdro,chadnetzer/numpy-gaurdro,Ademan/NumPy-GSoC,Ademan/NumPy-GSoC
|
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
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
|
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
if sys.platform=='win32':
print "### Warning: pythonxerbla.c is disabled ###"
return ext.depends[:1]
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
|
<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 = get_info('lapack_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
<commit_msg>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<commit_after>
|
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
if sys.platform=='win32':
print "### Warning: pythonxerbla.c is disabled ###"
return ext.depends[:1]
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
|
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
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
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
if sys.platform=='win32':
print "### Warning: pythonxerbla.c is disabled ###"
return ext.depends[:1]
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
|
<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 = get_info('lapack_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
<commit_msg>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<commit_after>
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_opt',0) # and {}
def get_lapack_lite_sources(ext, build_dir):
if not lapack_info:
print "### Warning: Using unoptimized lapack ###"
return ext.depends[:-1]
else:
if sys.platform=='win32':
print "### Warning: pythonxerbla.c is disabled ###"
return ext.depends[:1]
return ext.depends[:2]
config.add_extension('lapack_lite',
sources = [get_lapack_lite_sources],
depends= ['lapack_litemodule.c',
'pythonxerbla.c',
'zlapack_lite.c', 'dlapack_lite.c',
'blas_lite.c', 'dlamch.c',
'f2c_lite.c','f2c.h'],
extra_info = lapack_info
)
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
setup(configuration=configuration)
|
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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo',
token_request_style='json',
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
|
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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo'
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
|
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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo',
token_request_style='json',
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
Fix mock results are not in json format
|
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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo'
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
|
<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):
"""Return a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo',
token_request_style='json',
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
<commit_msg>Fix mock results are not in json format<commit_after>
|
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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo'
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
|
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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo',
token_request_style='json',
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
Fix mock results are not in json formatimport 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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo'
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
|
<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):
"""Return a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo',
token_request_style='json',
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
<commit_msg>Fix mock results are not in json format<commit_after>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 a user model"""
return {
'username': username,
'scope': 'basic',
}
def Authenticator():
return AWSCognitoAuthenticator()
@fixture
def awscognito_client(client):
setup_oauth_mock(client,
host=AWSCOGNITO_DOMAIN,
access_token_path='/oauth2/token',
user_path='/oauth2/userInfo'
)
return client
async def test_awscognito(awscognito_client):
authenticator = Authenticator()
handler = awscognito_client.handler_for_user(user_model('foo'))
user_info = await authenticator.authenticate(handler)
assert sorted(user_info) == ['auth_state', 'name']
name = user_info['name']
assert name == 'foo'
auth_state = user_info['auth_state']
assert 'access_token' in auth_state
assert 'awscognito_user' in auth_state
|
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 paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), native_mesos_scheduler.MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
|
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 paasta_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
|
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 paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), native_mesos_scheduler.MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
Fix broken import in native scheduler
|
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 paasta_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
|
<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_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), native_mesos_scheduler.MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
<commit_msg>Fix broken import in native scheduler<commit_after>
|
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 paasta_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
|
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 paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), native_mesos_scheduler.MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
Fix broken import in native schedulerfrom __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 paasta_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
|
<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_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), native_mesos_scheduler.MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
<commit_msg>Fix broken import in native scheduler<commit_after>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 paasta_tools.utils import paasta_print
def perform_command(command, service, instance, cluster, verbose, soa_dir):
if verbose > 0:
tail_lines = calculate_tail_lines(verbose_level=verbose)
else:
tail_lines = 0
# We have to add a spacer at the end to make sure we only return
# things for service.main and not service.main_foo
task_id_prefix = "%s%s" % (compose_job_id(service, instance), MESOS_TASK_SPACER)
if command == 'status':
paasta_print(status_mesos_tasks_verbose(
job_id=task_id_prefix,
get_short_task_id=lambda x: x,
tail_lines=tail_lines,
))
|
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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
|
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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
def test_read_performative_utf8():
s = '(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>\U0001F4A9</ekb>"))'
s = s.encode('utf-8')
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
|
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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
Add unicode test for reading performatives
|
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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
def test_read_performative_utf8():
s = '(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>\U0001F4A9</ekb>"))'
s = s.encode('utf-8')
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
|
<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 lst:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
<commit_msg>Add unicode test for reading performatives<commit_after>
|
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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
def test_read_performative_utf8():
s = '(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>\U0001F4A9</ekb>"))'
s = s.encode('utf-8')
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
|
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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
Add unicode test for reading performativesimport 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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
def test_read_performative_utf8():
s = '(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>\U0001F4A9</ekb>"))'
s = s.encode('utf-8')
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
|
<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 lst:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
<commit_msg>Add unicode test for reading performatives<commit_after>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:
assert isinstance(obj, KQMLObject)
def test_read_performative():
s = b'(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>ONT::PROTEIN</ekb>"))'
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
def test_read_performative_utf8():
s = '(REQUEST :CONTENT (REQUEST_TYPE :CONTENT "<ekb>\U0001F4A9</ekb>"))'
s = s.encode('utf-8')
sreader = BytesIO(s)
kr = KQMLReader(sreader)
kp = kr.read_performative()
|
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('<remote>', 'origin')\
.replace('<branch>', branch)
return u'{} && {}'.format(set_upstream, command.script)
|
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_upstream = line.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return shells.and_(set_upstream, command.script)
|
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/thefuck,vanita5/thefuck,hxddh/thefuck,BertieJim/thefuck,PLNech/thefuck,barneyElDinosaurio/thefuck,princeofdarkness76/thefuck,qingying5810/thefuck,beni55/thefuck,Clpsplug/thefuck,artiya4u/thefuck,ostree/thefuck,levythu/thefuck,vanita5/thefuck,princeofdarkness76/thefuck,roth1002/thefuck,lawrencebenson/thefuck,MJerty/thefuck,LawrenceHan/thefuck,scorphus/thefuck,bugaevc/thefuck,mcarton/thefuck,mbbill/thefuck,suxinde2009/thefuck,AntonChankin/thefuck,levythu/thefuck,MJerty/thefuck,manashmndl/thefuck,mlk/thefuck,subajat1/thefuck,AntonChankin/thefuck,zhangzhishan/thefuck,NguyenHoaiNam/thefuck,thinkerchan/thefuck,nvbn/thefuck,lawrencebenson/thefuck,thinkerchan/thefuck,Clpsplug/thefuck,ostree/thefuck,manashmndl/thefuck,BertieJim/thefuck,Aeron/thefuck,thesoulkiller/thefuck,SimenB/thefuck,redreamality/thefuck,thesoulkiller/thefuck
|
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('<remote>', 'origin')\
.replace('<branch>', branch)
return u'{} && {}'.format(set_upstream, command.script)
Replace use of '&&' by shells.and_
|
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_upstream = line.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return shells.and_(set_upstream, command.script)
|
<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.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return u'{} && {}'.format(set_upstream, command.script)
<commit_msg>Replace use of '&&' by shells.and_<commit_after>
|
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_upstream = line.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return shells.and_(set_upstream, command.script)
|
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('<remote>', 'origin')\
.replace('<branch>', branch)
return u'{} && {}'.format(set_upstream, command.script)
Replace use of '&&' by shells.and_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_upstream = line.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return shells.and_(set_upstream, command.script)
|
<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.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return u'{} && {}'.format(set_upstream, command.script)
<commit_msg>Replace use of '&&' by shells.and_<commit_after>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_upstream = line.replace('<remote>', 'origin')\
.replace('<branch>', branch)
return shells.and_(set_upstream, command.script)
|
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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else result['data']
|
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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else [result['data']]
|
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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else result['data']
Return data as list if field is unset
|
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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else [result['data']]
|
<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 = terms[1]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else result['data']
<commit_msg>Return data as list if field is unset<commit_after>
|
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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else [result['data']]
|
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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else result['data']
Return data as list if field is unsetimport 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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else [result['data']]
|
<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 = terms[1]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else result['data']
<commit_msg>Return data as list if field is unset<commit_after>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]
except:
field = None
url = os.getenv('VAULT_ADDR')
if not url:
raise AnsibleError('VAULT_ADDR environment variable is missing')
token = os.getenv('VAULT_TOKEN')
if not token:
raise AnsibleError('VAULT_TOKEN environment variable is missing')
request_url = urljoin(url, "v1/%s" % (key))
try:
headers = { 'X-Vault-Token' : token }
req = urllib2.Request(request_url, None, headers)
response = urllib2.urlopen(req)
except urllib2.HTTPError as e:
raise AnsibleError('Unable to read %s from vault: %s' % (key, e))
except:
raise AnsibleError('Unable to read %s from vault' % key)
result = json.loads(response.read())
return [result['data'][field]] if field is not None else [result['data']]
|
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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.Time)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
|
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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.DateTime)
author = sqlalchemy.Column(sqlalchemy.String)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
|
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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.Time)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
Change type of time_posted to DATETIME and add author column
|
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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.DateTime)
author = sqlalchemy.Column(sqlalchemy.String)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
|
<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,) #Should be text to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.Time)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
<commit_msg>Change type of time_posted to DATETIME and add author column<commit_after>
|
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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.DateTime)
author = sqlalchemy.Column(sqlalchemy.String)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
|
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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.Time)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
Change type of time_posted to DATETIME and add author columnimport 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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.DateTime)
author = sqlalchemy.Column(sqlalchemy.String)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
|
<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,) #Should be text to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.Time)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
<commit_msg>Change type of time_posted to DATETIME and add author column<commit_after>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 to avoid length problems
time_posted = sqlalchemy.Column(sqlalchemy.DateTime)
author = sqlalchemy.Column(sqlalchemy.String)
class Tag(Base):
__tablename__ = "tags"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
name = sqlalchemy.Column(sqlalchemy.Text)
#Used to relate tags to posts.
class TagRelation(Base):
__tablename__ = "tag_relation"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)
post_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Post.__table__.columns.id))
tag_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey(Tag.__table__.columns.id))
#The Following tables will only be the ones added to the database
ALL_TABLES = [Post, Tag, TagRelation]
|
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 TypeError:
pass
|
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 for numpy<1.14
|
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 TypeError:
pass
|
<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')
<commit_msg>Use a try block for numpy<1.14<commit_after>
|
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 TypeError:
pass
|
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 for numpy<1.14from ._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 TypeError:
pass
|
<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')
<commit_msg>Use a try block for numpy<1.14<commit_after>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 TypeError:
pass
|
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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
# A.__del__()
#
a = A(1)
del 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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
#
a = A(1)
# The following piece of code MAY print:
#
# A.__del__()
#
# It depends on the interpreter. For example, in CPython, which uses reference
# counting, it will print the string. However, in PyPy, which uses a
# full-fledged garbage collector, it will not print that.
del a
|
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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
# A.__del__()
#
a = A(1)
del a
2020-03-26: Add a note concerning __del__() in one of the examples.
|
# 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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
#
a = A(1)
# The following piece of code MAY print:
#
# A.__del__()
#
# It depends on the interpreter. For example, in CPython, which uses reference
# counting, it will print the string. However, in PyPy, which uses a
# full-fledged garbage collector, it will not print that.
del a
|
<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 = a
def __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
# A.__del__()
#
a = A(1)
del a
<commit_msg>2020-03-26: Add a note concerning __del__() in one of the examples.<commit_after>
|
# 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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
#
a = A(1)
# The following piece of code MAY print:
#
# A.__del__()
#
# It depends on the interpreter. For example, in CPython, which uses reference
# counting, it will print the string. However, in PyPy, which uses a
# full-fledged garbage collector, it will not print that.
del 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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
# A.__del__()
#
a = A(1)
del a
2020-03-26: Add a note concerning __del__() in one of the examples.# 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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
#
a = A(1)
# The following piece of code MAY print:
#
# A.__del__()
#
# It depends on the interpreter. For example, in CPython, which uses reference
# counting, it will print the string. However, in PyPy, which uses a
# full-fledged garbage collector, it will not print that.
del a
|
<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 = a
def __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
# A.__del__()
#
a = A(1)
del a
<commit_msg>2020-03-26: Add a note concerning __del__() in one of the examples.<commit_after># 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 __del__(self):
print('A.__del__()')
# The following piece of code prints:
#
# A.__new__()
# A.__init__()
#
a = A(1)
# The following piece of code MAY print:
#
# A.__del__()
#
# It depends on the interpreter. For example, in CPython, which uses reference
# counting, it will print the string. However, in PyPy, which uses a
# full-fledged garbage collector, it will not print that.
del 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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
|
#!/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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
|
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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
Remove the trailing blank line
|
#!/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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
|
<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:
# read the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
<commit_msg>Remove the trailing blank line<commit_after>
|
#!/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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
|
#!/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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
Remove the trailing blank line#!/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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
|
<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:
# read the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
<commit_msg>Remove the trailing blank line<commit_after>#!/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 the json into d
try:
d = json.load(f)
except:
print('[Error]', path, sep='\t', file=sys.stderr)
continue
# decide keep or remove
authores_dt = datetime.fromtimestamp(d['authored_ts'])
print(authores_dt, path, sep='\t', end='\t')
if START_DT <= authores_dt < END_DT:
print('KEEP')
else:
if DRY_RUN:
print('REMOVE', 'DRY_RUN', sep='\t')
else:
print('REMOVE', sep='\t')
remove(path)
|
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.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', key(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
keys = otp_keys(1000)
print itertools.islice(keys, 63, 64).next()
|
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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', hash_func(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
part1 = otp_keys(1000, basic_hash)
print itertools.islice(part1, 63, 64).next()
|
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.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', key(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
keys = otp_keys(1000)
print itertools.islice(keys, 63, 64).next()
Make the hash function a parameter
|
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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', hash_func(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
part1 = otp_keys(1000, basic_hash)
print itertools.islice(part1, 63, 64).next()
|
<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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', key(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
keys = otp_keys(1000)
print itertools.islice(keys, 63, 64).next()
<commit_msg>Make the hash function a parameter<commit_after>
|
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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', hash_func(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
part1 = otp_keys(1000, basic_hash)
print itertools.islice(part1, 63, 64).next()
|
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.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', key(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
keys = otp_keys(1000)
print itertools.islice(keys, 63, 64).next()
Make the hash function a parameterimport 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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', hash_func(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
part1 = otp_keys(1000, basic_hash)
print itertools.islice(part1, 63, 64).next()
|
<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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', key(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
keys = otp_keys(1000)
print itertools.islice(keys, 63, 64).next()
<commit_msg>Make the hash function a parameter<commit_after>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)):
lookahead[quint.group(1)] = n
for i in xrange(1, horizon):
update_lookahead(i)
for i in itertools.count():
update_lookahead(i + horizon)
triple = re.search(r'(.)\1{2}', hash_func(i))
if triple:
if lookahead[triple.group(1)] > i:
yield i
if __name__ == '__main__':
part1 = otp_keys(1000, basic_hash)
print itertools.islice(part1, 63, 64).next()
|
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', 'unsubscribe', 'update')
def make_activation_code():
""" Generate a unique activation code. """
random_string = str(random.random())
random_digest = sha1(force_bytes(random_string)).hexdigest()[:5]
time_string = str(datetime.now().microsecond)
combined_string = random_digest + time_string
return sha1(force_bytes(combined_string)).hexdigest()
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
|
""" 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():
""" Generate a unique activation code. """
# Use Django's crypto get_random_string() instead of rolling our own.
return get_random_string(length=40)
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
|
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', 'unsubscribe', 'update')
def make_activation_code():
""" Generate a unique activation code. """
random_string = str(random.random())
random_digest = sha1(force_bytes(random_string)).hexdigest()[:5]
time_string = str(datetime.now().microsecond)
combined_string = random_digest + time_string
return sha1(force_bytes(combined_string)).hexdigest()
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
Use Django’s crypto code to generate random code.
Many thanks to Cédric Picard for his extensive
security report.
|
""" 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():
""" Generate a unique activation code. """
# Use Django's crypto get_random_string() instead of rolling our own.
return get_random_string(length=40)
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
|
<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 = ('subscribe', 'unsubscribe', 'update')
def make_activation_code():
""" Generate a unique activation code. """
random_string = str(random.random())
random_digest = sha1(force_bytes(random_string)).hexdigest()[:5]
time_string = str(datetime.now().microsecond)
combined_string = random_digest + time_string
return sha1(force_bytes(combined_string)).hexdigest()
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
<commit_msg>Use Django’s crypto code to generate random code.
Many thanks to Cédric Picard for his extensive
security report.<commit_after>
|
""" 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():
""" Generate a unique activation code. """
# Use Django's crypto get_random_string() instead of rolling our own.
return get_random_string(length=40)
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
|
""" 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', 'unsubscribe', 'update')
def make_activation_code():
""" Generate a unique activation code. """
random_string = str(random.random())
random_digest = sha1(force_bytes(random_string)).hexdigest()[:5]
time_string = str(datetime.now().microsecond)
combined_string = random_digest + time_string
return sha1(force_bytes(combined_string)).hexdigest()
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
Use Django’s crypto code to generate random code.
Many thanks to Cédric Picard for his extensive
security report.""" 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():
""" Generate a unique activation code. """
# Use Django's crypto get_random_string() instead of rolling our own.
return get_random_string(length=40)
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
|
<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 = ('subscribe', 'unsubscribe', 'update')
def make_activation_code():
""" Generate a unique activation code. """
random_string = str(random.random())
random_digest = sha1(force_bytes(random_string)).hexdigest()[:5]
time_string = str(datetime.now().microsecond)
combined_string = random_digest + time_string
return sha1(force_bytes(combined_string)).hexdigest()
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
<commit_msg>Use Django’s crypto code to generate random code.
Many thanks to Cédric Picard for his extensive
security report.<commit_after>""" 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():
""" Generate a unique activation code. """
# Use Django's crypto get_random_string() instead of rolling our own.
return get_random_string(length=40)
def get_default_sites():
""" Get a list of id's for all sites; the default for newsletters. """
return [site.id for site in Site.objects.all()]
class Singleton(type):
"""
Singleton metaclass.
Source:
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python
"""
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(
*args, **kwargs
)
return cls._instances[cls]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.