commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
5d4e23ce294ed6a4b178fd8f491991fe336be953 | Update XENBUS and XENNET | OwenSmith/win-installer,xenserver/win-installer,OwenSmith/win-installer,OwenSmith/win-installer,OwenSmith/win-installer,xenserver/win-installer,xenserver/win-installer,xenserver/win-installer,xenserver/win-installer,OwenSmith/win-installer | manifestspecific.py | manifestspecific.py | # Copyright (c) Citrix Systems Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above
# copyright notice, this list of conditions a... | # Copyright (c) Citrix Systems Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above
# copyright notice, this list of conditions a... | bsd-2-clause | Python |
77b64fa8a4be8638c3dd3595e2c0299a7f478276 | Bump app version to 2020.2.0 | kernelci/kernelci-backend,kernelci/kernelci-backend | app/handlers/__init__.py | app/handlers/__init__.py | __version__ = "2020.2.0"
__versionfull__ = __version__
| __version__ = "2020.1.1"
__versionfull__ = __version__
| lgpl-2.1 | Python |
a0c70160dc2f398e8ce433409b56285e35b4edec | Update to latest tip builds of all drivers | benchalmers/win-installer,kostaslamda/win-installer,xenserver/win-installer,benchalmers/win-installer,xenserver/win-installer,OwenSmith/win-installer,kostaslamda/win-installer,OwenSmith/win-installer,benchalmers/win-installer,OwenSmith/win-installer,kostaslamda/win-installer,benchalmers/win-installer,xenserver/win-inst... | manifestspecific.py | manifestspecific.py | # Copyright (c) Citrix Systems Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above
# copyright notice, this list of condition... | # Copyright (c) Citrix Systems Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms,
# with or without modification, are permitted provided
# that the following conditions are met:
#
# * Redistributions of source code must retain the above
# copyright notice, this list of condition... | bsd-2-clause | Python |
8d137ad34193dbf008cc885e9d179b4c0c21f09b | Bump version. | mtth/azkaban | azkaban/__init__.py | azkaban/__init__.py | #!/usr/bin/env python
# encoding: utf-8
"""Azkaban python library."""
__all__ = ['Project', 'Job', 'PigJob']
__version__ = '0.9.5'
try:
from .ext.pig import PigJob
from .job import Job
from .project import Project
except ImportError:
pass # in setup.py
import logging as lg
# docopt arguments are made avai... | #!/usr/bin/env python
# encoding: utf-8
"""Azkaban python library."""
__all__ = ['Project', 'Job', 'PigJob']
__version__ = '0.9.4'
try:
from .ext.pig import PigJob
from .job import Job
from .project import Project
except ImportError:
pass # in setup.py
import logging as lg
# docopt arguments are made avai... | mit | Python |
871c80d336ca3000256ab102e6a093e792c65e59 | Bump app version to 2021.6.0 | kernelci/kernelci-backend,kernelci/kernelci-backend | app/handlers/__init__.py | app/handlers/__init__.py | __version__ = "2021.6.0"
__versionfull__ = __version__
| __version__ = "2021.5.0"
__versionfull__ = __version__
| lgpl-2.1 | Python |
44749393191aebf730c4dca17766fbdb713e636b | Add missing handle ipn url | bastien34/django-oscar-systempay,bastien34/django-oscar-systempay,dulaccc/django-oscar-systempay | systempay/app.py | systempay/app.py | from django.conf.urls import patterns, url
from oscar.core.application import Application
from systempay import views
class SystemPayApplication(Application):
name = 'systempay'
place_order_view = views.PlaceOrderView
cancel_response_view = views.CancelResponseView
secure_redirect_view = views.Secu... | from django.conf.urls import patterns, url
from oscar.core.application import Application
from systempay import views
class SystemPayApplication(Application):
name = 'systempay'
place_order_view = views.PlaceOrderView
cancel_response_view = views.CancelResponseView
secure_redirect_view = views.Secu... | mit | Python |
5bcb880ef88eb0a65148aedfc01f0e1e8541dc6f | add permission test for user_can_view_deid_exports | dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq | corehq/apps/users/tests/permissions.py | corehq/apps/users/tests/permissions.py | from dimagi.utils.decorators.memoized import Memoized
from django.test import TestCase, SimpleTestCase
import mock
from corehq.apps.export.views import user_can_view_deid_exports
from corehq.apps.users.decorators import get_permission_name
from corehq.apps.users.models import Permissions, WebUser, UserRole, DomainMembe... | from django.test import TestCase
from corehq.apps.users.models import Permissions
class PermissionsTest(TestCase):
def test_OR(self):
p1 = Permissions(
edit_web_users=True,
view_reports=True,
view_report_list=['report1'],
)
p2 = Permissions(
... | bsd-3-clause | Python |
2f44508f2bbd237010ae25cce9d71022c3e6aaef | refactor init | Aiacos/DevPyLib | mayaLib/__init__.py | mayaLib/__init__.py | import mayaLib.utility
import mayaLib.pipelineLib
import mayaLib.guiLib
import mayaLib.rigLib
import mayaLib.animationLib
import mayaLib.shaderLib
import mayaLib.fluidLib
import mayaLib.lookdevLib
| import utility
import mayaLib.pipelineLib
import mayaLib.guiLib
import mayaLib.rigLib
import animationLib
import mayaLib.shaderLib
import mayaLib.fluidLib
import mayaLib.lookdevLib
| agpl-3.0 | Python |
03bf0347c86f72c76ee9a9e9876bea6c6b93821c | update class name. | 1flow/1flow,WillianPaiva/1flow,1flow/1flow,1flow/1flow,WillianPaiva/1flow,WillianPaiva/1flow,1flow/1flow,1flow/1flow,WillianPaiva/1flow,WillianPaiva/1flow | oneflow/core/social_pipeline.py | oneflow/core/social_pipeline.py | # -*- coding: utf-8 -*-
import logging
from .models.nonrel import Preferences
LOGGER = logging.getLogger(__name__)
def check_1flow_requirements(social_auth, user, details, request,
is_new=False, *args, **kwargs):
mongodb_user = user.mongo
try:
mongodb_user.preference... | # -*- coding: utf-8 -*-
import logging
from .models.nonrel import Preference
LOGGER = logging.getLogger(__name__)
def check_1flow_requirements(social_auth, user, details, request,
is_new=False, *args, **kwargs):
mongodb_user = user.mongo
try:
mongodb_user.preferences... | agpl-3.0 | Python |
3003c19fe3221dbf3bfbfebefd14128f89a1de37 | Fix rules. | MerlijnWajer/pyroTorrent,MerlijnWajer/pyroTorrent | rules.py | rules.py | import re
wt.add_rule(re.compile('^%s/torrent/[0-9,A-Z]{32}/?' % BASE_URL),
torrent_info_page, ['torrent_hash'])
# This should be the last rule.
wt.add_rule(re.compile('^%s/?$' % BASE_URL), main_page, [])
| import re
wt.add_rule(re.compile('^%s/torrent/[0-9,A-Z]{32}/?' % BASE_URL),
torrent_info_page, ['torrent_hash'])
# This should be the last rule.
wt.add_rule(re.compile('^%s/$' % BASE_URL), main_page, [])
| agpl-3.0 | Python |
3146aa3379f5c928fc7ba79776de19a1c64c7c01 | Make collections link go to v2 route | alexschiller/osf.io,laurenrevere/osf.io,Nesiehr/osf.io,emetsger/osf.io,zachjanicki/osf.io,aaxelb/osf.io,binoculars/osf.io,RomanZWang/osf.io,Johnetordoff/osf.io,HalcyonChimera/osf.io,Johnetordoff/osf.io,billyhunt/osf.io,doublebits/osf.io,cwisecarver/osf.io,DanielSBrown/osf.io,doublebits/osf.io,chrisseto/osf.io,abought/o... | api/base/urls.py | api/base/urls.py | from django.conf import settings
from django.conf.urls import include, url, patterns
from django.conf.urls.static import static
from settings import API_BASE
from website.settings import DEV_MODE
from . import views
base_pattern = '^{}'.format(API_BASE)
urlpatterns = [
### API ###
url(base_pattern,
i... | from django.conf import settings
from django.conf.urls import include, url, patterns
from django.conf.urls.static import static
from settings import API_BASE
from website.settings import DEV_MODE
from . import views
base_pattern = '^{}'.format(API_BASE)
urlpatterns = [
### API ###
url(base_pattern,
i... | apache-2.0 | Python |
53f5893e11c16a619a31f564df88d0faedbade03 | remove unused option | rojkov/lxcrunner | virtlib/runtests.py | virtlib/runtests.py | import time
import sys
import logging, logging.config
import os.path
from ConfigParser import SafeConfigParser as ConfigParser
from optparse import OptionParser
from virtlib.vmsetup import VMSetup
LOG = logging.getLogger(__name__)
def parse_cmdline():
"""Parse command line options."""
parser = OptionParse... | import time
import logging, logging.config
import os.path
from ConfigParser import SafeConfigParser as ConfigParser
from optparse import OptionParser
from virtlib.vmsetup import VMSetup
LOG = logging.getLogger(__name__)
def parse_cmdline():
"""Parse command line options."""
parser = OptionParser()
par... | bsd-3-clause | Python |
cfc8ce9db436d5a0265a9569bf73e1f887126431 | Add function docstring | bsmr-misc-forks/letsencrypt,lmcro/letsencrypt,letsencrypt/letsencrypt,lmcro/letsencrypt,stweil/letsencrypt,jtl999/certbot,letsencrypt/letsencrypt,bsmr-misc-forks/letsencrypt,stweil/letsencrypt,jtl999/certbot,jsha/letsencrypt,jsha/letsencrypt | certbot-nginx/certbot_nginx/constants.py | certbot-nginx/certbot_nginx/constants.py | """nginx plugin constants."""
import pkg_resources
CLI_DEFAULTS = dict(
server_root="/etc/nginx",
ctl="nginx",
)
"""CLI defaults."""
MOD_SSL_CONF_DEST = "options-ssl-nginx.conf"
"""Name of the mod_ssl config file as saved in `IConfig.config_dir`."""
MOD_SSL_CONF_SRC = pkg_resources.resource_filename(
"... | """nginx plugin constants."""
import pkg_resources
CLI_DEFAULTS = dict(
server_root="/etc/nginx",
ctl="nginx",
)
"""CLI defaults."""
MOD_SSL_CONF_DEST = "options-ssl-nginx.conf"
"""Name of the mod_ssl config file as saved in `IConfig.config_dir`."""
MOD_SSL_CONF_SRC = pkg_resources.resource_filename(
"... | apache-2.0 | Python |
8e49d57094e4519739fa26ddc14be9cd85e546ab | Fix for duplication of a partner (inherit of copy() was needed) | OCA/vertical-abbey | stay/partner.py | stay/partner.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Stay module for OpenERP
# Copyright (C) 2014 Artisanat Monastique de Provence
# (http://www.barroux.org)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# @author: Br... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Stay module for OpenERP
# Copyright (C) 2014 Artisanat Monastique de Provence
# (http://www.barroux.org)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# @author: Br... | agpl-3.0 | Python |
8f0e0f89c9ac4f9b8505acf9b5c273d19b115f0b | set feature class to number 0/1 | stonewell/learn-curve | src/learn/feature/rsi.py | src/learn/feature/rsi.py | import pandas as pd
from talib import RSI
from .feature_base import LearnFeature
class RsiFeature(LearnFeature):
def __init__(self):
super().__init__('RsiFeature')
self.rsi_period_ = 12
self.rsi_look_back_ = 3
self.rsi_ = []
self.buy_rsi_ = None
self.buy_price_ = 0.... | import pandas as pd
from talib import RSI
from .feature_base import LearnFeature
class RsiFeature(LearnFeature):
def __init__(self):
super().__init__('RsiFeature')
self.rsi_period_ = 12
self.rsi_look_back_ = 3
self.rsi_ = []
self.buy_rsi_ = None
self.buy_price_ = 0.... | mit | Python |
43eed9d5ce0b4a49e97e92cbfd0532c5a0d0ff2c | Update to 0.16.0 alpha | learningequality/kolibri,learningequality/kolibri,learningequality/kolibri,learningequality/kolibri | kolibri/__init__.py | kolibri/__init__.py | """
CAUTION! Keep everything here at at minimum. Do not import stuff.
This module is imported in setup.py, so you cannot for instance
import a dependency.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from kolibri.utils import env
from kolibri.... | """
CAUTION! Keep everything here at at minimum. Do not import stuff.
This module is imported in setup.py, so you cannot for instance
import a dependency.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from kolibri.utils import env
from kolibri.... | mit | Python |
5f13827bcb6bd5eb82cf7780c1175e84ddb41823 | Fix import os | Stark-Mountain/meetup-facebook-bot,Stark-Mountain/meetup-facebook-bot | database_manage.py | database_manage.py | #!/usr/bin/env python
from migrate.versioning.shell import main
import os
if __name__ == '__main__':
main(repository='database_migrate', debug='False', url=os.environ['DATABASE_URL'])
| #!/usr/bin/env python
from migrate.versioning.shell import main
if __name__ == '__main__':
main(repository='database_migrate', debug='False', url=os.environ['DATABASE_URL'])
| mit | Python |
803274680540932b882ab72c054270e2e4f99950 | Fix to prevent exception when writing non-ascii data to a gzip file | awest1339/multiscanner,jmlong1027/multiscanner,MITRECND/multiscanner,mitre/multiscanner,mitre/multiscanner,awest1339/multiscanner,jmlong1027/multiscanner,jmlong1027/multiscanner,MITRECND/multiscanner,mitre/multiscanner,awest1339/multiscanner,jmlong1027/multiscanner,awest1339/multiscanner | storage/file.py | storage/file.py | import storage
import gzip
import json
import codecs
class File(storage.Storage):
DEFAULTCONF = {
'ENABLED': True,
'path': 'report.json',
'gzip': False,
'files-per-line': 1
}
def setup(self):
if self.config['gzip'] is True:
self.file_handle = gzip.open(... | import storage
import gzip
import json
import codecs
class File(storage.Storage):
DEFAULTCONF = {
'ENABLED': True,
'path': 'report.json',
'gzip': False,
'files-per-line': 1
}
def setup(self):
if self.config['gzip'] is True:
self.file_handle = gzip.open(... | mpl-2.0 | Python |
3e0cd0c350c5866e034faa436ab8b8adfd73f853 | Improve logging configuration | bcb/jsonrpcclient | jsonrpcclient/log.py | jsonrpcclient/log.py | """Logging"""
import logging
def _configure_logger(logger, fmt):
"""Set up a logger, if no handler has been configured for it"""
if logger.level == logging.NOTSET:
logger.setLevel(logging.INFO)
if not logging.root.handlers:
handler = logging.StreamHandler()
handler.setFormatter(log... | """Logging"""
import logging
def _configure_logger(logger, fmt):
"""Set up a logger, if no handler has been configured for it"""
if not logging.root.handlers and logger.level == logging.NOTSET:
logger.setLevel(logging.INFO)
handler = logging.StreamHandler()
handler.setFormatter(logging... | mit | Python |
af59bc04914fb61b64a8eeb1bfd46a56be8debf7 | Support gcc_extra_flags and ld_extra_flags | mono/bockbuild,BansheeMediaPlayer/bockbuild,bl8/bockbuild,mono/bockbuild,BansheeMediaPlayer/bockbuild,BansheeMediaPlayer/bockbuild,bl8/bockbuild,bl8/bockbuild | bockbuild/unixprofile.py | bockbuild/unixprofile.py | from profile import Profile
class UnixProfile (Profile):
def __init__ (self):
Profile.__init__ (self)
self.name = 'unix'
self.gcc_flags = [ '-I%{prefix}/include' ]
self.ld_flags = [ '-L%{prefix}/lib' ]
try:
self.gcc_flags.extend (self.gcc_extra_flags)
except:
pass
try:
self.ld_flags.extend (... | from profile import Profile
class UnixProfile (Profile):
def __init__ (self):
Profile.__init__ (self)
self.name = 'unix'
self.gcc_flags = [ '-I%{prefix}/include' ]
self.ld_flags = [ '-L%{prefix}/lib' ]
self.env.set ('PATH', ':',
'%{prefix}/bin',
'/usr/bin',
'/bin',
'/usr/local/git/bin')
sel... | mit | Python |
3db2d2e4ab0a2b7dccf4084949e81706cff53dcb | allow + in the name | misli/softwarecollections,misli/softwarecollections,misli/softwarecollections,misli/softwarecollections | softwarecollections/scls/validators.py | softwarecollections/scls/validators.py | import re
from django.core.validators import RegexValidator
from django.utils.translation import ugettext_lazy as _
name_re = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.+-]*$')
validate_name = RegexValidator(name_re, _('Enter a valid name consisting of letters, numbers, underscores, hyphens, pluses or dots.'), 'invalid')
| import re
from django.core.validators import RegexValidator
from django.utils.translation import ugettext_lazy as _
name_re = re.compile(r'^[a-zA-Z0-9]([-a-zA-Z0-9_.]*[a-zA-Z0-9])?$')
name_re = re.compile(r'^[a-zA-Z0-9]+$')
validate_name = RegexValidator(name_re, _("Enter a valid name consisting of letters, numbers, u... | bsd-3-clause | Python |
a73f59ff261bb67cb60865b35dd24f5ef5db0412 | Add blinker dependency | LogicalDash/LiSE,LogicalDash/LiSE | LiSE/setup.py | LiSE/setup.py | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, public@zacharyspector.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either ver... | # This file is part of LiSE, a framework for life simulation games.
# Copyright (c) Zachary Spector, public@zacharyspector.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either ver... | agpl-3.0 | Python |
f716cf592340d8e83f4e20fb77ddfbd4b117457f | Add a newline if no --output param. | mpdehaan/jcp,filipenf/jcp | lib/jcp/__init__.py | lib/jcp/__init__.py | # Copyright 2015 Michael DeHaan <michael.dehaan/gmail>
#
# 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... | # Copyright 2015 Michael DeHaan <michael.dehaan/gmail>
#
# 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... | apache-2.0 | Python |
718ac246ac62e2a4b4a8dfaf0f89a75d10f81868 | change correct name | tuanquanghpvn/rest_exam | apps/category/mappers.py | apps/category/mappers.py | from marshmallow import (Schema, fields, post_load, validates_schema, ValidationError)
from contracts.category import (PostCategoryRequest, PutCategoryRequest, DeleteCategoryRequest)
from contracts.category import (ID, NAME, SLUG)
def _check_include_fields(data, require_key, include_key):
"""Check loading field v... | from marshmallow import (Schema, fields, post_load, validates_schema, ValidationError)
from contracts.category import (PostCategoryRequest, PusCategoryRequest, DeleteCategoryRequest)
from contracts.category import (ID, NAME, SLUG)
def _check_include_fields(data, require_key, include_key):
"""Check loading field v... | mit | Python |
15a12c3311d68e97d8876515cb92314b8720950f | Add tty=True to InteractiveCapability (#40) | openweave/cirque,openweave/cirque | cirque/capabilities/interactivecapability.py | cirque/capabilities/interactivecapability.py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | Python |
ee242b3cc33f5ba057387d048e8765f264075443 | Create proper __str__ for MessageThreads | ashbc/tgrsite,ashbc/tgrsite,ashbc/tgrsite | messaging/models.py | messaging/models.py | from django.db import models
from django.db.models import Count
from users.models import Member
class MessageThread(models.Model):
def __str__(self):
l = list(self.participants.all())
return str(', '.join([str(x) for x in l]))
participants = models.ManyToManyField(Member)
title = models.CharField(max_length=6... | from django.db import models
from django.db.models import Count
from users.models import Member
class MessageThread(models.Model):
def __str__(self):
l = list(self.participants.all())
return str(', '.join([str(x) for x in l]))
participants = models.ManyToManyField(Member)
title = models.CharField(max_length=6... | isc | Python |
c38e166c5d9e0fe8f3a30ed4be2a97b8f6c3521c | Fix document model absolute_url | liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin | apps/documents/models.py | apps/documents/models.py | from ckeditor.fields import RichTextField
from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from django.utils.functional import cached_property
from adhocracy4 import transforms
from adhocracy4.comments import models as comment_models
from adhocracy4.models import base
from ad... | from ckeditor.fields import RichTextField
from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from django.utils.functional import cached_property
from adhocracy4 import transforms
from adhocracy4.comments import models as comment_models
from adhocracy4.models import base
from ad... | agpl-3.0 | Python |
5aa3f6e6f81bcfee73f2169856957c03e042795e | Add unit test to cover the handler cleanup | StackStorm/st2,nzlosh/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,Plexxi/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2 | st2actions/tests/unit/test_scheduler_entrypoint.py | st2actions/tests/unit/test_scheduler_entrypoint.py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | apache-2.0 | Python |
49fe5069c38681686d3100f8303559a39fed0373 | Add force update | colajam93/dihts,colajam93/dihts,colajam93/dihts,colajam93/dihts | song/management/commands/songupdate.py | song/management/commands/songupdate.py | from django.core.management.base import BaseCommand, CommandError
from song.models import Song
import os.path
import plistlib
from xml.parsers.expat import ExpatError
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('path', help='Path to \'iTunes Music Library.xml\'')
... | from django.core.management.base import BaseCommand, CommandError
from song.models import Song
import os.path
import plistlib
from xml.parsers.expat import ExpatError
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('path', help='Path to \'iTunes Music Library.xml\'')
... | mit | Python |
7f7ee786caf3f5fa81c639244c6942e26d828311 | Update bottlespin.py | kallerdaller/Cogs-Yorkfield | bottlespin/bottlespin.py | bottlespin/bottlespin.py | import discord
from discord.ext import commands
from random import choice
class Bottlespin:
"""Spins a bottle and lands on a random user."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True, alias=["bottlespin"])
async def spin(self, ctx, role):
... | import discord
from discord.ext import commands
from random import choice
class Bottlespin:
"""Spins a bottle and lands on a random user."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True, alias=["bottlespin"])
async def spin(self, ctx, role):
... | mit | Python |
f7bcfa7924f066f23942df6fa252313d39601f84 | Update bottlespin.py | kallerdaller/Cogs-Yorkfield | bottlespin/bottlespin.py | bottlespin/bottlespin.py | import discord
from discord.ext import commands
from random import choice
class Bottlespin:
"""Spins a bottle and lands on a random user."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True, alias=["bottlespin"])
async def spin(self, ctx, role):
... | import discord
from discord.ext import commands
from random import choice
class Bottlespin:
"""Spins a bottle and lands on a random user."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True, alias=["bottlespin"])
async def spin(self, ctx, role):
... | mit | Python |
2619c396d980944802a3f7e0800e92794cc3de5a | Bump version 0.20.0rc12 --> 0.20.0rc13 | lbryio/lbry,lbryio/lbry,lbryio/lbry | lbrynet/__init__.py | lbrynet/__init__.py | import logging
__version__ = "0.20.0rc13"
version = tuple(__version__.split('.'))
logging.getLogger(__name__).addHandler(logging.NullHandler())
| import logging
__version__ = "0.20.0rc12"
version = tuple(__version__.split('.'))
logging.getLogger(__name__).addHandler(logging.NullHandler())
| mit | Python |
69657750b81379ade5d1aee8144a0ca5c1e9ec9f | Bump version 0.19.1 --> 0.19.2rc1 | lbryio/lbry,lbryio/lbry,lbryio/lbry | lbrynet/__init__.py | lbrynet/__init__.py | import logging
__version__ = "0.19.2rc1"
version = tuple(__version__.split('.'))
logging.getLogger(__name__).addHandler(logging.NullHandler())
| import logging
__version__ = "0.19.1"
version = tuple(__version__.split('.'))
logging.getLogger(__name__).addHandler(logging.NullHandler())
| mit | Python |
88c50c4dab54022696d7b724a0681be36c7aaa37 | Enhance comments | bowen0701/algorithms_data_structures | lc0055_jump_game.py | lc0055_jump_game.py | """Leetcode 55. Jump Game
Medium
URL: https://leetcode.com/problems/jump-game/
Given an array of non-negative integers, you are initially positioned at the
first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
E... | """Leetcode 55. Jump Game
Medium
URL: https://leetcode.com/problems/jump-game/
Given an array of non-negative integers, you are initially positioned at the
first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
E... | bsd-2-clause | Python |
abeb68361e1138bca83dc24ae710f60a4584c212 | Complete BFS sol | bowen0701/algorithms_data_structures | lc0542_01_matrix.py | lc0542_01_matrix.py | """Leetcode 542. 01 Matrix
Medium
URL: https://leetcode.com/problems/01-matrix/
Given a matrix consists of 0 and 1,
find the distance of the nearest 0 for each cell.
The distance between two adjacent cells is 1.
Example 1:
Input:
[[0,0,0],
[0,1,0],
[0,0,0]]
Output:
[[0,0,0],
[0,1,0],
[0,0,0]]
Example 2:
Input... | """Leetcode 542. 01 Matrix
Medium
URL: https://leetcode.com/problems/01-matrix/
Given a matrix consists of 0 and 1,
find the distance of the nearest 0 for each cell.
The distance between two adjacent cells is 1.
Example 1:
Input:
[[0,0,0],
[0,1,0],
[0,0,0]]
Output:
[[0,0,0],
[0,1,0],
[0,0,0]]
Example 2:
Input... | bsd-2-clause | Python |
b289fc24cab9ae863931db512fa164880df57d6c | Update print syntax | jdesboeufs/node-gdal,naturalatlas/node-gdal,naturalatlas/node-gdal,naturalatlas/node-gdal,jdesboeufs/node-gdal,jdesboeufs/node-gdal,naturalatlas/node-gdal,jdesboeufs/node-gdal | deps/glob-files.py | deps/glob-files.py | # -*- coding: utf-8 -*-
"""
collect files for gyp
workaround as "find" that comes with git on Windows seems to walk the whole directory
tree of the current drive (just sometimes)
argument "search pattern" according to
https://docs.python.org/2/library/glob.html
e.g.
"../src/*.cpp" => just look in "src" directory
"../... | # -*- coding: utf-8 -*-
"""
collect files for gyp
workaround as "find" that comes with git on Windows seems to walk the whole directory
tree of the current drive (just sometimes)
argument "search pattern" according to
https://docs.python.org/2/library/glob.html
e.g.
"../src/*.cpp" => just look in "src" directory
"../... | apache-2.0 | Python |
c7448ea590f9805b986d67d4f506b8cd0929b5bc | update API of Task Index | wemoo/wemoo-center,wemoo/wemoo-center,wemoo/wemoo-center | app/api/tasks.py | app/api/tasks.py | import datetime
import uuid
from flask import request
from bson.json_util import dumps
from bson.json_util import loads
from common import render
from app.api import api
from app.models.task import Task
@api.route('/tasks', methods=['GET'])
def tasks_index():
tasks = [task for task in Task.objects()]
task_l... | import datetime
import uuid
from flask import request
from bson.json_util import dumps
from bson.json_util import loads
from common import render
from app.api import api
from app.models.task import Task
@api.route('/tasks', methods=['GET'])
def tasks_index():
res = {'tasks': Task.objects(), 'time': datetime.dat... | mit | Python |
588273fd982ab844879024691bde6d8f6b11801b | add test stat | OPU-Surveillance-System/monitoring,OPU-Surveillance-System/monitoring,OPU-Surveillance-System/monitoring | master/scripts/planner/solvers/hyperparameter_optimization/test_stat_sa.py | master/scripts/planner/solvers/hyperparameter_optimization/test_stat_sa.py | import GPy
import GPyOpt
import numpy as np
from sys import path
import pickle
import time
from tqdm import tqdm
from random import shuffle
path.append("..")
path.append("../..")
path.append("../../..")
from uncertainty_battery_solver import UncertaintyBatterySimulatedAnnealingSolver, UncertaintyBatteryRandomSolver
im... | import GPy
import GPyOpt
import numpy as np
from sys import path
import pickle
import time
from tqdm import tqdm
path.append("..")
path.append("../..")
path.append("../../..")
from solver import SimulatedAnnealingSolver, RandomSolver
import map_converter as m
fs = open("../../../webserver/data/serialization/mapper.pi... | mit | Python |
30664867b7dbb62701320c37dfe0e1cb9a1e4c1a | Update __init__.py | snipsco/snipsskills,snipsco/snipsskills,snipsco/snipsskills,snipsco/snipsskills | snipsskills/__init__.py | snipsskills/__init__.py | # -*-: coding utf-8 -*-
""" snipsskills module """
__version__ = '0.1.6.3'
| # -*-: coding utf-8 -*-
""" snipsskills module """
__version__ = '0.1.6.2'
| mit | Python |
809bc5f29b2c7d5c41c558a4d5bb6773569900b6 | Normalize bitbucket push event. | reyha/zulip,jrowan/zulip,hackerkid/zulip,vikas-parashar/zulip,jackrzhang/zulip,amyliu345/zulip,amanharitsh123/zulip,reyha/zulip,zacps/zulip,vabs22/zulip,hackerkid/zulip,amanharitsh123/zulip,kou/zulip,ryanbackman/zulip,arpith/zulip,umkay/zulip,sharmaeklavya2/zulip,jrowan/zulip,blaze225/zulip,shubhamdhama/zulip,JPJPJPOPO... | zerver/views/webhooks/bitbucket.py | zerver/views/webhooks/bitbucket.py | from __future__ import absolute_import
from six import text_type
from typing import Any, Mapping
from django.http import HttpRequest, HttpResponse
from zerver.models import get_client, UserProfile
from zerver.lib.actions import check_send_message
from zerver.lib.response import json_success
from zerver.lib.validator... | from __future__ import absolute_import
from six import text_type
from typing import Any, Mapping
from django.http import HttpRequest, HttpResponse
from zerver.models import get_client, UserProfile
from zerver.lib.actions import check_send_message
from zerver.lib.response import json_success
from zerver.lib.validator... | apache-2.0 | Python |
ac547acbe59d780e7f23161bd70e722498b772cb | Bump version to 0.1.44 | botify-labs/python-simple-workflow,botify-labs/python-simple-workflow | swf/__init__.py | swf/__init__.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
version = (0, 1, 44)
__title__ = "python-simple-workflow"
__author__ = "Oleiade"
__license__ = "MIT"
__version__ = '.'.join(map(str, version))
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
version = (0, 1, 43)
__title__ = "python-simple-workflow"
__author__ = "Oleiade"
__license__ = "MIT"
__version__ = '.'.join(map(str, version))
| mit | Python |
3d7e02e58353fdc3290440344efd5591d233f449 | Make the flask app easier to import | barentsen/AstroGoldStars,barentsen/AstroGoldStars | bot/__init__.py | bot/__init__.py | import os
PACKAGEDIR = os.path.abspath(os.path.dirname(__file__))
from .webapp import goldstarsapp
| import os
PACKAGEDIR = os.path.abspath(os.path.dirname(__file__))
| mit | Python |
cbd490e10156c5fd848b4af1ab585f5c5f74f1a9 | bump v0.2.9 | ImageIntelligence/mimiron | mimiron/__init__.py | mimiron/__init__.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__version_info__ = (0, 2, 9)
__version__ = '.'.join([unicode(i) for i in __version_info__])
__author__ = 'David Vuong'
__author_email__ = 'david@imageintelligence.com'
| # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__version_info__ = (0, 2, 8)
__version__ = '.'.join([unicode(i) for i in __version_info__])
__author__ = 'David Vuong'
__author_email__ = 'david@imageintelligence.com'
| mit | Python |
35b7b581a7774caf1b449981a6dd6125db15f69c | Remove unused checkbox method | cbenhagen/kivy,mSenyor/kivy,darkopevec/kivy,aron-bordin/kivy,Cheaterman/kivy,vipulroxx/kivy,bionoid/kivy,JohnHowland/kivy,rnixx/kivy,jkankiewicz/kivy,inclement/kivy,jehutting/kivy,jffernandez/kivy,xpndlabs/kivy,MiyamotoAkira/kivy,adamkh/kivy,janssen/kivy,angryrancor/kivy,arcticshores/kivy,xpndlabs/kivy,bhargav2408/kivy... | kivy/uix/checkbox.py | kivy/uix/checkbox.py | '''
CheckBox
========
.. versionadded:: 1.4.0
.. image:: images/checkbox.png
:align: right
:class:`CheckBox` is a specific two-state button that can be either checked or
unchecked. If the CheckBox is in a Group, it becomes a Radio button.
As with the :class:`~kivy.uix.togglebutton.ToggleButton`, only one Radio b... | '''
CheckBox
========
.. versionadded:: 1.4.0
.. image:: images/checkbox.png
:align: right
:class:`CheckBox` is a specific two-state button that can be either checked or
unchecked. If the CheckBox is in a Group, it becomes a Radio button.
As with the :class:`~kivy.uix.togglebutton.ToggleButton`, only one Radio b... | mit | Python |
55965fdb7d5e0c6a2f8f6137a07d50f6212ed1d3 | Add ImageNotFound error. | sassoftware/mint,sassoftware/mint,sassoftware/mint,sassoftware/mint,sassoftware/mint | mint/rest/errors.py | mint/rest/errors.py | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import mint_error
class ItemNotFound(mint_error.MintError):
pass
class InvalidSearchType(mint_error.MintError):
pass
class ProductNotFound(ItemNotFound):
pass
class ProductVersionNotFound(ItemNotFound):
pass
class StageNotFound... | #
# Copyright (c) 2009 rPath, Inc.
#
# All Rights Reserved
#
from mint import mint_error
class ItemNotFound(mint_error.MintError):
pass
class InvalidSearchType(mint_error.MintError):
pass
class ProductNotFound(ItemNotFound):
pass
class ProductVersionNotFound(ItemNotFound):
pass
class StageNotFound... | apache-2.0 | Python |
59a9d81354ef94b7bb3659943b6f87a78cc9181a | Bump version to 0.1.12 | mirumee/django-prices-openexchangerates | setup.py | setup.py | #! /usr/bin/env python
import os
from setuptools import setup
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings')
CLASSIFIERS = [
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Progr... | #! /usr/bin/env python
import os
from setuptools import setup
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings')
CLASSIFIERS = [
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Progr... | bsd-3-clause | Python |
e7ae2322b299face9a1209a4ce3f097a5f9522e1 | add packages to setup.py | shellphish/rex,shellphish/rex | setup.py | setup.py | from distutils.core import setup
import subprocess
#TRACER_URL = 'git+ssh://git@git.seclab.cs.ucsb.edu:/cgc/tracer.git#egg=tracer'
#ANGROP_URL = 'git+ssh://git@git.seclab.cs.ucsb.edu:/angr/angrop.git#egg=angrop'
#
## this is really gross, but you do what you gotta do
#if subprocess.call(['pip', 'install', TRACER_URL])... | from distutils.core import setup
import subprocess
#TRACER_URL = 'git+ssh://git@git.seclab.cs.ucsb.edu:/cgc/tracer.git#egg=tracer'
#ANGROP_URL = 'git+ssh://git@git.seclab.cs.ucsb.edu:/angr/angrop.git#egg=angrop'
#
## this is really gross, but you do what you gotta do
#if subprocess.call(['pip', 'install', TRACER_URL])... | bsd-2-clause | Python |
b59ee3663555e353403b293680b5ea39002e0dca | Change version in setup.py | scarchik/opentsdb-py | setup.py | setup.py | from setuptools import setup
from opentsdb import __version__
setup(
name='opentsdb-py',
version=__version__,
author='Sergey Suglobov',
author_email='s.suglobov@gmail.com',
py_modules=['opentsdb'],
keywords="opentsdb, tsdb",
url='https://github.com/scarchik/opentsdb-py',
description='... | from setuptools import setup
setup(
name='opentsdb-py',
version='0.1.0',
author='Sergey Suglobov',
author_email='s.suglobov@gmail.com',
py_modules=['opentsdb'],
keywords="opentsdb, tsdb",
url='https://github.com/scarchik/opentsdb-py',
description='Python client for OpenTSDB',
insta... | mit | Python |
003edcd59b3a2edac189f7e0432abe7d0aa808f2 | add 3.10 to supported pythons | pawelmhm/scrapyrt,pawelmhm/scrapyrt | setup.py | setup.py | # -*- coding: utf-8 -*-
#!/usr/bin/python
from setuptools import setup, find_packages
from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyrt/VERSION'), 'rb') as f:
version = f.read().decode('ascii').strip()
setup(
name="scrapyrt",
version=version,
author='Scrapinghub',
autho... | # -*- coding: utf-8 -*-
#!/usr/bin/python
from setuptools import setup, find_packages
from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyrt/VERSION'), 'rb') as f:
version = f.read().decode('ascii').strip()
setup(
name="scrapyrt",
version=version,
author='Scrapinghub',
autho... | bsd-3-clause | Python |
3d9fb4a8f07ec64dbeb96305e601eda078d9c072 | Update setup.py | edarin/population_simulator | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import src
setup(
# le nom de votre bibliothèque, tel qu'il apparaitre sur pypi
name='population_simulator',
# la version du code
version='0.1.0',
packages=find_packages(),
author="edarin, AlexisEid... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import src
setup(
# le nom de votre bibliothèque, tel qu'il apparaitre sur pypi
name='population_simulator',
# la version du code
version='0.0',
packages=find_packages(),
author="edarin, AlexisEidel... | agpl-3.0 | Python |
bd57d612cebe328769f5a87d45385a2f3b45f930 | bump version | hermannsblum/eve-docs,charlesflynn/eve-docs,hermannsblum/eve-docs,rs/eve-docs | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
LONG_DESCRIPTION = open('README.rst').read()
setup(
name='Eve-docs',
version='0.1.3',
url='https://github.com/charlesflynn/eve-docs',
author='Charles Flynn',
author_email='git@irab.org',
description='Generates documentation for ... | #!/usr/bin/env python
from setuptools import setup, find_packages
LONG_DESCRIPTION = open('README.rst').read()
setup(
name='Eve-docs',
version='0.1.2',
url='https://github.com/charlesflynn/eve-docs',
author='Charles Flynn',
author_email='git@irab.org',
description='Generates documentation for ... | mit | Python |
d10589b8739d0b24637f94754fbd87a907dfb784 | bump version to 1.0.1 | ulamlabs/celery-mock | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'celery',
'mock',
]
test_requirements = [
]
setup(
name='celery-mock',
version='1.0.1',
description=(
"celery-mock allows yo... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = [
'celery',
'mock',
]
test_requirements = [
]
setup(
name='celery-mock',
version='0.1.1',
description=(
"celery-mock allows yo... | mit | Python |
e42e4b46f69b4b353eccfa5c6d346a469e88b9ac | Remove rest import | brewpeople/brewmeister,brewpeople/brewmeister,brewpeople/brewmeister | brew/__init__.py | brew/__init__.py | from flask import Flask
from flask.ext.pymongo import PyMongo
from flask.ext.babel import Babel
from brew.io import TemperatureController
from brew.state import Machine
app = Flask(__name__)
app.config.from_object('brew.settings')
mongo = PyMongo(app)
babel = Babel(app)
controller = TemperatureController(app)
machin... | from flask import Flask
from flask.ext.pymongo import PyMongo
from flask.ext.babel import Babel
from brew.io import TemperatureController
from brew.state import Machine
app = Flask(__name__)
app.config.from_object('brew.settings')
mongo = PyMongo(app)
babel = Babel(app)
controller = TemperatureController(app)
machin... | mit | Python |
5c36fef32df8f755d0958c6eef37cbc9887513fe | Bump version! | XereoNet/SpaceGDN,XereoNet/SpaceGDN,XereoNet/SpaceGDN | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
from distutils.sysconfig import get_python_lib
setup(
name='SpaceGDN',
version='2.0.0-rc1',
url='https://github.com/connor4312/querytree',
author='Connor Peet',
author_email='connor@connorpeet.com',
description='Game Delivery Net... | import os
import sys
from setuptools import setup, find_packages
from distutils.sysconfig import get_python_lib
setup(
name='SpaceGDN',
version='2.0.0-dev',
url='https://github.com/connor4312/querytree',
author='Connor Peet',
author_email='connor@connorpeet.com',
description='Game Delivery Net... | agpl-3.0 | Python |
2c23508f811590546222578fefa0211813e0fb74 | Fix typo. | wikibusiness/aioelasticsearch | setup.py | setup.py | import io
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version():
regex = r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)"""
with io.open('aioelasticsearch/__init__.py', mode='rt', encoding='utf-8') as fp: # noqa
ret... | import io
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version():
regex = r"""__version__\s+=\s+(?P<quote>['"])(?P<version>.+?)(?P=quote)"""
with io.open('aioelasticsearch/__ini__.py', mode='rt', encoding='utf-8') as fp: # noqa
retu... | mit | Python |
8b0589131dc67d0b030f95583360eb0dd9ee47ce | test cmd | Intelimetrica/coati | setup.py | setup.py | """Coati setup module
"""
from setuptools import setup, find_packages
DESCRIPTION = "A tool for programmatically generating PowerPoint reports."
LONG_DESCRIPTION = """
**coati** is a tool that provide a fast simple and highly customizable way to programmatically
create PowerPoint presentations.
coati works using a ... | """Coati setup module
"""
from setuptools import setup, find_packages
DESCRIPTION = "A tool for programmatically generating PowerPoint reports."
LONG_DESCRIPTION = """
**coati** is a tool that provide a fast simple and highly customizable way to programmatically
create PowerPoint presentations.
coati works using a ... | mit | Python |
f7f42b5e942b2f07dd32ab8f067bb928f2c8eb90 | Prepare openprocurement.api 2.4.6. | openprocurement/openprocurement.api | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
requires = [
'barbecue',
'chaussette',
'cornice',
'couchdb-schematics',
'gevent',
'iso8601',
'jsonpatch',
'li... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
requires = [
'barbecue',
'chaussette',
'cornice',
'couchdb-schematics',
'gevent',
'iso8601',
'jsonpatch',
'li... | apache-2.0 | Python |
a53b0f540b8aac87f96743bf4d383607ad5a398f | Fix install_requires to limit Django version <2.0. | ethoms/django-djaken,ethoms/django-djaken | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-djaken',
version='2.0.1',
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-djaken',
version='2.0.1',
... | bsd-2-clause | Python |
1c8ff6036bc8d41ebc1d6222300e6da545d8eaba | fix up broken buildout on gtfsdb | OpenTransitTools/services | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'ott.data',
'ott.utils',
'ott.geocoder',
'ott.otp_client',
... | import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'ott.data',
'ott.utils',
'ott.geocoder',
'ott.otp_client',
... | mpl-2.0 | Python |
7972a5d26144bdf1c6ece6451fa06fb3ecc52e61 | Use setuptools instead of distutils. | coleifer/unqlite-python,coleifer/unqlite-python | setup.py | setup.py | import glob
import warnings
from setuptools import setup
from setuptools.extension import Extension
try:
from Cython.Build import cythonize
except ImportError:
cython_installed = False
warnings.warn('Cython not installed, using pre-generated C source file.')
else:
cython_installed = True
if cython_in... | import glob
import warnings
from distutils.core import setup, Extension
try:
from Cython.Build import cythonize
except ImportError:
cython_installed = False
warnings.warn('Cython not installed, using pre-generated C source file.')
else:
cython_installed = True
if cython_installed:
python_source =... | mit | Python |
fea35ec99c3221ab371ad9098694bc3bc1711ce9 | Add joblib as a dependency | cancan101/nolearn,williford/nolearn,Adai0808/nolearn,rubensmachado/nolearn,scottlittle/nolearn,dnouri/nolearn,BenjaminBossan/nolearn,josephmisiti/nolearn | setup.py | setup.py | import os
from setuptools import setup, find_packages
version = '0.3.2dev'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
except IOError:
README = CHANGES = ''
install_requires = [
... | import os
from setuptools import setup, find_packages
version = '0.3.2dev'
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
except IOError:
README = CHANGES = ''
install_requires = [
... | mit | Python |
d6e903dbfbb5fa4033250030d17294a9b7ea8e30 | Declare zip_safe == False | pv/asv,giltis/asv,edisongustavo/asv,mdboom/asv,airspeed-velocity/asv,ericdill/asv,pv/asv,spacetelescope/asv,edisongustavo/asv,qwhelan/asv,cpcloud/asv,airspeed-velocity/asv,waylonflinn/asv,ericdill/asv,qwhelan/asv,ericdill/asv,waylonflinn/asv,waylonflinn/asv,pv/asv,pv/asv,ericdill/asv,qwhelan/asv,spacetelescope/asv,mdbo... | setup.py | setup.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
# A py.test test command
class PyTest(TestCommand):
... | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
# A py.test test command
class PyTest(TestCommand):
... | bsd-3-clause | Python |
74882b1c5da44f06670db4e5432df0536aa117ab | Bump version | bwarren2/django-basic-blog,wlonk/django-basic-blog,wlonk/django-basic-blog,bwarren2/django-basic-blog | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-basic-blog',
version='0.2',
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-basic-blog',
version='0.1',
... | mit | Python |
ffdd78f613c99006a4547d56b86c52fd2bd261d3 | clean up import; print notes about config file | BBN-Q/QGL,BBN-Q/QGL | QGL/config.py | QGL/config.py | #Package configuration information
import json
import os.path
import sys
import config_location
# Load the configuration from the json file
# and populate the global configuration dictionary
QGLCfgFile = config_location.get_config_path()
print('Note: using QGLCfgFile [%s]' % QGLCfgFile)
if not os.path.isfile(QGLCf... | #Package configuration information
import json
import os.path
import sys
from . import config_location
# Load the configuration from the json file
# and populate the global configuration dictionary
QGLCfgFile = config_location.get_config_path()
if not os.path.isfile(QGLCfgFile):
rootFolder = os.path.dirname(os... | apache-2.0 | Python |
aad093c4b7d94afbb36b9097eeafa2a13f4533ec | Exclude tests for real | eventbrite/curator | setup.py | setup.py | import os
import re
from setuptools import (
find_packages,
setup,
)
version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]")
def get_version():
base = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base, 'curator/__init__.py')) as initf:
for line in initf:
... | import os
import re
from setuptools import (
find_packages,
setup,
)
version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]")
def get_version():
base = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base, 'curator/__init__.py')) as initf:
for line in initf:
... | mit | Python |
797d5c3741255acf2f76f76cfd0bc178fe15504e | Update setup.py | arteria/django-compat,arteria/django-compat | setup.py | setup.py | # -*- encoding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="django-compat",
version="0.0.1",
author_email="admin@arteria.ch",
packages=find_packages(),
include_package_data=True,
description="For- and backwards compatibility layer for Django 1.4 to ... | # -*- encoding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="django-compat",
version="0.0.1",
author_email="admin@arteria.ch",
packages=find_packages(),
include_package_data=True,
)
| mit | Python |
680249c46e92aa4102d8ec042f61900f44289fdb | Rename entrypoints | sholsapp/py509 | setup.py | setup.py | #!/usr/bin/env python
import os
import subprocess
from setuptools import setup, find_packages, Command
entry_points = {
'console_scripts': [
'ssl-diff = py509.bin.diff:main',
'ssl-get = py509.bin.get:main',
'ssl-ls = py509.bin.ls:main',
'ssl-verify = py509.bin.verify:main',
],
}
class Pex(Comm... | #!/usr/bin/env python
import os
import subprocess
from setuptools import setup, find_packages, Command
entry_points = {
'console_scripts': [
'pyssl-diff = py509.bin.diff:main',
'pyssl-get = py509.bin.get:main',
'pyssl-ls = py509.bin.ls:main',
'pyssl-verify = py509.bin.verify:main',
],
}
class ... | apache-2.0 | Python |
195536fa00b6370ee836687a6dade74c4438527b | add more dependencies | gee-community/gee_tools | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from geetools import __version__
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# stri... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from geetools import __version__
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# stri... | mit | Python |
6dfa27b331ecbf60de28e149b587bdcfc634ac87 | add package data in setup.py | uhuramedia/Havel,uhuramedia/Havel | setup.py | setup.py | import os
from setuptools import setup, find_packages
VERSION = "0.2"
setup(
name="HavelCMS",
version = VERSION,
author="Julian Bez",
author_email="julian@freshmilk.tv",
url="https://github.com/Freshmilk/",
description="""FM resource model""",
packages=find_packages(),
namespace_packa... | import os
from setuptools import setup, find_packages
VERSION = "0.2"
setup(
name="HavelCMS",
version = VERSION,
author="Julian Bez",
author_email="julian@freshmilk.tv",
url="https://github.com/Freshmilk/",
description="""FM resource model""",
packages=find_packages(),
namespace_packa... | bsd-3-clause | Python |
3b67d303c085ea2e3a33eb07dfb7391a546ca4e4 | Bump version | thombashi/pytablereader,thombashi/pytablereader,thombashi/pytablereader | setup.py | setup.py | import os.path
import setuptools
import sys
REQUIREMENT_DIR = "requirements"
needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []
with open("README.rst") as fp:
long_description = fp.read()
with open(os.path.join("docs", "pages", "intro... | import os.path
import setuptools
import sys
REQUIREMENT_DIR = "requirements"
needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
pytest_runner = ["pytest-runner"] if needs_pytest else []
with open("README.rst") as fp:
long_description = fp.read()
with open(os.path.join("docs", "pages", "intro... | mit | Python |
b946768acb8c9e34dbb72cb6d3bc33a7e67f4548 | Add download url and long description | sashgorokhov/python-ninegag | setup.py | setup.py | from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(
requires=['beautifulsoup4', 'requests'],
name='python-ninegag',
version='0.1',
py_modules=['pyninegag'],
url='https://github.com/sashgorokhov/python-ninegag',
download_url='https://github... | from distutils.core import setup
setup(
requires=['beautifulsoup4', 'requests'],
name='python-ninegag',
version='0.1',
py_modules=['pyninegag'],
url='https://github.com/sashgorokhov/python-ninegag',
license='MIT',
author='sashgorokhov',
author_email='sashgorokhov@gmail.com',
descrip... | mit | Python |
30098837525419bbebec5a39a645ac5a999dbc32 | fix email addres | CamDavidsonPilon/lifetimes,aprotopopov/lifetimes | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup
exec(compile(open('lifetimes/version.py').read(),
'lifetimes/version.py', 'exec'))
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='Lifetimes',
version=__version__,
descr... | #!/usr/bin/env python
import os
from distutils.core import setup
exec(compile(open('lifetimes/version.py').read(),
'lifetimes/version.py', 'exec'))
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='Lifetimes',
version=__version__,
descr... | mit | Python |
acb6a0071b38037852a0fa806eefe5143ce5c81e | Update setup.py for 3.7.1 version. | godaddy/Thespian,kquick/Thespian,godaddy/Thespian,kquick/Thespian | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'thespian',
version = '3.7.1',
description = 'Python Actor concurrency library',
author = 'Kevin Quick',
author_email = 'quick@sparq.org',
url = 'http://thespianpy.com',
license = 'MIT',
scripts = [ 'thespianShell.py' ],
pack... | from setuptools import setup, find_packages
setup(
name = 'thespian',
version = '3.7.0',
description = 'Python Actor concurrency library',
author = 'Kevin Quick',
author_email = 'quick@sparq.org',
url = 'http://thespianpy.com',
license = 'MIT',
scripts = [ 'thespianShell.py' ],
pack... | mit | Python |
0a107cfad650e0b620e32aad73e2ce819521d637 | Update setup.py | igor-shevchenko/rutermextract | setup.py | setup.py | from setuptools import setup
import sys
VERSION = '0.2'
install_requires = [
'pymorphy2 >=0.8'
]
if sys.version_info < (2, 7):
install_requires.append('backport_collections >=0.1')
if sys.version_info < (3, 4):
install_requires.append('enum34 >=1.0')
setup(
name = 'rutermextract',
packages = ['r... | from setuptools import setup
import sys
VERSION = '0.2'
install_requires = [
'pymorphy2 >=0.8'
]
if sys.version_info < (2, 7):
install_requires.append('backport_collections >=0.1')
if sys.version_info < (3, 4):
install_requires.append('enum34 >=1.0')
setup(
name = 'rutermextract',
packages = ['r... | mit | Python |
3ba93368bc80443200ccb8261e9014821a39ae99 | add "python 3" classifier (#117) | googleapis/proto-plus-python | setup.py | setup.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | Python |
0cbf46a25e56b0af6520b7e512f93f6d01a3a879 | Change email | scrapinghub/dateparser | setup.py | setup.py | import re
from setuptools import setup, find_packages
__version__ = re.search(r"__version__.*\s*=\s*[']([^']+)[']",
open('dateparser/__init__.py').read()).group(1)
introduction = re.sub(r':members:.+|..\sautomodule::.+|:class:|:func:|:ref:',
'', open('docs/introduction.rs... | import re
from setuptools import setup, find_packages
__version__ = re.search(r"__version__.*\s*=\s*[']([^']+)[']",
open('dateparser/__init__.py').read()).group(1)
introduction = re.sub(r':members:.+|..\sautomodule::.+|:class:|:func:|:ref:',
'', open('docs/introduction.rs... | bsd-3-clause | Python |
60fb28b154cce5803f6ac3057d0aaf68a667eb72 | bump version to 1.2.0 | nuagenetworks/vspkgenerator,nuagenetworks/vspkgenerator | setup.py | setup.py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# no... | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# no... | bsd-3-clause | Python |
ed96bfd3dae4a2f31699bda7453905a8652d646b | Add biryani dependency. | openchordcharts/openchordcharts-api,openchordcharts/web-api | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = ['babel', 'biryani', 'pymongo', 'pyramid', 'suq-monpyjama']
setup(name='open-chord-charts... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = ['biryani', 'pymongo', 'pyramid', 'suq-monpyjama']
setup(name='open-chord-charts',
... | agpl-3.0 | Python |
c6124ec776522d957658fc1caaba78e25d5ee774 | update version number | katzwigmore/SSVF-Repositry-DQ-Processor | setup.py | setup.py | from distutils.core import setup
import py2exe
setup(
console=[{
"script": "RepositoryDQProcessor.py",
"version": "1.23",
"author": "David Katz-Wigmore",
"name": "SSVF DQ Repository Processor",
"description": "A program to facilitate the processing of the monthly SSVF DQ .pd... | from distutils.core import setup
import py2exe
setup(
console=[{
"script": "RepositoryDQProcessor.py",
"version": "1.11",
"author": "David Katz-Wigmore",
"name": "SSVF DQ Repository Processor",
"description": "A program to facilitate the processing of the monthly SSVF DQ .pd... | mit | Python |
8ec3656897f4feebda9b7d969f5d59b34bad774f | remove multimechanize from setup | karec/oct,TheGhouls/oct,karec/oct,TheGhouls/oct,TheGhouls/oct | setup.py | setup.py | import os
from setuptools import setup
from oct import __version__
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
with open('README.rst') as f:
long_description = f.read()
setup(
name='oct',
version=__version__,
author='Emmanuel Valette',
author_email='manu.valette@gmail.com',
packages... | import os
from setuptools import setup
from oct import __version__
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
with open('README.rst') as f:
long_description = f.read()
setup(
name='oct',
version=__version__,
author='Emmanuel Valette',
author_email='manu.valette@gmail.com',
packages... | mit | Python |
74f3a68a70829214ddaee19f2a0720e2270d020f | install docs, examples and tests to share | bzimmer/pysmug | setup.py | setup.py | #!/usr/bin/env python
# Written by Brian Zimmer
import os
import glob
import pysmug
from distutils.core import setup
from distutils.cmd import Command
from distutils.errors import DistutilsExecError
from distutils.command.sdist import sdist as _sdist
class epydoc(Command):
description = "Builds the documentation."... | #!/usr/bin/env python
# Written by Brian Zimmer
import os
import pysmug
from distutils.core import setup
from distutils.cmd import Command
from distutils.errors import DistutilsExecError
from distutils.command.sdist import sdist as _sdist
class epydoc(Command):
description = "Builds the documentation."
user_opti... | mit | Python |
712e4b5f8e2074ba9b126c5eb6d3e9fd81b81f11 | Update 0.2.7 | chen2aaron/django-editormd,chen2aaron/django-editormd | setup.py | setup.py | from setuptools import setup
setup(
name='django-editormd',
version='0.2.7',
description='django-editormd package helps integrate editor.md with Django.',
long_description=open('README.md').read(),
author='xixijun',
author_email='chen2aaron@gmail.com',
packages=['editormd'],
include_pac... | from setuptools import setup
setup(
name='django-editormd',
version='0.2.6',
description='django-editormd package helps integrate editor.md with Django.',
long_description=open('README.md').read(),
author='xixijun',
author_email='chen2aaron@gmail.com',
packages=['editormd'],
include_pac... | mit | Python |
1ef68d12aac1766a9558fe682b95ffc5324d0837 | update setup dependency | biothings/biothings_explorer,biothings/biothings_explorer | setup.py | setup.py | from setuptools import setup
install_requires = [
'jupyter',
'notebook==5.7.5',
'tornado==4.5.3',
'jsonschema>=3.0.1',
'networkx>=2.3',
'jsonpath-rw>=1.4.0',
'requests>=2.21.0',
'graphviz>=0.11.1',
'aiohttp',
'pandas'
]
setup(
name="biothings_explorer",
version="0.0.1... | from setuptools import setup
install_requires = [
'jsonschema>=3.0.1',
'networkx>=2.3',
'jsonpath-rw>=1.4.0',
'requests>=2.21.0',
'graphviz>=0.11.1',
'aiohttp'
]
setup(
name="biothings_explorer",
version="0.0.1",
author="Jiwen Xin, Chunlei Wu",
author_email="cwu@scripps.edu",... | apache-2.0 | Python |
45f9ba2737d905ecfc1d0f822bbb448c03cebad7 | Bump version to 0.11.2 | Thor77/TeamspeakStats,Thor77/TeamspeakStats | setup.py | setup.py | from setuptools import setup
setup(
name='tsstats',
version='0.11.2',
author='Thor77',
author_email='thor77@thor77.org',
description='A simple Teamspeak stats-generator',
keywords='ts3 teamspeak teamspeak3 tsstats teamspeakstats',
url='https://github.com/Thor77/TeamspeakStats',
packages... | from setuptools import setup
setup(
name='tsstats',
version='0.11.1',
author='Thor77',
author_email='thor77@thor77.org',
description='A simple Teamspeak stats-generator',
keywords='ts3 teamspeak teamspeak3 tsstats teamspeakstats',
url='https://github.com/Thor77/TeamspeakStats',
packages... | mit | Python |
4147d050b26dd7499536c5d532f90368aee07550 | Bump default version to 1.2.18 | codacy/python-codacy-coverage | setup.py | setup.py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f... | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f... | bsd-3-clause | Python |
9a16b8190ecf3562383be30bd9620c5abc1b9098 | Fix setup | alfie-max/Publish | setup.py | setup.py | from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Publish',
version='1.2.0',
author='Alfred Dominic, Shahul Hameed',
author_email='alfie.2012@gmail.com',
packages=find_packages(exclude=[]),
scripts=['publish.py','README.md'],
url='https://github.com/a... | from distutils.core import setup
from setuptools import setup, find_packages
setup(
name='Publish',
version='1.2.0',
author='Alfred Dominic, Shahul Hameed',
author_email='alfie.2012@gmail.com',
packages=find_packages(exclude=[]),
scripts=['publish.py'],
url='https://github.com/alfie-max/pub... | mit | Python |
4e6a498c64a95283d52d9f6ca54cadaaab7543d2 | Update version | LordDarkula/chess_py | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import setuptools
with open("README.md", 'r') as f:
long_description = f.read()
setup(
name='chess_py',
version='2.7.6',
description='Python chess client',
long_description=long_description,
platforms='MacOS X, Windows, Linux',
classifier... | #!/usr/bin/env python
from setuptools import setup
import setuptools
with open("README.md", 'r') as f:
long_description = f.read()
setup(
name='chess_py',
version='2.7.5',
description='Python chess client',
long_description=long_description,
platforms='MacOS X, Windows, Linux',
classifier... | mit | Python |
b4a5779592e1484fbf9da9468e3d9788f3f058bf | Bump up version, update requirements | hivelocity/djiki,hivelocity/djiki | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name = 'djiki',
version = '0.2',
description = 'Django Wiki Application',
url = 'https://github.com/emesik/djiki/',
long_description = open('README.rst').read(),
author = 'Michał Sałaban',
author_email = 'michal... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name = 'djiki',
version = '0.1.0',
description = 'Django Wiki Application',
url = 'https://github.com/emesik/djiki/network',
long_description = open('README.rst').read(),
author = 'Michał Sałaba... | bsd-2-clause | Python |
9659c527a14a101fc6f710d15fae4b56684ac119 | expand pypi classifiers | 0compute/xtraceback | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
# under test we do not want the nose entry point installed because it screws up
# coverage as the xtraceback module is imported too early
if "XTRACEBACK_NO_NOSE" in os.environ:
entry_points = None
else:
entry_points = {
"nose.plugins": ("xt... | #!/usr/bin/env python
import os
from setuptools import setup
# under test we do not want the nose entry point installed because it screws up
# coverage as the xtraceback module is imported too early
if "XTRACEBACK_NO_NOSE" in os.environ:
entry_points = None
else:
entry_points = {
"nose.plugins": ("xt... | mit | Python |
ccf5d474b08fb687dec819962ab1ef80747fb096 | update setup.py | eugene-eeo/scell | setup.py | setup.py | from distutils.core import setup
setup(
name='scell',
version='0.1.3',
description='simple wrapper atop select',
license='MIT',
author='Eugene Eeo',
author_email='packwolf58@gmail.com',
url='https://github.com/eugene-eeo/scell',
packages=['scell'],
platforms='any',
classifiers=... | from distutils.core import setup
setup(
name='scell',
version='0.1.2',
description='simple wrapper atop select',
license='MIT',
author='Eugene Eeo',
author_email='packwolf58@gmail.com',
url='https://github.com/eugene-eeo/scell',
packages=['scell'],
platforms='any',
classifiers=... | mit | Python |
eb6a5fbb1a704ca9297ee9a87459edcf0a5859f6 | Fix script name | initios/flake8-junit-report | setup.py | setup.py | #!/usr/bin/env python
# Copyright 2015 Initios Desarrollos
#
# All rights reserved
import os
import setuptools
base_dir = os.path.dirname(__file__)
about = {}
with open(os.path.join(base_dir, 'junit_conversor', '__about__.py')) as f:
exec(f.read(), about)
with open(os.path.join(base_dir, 'README.rst')) as read... | #!/usr/bin/env python
# Copyright 2015 Initios Desarrollos
#
# All rights reserved
import os
import setuptools
base_dir = os.path.dirname(__file__)
about = {}
with open(os.path.join(base_dir, 'junit_conversor', '__about__.py')) as f:
exec(f.read(), about)
with open(os.path.join(base_dir, 'README.rst')) as read... | bsd-3-clause | Python |
715ae88d250a4f5b86a49ae2bc9ea3e5764dcfa2 | Bump astropy and ccdproc version requirements | mwcraig/msumastro | setup.py | setup.py | from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytes... | from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytes... | bsd-3-clause | Python |
75f57ca4fdeb68b4aa65113e6a2d600ed4fd9a11 | Change name of project in setup.py to "mongo-orchestration". | wonderslug/mongo-orchestration,wonderslug/mongo-orchestration,ajdavis/mongo-orchestration,llvtt/mongo-orchestration-1,10gen/mongo-orchestration,agilemobiledev/mongo-orchestration,amidvidy/mongo-orchestration,ajdavis/mongo-orchestration,agilemobiledev/mongo-orchestration,TylerBrock/mongo-orchestration,llvtt/mongo-orches... | setup.py | setup.py | #!/usr/bin/python
import os
import sys
extra_deps = []
extra_test_deps = []
if sys.version_info[:2] == (2, 6):
extra_deps.append('argparse')
extra_test_deps.append('unittest2')
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools(... | #!/usr/bin/python
import os
import sys
extra_deps = []
extra_test_deps = []
if sys.version_info[:2] == (2, 6):
extra_deps.append('argparse')
extra_test_deps.append('unittest2')
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools(... | apache-2.0 | Python |
3f0c6306f97222cf1419a5f47e9b7f712bc3e9ce | Remove unneeded setup attributes. (#19) | junaruga/rpm-py-installer,junaruga/rpm-py-installer | setup.py | setup.py | import os
import sys
import setuptools
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info
from rpm_py_installer.version import VERSION
def install_rpm_py():
if sys.platform in ['darwin', 'linux']:
python_path = s... | import os
import sys
import setuptools
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info
from rpm_py_installer.version import VERSION
def install_rpm_py():
if sys.platform in ['darwin', 'linux']:
python_path = s... | mit | Python |
4af264108c397a2df70ecaae6b61f6f6c170e164 | Add keywords to setup.py. | nstockton/speechlight,nstockton/speechlight | setup.py | setup.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Future Modules:
from __future__ import annotations
# Built-in Modules:
import pathlib
import platform
import sys
fro... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Future Modules:
from __future__ import annotations
# Built-in Modules:
import pathlib
import platform
import sys
fro... | mpl-2.0 | Python |
b03d1baa00e307ffdab0e657c48cba667275d2b4 | remove specific python version tags | mk-fg/python-pulse-control,mk-fg/python-pulse-control | setup.py | setup.py | #!/usr/bin/env python2
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os, sys
# Error-handling here is to allow package to be built w/o README included
try:
readme = open(os.path.join(
os.path.dirname(__file__), 'README.rst' )).read()
except IOError: readme = ''
setup(
name = 'pulsect... | #!/usr/bin/env python2
#-*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os, sys
# Error-handling here is to allow package to be built w/o README included
try:
readme = open(os.path.join(
os.path.dirname(__file__), 'README.rst' )).read()
except IOError: readme = ''
setup(
name = 'pulsect... | mit | Python |
e1b766c639861bc158ccf0b9c2070a8ce3d8a236 | Fix the missing dependency | incuna/incuna-internal-social-auth | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='incuna-internal-social-auth',
version='0.1',
url='http://github.com/incuna/incuna-internal-social-auth',
packages=find_packages(),
include_package_data=True,
description='Django Social Auth extras for the Incuna internal apps.',
long... | from setuptools import find_packages, setup
setup(
name='incuna-internal-social-auth',
version='0.1',
url='http://github.com/incuna/incuna-internal-social-auth',
packages=find_packages(),
include_package_data=True,
description='Django Social Auth extras for the Incuna internal apps.',
long... | bsd-2-clause | Python |
8df9f32b7ac7bfa82782708a604825fc49e15d6c | Tweak py2exe options. | direvus/third,direvus/third | setup.py | setup.py | from distutils.core import setup
from glob import glob
import py2exe
setup(
name = "third",
description = "That's How I Roll Dice",
version = "1.0",
windows = [{
"script": "third.py",
"icon_resources": [(1, "app.ico")]
}],
options = {
"py2exe": {
"packages"... | from distutils.core import setup
from glob import glob
import py2exe
setup(
name = "third",
description = "That's How I Roll Dice",
version = "1.0",
windows = [{
"script": "third.py",
"icon_resources": [(1, "app.ico")]
}],
options = {
"py2exe": {
"packages"... | bsd-2-clause | Python |
f33286e047e23016bef3bb900c06eb4e0a27da08 | Exclude long line from flake8 testing | czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_faq import __version__
REQUIREMENTS = [
'aldryn-apphooks-config>=0.2.4',
'aldryn-reversion>=0.0.2,<0.1.0',
'aldryn-search',
'aldryn-translation-tools>=0.0.5,<0.0.7',
'django>=1.6,<1.8',
'django-admin-sortable2>=0.5.... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from aldryn_faq import __version__
REQUIREMENTS = [
'aldryn-apphooks-config>=0.2.4',
'aldryn-reversion>=0.0.2,<0.1.0',
'aldryn-search',
'aldryn-translation-tools>=0.0.5,<0.0.7',
'django>=1.6,<1.8',
'django-admin-sortable2>=0.5.... | bsd-3-clause | Python |
7e0d539df60a73e0ae425d3e457d38be6202d79e | Bump to v0.1.3 | gisce/bankbarcode | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='bankbarcode',
version='0.1.3',
packages=find_packages(),
url='https://github.com/gisce/bankbarcode',
license='GNU Affero General Public License v3',
author='GISCE-TI, S.L.',
author_email='devel@gisce.net',
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='bankbarcode',
version='0.1.2',
packages=find_packages(),
url='https://github.com/gisce/bankbarcode',
license='GNU Affero General Public License v3',
author='GISCE-TI, S.L.',
author_email='devel@gisce.net',
... | agpl-3.0 | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.