commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
624
message
stringlengths
15
4.7k
lang
stringclasses
3 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
e905334869af72025592de586b81650cb3468b8a
sentry/queue/client.py
sentry/queue/client.py
""" sentry.queue.client ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from kombu import BrokerConnection from kombu.common import maybe_declare from kombu.pools import producers from sentry.conf import settings from sentry.queue.queues import task_queues, task_exchange class Broker(object): def __init__(self, config): self.connection = BrokerConnection(**config) def delay(self, func, *args, **kwargs): payload = { "func": func, "args": args, "kwargs": kwargs, } with producers[self.connection].acquire(block=False) as producer: for queue in task_queues: maybe_declare(queue, producer.channel) producer.publish(payload, exchange=task_exchange, serializer="pickle", compression="bzip2", queue='default', routing_key='default', ) broker = Broker(settings.QUEUE)
""" sentry.queue.client ~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from kombu import BrokerConnection from kombu.common import maybe_declare from kombu.pools import producers from sentry.conf import settings from sentry.queue.queues import task_queues, task_exchange class Broker(object): def __init__(self, config): self.connection = BrokerConnection(**config) with producers[self.connection].acquire(block=False) as producer: for queue in task_queues: maybe_declare(queue, producer.channel) def delay(self, func, *args, **kwargs): payload = { "func": func, "args": args, "kwargs": kwargs, } with producers[self.connection].acquire(block=False) as producer: producer.publish(payload, exchange=task_exchange, serializer="pickle", compression="bzip2", queue='default', routing_key='default', ) broker = Broker(settings.QUEUE)
Declare queues when broker is instantiated
Declare queues when broker is instantiated
Python
bsd-3-clause
imankulov/sentry,BuildingLink/sentry,zenefits/sentry,korealerts1/sentry,kevinastone/sentry,fotinakis/sentry,fuziontech/sentry,ngonzalvez/sentry,mvaled/sentry,Kronuz/django-sentry,ngonzalvez/sentry,looker/sentry,felixbuenemann/sentry,ngonzalvez/sentry,nicholasserra/sentry,camilonova/sentry,jokey2k/sentry,llonchj/sentry,fuziontech/sentry,llonchj/sentry,NickPresta/sentry,boneyao/sentry,SilentCircle/sentry,Kryz/sentry,JamesMura/sentry,SilentCircle/sentry,wujuguang/sentry,JTCunning/sentry,rdio/sentry,1tush/sentry,alexm92/sentry,imankulov/sentry,wujuguang/sentry,jokey2k/sentry,jean/sentry,chayapan/django-sentry,looker/sentry,beeftornado/sentry,chayapan/django-sentry,gg7/sentry,chayapan/django-sentry,JamesMura/sentry,1tush/sentry,zenefits/sentry,ewdurbin/sentry,NickPresta/sentry,alex/sentry,camilonova/sentry,kevinastone/sentry,pauloschilling/sentry,boneyao/sentry,korealerts1/sentry,rdio/sentry,daevaorn/sentry,drcapulet/sentry,TedaLIEz/sentry,Kronuz/django-sentry,wong2/sentry,felixbuenemann/sentry,1tush/sentry,hongliang5623/sentry,looker/sentry,BayanGroup/sentry,BuildingLink/sentry,BuildingLink/sentry,BayanGroup/sentry,kevinlondon/sentry,daevaorn/sentry,looker/sentry,llonchj/sentry,gencer/sentry,fotinakis/sentry,BuildingLink/sentry,korealerts1/sentry,felixbuenemann/sentry,boneyao/sentry,alex/sentry,fuziontech/sentry,nicholasserra/sentry,beeftornado/sentry,SilentCircle/sentry,ifduyue/sentry,gencer/sentry,jean/sentry,pauloschilling/sentry,camilonova/sentry,wong2/sentry,mvaled/sentry,JamesMura/sentry,ewdurbin/sentry,JackDanger/sentry,beeftornado/sentry,BuildingLink/sentry,argonemyth/sentry,zenefits/sentry,alex/sentry,gg7/sentry,jean/sentry,vperron/sentry,NickPresta/sentry,mvaled/sentry,JackDanger/sentry,songyi199111/sentry,vperron/sentry,daevaorn/sentry,ifduyue/sentry,kevinlondon/sentry,BayanGroup/sentry,JackDanger/sentry,kevinastone/sentry,Natim/sentry,zenefits/sentry,pauloschilling/sentry,Natim/sentry,argonemyth/sentry,alexm92/sentry,Natim/sentry,Kronuz/django-sentry,gg7/sentry,hongliang5623/sentry,looker/sentry,daevaorn/sentry,TedaLIEz/sentry,alexm92/sentry,vperron/sentry,ifduyue/sentry,mvaled/sentry,jean/sentry,JamesMura/sentry,hongliang5623/sentry,songyi199111/sentry,argonemyth/sentry,JTCunning/sentry,gencer/sentry,nicholasserra/sentry,ifduyue/sentry,Kryz/sentry,Kryz/sentry,beni55/sentry,TedaLIEz/sentry,kevinlondon/sentry,NickPresta/sentry,mvaled/sentry,drcapulet/sentry,jean/sentry,gencer/sentry,songyi199111/sentry,beni55/sentry,beni55/sentry,SilentCircle/sentry,mvaled/sentry,mitsuhiko/sentry,ewdurbin/sentry,wujuguang/sentry,fotinakis/sentry,drcapulet/sentry,fotinakis/sentry,wong2/sentry,ifduyue/sentry,zenefits/sentry,JTCunning/sentry,rdio/sentry,imankulov/sentry,jokey2k/sentry,gencer/sentry,rdio/sentry,JamesMura/sentry,mitsuhiko/sentry
45fc612fdc5a354dbf0bacccd345b1aebcc73e59
tests/test_openweather.py
tests/test_openweather.py
# -*- coding: utf-8 -*- import bot_mock from pyfibot.modules import module_openweather from utils import check_re bot = bot_mock.BotMock() def test_weather(): regex = u'Lappeenranta, FI: Temperature: \d+.\d\xb0C, feels like: \d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%' check_re(regex, module_openweather.command_weather(bot, None, "#channel", 'lappeenranta')[1]) def test_forecast(): regex = u'Lappeenranta, Finland: tomorrow: \d+.\d-\d+.\d \xb0C \(.*?\), in 2 days: \d+.\d-\d+.\d \xb0C \(.*?\), in 3 days: \d+.\d-\d+.\d \xb0C \(.*?\)' check_re(regex, module_openweather.command_forecast(bot, None, "#channel", 'lappeenranta')[1])
# -*- coding: utf-8 -*- import bot_mock from pyfibot.modules import module_openweather from utils import check_re bot = bot_mock.BotMock() def test_weather(): regex = u'Lappeenranta, FI: Temperature: \d+.\d\xb0C, feels like: \d+.\d\xb0C, wind: \d+.\d m/s, humidity: \d+%, pressure: \d+ hPa, cloudiness: \d+%' check_re(regex, module_openweather.command_weather(bot, None, "#channel", 'lappeenranta')[1]) def test_forecast(): regex = u'Lappeenranta, FI: tomorrow: \d+.\d-\d+.\d \xb0C \(.*?\), in 2 days: \d+.\d-\d+.\d \xb0C \(.*?\), in 3 days: \d+.\d-\d+.\d \xb0C \(.*?\)' check_re(regex, module_openweather.command_forecast(bot, None, "#channel", 'lappeenranta')[1])
Revert "Fix openweather unit tests"
Revert "Fix openweather unit tests" This reverts commit 36e100e649f0a337228a6d7375358d23afd544ff. Open Weather Map has reverted back to their old api or something like that...
Python
bsd-3-clause
rnyberg/pyfibot,EArmour/pyfibot,aapa/pyfibot,aapa/pyfibot,lepinkainen/pyfibot,rnyberg/pyfibot,lepinkainen/pyfibot,huqa/pyfibot,huqa/pyfibot,EArmour/pyfibot
22faee82e1f070532c0dfe5777136e842233a1f0
src/dashboard/src/main/templatetags/percentage.py
src/dashboard/src/main/templatetags/percentage.py
from django.template import Node, Library register = Library() @register.filter('percentage') def percentage(value, total): try: percentage = int(value) / int(total) * 100 except ZeroDivisionError: percentage = 0 return '<abbr title="%s/%s">%s%%</abbr>' % (value, total, percentage)
from django.template import Node, Library register = Library() @register.filter('percentage') def percentage(value, total): try: percentage = float(value) / float(total) * 100 except ZeroDivisionError: percentage = 0 return '<abbr title="%s/%s">%s%%</abbr>' % (value, total, percentage)
Fix % only showing 0 or 100%, everything between goes to 0%.
Fix % only showing 0 or 100%, everything between goes to 0%. Autoconverted from SVN (revision:1548)
Python
agpl-3.0
artefactual/archivematica-history,artefactual/archivematica-history,artefactual/archivematica-history,artefactual/archivematica-history
950ac9130bafe1fced578bf61d746b047830bfa0
automata/base/exceptions.py
automata/base/exceptions.py
#!/usr/bin/env python3 """Exception classes shared by all automata.""" class AutomatonException(Exception): """The base class for all automaton-related errors.""" pass class InvalidStateError(AutomatonException): """A state is not a valid state for this automaton.""" pass class InvalidSymbolError(AutomatonException): """A symbol is not a valid symbol for this automaton.""" pass class MissingStateError(AutomatonException): """A state is missing from the automaton definition.""" pass class MissingSymbolError(AutomatonException): """A symbol is missing from the automaton definition.""" pass class InitialStateError(AutomatonException): """The initial state fails to meet some required condition.""" pass class FinalStateError(AutomatonException): """A final state fails to meet some required condition.""" pass class RejectionException(AutomatonException): """The input was rejected by the automaton after validation.""" pass
#!/usr/bin/env python3 """Exception classes shared by all automata.""" class AutomatonException(Exception): """The base class for all automaton-related errors.""" pass class InvalidStateError(AutomatonException): """A state is not a valid state for this automaton.""" pass class InvalidSymbolError(AutomatonException): """A symbol is not a valid symbol for this automaton.""" pass class MissingStateError(AutomatonException): """A state is missing from the automaton definition.""" pass class MissingSymbolError(AutomatonException): """A symbol is missing from the automaton definition.""" pass class InitialStateError(AutomatonException): """The initial state fails to meet some required condition.""" pass class FinalStateError(AutomatonException): """A final state fails to meet some required condition.""" pass class RejectionException(AutomatonException): """The input was rejected by the automaton.""" pass
Remove "validation" from RejectionException docstring
Remove "validation" from RejectionException docstring
Python
mit
caleb531/automata
462ae981ed5b9cc9a8f46e97dfe7908c0827ea64
account_invoice_line_description/res_config.py
account_invoice_line_description/res_config.py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Agile Business Group sagl # (<http://www.agilebg.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 version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp.osv import orm, fields class AccountConfigSettings(orm.TransientModel): _inherit = 'account.config.settings' _columns = { 'group_use_product_description_per_inv_line': fields.boolean( """Allow using only the product description on the invoice order lines""", implied_group="invoice_line_description." "group_use_product_description_per_inv_line", help="""Allows you to use only product description on the invoice order lines.""" ), }
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Agile Business Group sagl # (<http://www.agilebg.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 version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # ############################################################################## from openerp.osv import orm, fields class AccountConfigSettings(orm.TransientModel): _inherit = 'account.config.settings' _columns = { 'group_use_product_description_per_inv_line': fields.boolean( """Allow using only the product description on the invoice order lines""", implied_group="account_invoice_line_description." "group_use_product_description_per_inv_line", help="""Allows you to use only product description on the invoice order lines.""" ), }
Fix implied_group, it still refers to the old module name
Fix implied_group, it still refers to the old module name
Python
agpl-3.0
Antiun/account-invoicing,hbrunn/account-invoicing,kittiu/account-invoicing,open-synergy/account-invoicing,raycarnes/account-invoicing,brain-tec/account-invoicing,charbeljc/account-invoicing,Noviat/account-invoicing,Endika/account-invoicing,eezee-it/account-invoicing,brain-tec/account-invoicing,kmee/account-invoicing,gurneyalex/account-invoicing,BT-jmichaud/account-invoicing,iDTLabssl/account-invoicing,kmee/account-invoicing,BT-ojossen/account-invoicing,damdam-s/account-invoicing,sysadminmatmoz/account-invoicing,acsone/account-invoicing,BT-fgarbely/account-invoicing,archetipo/account-invoicing,acsone/account-invoicing,akretion/account-invoicing,Trust-Code/account-invoicing,taktik/account-invoicing,EBII/account-invoicing,bluestar-solutions/account-invoicing,Elneo-group/account-invoicing,scigghia/account-invoicing,sergiocorato/account-invoicing,abstract-open-solutions/account-invoicing
f183b471bf92c03bb5353b02009e3287ffe06ae7
txircd/modules/umode_i.py
txircd/modules/umode_i.py
from txircd.modbase import Mode class InvisibleMode(Mode): def namesListEntry(self, recipient, channel, user, representation): if channel not in recipient.channels and "i" in user.mode: return "" return representation class Spawner(object): def __init__(self, ircd): self.ircd = ircd def spawn(self): return { "modes": { "uni": InvisibleMode() } } def cleanup(self): self.ircd.removeMode("uni")
from txircd.modbase import Mode class InvisibleMode(Mode): def namesListEntry(self, recipient, channel, user, representation): if channel.name not in recipient.channels and "i" in user.mode: return "" return representation class Spawner(object): def __init__(self, ircd): self.ircd = ircd def spawn(self): return { "modes": { "uni": InvisibleMode() } } def cleanup(self): self.ircd.removeMode("uni")
Fix interpretation of parameters for names list modification
Fix interpretation of parameters for names list modification
Python
bsd-3-clause
ElementalAlchemist/txircd,DesertBus/txircd,Heufneutje/txircd
c3f8860c717a139d396b0d902db989ab7b8369ba
stock_inventory_hierarchical/__openerp__.py
stock_inventory_hierarchical/__openerp__.py
# -*- coding: utf-8 -*- # © 2013-2016 Numérigraphe SARL # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Hierarchical Inventory adjustments", "summary": "Group several Inventory adjustments in a master inventory", "version": "8.0.2.0.0", "depends": ["stock"], "author": u"Numérigraphe,Odoo Community Association (OCA)", "category": "Warehouse Management", "data": ["views/stock_inventory_view.xml", "wizard/generate_inventory_view.xml"], "images": ["inventory_form.png", "inventory_form_actions.png", "wizard.png"], 'license': 'AGPL-3', 'installable': True }
# -*- coding: utf-8 -*- # © 2013-2016 Numérigraphe SARL # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Hierarchical Inventory adjustments", "summary": "Group several Inventory adjustments in a master inventory", "version": "8.0.2.0.0", "depends": ["stock"], "author": u"Numérigraphe,Odoo Community Association (OCA)", "category": "Warehouse Management", "data": ["views/stock_inventory_view.xml", "wizard/generate_inventory_view.xml"], "images": ["images/inventory_form.png", "images/inventory_form_actions.png", "images/wizard.png"], 'license': 'AGPL-3', 'installable': True }
Fix image path in manifest
Fix image path in manifest
Python
agpl-3.0
kmee/stock-logistics-warehouse,factorlibre/stock-logistics-warehouse,open-synergy/stock-logistics-warehouse,acsone/stock-logistics-warehouse,avoinsystems/stock-logistics-warehouse
9e169348d95e29ad04942ecb00628f3d1f3a3a1c
partner_email_check/models/res_partner.py
partner_email_check/models/res_partner.py
# Copyright 2019 Komit <https://komit-consulting.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging from odoo import api, models, _ from odoo.exceptions import UserError _logger = logging.getLogger(__name__) try: from validate_email import validate_email except ImportError: _logger.error('Cannot import "validate_email".') def validate_email(email): _logger.warning( 'Can not validate email, ' 'python dependency required "validate_email"') return True class ResPartner(models.Model): _inherit = 'res.partner' @api.constrains('email') def constrains_email(self): for rec in self.filtered("email"): self.email_check(rec.email) @api.model def email_check(self, email): if validate_email(email): return True raise UserError(_('Invalid e-mail!'))
# Copyright 2019 Komit <https://komit-consulting.com> # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging from odoo import api, models, _ from odoo.exceptions import UserError _logger = logging.getLogger(__name__) try: from validate_email import validate_email except ImportError: _logger.debug('Cannot import "validate_email".') def validate_email(email): _logger.warning( 'Can not validate email, ' 'python dependency required "validate_email"') return True class ResPartner(models.Model): _inherit = 'res.partner' @api.constrains('email') def constrains_email(self): for rec in self.filtered("email"): self.email_check(rec.email) @api.model def email_check(self, email): if validate_email(email): return True raise UserError(_('Invalid e-mail!'))
Make debugger record a debug message instead of error when importing validate_email in partner_email_check
[FIX][11.0] Make debugger record a debug message instead of error when importing validate_email in partner_email_check
Python
agpl-3.0
BT-rmartin/partner-contact,OCA/partner-contact,OCA/partner-contact,BT-rmartin/partner-contact
cd56fb2c1a0f4b6dd40ce03545e57c6fd2e1c519
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/upho_qpoints', 'scripts/upho_fit', ] setup(name='upho', version='0.5.3', author="Yuji Ikeda", author_email="ikeda.yuji.6m@kyoto-u.ac.jp", packages=packages, scripts=scripts, install_requires=['numpy', 'h5py', 'phonopy'])
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/upho_qpoints', 'scripts/upho_fit', ] setup(name='upho', version='0.5.3', author="Yuji Ikeda", author_email="y.ikeda@mpie.de", packages=packages, scripts=scripts, install_requires=['numpy', 'h5py', 'phonopy'])
Modify the author email address
Modify the author email address
Python
mit
yuzie007/upho,yuzie007/ph_unfolder
db7bc89d03089ad3107a19220a94ee3fe3d230c3
setup.py
setup.py
from setuptools import setup, find_packages import sys, os version = '1.1.1' setup( name = 'daprot', version = version, description = "daprot is a data prototyper and mapper library.", packages = find_packages( exclude = [ 'ez_setup'] ), include_package_data = True, zip_safe = False, entry_points = {}, author = 'Bence Faludi', author_email = 'bence@ozmo.hu', license = 'GPL', install_requires = [ 'dm', 'funcomp', ], test_suite = "daprot.tests" )
from setuptools import setup, find_packages import sys, os version = '1.1.2' setup( name = 'daprot', version = version, description = "daprot is a data prototyper and mapper library.", packages = find_packages( exclude = [ 'ez_setup'] ), include_package_data = True, zip_safe = False, entry_points = {}, author = 'Bence Faludi', author_email = 'bence@ozmo.hu', license = 'GPL', install_requires = [ 'dm', 'funcomp', ], test_suite = "daprot.tests" )
Change the version of the package.
Change the version of the package.
Python
agpl-3.0
bfaludi/daprot
4f133cb1c9bb389156175268eb1b989d76e4d280
setup.py
setup.py
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')] if bytes is str: raise Exception("This module is designed for python 3 only. Please install an older version to use python 2.") setup( name='cle', description='CLE Loads Everything (at least, many binary formats!) and provides a pythonic interface to analyze what they are and what they would look like in memory.', version='8.20.5.27', python_requires='>=3.6', packages=packages, install_requires=[ 'pyelftools>=0.25', 'cffi', 'pyvex==8.20.5.27', 'pefile', 'sortedcontainers>=2.0', ], extras_require={ "minidump": ["minidump==0.0.10"], "xbe": ["pyxbe==0.0.2"], "ar": ["arpy==1.1.1"], } )
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n')] if bytes is str: raise Exception("This module is designed for python 3 only. Please install an older version to use python 2.") setup( name='cle', description='CLE Loads Everything (at least, many binary formats!) and provides a pythonic interface to analyze what they are and what they would look like in memory.', version='8.20.5.27', python_requires='>=3.6', packages=packages, install_requires=[ 'pyelftools>=0.25', 'cffi', 'pyvex==8.20.5.27', 'pefile', 'sortedcontainers>=2.0', ], extras_require={ "minidump": ["minidump>=0.0.10"], "xbe": ["pyxbe==0.0.2"], "ar": ["arpy==1.1.1"], } )
Adjust minidump dependency to >= 0.0.10
Adjust minidump dependency to >= 0.0.10
Python
bsd-2-clause
angr/cle
fc8d9f995b0abd66da9b2db02dc3588f5e99e66a
setup.py
setup.py
from setuptools import setup, find_packages from os.path import join, dirname import sys if sys.version_info.major < 3: print("Sorry, currently only Python 3 is supported!") sys.exit(1) setup( name = 'CollectionBatchTool', version=__import__('collectionbatchtool').__version__, description = 'batch import and export of Specify data', long_description = open(join(dirname(__file__), 'README.rst')).read(), packages = find_packages(), py_modules = ['collectionbatchtool', 'specifymodels'], install_requires = ['pandas>=0.16', 'peewee>=2.6', 'pymysql'], author = 'Markus Englund', author_email = 'jan.markus.englund@gmail.com', url = 'https://github.com/jmenglund/CollectionBatchTool', license = 'MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', ], keywords = ['Specify', 'Collection management'] )
from setuptools import setup, find_packages from os.path import join, dirname import sys if sys.version_info.major < 3: print("Sorry, currently only Python 3 is supported!") sys.exit(1) setup( name = 'CollectionBatchTool', version=__import__('collectionbatchtool').__version__, description = 'batch import and export of Specify data', long_description = open( join(dirname(__file__), 'README.rst'), encoding='utf-8').read(), packages = find_packages(), py_modules = ['collectionbatchtool', 'specifymodels'], install_requires = ['pandas>=0.16', 'peewee>=2.6', 'pymysql'], author = 'Markus Englund', author_email = 'jan.markus.englund@gmail.com', url = 'https://github.com/jmenglund/CollectionBatchTool', license = 'MIT', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 3', ], keywords = ['Specify', 'Collection management'] )
Add utf-8 support for long description
Add utf-8 support for long description
Python
mit
jmenglund/CollectionBatchTool
a0e73b06e22be39d06c276a89e04f56452802fba
setup.py
setup.py
from setuptools import setup setup( name='scout', version=__import__('scout').__version__, description='scout', author='Charles Leifer', author_email='coleifer@gmail.com', url='http://github.com/coleifer/scout/', py_modules=['scout'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], test_suite='tests', )
from setuptools import setup setup( name='scout', version=__import__('scout').__version__, description='scout', author='Charles Leifer', author_email='coleifer@gmail.com', url='http://github.com/coleifer/scout/', py_modules=['scout'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], scripts=['scout.py'], test_suite='tests', )
Add `scout.py` as a script.
Add `scout.py` as a script.
Python
mit
coleifer/scout
6dc4cb5ec0f0e2373d364e93b7d342beaad6dc4b
setup.py
setup.py
# !/usr/bin/env python from setuptools import setup, find_packages setup(name='symbtrsynthesis', version='1.0.1-dev', description='An (adaptive) synthesizer for SymbTr-MusicXML scores', author='Hasan Sercan Atli', url='https://github.com/hsercanatli/symbtrsynthesis', packages=find_packages(), include_package_data=True, install_requires=['numpy'] )
# !/usr/bin/env python from setuptools import setup, find_packages setup(name='symbtrsynthesis', version='1.0.1-dev', description='An (adaptive) synthesizer for SymbTr-MusicXML scores', author='Hasan Sercan Atli', url='https://github.com/hsercanatli/symbtrsynthesis', packages=find_packages(), package_data={'symbtrsynthesis': ['data/*.json']}, include_package_data=True, install_requires=['numpy'] )
Include data files in built package
Include data files in built package
Python
agpl-3.0
hsercanatli/adaptivetuning
340cdd0ea77c5edb9ae6f38cf380eec1772cee66
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'TRX', 'author': 'Kyle Maxwell, based on Paterva\'s library', 'url': 'https://github.com/krmaxwell/TRX', 'download_url': 'https://github.com/krmaxwell/TRX', 'author_email': 'krmaxwell@gmail.com', 'version': '0.1', 'install_requires': ['nose'], 'packages': ['TRX'], 'scripts': [], 'name': 'TRX' } setup(**config)
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'TRX', 'author': 'Kyle Maxwell, based on Paterva\'s library', 'url': 'https://github.com/krmaxwell/TRX', 'download_url': 'https://github.com/krmaxwell/TRX', 'author_email': 'krmaxwell@gmail.com', 'version': '0.2', 'install_requires': ['nose'], 'packages': ['TRX'], 'scripts': [], 'name': 'TRX' } setup(**config)
Increment minor version and set up for git flow
Increment minor version and set up for git flow
Python
apache-2.0
krmaxwell/TRX
08ccc7d676a0cb0c69d1cbd5096ff5c77e19c4ab
setup.py
setup.py
from os import path from setuptools import setup from hip_pocket.constants import VERSION def load(file_name): here = path.dirname(path.abspath(__file__)) return open(path.join(here, file_name), "r").read() setup( name="HipPocket", description="A wrapper around Flask to ease the development of larger applications", long_description=load("README.rst"), version=VERSION, packages=["hip_pocket"], url="https://github.com/svieira/HipPocket", author="Sean Vieira", author_email="vieira.sean+hip_pocket@gmail.com", install_requires=[ "Flask>=.7", "Jinja2>=2.4", "Werkzeug>=.7" ], classifiers=[ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], zip_safe=False )
from os import path from setuptools import setup from hip_pocket.constants import VERSION def load(file_name): here = path.dirname(path.abspath(__file__)) return open(path.join(here, file_name), "r").read() setup( name="HipPocket", description="A wrapper around Flask to ease the development of larger applications", long_description=load("README.rst"), version=VERSION, packages=["hip_pocket", "hip_pocket.tests"], url="https://github.com/svieira/HipPocket", author="Sean Vieira", author_email="vieira.sean+hip_pocket@gmail.com", install_requires=[ "Flask>=.7", "Jinja2>=2.4", "Werkzeug>=.7" ], platforms="any", classifiers=[ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], zip_safe=False )
Add tests package and specify platforms
Add tests package and specify platforms
Python
mit
svieira/Flask-HipPocket,svieira/Flask-HipPocket
78497a5ef492f18511c4a09b5ca62facafe9c302
setup.py
setup.py
"""Installation script.""" from os import path from setuptools import find_packages, setup HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, 'README.rst')) as f: LONG_DESCRIPTION = f.read().strip() setup( name='fuel', version='0.1a1', # PEP 440 compliant description='Data pipeline framework for machine learning', long_description=LONG_DESCRIPTION, url='https://github.com/bartvm/fuel.git', author='Universite de Montreal', license='MIT', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Utilities', 'Topic :: Scientific/Engineering', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', ], keywords='dataset data iteration pipeline processing', packages=find_packages(exclude=['tests']), install_requires=['six', 'picklable_itertools', 'toolz', 'pyyaml', 'h5py', 'tables'], scripts=['bin/fuel-convert'] )
"""Installation script.""" from os import path from setuptools import find_packages, setup HERE = path.abspath(path.dirname(__file__)) with open(path.join(HERE, 'README.rst')) as f: LONG_DESCRIPTION = f.read().strip() setup( name='fuel', version='0.1a1', # PEP 440 compliant description='Data pipeline framework for machine learning', long_description=LONG_DESCRIPTION, url='https://github.com/bartvm/fuel.git', author='Universite de Montreal', license='MIT', # See https://pypi.python.org/pypi?%3Aaction=list_classifiers classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Utilities', 'Topic :: Scientific/Engineering', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', ], keywords='dataset data iteration pipeline processing', packages=find_packages(exclude=['tests']), install_requires=['six', 'picklable_itertools', 'toolz', 'pyyaml', 'h5py', 'tables'], scripts=['bin/fuel-convert', 'bin/fuel-download'] )
Add fuel-download to installed scripts
Add fuel-download to installed scripts
Python
mit
capybaralet/fuel,glewis17/fuel,EderSantana/fuel,bouthilx/fuel,laurent-dinh/fuel,orhanf/fuel,mila-udem/fuel,rizar/fuel,codeaudit/fuel,udibr/fuel,glewis17/fuel,orhanf/fuel,ejls/fuel,capybaralet/fuel,dmitriy-serdyuk/fuel,markusnagel/fuel,ejls/fuel,dwf/fuel,janchorowski/fuel,laurent-dinh/fuel,dribnet/fuel,janchorowski/fuel,dhruvparamhans/fuel,mjwillson/fuel,bouthilx/fuel,dribnet/fuel,aalmah/fuel,harmdevries89/fuel,dwf/fuel,jbornschein/fuel,EderSantana/fuel,hantek/fuel,dhruvparamhans/fuel,harmdevries89/fuel,vdumoulin/fuel,dmitriy-serdyuk/fuel,udibr/fuel,lamblin/fuel,chrishokamp/fuel,jbornschein/fuel,lamblin/fuel,rodrigob/fuel,chrishokamp/fuel,rodrigob/fuel,hantek/fuel,mila-udem/fuel,rizar/fuel,markusnagel/fuel,mjwillson/fuel,codeaudit/fuel,vdumoulin/fuel,aalmah/fuel
4bb6876b089375e228320162b7955bcdfa824f41
setup.py
setup.py
from setuptools import setup, find_packages setup( name='akanda-rug', version='0.1.5', description='Akanda Router Update Generator manages tenant routers', author='DreamHost', author_email='dev-community@dreamhost.com', url='http://github.com/dreamhost/akanda-rug', license='BSD', install_requires=[ 'netaddr>=0.7.5', 'httplib2>=0.7.2', 'python-quantumclient>=2.1', 'oslo.config', 'kombu==1.0.4' ], namespace_packages=['akanda'], packages=find_packages(exclude=['test']), include_package_data=True, zip_safe=False, entry_points={ 'console_scripts': [ 'akanda-rug-service=akanda.rug.service:main', 'akanda-rug-new=akanda.rug.main:main', ] }, )
from setuptools import setup, find_packages setup( name='akanda-rug', version='0.1.5', description='Akanda Router Update Generator manages tenant routers', author='DreamHost', author_email='dev-community@dreamhost.com', url='http://github.com/dreamhost/akanda-rug', license='BSD', install_requires=[ 'netaddr>=0.7.5', 'httplib2>=0.7.2', 'python-quantumclient>=2.1', 'oslo.config', 'kombu==1.0.4' ], namespace_packages=['akanda'], packages=find_packages(exclude=['test']), include_package_data=True, zip_safe=False, entry_points={ 'console_scripts': [ 'akanda-rug-service=akanda.rug.main:main', ] }, )
Update the startup command to use the new version of the rug
Update the startup command to use the new version of the rug Change-Id: Ie014dcfb0974b048025aeff96b16a868f672b84a Signed-off-by: Rosario Di Somma <73b2fe5f91895aea2b4d0e8942a5edf9f18fa897@dreamhost.com>
Python
apache-2.0
openstack/akanda-rug,markmcclain/astara,dreamhost/akanda-rug,openstack/akanda-rug,stackforge/akanda-rug,stackforge/akanda-rug
49ac4dc3e7506f35d2f3ad695afaf9c89f08720b
setup.py
setup.py
import os from setuptools import setup base_dir = os.path.dirname(__file__) with open(os.path.join(base_dir, "README.rst")) as f: long_description = f.read() setup( name="TxSNI", description="easy-to-use SNI endpoint for twisted", packages=[ "txsni", "twisted.plugins", ], install_requires=[ "Twisted[tls]>=14.0", "pyOpenSSL>=0.14", ], version="0.1.6", long_description=long_description, license="MIT", url="https://github.com/glyph/txsni", classifiers=[ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Security :: Cryptography", ], )
import os from setuptools import setup base_dir = os.path.dirname(__file__) with open(os.path.join(base_dir, "README.rst")) as f: long_description = f.read() setup( name="TxSNI", description="easy-to-use SNI endpoint for twisted", packages=[ "txsni", "txsni.test", "txsni.test.certs", "twisted.plugins", ], install_requires=[ "Twisted[tls]>=14.0", "pyOpenSSL>=0.14", ], version="0.1.6", long_description=long_description, license="MIT", url="https://github.com/glyph/txsni", classifiers=[ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Security :: Cryptography", ], )
Install the tests and test utilities
Install the tests and test utilities
Python
mit
glyph/txsni
ae4ff7cffa1273338fff56eb531f2a6f5989de41
setup.py
setup.py
import os from setuptools import setup, find_packages VERSION = '1.4.5' setup( namespace_packages = ['tiddlywebplugins'], name = 'tiddlywebplugins.atom', version = VERSION, description = 'A TiddlyWeb plugin that provides an Atom feed of tiddler collections.', long_description=file(os.path.join(os.path.dirname(__file__), 'README')).read(), author = 'Chris Dent', url = 'http://pypi.python.org/pypi/tiddlywebplugins.atom', packages = find_packages(exclude=['test']), author_email = 'cdent@peermore.com', platforms = 'Posix; MacOS X; Windows', install_requires = ['setuptools', 'tiddlyweb>=1.4.2', 'feedgenerator'], 'extras_require': { 'testing': ['tiddlywebwiki', 'tiddlywebplugins.markdown'] }, zip_safe = False, license = 'BSD', )
import os from setuptools import setup, find_packages VERSION = '1.4.5' setup( namespace_packages = ['tiddlywebplugins'], name = 'tiddlywebplugins.atom', version = VERSION, description = 'A TiddlyWeb plugin that provides an Atom feed of tiddler collections.', long_description=open(os.path.join(os.path.dirname(__file__), 'README')).read(), author = 'Chris Dent', url = 'http://pypi.python.org/pypi/tiddlywebplugins.atom', packages = find_packages(exclude=['test']), author_email = 'cdent@peermore.com', platforms = 'Posix; MacOS X; Windows', install_requires = ['setuptools', 'tiddlyweb>=1.4.2', 'feedgenerator'], 'extras_require': { 'testing': ['tiddlywebwiki', 'tiddlywebplugins.markdown'] }, zip_safe = False, license = 'BSD', )
Use `open` instead of `file` for compatibility
Use `open` instead of `file` for compatibility
Python
bsd-3-clause
tiddlyweb/tiddlywebplugins.atom
35e2d4791be9470c4a48e5b84e885f7b759ebd3d
setup.py
setup.py
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='dictobj', version='0.2.5', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-dictobj', classifiers = [ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], description='A set of Python dictionary objects where keys can be accessed as instnace attributes.', long_description=read('README.txt') if os.path.exists('README.txt') else '', py_modules=['dictobj'], test_suite='dictobj_test', )
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='dictobj', version='0.2.5', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-dictobj', classifiers = [ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], description='A set of Python dictionary objects where keys can be accessed as instance attributes.', long_description=read('README.txt') if os.path.exists('README.txt') else '', py_modules=['dictobj'], test_suite='dictobj_test', )
Correct the description and update the dev status to stable.
Correct the description and update the dev status to stable.
Python
apache-2.0
grimwm/py-dictobj,grimwm/py-dictobj
6b9f6ee4d4f00e988fb0419eedb81eaa56e3bbe7
setup.py
setup.py
from setuptools import setup with open('README.rst') as rdm: README = rdm.read() setup( name='qjobs', use_scm_version=True, description='Get a clean and flexible output from qstat', long_description=README, url='https://github.com/amorison/qjobs', author='Adrien Morison', author_email='adrien.morison@gmail.com', license='MIT', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Information Technology', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], packages=['qjobs'], entry_points={ 'console_scripts': ['qjobs = qjobs.__main__:main'] }, setup_requires=['setuptools_scm'], install_requires=['setuptools_scm', 'loam'], )
from setuptools import setup with open('README.rst') as rdm: README = rdm.read() setup( name='qjobs', use_scm_version=True, description='Get a clean and flexible output from qstat', long_description=README, url='https://github.com/amorison/qjobs', author='Adrien Morison', author_email='adrien.morison@gmail.com', license='MIT', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Information Technology', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], packages=['qjobs'], entry_points={ 'console_scripts': ['qjobs = qjobs.__main__:main'] }, setup_requires=['setuptools_scm'], install_requires=['setuptools_scm', 'loam>=0.1.1'], )
Set 0.1.1 as minimum version of loam
Set 0.1.1 as minimum version of loam
Python
mit
amorison/qjobs
be8d6400426fb96964a8447bd941d4ab777a867c
setup.py
setup.py
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-pages', version='0.3.7', description='Blanc Basic Pages for Django', long_description=readme, url='https://github.com/blancltd/blanc-basic-pages', maintainer='Blanc Ltd', maintainer_email='studio@blanc.ltd.uk', platforms=['any'], include_package_data=True, install_requires=[ 'blanc-basic-assets>=0.3.2', 'django-mptt>=0.6.1', 'django-mptt-admin>=0.1.8', ], packages=find_packages(), classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'License :: OSI Approved :: BSD 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', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], license='BSD', )
#!/usr/bin/env python from codecs import open from setuptools import find_packages, setup with open('README.rst', 'r', 'utf-8') as f: readme = f.read() setup( name='blanc-basic-pages', version='0.3.7', description='Blanc Basic Pages for Django', long_description=readme, url='https://github.com/developersociety/blanc-basic-pages', maintainer='Blanc Ltd', maintainer_email='studio@blanc.ltd.uk', platforms=['any'], include_package_data=True, install_requires=[ 'blanc-basic-assets>=0.3.2', 'django-mptt>=0.6.1', 'django-mptt-admin>=0.1.8', ], packages=find_packages(), classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'License :: OSI Approved :: BSD 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', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], license='BSD', )
Update GitHub repos from blancltd to developersociety
Update GitHub repos from blancltd to developersociety
Python
bsd-3-clause
blancltd/blanc-basic-pages
644d24ad024f0d81f49b85417fecb154a6f259a9
setup.py
setup.py
import platform import sys from setuptools import setup install_requires = [ 'msgpack-python', ] if sys.version_info < (3, 4): # trollius is just a backport of 3.4 asyncio module install_requires.append('trollius') if not platform.python_implementation() == 'PyPy': # pypy already includes an implementation of the greenlet module install_requires.append('greenlet') setup(name='neovim', version='0.0.23', description='Python client to neovim', url='http://github.com/neovim/python-client', download_url='https://github.com/neovim/python-client/archive/0.0.23.tar.gz', author='Thiago de Arruda', author_email='tpadilha84@gmail.com', license='MIT', packages=['neovim', 'neovim.api', 'neovim.msgpack_rpc', 'neovim.msgpack_rpc.event_loop', 'neovim.plugins'], install_requires=install_requires, zip_safe=False)
import platform import sys from setuptools import setup install_requires = [ 'msgpack-python>=0.4.0', ] if sys.version_info < (3, 4): # trollius is just a backport of 3.4 asyncio module install_requires.append('trollius') if not platform.python_implementation() == 'PyPy': # pypy already includes an implementation of the greenlet module install_requires.append('greenlet') setup(name='neovim', version='0.0.23', description='Python client to neovim', url='http://github.com/neovim/python-client', download_url='https://github.com/neovim/python-client/archive/0.0.23.tar.gz', author='Thiago de Arruda', author_email='tpadilha84@gmail.com', license='MIT', packages=['neovim', 'neovim.api', 'neovim.msgpack_rpc', 'neovim.msgpack_rpc.event_loop', 'neovim.plugins'], install_requires=install_requires, zip_safe=False)
Include base version for msgpack, because 0.3 doesn't work
Include base version for msgpack, because 0.3 doesn't work If I import neovim with less than version 0.4 of msgpack installed, I get this stack trace: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/chartdev/venvs/chartio/local/lib/python2.7/site-packages/neovim/__init__.py", line 8, in <module> from .api import DecodeHook, Nvim, SessionHook File "/home/chartdev/venvs/chartio/local/lib/python2.7/site-packages/neovim/api/__init__.py", line 9, in <module> from .nvim import Nvim, NvimError File "/home/chartdev/venvs/chartio/local/lib/python2.7/site-packages/neovim/api/nvim.py", line 4, in <module> from msgpack import ExtType ImportError: cannot import name ExtType ``` 0.4.0 seems to work.
Python
apache-2.0
zchee/python-client,neovim/python-client,zchee/python-client,0x90sled/python-client,bfredl/python-client,timeyyy/python-client,Shougo/python-client,bfredl/python-client,Shougo/python-client,traverseda/python-client,brcolow/python-client,neovim/python-client,starcraftman/python-client,timeyyy/python-client,meitham/python-client,brcolow/python-client,starcraftman/python-client,traverseda/python-client,0x90sled/python-client,meitham/python-client
4f436f14cd1615175051910b38eb83a512fb26ff
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'django-globals', version = '0.2.1-rc1', description = 'Very simple application, that allow to define a thread specific global variables.', keywords = 'django apps', license = 'New BSD License', author = 'Alexander Artemenko', author_email = 'svetlyak.40wt@gmail.com', url = 'http://github.com/svetlyak40wt/django-globals/', install_requires = [], classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Plugins', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], package_dir = {'': 'src'}, packages = find_packages('src', exclude = ['example']), include_package_data = True, )
from setuptools import setup, find_packages setup( name = 'django-globals', version = '0.2.1', description = 'Very simple application, that allow to define a thread specific global variables.', keywords = 'django apps', license = 'New BSD License', author = 'Alexander Artemenko', author_email = 'svetlyak.40wt@gmail.com', url = 'http://github.com/svetlyak40wt/django-globals/', install_requires = [], classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Plugins', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules', ], package_dir = {'': 'src'}, packages = find_packages('src', exclude = ['example']), include_package_data = True, )
Change the version to be the release version
Change the version to be the release version
Python
bsd-3-clause
CBitLabs/django-globals
cf69afe8f9e8151141e6040e9d0212b00edcbef1
setup.py
setup.py
from setuptools import setup, find_packages import sys, os version = '0.1' setup(name='ouimeaux', version=version, description="Python API to Belkin WeMo devices", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='Ian McCracken', author_email='ian.mccracken@gmail.com', url='', license='BSD', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, install_requires=[ # -*- Extra requirements: -*- ], entry_points=""" # -*- Entry points: -*- """, )
from setuptools import setup, find_packages import sys, os version = '0.1' setup(name='ouimeaux', version=version, description="Python API to Belkin WeMo devices", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='Ian McCracken', author_email='ian.mccracken@gmail.com', url='', license='BSD', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, dependency_links = [ 'https://github.com/downloads/SiteSupport/gevent/gevent-1.0rc2.tar.gz#egg=gevent-1.0.rc2' ], install_requires=[ 'gevent >= 1.0rc2', ], entry_points=""" # -*- Entry points: -*- """, )
Add gevent 1.0 as a dependency
Add gevent 1.0 as a dependency
Python
bsd-3-clause
rgardner/ouimeaux,iancmcc/ouimeaux,tomjmul/wemo,sstangle73/ouimeaux,fritz-fritz/ouimeaux,sstangle73/ouimeaux,aktur/ouimeaux,aktur/ouimeaux,drock371/ouimeaux,fritz-fritz/ouimeaux,sstangle73/ouimeaux,m-kiuchi/ouimeaux,iancmcc/ouimeaux,drock371/ouimeaux,fritz-fritz/ouimeaux,bennytheshap/ouimeaux,iancmcc/ouimeaux,aktur/ouimeaux,fujita-shintaro/ouimeaux,drock371/ouimeaux,bennytheshap/ouimeaux,fujita-shintaro/ouimeaux,rgardner/ouimeaux,tomjmul/wemo,m-kiuchi/ouimeaux,bennytheshap/ouimeaux,tomjmul/wemo,fujita-shintaro/ouimeaux,rgardner/ouimeaux,m-kiuchi/ouimeaux
ee57052a6749459e2702b36a0341e03d6b5e448a
setup.py
setup.py
import sys try: from setuptools import setup except ImportError: from distutils.core import setup # typing library was introduced as a core module in version 3.5.0 requires = ["dirlistproc", "jsonasobj", "rdflib", "rdflib-jsonld"] if sys.version_info < (3, 5): requires.append("typing") setup( name='SNOMEDToOWL', version='0.2.2', packages=['SNOMEDCTToOWL', 'SNOMEDCTToOWL.RF2Files'], package_data={'SNOMEDCTToOWL' : ['conf/*.json']}, url='http://github.com/hsolbrig/SNOMEDToOWL', license='Apache License 2.0', author='Harold Solbrig', author_email='solbrig.harold@mayo.edu', description='"Spackman OWL" transformation test and validation tool', long_description='Document and test SNOMED RF2 to OWL transformations', install_requires=requires, scripts=['scripts/RF2Filter', 'scripts/SNOMEDToOWL', 'scripts/CompareRDF', 'scripts/modifiedPerlScript.pl'], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Healthcare Industry', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3 :: Only'] )
import sys try: from setuptools import setup except ImportError: from distutils.core import setup # typing library was introduced as a core module in version 3.5.0 requires = ["dirlistproc", "jsonasobj", "rdflib", "rdflib-jsonld"] if sys.version_info < (3, 5): requires.append("typing") setup( name='SNOMEDToOWL', version='0.2.3', packages=['SNOMEDCTToOWL', 'SNOMEDCTToOWL.RF2Files'], package_data={'SNOMEDCTToOWL' : ['conf/*.json']}, url='http://github.com/hsolbrig/SNOMEDToOWL', license='Apache License 2.0', author='Harold Solbrig', author_email='solbrig.harold@mayo.edu', description='"Spackman OWL" transformation test and validation tool', long_description='Document and test SNOMED RF2 to OWL transformations', install_requires=requires, scripts=['scripts/RF2Filter', 'scripts/SNOMEDToOWL', 'scripts/CompareRDF', 'scripts/modifiedPerlScript.pl'], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Healthcare Industry', 'Topic :: Software Development :: Testing', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3 :: Only'] )
Change version number for new pypi image
Change version number for new pypi image
Python
apache-2.0
hsolbrig/SNOMEDToOWL,hsolbrig/SNOMEDToOWL,hsolbrig/SNOMEDToOWL
8ff387b039a83d21eb4999d1bc1704a827b3c3a2
setup.py
setup.py
from setuptools import setup setup( name='opengithub', version='0.1.2', author='Kevin Schaul', author_email='kevin.schaul@gmail.com', url='http://www.kevinschaul.com', description='Open your project in GitHub from the command line.', long_description='Check out the project on GitHub for the latest information <http://github.com/kevinschaul/open-in-github>', license='MIT', classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: Unix', 'Programming Language :: Python', 'Topic :: Software Development', ], packages=[ 'opengithub', ], entry_points = { 'console_scripts': [ 'git-open = opengithub.opengithub:main', ], }, )
from setuptools import setup setup( name='opengithub', version='0.1.3', author='Kevin Schaul', author_email='kevin.schaul@gmail.com', url='http://kevin.schaul.io', description='Open your project in GitHub from the command line.', long_description='Check out the project on GitHub for the latest information <http://github.com/kevinschaul/open-in-github>', license='MIT', classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Operating System :: Unix', 'Programming Language :: Python', 'Topic :: Software Development', ], packages=[ 'opengithub', ], entry_points = { 'console_scripts': [ 'git-open = opengithub.opengithub:main', ], }, )
Increment version number, fix homepage
Increment version number, fix homepage
Python
mit
kevinschaul/open-in-github
eb2cfa7578012f7312bdb655368ce543cb680a0d
setup.py
setup.py
from setuptools import setup setup( name='tangled.auth', version='0.1a4.dev0', description='Tangled auth integration', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled.auth/tags', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', packages=[ 'tangled', 'tangled.auth', 'tangled.auth.tests', ], install_requires=[ 'tangled.web>=0.1a5', ], extras_require={ 'dev': [ 'tangled.web[dev]>=0.1a5', ], }, entry_points=""" [tangled.scripts] auth = tangled.auth.command:Command """, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
from setuptools import setup setup( name='tangled.auth', version='0.1a4.dev0', description='Tangled auth integration', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled.auth/tags', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', packages=[ 'tangled', 'tangled.auth', 'tangled.auth.tests', ], install_requires=[ 'tangled.web>=0.1a9', ], extras_require={ 'dev': [ 'tangled.web[dev]>=0.1a9', ], }, entry_points=""" [tangled.scripts] auth = tangled.auth.command:Command """, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
Upgrade tangled.web from 0.1a5 to 0.1a9
Upgrade tangled.web from 0.1a5 to 0.1a9
Python
mit
TangledWeb/tangled.auth
3187ff297b02eaf1c0b6debdb48d2f6396751947
setup.py
setup.py
__version__ = '0.1' import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() setup(name='retools', version=__version__, description='Redis Tools', long_description=README + '\n\n' + CHANGES, classifiers=[ "Intended Audience :: Developers", "Programming Language :: Python", ], keywords='cache redis queue', author="Ben Bangert", author_email="ben@groovie.org", url="", license="MIT", packages=find_packages(), include_package_data=True, zip_safe=False, tests_require = ['pkginfo', 'Mock>=0.7', 'nose'], install_requires=[ "setproctitle>=1.1.2", "redis>=2.4.5", "venusian>=0.9", "decorator>=3.3.0", ], )
__version__ = '0.1' import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() setup(name='retools', version=__version__, description='Redis Tools', long_description=README + '\n\n' + CHANGES, classifiers=[ "Intended Audience :: Developers", "Programming Language :: Python", ], keywords='cache redis queue lock', author="Ben Bangert", author_email="ben@groovie.org", url="", license="MIT", packages=find_packages(), include_package_data=True, zip_safe=False, tests_require = ['pkginfo', 'Mock>=0.7', 'nose'], install_requires=[ # "setproctitle>=1.1.2", "redis>=2.4.5", # "venusian>=0.9", # "cmdln>=1.1", ], )
Update deps for initial release
Update deps for initial release
Python
mit
bbangert/retools,0x1997/retools,mozilla-services/retools
c5a71b5e97657358f41fc7f96b1b674ceb37dfb1
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from aldryn_faq import __version__ REQUIREMENTS = [ 'aldryn-apphooks-config', 'aldryn-reversion', 'aldryn-search', 'django-admin-sortable', 'django-admin-sortable2>=0.5.0', 'django-parler', 'django-sortedm2m', ] CLASSIFIERS = [ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Application Frameworks', ] setup( name='aldryn-faq', version=__version__, description='FAQ addon for django CMS', author='Divio AG', author_email='info@divio.ch', url='https://github.com/aldryn/aldryn-faq', packages=find_packages(), license='LICENSE.txt', platforms=['OS Independent'], install_requires=REQUIREMENTS, classifiers=CLASSIFIERS, include_package_data=True, zip_safe=False )
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from aldryn_faq import __version__ REQUIREMENTS = [ 'aldryn-apphooks-config', 'aldryn-reversion', 'aldryn-search', # 'django-admin-sortable', 'django-admin-sortable2>=0.5.0', 'django-parler', 'django-sortedm2m', ] CLASSIFIERS = [ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Application Frameworks', ] setup( name='aldryn-faq', version=__version__, description='FAQ addon for django CMS', author='Divio AG', author_email='info@divio.ch', url='https://github.com/aldryn/aldryn-faq', packages=find_packages(), license='LICENSE.txt', platforms=['OS Independent'], install_requires=REQUIREMENTS, classifiers=CLASSIFIERS, include_package_data=True, zip_safe=False )
Remove plain 'django-admin-sortable' from requirements
Remove plain 'django-admin-sortable' from requirements This is only required to test migrations, not for new installs.
Python
bsd-3-clause
czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq
70a642c0597fb2f929fc83d821c8b1f095ed1328
proxy/plugins/plugins.py
proxy/plugins/plugins.py
packetFunctions = {} commands = {} onStart = [] onConnection = [] onConnectionLoss = [] class packetHook(object): def __init__(self, pktType, pktSubtype): self.pktType = pktType self.pktSubtype = pktSubtype def __call__(self, f): global packetFunctions packetFunctions[(self.pktType, self.pktSubtype)] = f class commandHook(object): """docstring for commandHook""" def __init__(self, command): self.command = command def __call__(self, f): global commands commands[self.command] = f def onStartHook(f): global onStart onStart.append(f) return f def onConnectionHook(f): global onConnection onConnection.append(f) return f def onConnectionLossHook(f): global onConnectionLoss onConnectionLoss.append(f) return f
packetFunctions = {} commands = {} onStart = [] onConnection = [] onConnectionLoss = [] class packetHook(object): def __init__(self, pktType, pktSubtype): self.pktType = pktType self.pktSubtype = pktSubtype def __call__(self, f): global packetFunctions if (self.pktType, self.pktSubtype) not in packetFunctions: packetFunctions[(self.pktType, self.pktSubtype)] = [] packetFunctions[(self.pktType, self.pktSubtype)].append(f) class commandHook(object): """docstring for commandHook""" def __init__(self, command): self.command = command def __call__(self, f): global commands commands[self.command] = f def onStartHook(f): global onStart onStart.append(f) return f def onConnectionHook(f): global onConnection onConnection.append(f) return f def onConnectionLossHook(f): global onConnectionLoss onConnectionLoss.append(f) return f
Allow mutiple hooks for packets
Allow mutiple hooks for packets
Python
agpl-3.0
alama/PSO2Proxy,alama/PSO2Proxy,flyergo/PSO2Proxy,alama/PSO2Proxy,cyberkitsune/PSO2Proxy,cyberkitsune/PSO2Proxy,flyergo/PSO2Proxy,cyberkitsune/PSO2Proxy
44e31e2153f4eec2863f9d712ab60f0ef00d1779
mongo_connector/get_last_oplog_timestamp.py
mongo_connector/get_last_oplog_timestamp.py
#!/usr/bin/python import pymongo import bson import time import sys from mongo_connector import util mongo_url = 'mongodb://localhost:27017' if len(sys.argv) == 1: print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..." if len(sys.argv) >= 2: mongo_url = sys.argv[1] client = pymongo.MongoClient(mongo_url) rs_name = client.admin.command('ismaster')['setName'] print 'Found Replica Set name: {}'.format(str(rs_name)) print 'Now checking for the latest oplog entry...' oplog = client.local.oplog.rs last_oplog = oplog.find().sort('$natural', pymongo.DESCENDING).limit(-1).next() print 'Found the last oplog ts: {}'.format(str(last_oplog['ts'])) last_ts = util.bson_ts_to_long(last_oplog['ts']) out_str='["{}", {}]'.format(str(rs_name), str(last_ts) ) print 'Writing all to file oplog.timestamp.last in the format required for mongo-connector' f = open('./oplog.timestamp.last', 'w') f.write(out_str) f.close() print 'All done!'
#!/usr/bin/python import pymongo import bson import time import sys from mongo_connector import util mongo_url = 'mongodb://localhost:27017' if len(sys.argv) == 1: print "First argument is mongodb connection string, i.e. localhost:27017. Assuming localhost:27017..." if len(sys.argv) >= 2: mongo_url = sys.argv[1] client = pymongo.MongoClient(mongo_url) rs_name = client.admin.command('ismaster')['setName'] print('Found Replica Set name: {}'.format(str(rs_name))) print('Now checking for the latest oplog entry...') oplog = client.local.oplog.rs last_oplog = oplog.find().sort('$natural', pymongo.DESCENDING).limit(-1).next() print('Found the last oplog ts: {}'.format(str(last_oplog['ts']))) last_ts = util.bson_ts_to_long(last_oplog['ts']) out_str='["{}", {}]'.format(str(rs_name), str(last_ts) ) print('Writing all to file oplog.timestamp.last in the format required for mongo-connector') f = open('./oplog.timestamp.last', 'w') f.write(out_str) f.close() print('All done!')
Update for compatibility with python 3
Update for compatibility with python 3
Python
apache-2.0
10gen-labs/mongo-connector,ShaneHarvey/mongo-connector,mongodb-labs/mongo-connector,10gen-labs/mongo-connector,mongodb-labs/mongo-connector,ShaneHarvey/mongo-connector
af91b7c2612fab598ba50c0c0256f7e552098d92
reportlab/docs/genAll.py
reportlab/docs/genAll.py
#!/bin/env python """Runs the three manual-building scripts""" if __name__=='__main__': import os, sys d = os.path.dirname(sys.argv[0]) #need a quiet mode for the test suite if '-s' in sys.argv: # 'silent quiet = '-s' else: quiet = '' if not d: d = '.' if not os.path.isabs(d): d = os.path.normpath(os.path.join(os.getcwd(),d)) for p in ('reference/genreference.py', 'userguide/genuserguide.py', 'graphguide/gengraphguide.py', '../tools/docco/graphdocpy.py'): os.chdir(d) os.chdir(os.path.dirname(p)) os.system('%s %s %s' % (sys.executable,os.path.basename(p), quiet))
#!/bin/env python import os def _genAll(d=None,quiet=''): if not d: d = '.' if not os.path.isabs(d): d = os.path.normpath(os.path.join(os.getcwd(),d)) for p in ('reference/genreference.py', 'userguide/genuserguide.py', 'graphguide/gengraphguide.py', '../tools/docco/graphdocpy.py'): os.chdir(d) os.chdir(os.path.dirname(p)) os.system('%s %s %s' % (sys.executable,os.path.basename(p), quiet)) """Runs the manual-building scripts""" if __name__=='__main__': import sys #need a quiet mode for the test suite if '-s' in sys.argv: # 'silent quiet = '-s' else: quiet = '' _genAll(os.path.dirname(sys.argv[0]),quiet)
Allow for use in daily.py
Allow for use in daily.py
Python
bsd-3-clause
makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile,makinacorpus/reportlab-ecomobile
7c2a640d2c3ab9218d8334f4939d7c1af919c318
setup.py
setup.py
import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT = f.read() setup( name='adventure', version='1.4', description='Colossal Cave adventure game at the Python prompt', long_description=README_TEXT, author='Brandon Craig Rhodes', author_email='brandon@rhodesmill.org', url='https://bitbucket.org/brandon/adventure/overview', packages=['adventure', 'adventure/tests'], package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']}, classifiers=[ 'Development Status :: 6 - Mature', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Games/Entertainment', ], )
import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT = f.read() setup( name='adventure', version='1.4', description='Colossal Cave adventure game at the Python prompt', long_description=README_TEXT, author='Brandon Craig Rhodes', author_email='brandon@rhodesmill.org', url='https://github.com/brandon-rhodes/python-adventure', packages=['adventure', 'adventure/tests'], package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']}, classifiers=[ 'Development Status :: 6 - Mature', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Games/Entertainment', ], )
Update outdated link to repository, per @cknv
Update outdated link to repository, per @cknv
Python
apache-2.0
devinmcgloin/advent,devinmcgloin/advent
3e4e44968412acb2ada2279b6fb4108eb66b02b2
setup.py
setup.py
from setuptools import setup setup( name='kf5py', py_modules = ['kf5py'], version='0.1.dev5', author='Chris Teplovs', author_email='dr.chris@problemshift.com', url='https://github.com/problemshift/kf5py', license='LICENSE.txt', description='Python-based utilities for KF5.', install_requires=[ "requests >= 2.3.0" ], classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Development Status :: 1 - Planning", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent" ] )
from setuptools import setup setup( name='kf5py', py_modules = ['kf5py'], version='0.1.0', author='Chris Teplovs', author_email='dr.chris@problemshift.com', url='http://problemshift.github.io/kf5py/', license='LICENSE.txt', description='Python-based utilities for KF5.', install_requires=[ "requests >= 2.3.0" ], classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent" ] )
Remove dev indentifier; crank Development Status; updated URL to point to project page
Remove dev indentifier; crank Development Status; updated URL to point to project page
Python
mit
problemshift/kf5py
913a102332e5d2caeab265f8a9980e2303f58550
setup.py
setup.py
from setuptools import setup version = "0.10.2" setup( name="setuptools-rust", version=version, author="Nikolay Kim", author_email="fafhrd91@gmail.com", url="https://github.com/PyO3/setuptools-rust", keywords="distutils setuptools rust", description="Setuptools rust extension plugin", long_description="\n\n".join( (open("README.rst").read(), open("CHANGES.rst").read()) ), license="MIT", packages=["setuptools_rust"], install_requires=["semantic_version>=2.6.0", "toml>=0.9.0"], zip_safe=True, classifiers=[ "Topic :: Software Development :: Version Control", "License :: OSI Approved :: MIT License", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 5 - Production/Stable", "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", ], entry_points=""" [distutils.commands] check_rust=setuptools_rust.check:check_rust clean_rust=setuptools_rust:clean_rust build_ext=setuptools_rust:build_ext build_rust=setuptools_rust:build_rust test_rust=setuptools_rust:test_rust tomlgen_rust=setuptools_rust:tomlgen_rust """, )
from setuptools import setup version = "0.10.2" setup( name="setuptools-rust", version=version, author="Nikolay Kim", author_email="fafhrd91@gmail.com", url="https://github.com/PyO3/setuptools-rust", keywords="distutils setuptools rust", description="Setuptools rust extension plugin", long_description=open("README.rst").read(), license="MIT", packages=["setuptools_rust"], install_requires=["semantic_version>=2.6.0", "toml>=0.9.0"], zip_safe=True, classifiers=[ "Topic :: Software Development :: Version Control", "License :: OSI Approved :: MIT License", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Development Status :: 5 - Production/Stable", "Operating System :: POSIX", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", ], entry_points=""" [distutils.commands] check_rust=setuptools_rust.check:check_rust clean_rust=setuptools_rust:clean_rust build_ext=setuptools_rust:build_ext build_rust=setuptools_rust:build_rust test_rust=setuptools_rust:test_rust tomlgen_rust=setuptools_rust:tomlgen_rust """, )
Fix wrong path in readme
Fix wrong path in readme
Python
mit
PyO3/setuptools-rust,PyO3/setuptools-rust
aba2ccc48fdae23c1e04eab705402e319c97e76a
setup.py
setup.py
# Copyright 2013-2014 Massachusetts Open Cloud Contributors # # 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 setuptools import setup, find_packages from pip.req import parse_requirements requirements = [str(r.req) for r in parse_requirements('requirements.txt')] setup(name='moc-rest', version='1.0', url='https://github.com/CCI-MOC/moc-rest', packages=find_packages(), install_requires=requirements, )
# Copyright 2013-2014 Massachusetts Open Cloud Contributors # # 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 setuptools import setup, find_packages from pip.req import parse_requirements requirements = [str(r.req) for r in parse_requirements('requirements.txt')] setup(name='moc-rest', version='0.1', url='https://github.com/CCI-MOC/moc-rest', packages=find_packages(), install_requires=requirements, )
Change version number to 0.1
Change version number to 0.1 ...in preparation for the upcoming release.
Python
apache-2.0
apoorvemohan/haas,SahilTikale/switchHaaS,kylehogan/haas,henn/hil_sahil,henn/hil,kylehogan/hil,henn/hil,SahilTikale/haas,kylehogan/hil,meng-sun/hil,apoorvemohan/haas,CCI-MOC/haas,henn/hil_sahil,henn/haas,meng-sun/hil
6123ca57cac5d61de833e1102297b0cc9d7a3e0c
setup.py
setup.py
import os.path import re try: from setuptools import setup except ImportError: from distutils.core import setup def fpath(name): return os.path.join(os.path.dirname(__file__), name) def read(fname): return open(fpath(fname)).read() def grep(attrname): pattern = r"{0}\W*=\W*'([^']+)'".format(attrname) strval, = re.findall(pattern, file_text) return strval file_text = read(fpath('arrow/__init__.py')) setup( name='arrow', version=grep('__version__'), description='Better dates and times for Python', long_description=open('README.rst').read(), url='https://github.com/crsmithdev/arrow/', author='Chris Smith', author_email="crsmithdev@gmail.com", license='Apache 2.0', packages=['arrow'], zip_safe=False, install_requires=[ 'python-dateutil' ], test_suite="tests", classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Topic :: Software Development :: Libraries :: Python Modules' ] )
import os.path import re try: from setuptools import setup except ImportError: from distutils.core import setup def fpath(name): return os.path.join(os.path.dirname(__file__), name) def read(fname): return open(fpath(fname)).read() def grep(attrname): pattern = r"{0}\W*=\W*'([^']+)'".format(attrname) strval, = re.findall(pattern, file_text) return strval file_text = read(fpath('arrow/__init__.py')) setup( name='arrow', version=grep('__version__'), description='Better dates and times for Python', long_description=read(fpath('README.rst')), url='https://github.com/crsmithdev/arrow/', author='Chris Smith', author_email="crsmithdev@gmail.com", license='Apache 2.0', packages=['arrow'], zip_safe=False, install_requires=[ 'python-dateutil' ], test_suite="tests", classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Topic :: Software Development :: Libraries :: Python Modules' ] )
Use read() utility to open README.
Use read() utility to open README.
Python
apache-2.0
crsmithdev/arrow
f1cba9b90d4b85a88b799a43a05807484e9b9910
setup.py
setup.py
#! /usr/bin/env python from setuptools import setup import re from os import path version = '' with open('cliff/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md')) as f: long_description = f.read() setup(name='mediacloud-cliff', version=version, description='Media Cloud CLIFF API Client Library', long_description=long_description, author='Rahul Bhargava', author_email='rahulb@media.mit.edu', url='http://cliff.mediacloud.org', packages={'cliff'}, package_data={'': ['LICENSE']}, include_package_data=True, install_requires=['requests'], license='MIT', zip_safe=False )
#! /usr/bin/env python from setuptools import setup import re from os import path version = '' with open('cliff/__init__.py', 'r') as fd: version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md')) as f: long_description = f.read() setup(name='mediacloud-cliff', version=version, description='Media Cloud CLIFF API Client Library', long_description=long_description, long_description_content_type='text/markdown', author='Rahul Bhargava', author_email='rahulb@media.mit.edu', url='http://cliff.mediacloud.org', packages={'cliff'}, package_data={'': ['LICENSE']}, include_package_data=True, install_requires=['requests'], license='MIT', zip_safe=False )
Fix long description format to be markdown
Fix long description format to be markdown
Python
mit
c4fcm/CLIFF-API-Client
a0325e9b29e41badf576c699163aef081df2ab32
setup.py
setup.py
from setuptools import setup import os # Get version without importing, which avoids dependency issues def get_version(): import re with open('imbox/version.py') as version_file: return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""", version_file.read()).group('version') def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() setup( name='imbox', version=get_version(), description="Python IMAP for Human beings", long_description=read('README.md'), keywords='email, IMAP, parsing emails', author='Martin Rusev', author_email='martin@amon.cx', url='https://github.com/martinrusev/imbox', license='MIT', packages=['imbox', 'imbox.vendors'], package_dir={'imbox': 'imbox'}, install_requires=[ 'chardet', ], python_requires='>=3.3', zip_safe=False, classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], test_suite='tests', )
from setuptools import setup import os # Get version without importing, which avoids dependency issues def get_version(): import re with open('imbox/version.py') as version_file: return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""", version_file.read()).group('version') def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as f: return f.read() setup( name='imbox', version=get_version(), description="Python IMAP for Human beings", long_description=read('README.md'), keywords='email, IMAP, parsing emails', author='Martin Rusev', author_email='martin@amon.cx', url='https://github.com/martinrusev/imbox', license='MIT', packages=['imbox', 'imbox.vendors'], package_dir={'imbox': 'imbox'}, install_requires=[ 'chardet', ], python_requires='>=3.3', zip_safe=False, classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', ], test_suite='tests', )
Use context manager for open
Use context manager for open
Python
mit
martinrusev/imbox
9da7f07e2a6900b1df2cc0d8e0766409d4a41495
setup.py
setup.py
""" Favien ====== Network canvas community. """ from setuptools import setup setup( name='Favien', version='dev', url='https://github.com/limeburst/favien', author='Jihyeok Seo', author_email='me@limeburst.net', description='Network canvas community', long_description=__doc__, zip_safe=False, packages=['favien', 'favien.web'], package_data={ 'favien.web': ['templates/*.*', 'templates/*/*.*', 'static/*.*', 'translations/*/LC_MESSAGES/*'], }, message_extractors={ 'favien/web/templates': [ ('**.html', 'jinja2', { 'extensions': 'jinja2.ext.autoescape,' 'jinja2.ext.with_' }) ] }, install_requires=[ 'Flask', 'Flask-Babel', 'SQLAlchemy', 'boto', 'click', 'redis', 'requests', 'requests_oauthlib', ], entry_points={ 'console_scripts': ['fav = favien.cli:cli'], } )
""" Favien ====== Network canvas community. """ from setuptools import setup setup( name='Favien', version='dev', url='https://github.com/limeburst/favien', author='Jihyeok Seo', author_email='me@limeburst.net', description='Network canvas community', long_description=__doc__, zip_safe=False, packages=['favien', 'favien.web'], package_data={ 'favien.web': ['templates/*.*', 'templates/*/*.*', 'static/*.*', 'static/*/*.*', 'translations/*/LC_MESSAGES/*'], }, message_extractors={ 'favien/web/templates': [ ('**.html', 'jinja2', { 'extensions': 'jinja2.ext.autoescape,' 'jinja2.ext.with_' }) ] }, install_requires=[ 'Flask', 'Flask-Babel', 'SQLAlchemy', 'boto', 'click', 'redis', 'requests', 'requests_oauthlib', ], entry_points={ 'console_scripts': ['fav = favien.cli:cli'], } )
Include static subdirectories in package
Include static subdirectories in package
Python
agpl-3.0
favien/favien,favien/favien,favien/favien
4523e55f7a7c5333b1087a037c6a96b6af30e111
setup.py
setup.py
#!/usr/bin/env python from subprocess import check_call, CalledProcessError from setuptools import setup def convert_readme(): try: check_call(["pandoc", "-f", "markdown_github", "-t", "rst", "-o", "README.rst", "README.md"]) except (OSError, CalledProcessError): return open('README.md').read() return open('README.rst').read() setup( name='django-mongoengine-forms', version='0.4.4', description="An implementation of django forms using mongoengine.", author='Thom Wiggers', author_email='thom@thomwiggers.nl', packages=['mongodbforms', 'tests'], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], license='New BSD License', long_description=convert_readme(), include_package_data=True, provides=['mongodbforms'], obsoletes=['mongodbforms'], url='https://github.com/thomwiggers/django-mongoengine-forms/', zip_safe=False, install_requires=['setuptools', 'django>=1.8', 'mongoengine>=0.10.0'], tests_require=['mongomock'], test_suite="tests.suite", )
#!/usr/bin/env python from subprocess import check_call, CalledProcessError from setuptools import setup import six requirements = ['setuptools', 'mongoengine>=0.10.0'] if six.PY3: requirements.append('django') else: requirements.append('django<2') def convert_readme(): try: check_call(["pandoc", "-f", "markdown_github", "-t", "rst", "-o", "README.rst", "README.md"]) except (OSError, CalledProcessError): return open('README.md').read() return open('README.rst').read() setup( name='django-mongoengine-forms', version='0.4.4', description="An implementation of django forms using mongoengine.", author='Thom Wiggers', author_email='thom@thomwiggers.nl', packages=['mongodbforms', 'tests'], classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Framework :: Django', ], license='New BSD License', long_description=convert_readme(), include_package_data=True, provides=['mongodbforms'], obsoletes=['mongodbforms'], url='https://github.com/thomwiggers/django-mongoengine-forms/', zip_safe=False, install_requires=requirements, tests_require=['mongomock'], test_suite="tests.suite", )
Install the proper version of Django
Install the proper version of Django
Python
bsd-3-clause
thomwiggers/django-mongodbforms
bc4e66a5229ea6863b39ce62a35e19c7cca217aa
setup.py
setup.py
from setuptools import setup from setuptools import find_packages from yelp_kafka_tool import __version__ setup( name="yelp-kafka-tool", version=__version__, author="Distributed systems team", author_email="team-dist-sys@yelp.com", description="Kafka management tools", packages=find_packages(exclude=["scripts", "tests"]), data_files=[ ("bash_completion.d", ["bash_completion.d/kafka-info"]), ], scripts=[ "scripts/kafka-info", "scripts/kafka-reassignment", "scripts/kafka-partition-manager", "scripts/kafka-consumer-manager", "scripts/yelpkafka", ], install_requires=[ "argcomplete", "kazoo>=2.0.post2,<3.0.0", "PyYAML<4.0.0", "yelp-kafka>=4.0.0,<5.0.0", "requests<3.0.0" ], )
from setuptools import setup from setuptools import find_packages from yelp_kafka_tool import __version__ setup( name="yelp-kafka-tool", version=__version__, author="Distributed systems team", author_email="team-dist-sys@yelp.com", description="Kafka management tools", packages=find_packages(exclude=["scripts", "tests"]), data_files=[ ("bash_completion.d", ["bash_completion.d/kafka-info"]), ], scripts=[ "scripts/kafka-info", "scripts/kafka-reassignment", "scripts/kafka-partition-manager", "scripts/kafka-consumer-manager", "scripts/yelpkafka", "scripts/kafka-check", ], install_requires=[ "argcomplete", "kazoo>=2.0.post2,<3.0.0", "PyYAML<4.0.0", "yelp-kafka>=4.0.0,<5.0.0", "requests<3.0.0" ], )
Include kafka-check, bump to v0.2.6
Include kafka-check, bump to v0.2.6
Python
apache-2.0
anthonysandrin/kafka-utils,Yelp/kafka-utils,anthonysandrin/kafka-utils,Yelp/kafka-utils
4359912ce0898c6c4a8d54c7328fb11a7eb486c9
setup.py
setup.py
from setuptools import setup, Extension import numpy ext_modules=[ Extension( "heat_diffusion_experiment.cython_versions", ["heat_diffusion_experiment/cython_versions.pyx"], language='c++', extra_compile_args=['/openmp'], # extra_link_args=['/openmp'], ), ] setup( name = 'heat_diffusion_experiment', ext_modules = ext_modules, include_dirs=[numpy.get_include()], packages=['heat_diffusion_experiment'], )
from setuptools import setup, Extension import numpy import sys if sys.platform == 'linux' extra_compile_args = ['-fopenmp' extra_link_args = ['-fopenmp'] else: extra_compile_args = ['-/openmp'] extra_link_args = ['-/openmp'] ext_modules=[ Extension( "heat_diffusion_experiment.cython_versions", ["heat_diffusion_experiment/cython_versions.pyx"], language='c++', extra_compile_args=extra_compile_args, extra_link_args=extra_link_args, ), ] setup( name = 'heat_diffusion_experiment', ext_modules = ext_modules, include_dirs=[numpy.get_include()], packages=['heat_diffusion_experiment'], )
Enable module to be compiled with msvc and gcc compilers
Enable module to be compiled with msvc and gcc compilers
Python
mit
dplucenio/heat_diffusion_experiment
9192fbad43b7df9153b63f04c444b3654626a9ec
setup.py
setup.py
from setuptools import setup, find_packages def main(): setup(name='bioagents', version='0.0.1', description='Biological Reasoning Agents', long_description='Biological Reasoning Agents', author='Benjamin Gyori', author_email='benjamin_gyori@hms.harvard.edu', url='http://github.com/sorgerlab/bioagents', packages=find_packages(), install_requires=['indra', 'pykqml'], include_package_data=True, keywords=['systems', 'biology', 'model', 'pathway', 'assembler', 'nlp', 'mechanism', 'biochemistry'], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering :: Bio-Informatics', 'Topic :: Scientific/Engineering :: Chemistry', 'Topic :: Scientific/Engineering :: Mathematics', ], ) if __name__ == '__main__': main()
from setuptools import setup, find_packages def main(): setup(name='bioagents', version='0.0.1', description='Biological Reasoning Agents', long_description='Biological Reasoning Agents', author='Benjamin Gyori', author_email='benjamin_gyori@hms.harvard.edu', url='http://github.com/sorgerlab/bioagents', packages=find_packages(), install_requires=['indra', 'pykqml>=1.2'], include_package_data=True, keywords=['systems', 'biology', 'model', 'pathway', 'assembler', 'nlp', 'mechanism', 'biochemistry'], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3', 'Topic :: Scientific/Engineering :: Bio-Informatics', 'Topic :: Scientific/Engineering :: Chemistry', 'Topic :: Scientific/Engineering :: Mathematics', ], ) if __name__ == '__main__': main()
Add pykqml dependency lower limit
Add pykqml dependency lower limit
Python
bsd-2-clause
bgyori/bioagents,sorgerlab/bioagents
adfc532450699ac929dd08199abc2c0f751d982f
setup.py
setup.py
#!/usr/bin/python3 from distutils.core import setup setup( name='tq', version='0.2.0', description='comand line css selector', author='Pedro', author_email='pedroghcode@gmail.com', url='https://github.com/plainas/tq', packages= ['tq'], scripts=['bin/tq'], install_requires=["beautifulsoup4==4.4.0"] )
#!/usr/bin/python3 from distutils.core import setup setup( name='tq', version='0.2.0', description='comand line css selector', author='Pedro', author_email='pedroghcode@gmail.com', url='https://github.com/plainas/tq', packages= ['tq'], scripts=['bin/tq'], install_requires=["beautifulsoup4>=4.4.0"] )
Allow this tool to be used with more recent versions of BeautifulSoup
Allow this tool to be used with more recent versions of BeautifulSoup This would allow the use of extra powerful selectors: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors
Python
mit
plainas/tq,plainas/tq,plainas/tq
35dc73f0149d83f2f7f0cae9e602b1aaa399f2c5
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup( name='robber', version='1.1.1', description='BDD / TDD assertion library for Python', author='Tao Liang', author_email='tao@synapse-ai.com', url='https://github.com/vesln/robber.py', packages=[ 'robber', 'robber.matchers', ], classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Testing' ], install_requires=[ 'mock', 'termcolor' ], tests_require=[ 'nose' ], )
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup long_description = 'BDD / TDD assertion library for Python', if os.path.exists('README.rst'): long_description = open('README.rst').read() setup( name='robber', version='1.1.2', description='BDD / TDD assertion library for Python', long_description=long_description, author='Tao Liang', author_email='tao@synapse-ai.com', url='https://github.com/vesln/robber.py', packages=[ 'robber', 'robber.matchers', ], classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Software Development :: Testing' ], install_requires=[ 'mock', 'termcolor' ], tests_require=[ 'nose' ], )
Deal with MD and RST doc
[c] Deal with MD and RST doc
Python
mit
vesln/robber.py
597854eeaacaae71832833d41eea260ad5ef7279
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='Simon', version='0.7.0', description='Simple MongoDB Models', long_description=open('README.rst').read(), author='Andy Dirnberger', author_email='dirn@dirnonline.com', url='https://github.com/dirn/Simon', packages=['simon'], package_data={'': ['LICENSE', 'README.rst']}, include_package_data=True, install_requires=['pymongo>=2.4'], tests_require=['coverage', 'mock', 'nose'], license=open('LICENSE').read(), classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
#!/usr/bin/env python from setuptools import setup setup( name='Simon', version='0.7.0', description='Simple MongoDB Models', long_description=open('README.rst').read(), author='Andy Dirnberger', author_email='dirn@dirnonline.com', url='https://github.com/dirn/Simon', packages=['simon'], package_data={'': ['LICENSE', 'README.rst']}, include_package_data=True, install_requires=['pymongo>=2.4'], tests_require=['coverage', 'mock', 'nose'], license=open('LICENSE').read(), classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD 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 :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules', ], )
Add Python 3 to supported languages
Add Python 3 to supported languages
Python
bsd-3-clause
dirn/Simon,dirn/Simon
7bd045ce1157343b17318ce446185138400a5f75
setup.py
setup.py
from setuptools import setup setup( name='sandbox', version=open('VERSION').read().strip(), long_description=(open('README.rst').read() + '\n' + open('CHANGELOG.rst').read()), py_modules=[ 'sandbox', ], setup_requires=[ ], install_requires=[ 'aiohttp', 'aiohttp_traversal', 'BTrees', 'cchardet', 'setuptools', 'ZODB', ], tests_require=[ ], entry_points = { 'console_scripts': [ 'sandbox = sandbox:main', ] } )
from setuptools import setup setup( name='sandbox', version=open('VERSION').read().strip(), long_description=(open('README.rst').read() + '\n' + open('CHANGELOG.rst').read()), py_modules=[ 'sandbox', ], setup_requires=[ ], install_requires=[ 'aiohttp', 'aiohttp_traversal', 'BTrees', 'cchardet', 'setuptools', 'transaction', 'ZODB', ], tests_require=[ ], entry_points = { 'console_scripts': [ 'sandbox = sandbox:main', ] } )
Add transaction to project requirements
Add transaction to project requirements
Python
bsd-2-clause
plone/plone.server,plone/plone.server
c972357a44640c7a5f803d79fc77ca597e1b22f0
setup.py
setup.py
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() config = { 'name': 'timew-report', 'version': '1.0.0', 'description': 'An interface for TimeWarrior report data', 'long_description': long_description, 'long_description_content_type': 'text/markdown', 'url': 'https://github.com/lauft/timew-report.git', 'author': 'Thomas Lauf', 'author_email': 'Thomas.Lauf@tngtech.com', 'license': 'MIT License', 'classifiers': [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', ], 'keywords': 'timewarrior taskwarrior time-tracking', 'packages': ['timewreport'], 'install_requires': ['python-dateutil'], } setup(**config)
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() config = { 'name': 'timew-report', 'version': '1.0.0', 'description': 'An interface for TimeWarrior report data', 'long_description': long_description, 'long_description_content_type': 'text/markdown', 'url': 'https://github.com/lauft/timew-report.git', 'author': 'Thomas Lauf', 'author_email': 'Thomas.Lauf@tngtech.com', 'license': 'MIT License', 'classifiers': [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3.4', ], 'keywords': 'timewarrior taskwarrior time-tracking', 'packages': ['timewreport'], 'install_requires': ['python-dateutil'], } setup(**config)
Drop support for python 2.7
Drop support for python 2.7
Python
mit
lauft/timew-report
655ac367fde72d892eccfeece3ebf6719612d35b
setup.py
setup.py
from setuptools import setup, find_packages setup( name='amii-tf-nn', version='0.0.1', license='MIT', packages=find_packages(), install_requires=[ 'future == 0.15.2', 'setuptools >= 20.2.2', 'pyyaml == 3.12', # tensorflow or tensorflow-gpu ], tests_require=['pytest', 'pytest-cov'], setup_requires=['pytest-runner'], classifiers=[ 'License :: OSI Approved :: MIT License' ], )
from setuptools import setup, find_packages setup( name='amii-tf-nn', version='0.0.1', license='MIT', packages=find_packages(), install_requires=[ 'future == 0.15.2', 'setuptools >= 20.2.2', 'pyyaml == 3.12', # tensorflow or tensorflow-gpu v1.2 ], tests_require=['pytest', 'pytest-cov'], setup_requires=['pytest-runner'], classifiers=[ 'License :: OSI Approved :: MIT License' ], )
Add version to tf library reminder.
Add version to tf library reminder.
Python
mit
AmiiThinks/amii-tf-nn
eda2686d7a59acf5fc7f6d72b710ccc8b20801a9
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup long_description = open('README.rst').read() setup( name='django-tagging-autocomplete', version='0.4.2', description='Autocompletion for django-tagging', long_description=long_description, author='Ludwik Trammer', author_email='ludwik@gmail.com', url='https://github.com/ludwiktrammer/django-tagging-autocomplete/', packages=['tagging_autocomplete'], 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', ] )
# -*- coding: utf-8 -*- import os from distutils.core import setup from distutils.command.install import INSTALL_SCHEMES long_description = open('README.rst').read() # install data files where source files are installed for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib'] def find_data_files(filepath): return sum([ [(path, [os.path.join(path, name)]) for name in names] for path, _, names in os.walk(filepath)], []) setup( name='django-tagging-autocomplete', version='0.4.2', description='Autocompletion for django-tagging', long_description=long_description, author='Ludwik Trammer', author_email='ludwik@gmail.com', url='https://github.com/ludwiktrammer/django-tagging-autocomplete/', packages=['tagging_autocomplete'], data_files=find_data_files('tagging_autocomplete/static'), 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', ] )
Install static files with distutils.
Install static files with distutils.
Python
mit
ludwiktrammer/django-tagging-autocomplete
06110d32be6bc52f05274318a0f5ff27828acf91
setup.py
setup.py
#!/usr/bin/env python # Support setuptools or distutils try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup # Version info -- read without importing _locals = {} version_module = execfile('invocations/_version.py', _locals) version = _locals['__version__'] setup( name='invocations', version=version, description='Reusable Invoke tasks', license='BSD', author='Jeff Forcier', author_email='jeff@bitprophet.org', url='http://pyinvoke.org', # Release requirements. See dev-requirements.txt for dev version reqs. requirements=['invoke>=0.1.0'], packages=find_packages(), classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Unix', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Software Development', 'Topic :: Software Development :: Build Tools', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Software Distribution', 'Topic :: System :: Systems Administration', ], )
#!/usr/bin/env python # Support setuptools or distutils try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup # Version info -- read without importing _locals = {} with open('invocations/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='invocations', version=version, description='Reusable Invoke tasks', license='BSD', author='Jeff Forcier', author_email='jeff@bitprophet.org', url='http://pyinvoke.org', # Release requirements. See dev-requirements.txt for dev version reqs. requirements=['invoke>=0.1.0'], packages=find_packages(), classifiers=[ 'Development Status :: 3 - Alpha', 'Environment :: Console', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: OSI Approved :: BSD License', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Unix', 'Operating System :: POSIX', 'Programming Language :: Python', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Software Development', 'Topic :: Software Development :: Build Tools', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Software Distribution', 'Topic :: System :: Systems Administration', ], )
Switch to a Python3 Compataible open + read + exec vs execfile
Switch to a Python3 Compataible open + read + exec vs execfile
Python
bsd-2-clause
pyinvoke/invocations,alex/invocations,mrjmad/invocations,singingwolfboy/invocations
e34969db596ff3dfa4bf78efb3f3ccfe771d9ef9
setup.py
setup.py
# Use setuptools if we can try: from setuptools.core import setup except ImportError: from distutils.core import setup PACKAGE = 'django_exceptional_middleware' VERSION = '0.2' data_files = [ ( 'exceptional_middleware/templates/http_responses', [ 'exceptional_middleware/templates/http_responses/default.html' ], ), ] setup( name=PACKAGE, version=VERSION, description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.", packages=[ 'exceptional_middleware' ], data_files=data_files, license='MIT', author='James Aylett', url = 'http://tartarus.org/james/computers/django/', )
# Use setuptools if we can try: from setuptools.core import setup except ImportError: from distutils.core import setup PACKAGE = 'django_exceptional_middleware' VERSION = '0.4' package_data = { 'exceptional_middleware': [ 'templates/http_responses/*.html' ], } setup( name=PACKAGE, version=VERSION, description="Django middleware to allow generating arbitrary HTTP status codes via exceptions.", packages=[ 'exceptional_middleware' ], package_data=package_data, license='MIT', author='James Aylett', url = 'http://tartarus.org/james/computers/django/', )
Fix templates install. Bump to version 0.4 in the process (which is really my laziness).
Fix templates install. Bump to version 0.4 in the process (which is really my laziness).
Python
mit
jaylett/django_exceptional_middleware
23981dd5908b423104bdf51e6882d043b3efdc6e
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup setup( name='dj-queryset-manager', version='0.1.0', url='https://github.com/nosamanuel/dj-queryset-manager', license=open('LICENSE').read(), author='Noah Seger', author_email='nosamanuel@gmail.com.com', description='Stop writing Django querysets.', long_description=open('README.rst').read(), py_modules=['dj_queryset_manager'], test_suite='tests', tests_require=['Django>=1.2'] )
# -*- coding: utf-8 -*- from setuptools import setup setup( name='dj-queryset-manager', version='0.1.1', url='https://github.com/nosamanuel/dj-queryset-manager', license=open('LICENSE').read(), author='Noah Seger', author_email='nosamanuel@gmail.com.com', description='Stop writing Django querysets.', long_description=open('README.rst').read(), py_modules=['dj_queryset_manager'], package_data={'': ['LICENSE', 'README.rst']}, include_package_data=True, test_suite='tests', tests_require=['Django>=1.2'] )
Include package data to fix bad install (v0.1.1)
Include package data to fix bad install (v0.1.1)
Python
bsd-3-clause
nosamanuel/dj-queryset-manager
c6265c2112ee9985af8b6b80fe0bee1811dc6abd
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup setup( name='oceanoptics', version='0.2.6', author='Andreas Poehlmann, Jose A. Jimenez-Berni, Ben Gamari, Simon Dickreuter', author_email='mail@andreaspoehlmann.de', packages=['oceanoptics', 'oceanoptics.spectrometers'], description='A Python driver for Ocean Optics spectrometers.', long_description=open('README.md').read(), requires=['python (>= 2.7)', 'pyusb (>= 1.0)', 'numpy'], )
# -*- coding: utf-8 -*- from distutils.core import setup setup( name='oceanoptics', version='0.2.7', author='Andreas Poehlmann, Jose A. Jimenez-Berni, Ben Gamari, Simon Dickreuter, Ian Ross Williams', author_email='mail@andreaspoehlmann.de', packages=['oceanoptics', 'oceanoptics.spectrometers'], description='A Python driver for Ocean Optics spectrometers.', long_description=open('README.md').read(), requires=['python (>= 2.7)', 'pyusb (>= 1.0)', 'numpy'], )
Add author and increase version number
Add author and increase version number
Python
mit
ap--/python-oceanoptics
e01697c5d5e5e45a0dd20870c71bb17399991ca1
setup.py
setup.py
import os from setuptools import setup, find_packages ROOT = os.path.abspath(os.path.dirname(__file__)) setup( name='django-nose', version='0.2', description='Django test runner that uses nose.', long_description=open(os.path.join(ROOT, 'README.rst')).read(), author='Jeff Balogh', author_email='me@jeffbalogh.org', url='http://github.com/jbalogh/django-nose', license='BSD', packages=find_packages(exclude=['testapp','testapp/*']), include_package_data=True, zip_safe=False, install_requires=['nose'], tests_require=['Django', 'south'], entry_points=""" [nose.plugins.0.10] fixture_bundler = django_nose.fixture_bundling:FixtureBundlingPlugin """, 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 :: Software Development :: Libraries :: Python Modules', ] )
import os from setuptools import setup, find_packages ROOT = os.path.abspath(os.path.dirname(__file__)) setup( name='django-nose', version='0.2', description='Django test runner that uses nose.', long_description=open(os.path.join(ROOT, 'README.rst')).read(), author='Jeff Balogh', author_email='me@jeffbalogh.org', url='http://github.com/jbalogh/django-nose', license='BSD', packages=find_packages(exclude=['testapp','testapp/*']), include_package_data=True, zip_safe=False, install_requires=['nose'], tests_require=['Django', 'south'], # This blows up tox runs that install django-nose into a virtualenv, # because it causes Nose to import django_nose.runner before the Django # settings are initialized, leading to a mess of errors. There's no reason # we need FixtureBundlingPlugin declared as an entrypoint anyway, since you # need to be using django-nose to find the it useful, and django-nose knows # about it intrinsically. #entry_points=""" # [nose.plugins.0.10] # fixture_bundler = django_nose.fixture_bundling:FixtureBundlingPlugin # """, 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 :: Software Development :: Libraries :: Python Modules', ] )
Comment out entrypoint because it blows up django-nose in connection with tox. Ouch.
Comment out entrypoint because it blows up django-nose in connection with tox. Ouch.
Python
bsd-3-clause
millerdev/django-nose,millerdev/django-nose,harukaeru/django-nose,dgladkov/django-nose,sociateru/django-nose,360youlun/django-nose,mzdaniel/django-nose,brilliant-org/django-nose,sociateru/django-nose,dgladkov/django-nose,krinart/django-nose,fabiosantoscode/django-nose-123-fix,mzdaniel/django-nose,franciscoruiz/django-nose,krinart/django-nose,alexhayes/django-nose,daineX/django-nose,alexhayes/django-nose,Deepomatic/django-nose,daineX/django-nose,fabiosantoscode/django-nose-123-fix,aristiden7o/django-nose,harukaeru/django-nose,franciscoruiz/django-nose,Deepomatic/django-nose,brilliant-org/django-nose,aristiden7o/django-nose,360youlun/django-nose
da10b6baa19c1ef3a5f875297187e7248b7460b1
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import sys long_description = '' if 'upload' in sys.argv: with open('README.rst') as f: long_description = f.read() def extras_require(): return { 'test': [ 'tox>=2.0', 'pytest>=2.8.5', 'pytest-cov>=1.8.1', 'pytest-pep8>=1.0.6', ], } def install_requires(): requires = ['six'] if sys.version_info[:2] < (3, 5): requires.append("typing>=3.5.2") if sys.version_info[0] == 2: requires.append("funcsigs>=1.0.2") return requires setup( name='python-interface', version='1.4.0', description="Pythonic Interface definitions", author="Scott Sanderson", author_email="scott.b.sanderson90@gmail.com", packages=find_packages(), long_description=long_description, license='Apache 2.0', classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Software Development :: Pre-processors', ], url='https://github.com/ssanderson/interface', install_requires=install_requires(), extras_require=extras_require(), )
#!/usr/bin/env python from setuptools import setup, find_packages import sys long_description = '' if 'upload' in sys.argv: with open('README.rst') as f: long_description = f.read() def extras_require(): return { 'test': [ 'tox>=2.0', 'pytest>=2.8.5', 'pytest-cov>=1.8.1', 'pytest-pep8>=1.0.6', ], } def install_requires(): return [ 'six', 'typing>=3.5.2;python_version<"3.5"', 'funcsigs>=1.0.2;python_version<"3"' ] setup( name='python-interface', version='1.4.0', description="Pythonic Interface definitions", author="Scott Sanderson", author_email="scott.b.sanderson90@gmail.com", packages=find_packages(), long_description=long_description, license='Apache 2.0', classifiers=[ 'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Topic :: Software Development :: Pre-processors', ], url='https://github.com/ssanderson/interface', install_requires=install_requires(), extras_require=extras_require(), )
Use PEP 508 version markers.
BLD: Use PEP 508 version markers. So that environment tooling, e.g. `pipenv` can use the python version markers when determining dependencies.
Python
apache-2.0
ssanderson/interface
0458cc6e41b55bdd6e393c517492a5f6631a51c9
setup.py
setup.py
from setuptools import setup, find_packages import sys, os PACKAGE = 'mtdna' VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip() desc_lines = open('README', 'r').readlines() setup(name='oldowan.%s' % PACKAGE, version=VERSION, description=desc_lines[0], long_description=''.join(desc_lines[2:]), classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering :: Bio-Informatics" ], keywords='', platforms=['Any'], author='Ryan Raaum', author_email='code@raaum.org', url='http://www.raaum.org/software/oldowan', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=False, namespace_packages = ['oldowan'], data_files=[("oldowan/%s" % PACKAGE, ["oldowan/%s/VERSION" % PACKAGE])], zip_safe=False, test_suite = 'nose.collector', )
from setuptools import setup, find_packages import sys, os PACKAGE = 'mtdna' VERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PACKAGE, 'VERSION')).read().strip() desc_lines = open('README', 'r').readlines() setup(name='oldowan.%s' % PACKAGE, version=VERSION, description=desc_lines[0], long_description=''.join(desc_lines[2:]), classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering :: Bio-Informatics" ], keywords='', platforms=['Any'], author='Ryan Raaum', author_email='code@raaum.org', url='http://www.raaum.org/software/oldowan', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, namespace_packages = ['oldowan'], data_files=[("oldowan/%s" % PACKAGE, ["oldowan/%s/VERSION" % PACKAGE])], zip_safe=False, test_suite = 'nose.collector', )
Fix package data so that VERSION file actually gets installed
Fix package data so that VERSION file actually gets installed
Python
mit
ryanraaum/oldowan.mtdna
0309dbd25b6d7603aba5f0cf686e9d049716b711
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.0dev", 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", "numpy >= 1.7.0", "oedialect", "open_FRED-cli", "pandas >= 0.13.1", "pvlib >= 0.6.0", "windpowerlib >= 0.2.0", "xarray >= 0.12.0", ], extras_require={ "dev": ["pytest", "jupyter", "sphinx_rtd_theme", "nbformat"], "examples": ["jupyter"], }, )
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.0dev", 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", "numpy >= 1.7.0", "oedialect", "open_FRED-cli", "pandas >= 0.13.1", "pvlib >= 0.6.0", "windpowerlib >= 0.2.0", "xarray >= 0.12.0", ], extras_require={ "dev": ["jupyter", "pytest", "shapely", "sphinx_rtd_theme"], "examples": ["jupyter", "shapely"], }, )
Add `"shapely"` dependency to extra requirements
Add `"shapely"` dependency to extra requirements Also, `"nbformat"` is a dependency of `"jupyter"` so we don't need to specify both.
Python
mit
oemof/feedinlib
b78c634069354565cf749ed139cade244415b5a4
setup.py
setup.py
import os from setuptools import setup longDesc = "" if os.path.exists("README.rst"): longDesc = open("README.rst").read().strip() setup( name = "pytesseract", version = "0.1.6", author = "Samuel Hoffstaetter", author_email="", maintainer = "Matthias Lee", maintainer_email = "pytesseract@madmaze.net", description = ("Python-tesseract is a python wrapper for google's Tesseract-OCR"), long_description = longDesc, license = "GPLv3", keywords = "python-tesseract OCR Python", url = "https://github.com/madmaze/python-tesseract", packages=['pytesseract'], package_dir={'pytesseract': 'src'}, package_data = {'pytesseract': ['*.png','*.jpg']}, entry_points = {'console_scripts': ['pytesseract = pytesseract.pytesseract:main']}, classifiers = [ 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', ] )
import os from setuptools import setup longDesc = "" if os.path.exists("README.rst"): longDesc = open("README.rst").read().strip() setup( name = "pytesseract", version = "0.1.6", author = "Samuel Hoffstaetter", author_email="pytesseract@madmaze.net", maintainer = "Matthias Lee", maintainer_email = "pytesseract@madmaze.net", description = ("Python-tesseract is a python wrapper for google's Tesseract-OCR"), long_description = longDesc, license = "GPLv3", keywords = "python-tesseract OCR Python", url = "https://github.com/madmaze/python-tesseract", packages=['pytesseract'], package_dir={'pytesseract': 'src'}, package_data = {'pytesseract': ['*.png','*.jpg']}, entry_points = {'console_scripts': ['pytesseract = pytesseract.pytesseract:main']}, classifiers = [ 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', ] )
Include author email since it's required info
Include author email since it's required info Same as maintainer email, because the author email is unknown
Python
apache-2.0
madmaze/pytesseract
ae1cf07cc703d85f3d3c77eab76c83baec17a74d
split.py
split.py
import re def split_string(string, seperator=' '): return string.split(seperator) def split_regex(string, seperator_pattern): return re.split(seperator_pattern, string) class FilterModule(object): ''' A filter to split a string into a list. ''' def filters(self): return { 'split' : split_string, 'split_regex' : split_regex, }
from ansible import errors import re def split_string(string, seperator=' '): try: return string.split(seperator) except Exception, e: raise errors.AnsibleFilterError('split plugin error: %s, string=%s' % str(e),str(string) ) def split_regex(string, seperator_pattern): try: return re.split(seperator_pattern, string) except Exception, e: raise errors.AnsibleFilterError('split plugin error: %s' % str(e)) class FilterModule(object): ''' A filter to split a string into a list. ''' def filters(self): return { 'split' : split_string, 'split_regex' : split_regex, }
Add standard Ansible exception handling
Add standard Ansible exception handling
Python
cc0-1.0
timraasveld/ansible-string-split-filter,ypid/ansible-string-split-filter
cfe77bd4fd40b58678fa56ec08b5f862d9f1781c
post.py
post.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import cgi import sqlite3 import time import config def valid(qs): required_keys = ['title', 'comment', 'posted_by', 'localite', 'latitude', 'longitude'] return all([qs.has_key(k) for k in required_keys]) def post(title, comment, posted_by, localite, latitude, longitude): rate = 0 created_at = int(time.time()) updated_at = created_at sql = u'insert into posts (id, title, comment, posted_by, localite, rate, latitude, longitude, created_at, updated_at) values (null,?,?,?,?,?,?,?,?,?);' con = sqlite3.connect(config.db_path, isolation_level=None) con.execute(sql, (title, comment, posted_by, localite, rate, latitude, longitude, created_at, updated_at)) con.close() if __name__ == '__main__': import utils qs = utils.fs2dict(cgi.FieldStorage()) if valid(qs): keys = ['title', 'comment', 'posted_by', 'localite', 'latitude', 'longitude'] query_string = [qs[k].decode('utf-8') for k in keys] post(*query_string) result = '{"message": "Successfully posted!"}' else: result = '{"message": "Invalid query string"}' utils.cgi_header() print result
#!/usr/bin/env python # -*- coding: utf-8 -*- import cgi import sqlite3 import time import config def valid(qs): required_keys = ['title', 'comment', 'posted_by', 'localite', 'latitude', 'longitude'] return all([qs.has_key(k) for k in required_keys]) def post(title, comment, posted_by, localite, latitude, longitude): rate = 0 created_at = int(time.time()*1000) updated_at = created_at sql = u'insert into posts (id, title, comment, posted_by, localite, rate, latitude, longitude, created_at, updated_at) values (null,?,?,?,?,?,?,?,?,?);' con = sqlite3.connect(config.db_path, isolation_level=None) con.execute(sql, (title, comment, posted_by, localite, rate, latitude, longitude, created_at, updated_at)) con.close() if __name__ == '__main__': import utils qs = utils.fs2dict(cgi.FieldStorage()) if valid(qs): keys = ['title', 'comment', 'posted_by', 'localite', 'latitude', 'longitude'] query_string = [qs[k].decode('utf-8') for k in keys] post(*query_string) result = '{"message": "Successfully posted!"}' else: result = '{"message": "Invalid query string"}' utils.cgi_header() print result
Modify created_at and updated_at to millisecond
Modify created_at and updated_at to millisecond
Python
mit
otknoy/michishiki_api_server
5bb9b2c9d5df410c85f4736c17224aeb2f05dd33
s2v3.py
s2v3.py
from s2v2 import * def calculate_sum(data_sample): total = 0 for row in data_sample[1:]: # slice to start at row two, but I think we should only skip row 1 if we're importing the full csv (data_from_csv), but if we use the data w/ the header (my_csv) we'll be skipping a row that we're not supposed to skip (the actual first row of non-header data). price = float(row[2]) total += price return total print('the sum total of prices for all ties in the dataset = ' + str(calculate_sum(data_from_csv))) # ok we're using the right import, but having two imports is confusing.
from s2v2 import * def calculate_sum(data_sample): total = 0 for row in data_sample[1:]: # slice to start at row two, but I think we should only skip row 1 if we're importing the full csv (data_from_csv), but if we use the data w/ the header (my_csv) we'll be skipping a row that we're not supposed to skip (the actual first row of non-header data). price = float(row[2]) total += price return total print('the sum total of prices for all ties in the dataset = ', calculate_sum(data_from_csv)) # ok we're using the right import, but having two imports is confusing. UPDDATE: No, I don't have to convert the calculate_sum result to a string to add text about it, I just need to use , instead of +
Update print result to use "," instead of "+" for context text
Update print result to use "," instead of "+" for context text
Python
mit
alexmilesyounger/ds_basics
7b422b2432bc8db3034e39073d2efa0bd69ec35f
test.py
test.py
import time import urllib import RPi.GPIO as GPIO # GPIO input pin to use LPR_PIN = 3 # URL to get image from SOURCE = 'http://192.168.0.13:8080/photoaf.jpg' # Path to save image locally FILE = 'img.jpg' # Use GPIO pin numbers GPIO.setmode(GPIO.BCM) # Disable "Ports already in use" warning GPIO.setwarnings(False) # Set the pin to be an input GPIO.setup(LPR_PIN, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Only save the image once per gate opening captured = False # Main loop while True: # Capture the image if not captured yet and switch is closed (open gate) if not captured and GPIO.input(LPR_PIN) is True: urllib.urlretrieve(SOURCE, FILE) print "Gate has been opened!" captured = True # If there was a capture and the switch is now open (closed gate) then # ready the loop to capture again. if captured and GPIO.input(LPR_PIN) is False: print "The gate has now closed!" captured = False time.sleep(1)
import time import urllib import RPi.GPIO as GPIO # GPIO input pin to use LPR_PIN = 3 # URL to get image from SOURCE = 'http://192.168.0.13:8080/photoaf.jpg' # Path to save image locally FILE = 'img.jpg' # Use GPIO pin numbers GPIO.setmode(GPIO.BCM) # Disable "Ports already in use" warning GPIO.setwarnings(False) # Set the pin to be an input GPIO.setup(LPR_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Try statement to cleanup GPIO pins try: # Only save the image once per gate opening captured = False # Main loop while True: # Capture the image if not captured yet and switch is closed (open gate) if not captured and GPIO.input(LPR_PIN) is True: urllib.urlretrieve(SOURCE, FILE) print "Gate has been opened!" captured = True # If there was a capture and the switch is now open (closed gate) then # ready the loop to capture again. if captured and GPIO.input(LPR_PIN) is False: print "The gate has now closed!" captured = False time.sleep(1) except KeyboardInterrupt: GPIO.cleanup()
Add try statement to cleanup pins and invert pull/up down
Add try statement to cleanup pins and invert pull/up down
Python
mit
adampiskorski/lpr_poc
75f6963082ed686f4d91ec8df3961048d9428c6b
test.py
test.py
import unittest from enigma import Enigma, Steckerbrett, Umkehrwalze, Walzen class RotorTestCase(unittest.TestCase): pass def run_tests(): runner = unittest.TextTestRunner() suite = unittest.TestLoader().loadTestsFromTestCase(RotorTestCase) runner.run(suite) if __name__ == '__main__': # pragma: no cover run_tests()
import unittest from enigma import Enigma, Steckerbrett, Umkehrwalze, Walzen class RotorTestCase(unittest.TestCase): def test_rotor_encoding(self): rotor = Walzen(wiring='EKMFLGDQVZNTOWYHXUSPAIBRCJ', notch='Q') self.assertEqual('E', rotor.encode('A')) def run_tests(): runner = unittest.TextTestRunner() suite = unittest.TestLoader().loadTestsFromTestCase(RotorTestCase) runner.run(suite) if __name__ == '__main__': # pragma: no cover run_tests()
Test if default rotor encodes forward properly
Test if default rotor encodes forward properly
Python
mit
ranisalt/enigma
3ba5b6491bf61e2d2919f05bbf5cef088a754aeb
molecule/default/tests/test_installation.py
molecule/default/tests/test_installation.py
""" Role tests """ import os import pytest from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.parametrize('name', [ ('vsftpd'), ('db5.3-util'), ]) def test_installed_packages(host, name): """ Test if packages installed """ assert host.package(name).is_installed def test_service(host): """ Test service state """ service = host.service('vsftpd') assert service.is_enabled # if host.system_info.codename in ['jessie', 'xenial']: if host.file('/etc/init.d/vsftpd').exists: assert 'is running' in host.check_output('/etc/init.d/vsftpd status') else: assert service.is_running def test_process(host): """ Test process state """ assert len(host.process.filter(comm='vsftpd')) == 1 def test_socket(host): """ Test ports """ assert host.socket('tcp://127.0.0.1:21').is_listening def test_user(host): """ Test ftp user exists """ ftp_user = host.user('ftp') assert ftp_user.exists assert ftp_user.shell == '/bin/false'
""" Role tests """ import os import pytest from testinfra.utils.ansible_runner import AnsibleRunner testinfra_hosts = AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.parametrize('name', [ ('vsftpd'), ('db5.3-util'), ]) def test_installed_packages(host, name): """ Test if packages installed """ assert host.package(name).is_installed def test_service(host): """ Test service state """ service = host.service('vsftpd') assert service.is_enabled # if host.system_info.codename in ['jessie', 'xenial']: if host.file('/etc/init.d/vsftpd').exists: assert 'is running' in host.check_output('/etc/init.d/vsftpd status') else: assert service.is_running def test_process(host): """ Test process state """ assert len(host.process.filter(comm='vsftpd')) == 1 def test_socket(host): """ Test ports """ assert host.socket('tcp://127.0.0.1:21').is_listening def test_user(host): """ Test ftp user exists """ ftp_user = host.user('ftp') assert ftp_user.exists assert ftp_user.shell in ['/usr/sbin/nologin', '/bin/false']
Add nologin in expected user shell test
Add nologin in expected user shell test
Python
mit
infOpen/ansible-role-vsftpd
a8d873e178d45024db9c0ef6a25c6867424785f7
bindings/python/llvm/tests/base.py
bindings/python/llvm/tests/base.py
import os.path import unittest POSSIBLE_TEST_BINARIES = [ 'libreadline.so.5', 'libreadline.so.6', ] POSSIBLE_TEST_BINARY_PATHS = [ '/lib', '/usr/lib', '/usr/local/lib', ] class TestBase(unittest.TestCase): def get_test_binary(self): """Helper to obtain a test binary for object file testing. FIXME Support additional, highly-likely targets or create one ourselves. """ for d in POSSIBLE_TEST_BINARY_PATHS: for lib in POSSIBLE_TEST_BINARIES: path = os.path.join(d, lib) if os.path.exists(path): return path raise Exception('No suitable test binaries available!') get_test_binary.__test__ = False
import os.path import unittest POSSIBLE_TEST_BINARIES = [ 'libreadline.so.5', 'libreadline.so.6', ] POSSIBLE_TEST_BINARY_PATHS = [ '/usr/lib/debug', '/lib', '/usr/lib', '/usr/local/lib', '/lib/i386-linux-gnu', ] class TestBase(unittest.TestCase): def get_test_binary(self): """Helper to obtain a test binary for object file testing. FIXME Support additional, highly-likely targets or create one ourselves. """ for d in POSSIBLE_TEST_BINARY_PATHS: for lib in POSSIBLE_TEST_BINARIES: path = os.path.join(d, lib) if os.path.exists(path): return path raise Exception('No suitable test binaries available!') get_test_binary.__test__ = False
Add some paths where to find test binary
[python] Add some paths where to find test binary Adds /usr/lib/debug early to list, as some systems (debian) have unstripped libs in there Adds /lib/i386-linux-gnu for systems that does multiarch (debian) git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@153174 91177308-0d34-0410-b5e6-96231b3b80d8
Python
bsd-2-clause
chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm
b15872bff28628c468d3d485eae2f79efba41160
worker/server/constants.py
worker/server/constants.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. # # 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. ############################################################################### # The path that will be mounted in docker containers for data IO DOCKER_DATA_VOLUME = '/mnt/girder_worker/data' # The path that will be mounted in docker containers for utility scripts DOCKER_SCRIPTS_VOUME = '/mnt/girder_worker/scripts' # Settings where plugin information is stored class PluginSettings(object): BROKER = 'worker.broker' BACKEND = 'worker.backend' API_URL = 'worker.api_url'
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. # # 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. ############################################################################### # The path that will be mounted in docker containers for data IO DOCKER_DATA_VOLUME = '/mnt/girder_worker/data' # The path that will be mounted in docker containers for utility scripts DOCKER_SCRIPTS_VOLUME = '/mnt/girder_worker/scripts' # Settings where plugin information is stored class PluginSettings(object): BROKER = 'worker.broker' BACKEND = 'worker.backend' API_URL = 'worker.api_url'
Fix a misspelled variable name
Fix a misspelled variable name This appears to be unused anywhere in the source code.
Python
apache-2.0
girder/girder_worker,girder/girder_worker,girder/girder_worker
b4c9b76d132668695b77d37d7db3071e629fcba7
makerscience_admin/models.py
makerscience_admin/models.py
# -*- coding: utf-8 -*- from django.db import models from solo.models import SingletonModel class MakerScienceStaticContent (SingletonModel): about = models.TextField(null=True, blank=True) about_team = models.TextField(null=True, blank=True) about_contact = models.TextField(null=True, blank=True) about_faq = models.TextField(null=True, blank=True) about_cgu = models.TextField(null=True, blank=True) class PageViews(models.Model): client = models.CharField(max_length=255) resource_uri = models.CharField(max_length=255)
# -*- coding: utf-8 -*- from django.db import models from django.db.models.signals import post_delete from solo.models import SingletonModel from accounts.models import ObjectProfileLink from makerscience_forum.models import MakerSciencePost class MakerScienceStaticContent (SingletonModel): about = models.TextField(null=True, blank=True) about_team = models.TextField(null=True, blank=True) about_contact = models.TextField(null=True, blank=True) about_faq = models.TextField(null=True, blank=True) about_cgu = models.TextField(null=True, blank=True) class PageViews(models.Model): client = models.CharField(max_length=255) resource_uri = models.CharField(max_length=255) def clear_makerscience(sender, instance, **kwargs): if sender == MakerSciencePost: ObjectProfileLink.objects.filter(content_type__model='post', object_id=instance.parent.id).delete() instance.parent.delete() post_delete.connect(clear_makerscience, sender=MakerSciencePost)
Allow to clear useless instances
Allow to clear useless instances
Python
agpl-3.0
atiberghien/makerscience-server,atiberghien/makerscience-server
9fa296bfad85b42c04c325f1dfdd1caaa31bbd1b
NSYSU.py
NSYSU.py
cast=["Cleese","Palin","Jones","Idle"] print(cast) cast.pop() print(cast) cast.extend(["Gillan","Chanpman"]) print(cast)
#test code cast=["Cleese","Palin","Jones","Idle"] print(cast) cast.pop() print(cast) cast.extend(["Gillan","Chanpman"]) print(cast)
Add modify code Google News Crawer
Add modify code Google News Crawer
Python
epl-1.0
KuChanTung/Python
c3e81aee9852a94befdec9d9b2d3f9cd3d7914e2
dbaas/system/tasks.py
dbaas/system/tasks.py
# -*- coding: utf-8 -*- from dbaas.celery import app from util.decorators import only_one from models import CeleryHealthCheck #from celery.utils.log import get_task_logger #LOG = get_task_logger(__name__) import logging LOG = logging.getLogger(__name__) @app.task(bind=True) def set_celery_healthcheck_last_update(self): LOG.info("Setting Celery healthcheck last update") CeleryHealthCheck.set_last_update() return
# -*- coding: utf-8 -*- from dbaas.celery import app from util.decorators import only_one from models import CeleryHealthCheck from notification.models import TaskHistory import logging LOG = logging.getLogger(__name__) @app.task(bind=True) @only_one(key="celery_healthcheck_last_update", timeout=20) def set_celery_healthcheck_last_update(self): try: task_history = TaskHistory.register(request=self.request, user=None) LOG.info("Setting Celery healthcheck last update") CeleryHealthCheck.set_last_update() task_history.update_status_for(TaskHistory.STATUS_SUCCESS, details="Finished") except Exception, e: LOG.warn("Oopss...{}".format(e)) task_history.update_status_for(TaskHistory.STATUS_ERROR, details=e) finally: return
Change task to create a taskHistory object
Change task to create a taskHistory object
Python
bsd-3-clause
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
c713273fe145418113d750579f8b135dc513c3b8
config.py
config.py
import os if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db' else: SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning
import os SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning
Delete default case for SQLALCHEMY_DATABASE_URI
Delete default case for SQLALCHEMY_DATABASE_URI if user doesn't set it, he coud have some problems with SQLite
Python
mit
Stark-Mountain/meetup-facebook-bot,Stark-Mountain/meetup-facebook-bot
ac863c20ac4094168b07d6823241d55e985ba231
site.py
site.py
import sys from flask import Flask, render_template from flask_flatpages import FlatPages, flatpages from flask_frozen import Freezer DEBUG = True FLATPAGES_AUTO_RELOAD = DEBUG FLATPAGES_EXTENSION = '.md' FREEZER_DESTINATION = 'dist' app = Flask(__name__) app.config.from_object(__name__) pages = FlatPages(app) freezer = Freezer(app) @app.route('/') @app.route('/bio/') def index(): return render_template('bio.html', pages=pages) @app.route('/portfolio/') def portfolio(): projects = (p for p in pages if 'date' in p.meta) projects = sorted(projects, reverse=True, key=lambda p: p.meta['date']) return render_template('portfolio.html', pages=projects) @app.route('/portfolio/<path:path>/') def page(path): page = pages.get_or_404(path) return render_template('project.html', page=page) @app.route('/contatti/') def contatti(): page = pages.get_or_404("contatti") return render_template('page.html', page=page) if __name__ == '__main__': if len(sys.argv) > 1 and sys.argv[1] == "build": freezer.freeze() else: app.run(port=8080)
import sys from flask import Flask, render_template from flask_flatpages import FlatPages, flatpages from flask_frozen import Freezer DEBUG = True FLATPAGES_AUTO_RELOAD = DEBUG FLATPAGES_EXTENSION = '.md' FREEZER_DESTINATION = 'dist' app = Flask(__name__) app.config.from_object(__name__) pages = FlatPages(app) freezer = Freezer(app) @app.route('/') @app.route('/bio/') def index(): return render_template('bio.html', pages=pages) @app.route('/portfolio/') def portfolio(): projects = (p for p in pages if 'date' in p.meta) projects = sorted(projects, reverse=True, key=lambda p: p.meta['date']) return render_template('portfolio.html', pages=projects) @app.route('/portfolio/<path:path>/') def page(path): page = pages.get_or_404(path) return render_template('project.html', page=page) @app.route('/contatti/') def contatti(): page = pages.get_or_404("contatti") return render_template('page.html', page=page) @app.template_test("list") def is_list(value): return isinstance(value, list) if __name__ == '__main__': if len(sys.argv) > 1 and sys.argv[1] == "build": freezer.freeze() else: app.run(port=8080)
Create custom test for Jinja2
Create custom test for Jinja2
Python
mit
claudiopastorini/claudiopastorini.github.io,claudiopastorini/claudiopastorini.github.io,claudiopastorini/claudiopastorini.github.io
c61d5e84863dd67b5b76ec8031e624642f4c957c
main.py
main.py
from .ide.command import plugin_unloaded from .ide.error import * from .ide.rebuild import * from .ide.server import * from .ide.settings import plugin_loaded from .ide.text_command import * from .ide.type_hints import * from .ide.utility import *
from .ide.auto_complete import * from .ide.command import plugin_unloaded from .ide.error import * from .ide.rebuild import * from .ide.server import * from .ide.settings import plugin_loaded from .ide.text_command import * from .ide.type_hints import *
Fix issue with wrong import
Fix issue with wrong import
Python
mit
b123400/purescript-ide-sublime
a4013c7f33226915b3c1fb7863f3e96b24413591
main.py
main.py
# Copyright 2015, Google, Inc. # 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 urllib2 import json from google.appengine.ext import vendor vendor.add('lib') from flask import Flask app = Flask(__name__) from api_key import key @app.route('/get_author/<title>') def get_author(title): host = 'https://www.googleapis.com/books/v1/volumes?q={}&key={}&country=US'.format(title, key) request = urllib2.Request(host) try: response = urllib2.urlopen(request) except urllib2.HTTPError, error: contents = error.read() return str(contents) html = response.read() author = json.loads(html)['items'][0]['volumeInfo']['authors'][0] return author if __name__ == '__main__': app.run(debug=True)
# Copyright 2015, Google, Inc. # 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 urllib2 import json from google.appengine.ext import vendor vendor.add('lib') from flask import Flask app = Flask(__name__) from api_key import key @app.route('/get_author/<title>') def get_author(title): host = 'https://www.googleapis.com/books/v1/volumes?q={}&key={}&country=US'.format(title, key) request = urllib2.Request(host) try: response = urllib2.urlopen(request) except urllib2.HTTPError, error: contents = error.read() print ('Received error from Books API {}'.format(contents)) return str(contents) html = response.read() author = json.loads(html)['items'][0]['volumeInfo']['authors'][0] return author if __name__ == '__main__': app.run(debug=True)
Add Error Message To Server
Add Error Message To Server
Python
apache-2.0
bshaffer/appengine-python-vm-hello,googlearchive/appengine-python-vm-hello,bshaffer/appengine-python-vm-hello,googlearchive/appengine-python-vm-hello
db136a4313c859495109e4ddaa0b715260526f63
webhooks/registry.py
webhooks/registry.py
import logging from django.conf import settings from django.utils.importlib import import_module __all__ = ('events', 'register', 'unregister') logger = logging.getLogger('webhooks') class AlreadyRegistered(Exception): pass class NotRegistered(Exception): pass class Events(dict): def register(self, event, handler): if event in self: raise AlreadyRegistered('handler {0} already registered for event {1}'.format(handler, event)) self[event] = handler def unregister(self, event): if event not in self: raise NotRegistered('event {0} not registered') del self[event] events = Events() register = events.register unregister = events.unregister # Autodiscover apps for webhook handlers. Modules can import webhooks and # and do webhooks.register. for app in settings.INSTALLED_APPS: module_path = '{0}.{1}'.format(app, 'webhooks') try: import_module(module_path) except Exception as e: logger.debug('failed to import module', extra={ 'module_path': module_path, 'error': repr(e), })
import logging from django.conf import settings from django.utils.importlib import import_module __all__ = ('events', 'register', 'unregister') logger = logging.getLogger('webhooks') class AlreadyRegistered(Exception): pass class NotRegistered(Exception): pass class Events(dict): def register(self, event, handler): if event in self: raise AlreadyRegistered('handler {0} already registered for event {1}'.format(handler, event)) self[event] = handler def unregister(self, event): if event not in self: raise NotRegistered('event {0} not registered'.format(event)) del self[event] events = Events() register = events.register unregister = events.unregister # Autodiscover apps for webhook handlers. Modules can import webhooks and # and do webhooks.register. for app in settings.INSTALLED_APPS: module_path = '{0}.{1}'.format(app, 'webhooks') try: import_module(module_path) except Exception as e: logger.debug('failed to import module', extra={ 'module_path': module_path, 'error': repr(e), })
Fix string formatting for NotRegistered exception
Fix string formatting for NotRegistered exception
Python
bsd-2-clause
chop-dbhi/django-webhooks,pombredanne/django-webhooks,pombredanne/django-webhooks,chop-dbhi/django-webhooks
78be1f58d618077f42d04390baf97938d01df44f
models/analyze_pic_server.py
models/analyze_pic_server.py
# import analyze from analyze import check_blob_in_direct_path import os import sys sys.path.insert(0, os.getcwd()) from get_images_from_pi import get_image, get_image_x_times get_image() check_blob_in_direct_path(os.getcwd() + "/images/greg.jpg")
from analyze import check_blob_in_direct_path import os import sys sys.path.insert(0, os.getcwd()) from get_images_from_pi import get_image, get_image_x_times get_image() check_blob_in_direct_path(os.getcwd() + "/images/greg.jpg")
Delete line loading an unnecessary module
Delete line loading an unnecessary module
Python
mit
jwarshaw/RaspberryDrive
4e75e742475236cf7358b4481a29a54eb607dd4d
spacy/tests/regression/test_issue850.py
spacy/tests/regression/test_issue850.py
''' Test Matcher matches with '*' operator and Boolean flag ''' from __future__ import unicode_literals import pytest from ...matcher import Matcher from ...vocab import Vocab from ...attrs import LOWER from ...tokens import Doc @pytest.mark.xfail def test_issue850(): matcher = Matcher(Vocab()) IS_ANY_TOKEN = matcher.vocab.add_flag(lambda x: True) matcher.add_pattern( "FarAway", [ {LOWER: "bob"}, {'OP': '*', IS_ANY_TOKEN: True}, {LOWER: 'frank'} ]) doc = Doc(matcher.vocab, words=['bob', 'and', 'and', 'cat', 'frank']) match = matcher(doc) assert len(match) == 1 start, end, label, ent_id = match assert start == 0 assert end == 4
''' Test Matcher matches with '*' operator and Boolean flag ''' from __future__ import unicode_literals from __future__ import print_function import pytest from ...matcher import Matcher from ...vocab import Vocab from ...attrs import LOWER from ...tokens import Doc def test_basic_case(): matcher = Matcher(Vocab( lex_attr_getters={LOWER: lambda string: string.lower()})) IS_ANY_TOKEN = matcher.vocab.add_flag(lambda x: True) matcher.add_pattern( "FarAway", [ {LOWER: "bob"}, {'OP': '*', LOWER: 'and'}, {LOWER: 'frank'} ]) doc = Doc(matcher.vocab, words=['bob', 'and', 'and', 'frank']) match = matcher(doc) assert len(match) == 1 ent_id, label, start, end = match[0] assert start == 0 assert end == 4 @pytest.mark.xfail def test_issue850(): '''The problem here is that the variable-length pattern matches the succeeding token. We then don't handle the ambiguity correctly.''' matcher = Matcher(Vocab( lex_attr_getters={LOWER: lambda string: string.lower()})) IS_ANY_TOKEN = matcher.vocab.add_flag(lambda x: True) matcher.add_pattern( "FarAway", [ {LOWER: "bob"}, {'OP': '*', IS_ANY_TOKEN: True}, {LOWER: 'frank'} ]) doc = Doc(matcher.vocab, words=['bob', 'and', 'and', 'frank']) match = matcher(doc) assert len(match) == 1 ent_id, label, start, end = match[0] assert start == 0 assert end == 4
Update regression test for variable-length pattern problem in the matcher.
Update regression test for variable-length pattern problem in the matcher.
Python
mit
aikramer2/spaCy,oroszgy/spaCy.hu,raphael0202/spaCy,spacy-io/spaCy,explosion/spaCy,oroszgy/spaCy.hu,oroszgy/spaCy.hu,explosion/spaCy,recognai/spaCy,raphael0202/spaCy,recognai/spaCy,honnibal/spaCy,raphael0202/spaCy,recognai/spaCy,honnibal/spaCy,aikramer2/spaCy,raphael0202/spaCy,explosion/spaCy,honnibal/spaCy,Gregory-Howard/spaCy,explosion/spaCy,recognai/spaCy,oroszgy/spaCy.hu,spacy-io/spaCy,spacy-io/spaCy,recognai/spaCy,recognai/spaCy,aikramer2/spaCy,spacy-io/spaCy,Gregory-Howard/spaCy,raphael0202/spaCy,explosion/spaCy,oroszgy/spaCy.hu,spacy-io/spaCy,raphael0202/spaCy,Gregory-Howard/spaCy,aikramer2/spaCy,explosion/spaCy,honnibal/spaCy,Gregory-Howard/spaCy,aikramer2/spaCy,Gregory-Howard/spaCy,oroszgy/spaCy.hu,aikramer2/spaCy,Gregory-Howard/spaCy,spacy-io/spaCy
aa8a54c765ace8f4aa3a88fd7a956d481b1484a2
scrapi/util/__init__.py
scrapi/util/__init__.py
import os import errno import importlib from scrapi import settings def import_consumer(consumer_name): # TODO Make suer that consumer_name will always import the correct module return importlib.import_module('scrapi.consumers.{}'.format(consumer_name)) def build_norm_dir(consumer_name, timestamp, norm_doc): pass # TODO def build_raw_dir(consumer_name, timestamp, raw_doc): manifest = settings.MANIFESTS[consumer_name] base = [ settings.ARCHIVE_DIR, manifest['directory'], str(raw_doc.get('doc_id')).replace() ] # Thanks to https://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python def make_dir(dirpath): try: os.makedirs(dirpath) except OSError as e: if e.errno != errno.EEXIST or not os.path.isdir(dirpath): raise
import os import errno import importlib from urllib2 import quote def import_consumer(consumer_name): # TODO Make suer that consumer_name will always import the correct module return importlib.import_module('scrapi.consumers.{}'.format(consumer_name)) # :: Str -> Str def doc_id_to_path(doc_id): replacements = [ ('/', '%2f'), ] for find, replace in replacements: doc_id = doc_id.replace(find, replace) return quote(doc_id) # Thanks to https://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python def make_dir(dirpath): try: os.makedirs(dirpath) except OSError as e: if e.errno != errno.EEXIST or not os.path.isdir(dirpath): raise
Move some functionality into the storage module
Move some functionality into the storage module
Python
apache-2.0
alexgarciac/scrapi,erinspace/scrapi,icereval/scrapi,mehanig/scrapi,erinspace/scrapi,mehanig/scrapi,jeffreyliu3230/scrapi,ostwald/scrapi,CenterForOpenScience/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,fabianvf/scrapi,fabianvf/scrapi,felliott/scrapi
fa8783f3307582dafcf636f5c94a7e4cff05724b
bin/tree_print_fasta_names.py
bin/tree_print_fasta_names.py
#! /usr/bin/env python3 import os import shutil import datetime import sys import argparse from ete3 import Tree import logging DEFAULT_FORMAT = 1 class TreeIndex: def __init__(self,tree_newick_fn,format=DEFAULT_FORMAT): self.tree_newick_fn=tree_newick_fn self.tree=read_newick(tree_newick_fn,format=format) def process_node(self,node): if node.is_leaf(): if hasattr(node,"fastapath"): fastas_fn=node.fastapath.split("@") for fasta_fn in fastas_fn: print(fasta_fn) else: children=node.get_children() for child in children: self.process_node(child) if __name__ == "__main__": assert(len(sys.argv)==2) newick_fn=sys.argv[1] ti=TreeIndex( tree_newick_fn=newick_fn, ) ti.process_node(ti.tree.get_tree_root())
#! /usr/bin/env python3 import os import shutil import datetime import sys from ete3 import Tree DEFAULT_FORMAT = 1 class TreeIndex: def __init__(self,tree_newick_fn,format=DEFAULT_FORMAT): self.tree_newick_fn=tree_newick_fn self.tree=Tree(tree_newick_fn,format=format) def process_node(self,node): if node.is_leaf(): if hasattr(node,"fastapath"): fastas_fn=node.fastapath.split("@") for fasta_fn in fastas_fn: print(fasta_fn) else: children=node.get_children() for child in children: self.process_node(child) if __name__ == "__main__": assert(len(sys.argv)==2) newick_fn=sys.argv[1] ti=TreeIndex( tree_newick_fn=newick_fn, ) ti.process_node(ti.tree.get_tree_root())
Fix error in loading trees
Fix error in loading trees Former-commit-id: 6fda03a47c5fa2d65c143ebdd81e158ba5e1ccda
Python
mit
karel-brinda/prophyle,karel-brinda/prophyle,karel-brinda/prophyle,karel-brinda/prophyle
a20c6d072d70c535ed1f116fc04016c834ea9c14
doc/en/_getdoctarget.py
doc/en/_getdoctarget.py
#!/usr/bin/env python import py def get_version_string(): fn = py.path.local(__file__).join("..", "..", "..", "_pytest", "__init__.py") for line in fn.readlines(): if "version" in line: return eval(line.split("=")[-1]) def get_minor_version_string(): return ".".join(get_version_string().split(".")[:2]) if __name__ == "__main__": print (get_minor_version_string())
#!/usr/bin/env python import py def get_version_string(): fn = py.path.local(__file__).join("..", "..", "..", "_pytest", "__init__.py") for line in fn.readlines(): if "version" in line and not line.strip().startswith('#'): return eval(line.split("=")[-1]) def get_minor_version_string(): return ".".join(get_version_string().split(".")[:2]) if __name__ == "__main__": print (get_minor_version_string())
Fix getdoctarget to ignore comment lines
Fix getdoctarget to ignore comment lines
Python
mit
etataurov/pytest,gabrielcnr/pytest,mbirtwell/pytest,vodik/pytest,The-Compiler/pytest,omarkohl/pytest,Bjwebb/pytest,davidszotten/pytest,gabrielcnr/pytest,mdboom/pytest,ionelmc/pytest,malinoff/pytest,hpk42/pytest,tareqalayan/pytest,userzimmermann/pytest,rouge8/pytest,tgoodlet/pytest,abusalimov/pytest,bukzor/pytest,icemac/pytest,pfctdayelise/pytest,JonathonSonesen/pytest,ionelmc/pytest,alfredodeza/pytest,chiller/pytest,skylarjhdownes/pytest,RonnyPfannschmidt/pytest,Haibo-Wang-ORG/pytest,lukas-bednar/pytest,mhils/pytest,mhils/pytest,chiller/pytest,oleg-alexandrov/pytest,oleg-alexandrov/pytest,MengJueM/pytest,chillbear/pytest,rmfitzpatrick/pytest,tomviner/pytest,Bachmann1234/pytest,pytest-dev/pytest,doordash/pytest,eli-b/pytest,codewarrior0/pytest,flub/pytest,bukzor/pytest,ropez/pytest,Haibo-Wang-ORG/pytest,abusalimov/pytest,mdboom/pytest,MengJueM/pytest,icemac/pytest,The-Compiler/pytest,vmalloc/dessert,codewarrior0/pytest,jb098/pytest,chillbear/pytest,jb098/pytest,omarkohl/pytest,doordash/pytest,mbirtwell/pytest,nicoddemus/pytest,tomviner/pytest,nicoddemus/pytest,ropez/pytest,jaraco/pytest,rouge8/pytest,markshao/pytest,txomon/pytest,lukas-bednar/pytest,Bachmann1234/pytest,userzimmermann/pytest,MichaelAquilina/pytest,vodik/pytest,hpk42/pytest,ddboline/pytest,hackebrot/pytest,JonathonSonesen/pytest,Akasurde/pytest,Bjwebb/pytest
efd6fad89131c4d3070c68013ace77f11647bd68
opal/core/search/__init__.py
opal/core/search/__init__.py
""" OPAL core search package """ from opal.core.search import urls from opal.core import plugins from opal.core import celery # NOQA class SearchPlugin(plugins.OpalPlugin): """ The plugin entrypoint for OPAL's core search functionality """ urls = urls.urlpatterns javascripts = { 'opal.services': [ 'js/search/services/filter.js', 'js/search/services/filters_loader.js', 'js/search/services/filter_resource.js', "js/search/services/paginator.js", ], 'opal.controllers': [ 'js/search/controllers/search.js', 'js/search/controllers/extract.js', "js/search/controllers/save_filter.js", ] } plugins.register(SearchPlugin)
""" OPAL core search package """ from opal.core import celery # NOQA from opal.core.search import plugin
Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor
Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor
Python
agpl-3.0
khchine5/opal,khchine5/opal,khchine5/opal
README.md exists but content is empty.
Downloads last month
50