commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
9a9d968f979dd12ee2bf4b1922aa1e0d70d27974 | switch to cmake | DeadSix27/python_cross_compile_script | packages/dependencies/libogg.py | packages/dependencies/libogg.py | {
'repo_type' : 'git',
'url' : 'https://github.com/xiph/ogg.git',
'conf_system' : 'cmake',
'source_subfolder' : '_build',
'configure_options' : '.. {cmake_prefix_options} -DCMAKE_INSTALL_PREFIX={target_prefix} -DBUILD_SHARED_LIBS=0 -DCMAKE_BUILD_TYPE=Release',
'_info' : { 'version' : None, 'fancy_name' : 'ogg' },... | {
'repo_type' : 'git',
'url' : 'https://github.com/xiph/ogg.git',
# 'folder_name' : 'ogg-1.3.2',
'configure_options' : '{autoconf_prefix_options}',
'_info' : { 'version' : None, 'fancy_name' : 'ogg' },
} | mpl-2.0 | Python |
5d136b1fc8d2d4945352e7ee9e6d25ebd2190e56 | rename tags to subjects to better match schema | erinspace/scrapi,alexgarciac/scrapi,erinspace/scrapi,CenterForOpenScience/scrapi,ostwald/scrapi,icereval/scrapi,jeffreyliu3230/scrapi,mehanig/scrapi,fabianvf/scrapi,felliott/scrapi,mehanig/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,fabianvf/scrapi | scrapi/base/schemas.py | scrapi/base/schemas.py | from __future__ import unicode_literals
from dateutil.parser import parse
from .helpers import (
default_name_parser,
oai_extract_url,
# oai_extract_doi,
oai_process_contributors,
compose,
single_result,
format_tags,
language_code
)
CONSTANT = lambda x: lambda *_, **__: x
BASEXMLSCH... | from __future__ import unicode_literals
from dateutil.parser import parse
from .helpers import (
default_name_parser,
oai_extract_url,
# oai_extract_doi,
oai_process_contributors,
compose,
single_result,
format_tags,
language_code
)
CONSTANT = lambda x: lambda *_, **__: x
BASEXMLSCH... | apache-2.0 | Python |
076d3831aa04941e6ae8d36dc95f03269a05436f | Fix python formatting issues. | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | backend/mcapi/machine.py | backend/mcapi/machine.py | from mcapp import app
from decorators import crossdomain, apikey, jsonp
from flask import request, g
import rethinkdb as r
import dmutil
import args
import access
@app.route('/machines', methods=['GET'])
@jsonp
def get_all_machines():
rr = r.table('machines').order_by(r.desc('birthtime'))
selection = list(rr.... | from mcapp import app
from decorators import crossdomain, apikey, jsonp
from flask import request, g
import error
import rethinkdb as r
import dmutil
import json
import args
import access
@app.route('/machines', methods=['GET'])
@jsonp
def get_all_machines():
rr = r.table('machines').order_by(r.desc('birthtime'))... | mit | Python |
f8f63d4b15ce68797d6e16943bd85efb19a77752 | Fix recording failure for system pollster | MisterPup/Ceilometer-Juno-Extension,maestro-hybrid-cloud/ceilometer,sileht/aodh,fabian4/ceilometer,froyobin/ceilometer,pczerkas/aodh,MisterPup/Ceilometer-Juno-Extension,ityaptin/ceilometer,eayunstack/ceilometer,eayunstack/ceilometer,pczerkas/aodh,m1093782566/openstack_org_ceilometer,redhat-openstack/ceilometer,fabian4/... | ceilometer/hardware/pollsters/system.py | ceilometer/hardware/pollsters/system.py | # 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 t... | # 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 t... | apache-2.0 | Python |
cd28805878328e87a4c2f16d5d912a31805de332 | Add description to IPNetworkField | Kromey/piroute,Kromey/piroute,Kromey/piroute | helpers/models.py | helpers/models.py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from . import validators
# Create your models here.
class IPNetworkField(models.CharField):
description = _("IP address or network")
def __init__(self, *args, **kwargs):
kwargs['max_length'] = 18
self.defa... | from django.db import models
from . import validators
# Create your models here.
class IPNetworkField(models.CharField):
def __init__(self, *args, **kwargs):
kwargs['max_length'] = 18
self.default_validators = [validators.validate_ipv4_network]
super().__init__(*args, **kwargs)
def... | mit | Python |
18618a56ce674c479a0737dcabd4a47913ae2dde | Add functionality to copy any missing files to the other folder | itko/itko.github.io,itko/itko.github.io,itko/itko.github.io,itko/itko.github.io | scripts/compare_dir.py | scripts/compare_dir.py | import os
from shutil import copyfile
FOLDER_A = '/media/itto/TOSHIBA EXT/Photos/Southeast Asia'
FOLDER_B = '/media/itto/disk/PRIVATE/AVCHD/BDMV/STREAM'
files_a = []
files_b = []
for dirpath, dirnames, filenames in os.walk(FOLDER_A):
files_a += filenames
for dirpath, dirnames, filenames in os.walk(FOLDER_B):
... | import os
dropboxFiles = []
localFiles = []
for dirpath, dirnames, filenames in os.walk(
'/media/itto/TOSHIBA EXT/Photos/Dropbox/ITTO/Southeast Asia 2017'):
dropboxFiles += filenames
for dirpath, dirnames, filenames in os.walk(
'/media/itto/TOSHIBA EXT/Photos/Southeast Asia'):
if ('Process' no... | mit | Python |
b40d9aaf107fadc477d0a8463c25945c2e83153c | Make it easier to override has_sudo_privileges check in middleware | edx/django-sudo,waheedahmed/django-sudo,mattrobenolt/django-sudo | django_sudo/middleware.py | django_sudo/middleware.py | """
django_sudo.middleware
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 by Matt Robenolt.
:license: BSD, see LICENSE for more details.
"""
from django_sudo import COOKIE_NAME
from django_sudo.utils import has_sudo_privileges
class SudoMiddleware(object):
def has_sudo_privileges(self, request):
## Override... | """
django_sudo.middleware
~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2014 by Matt Robenolt.
:license: BSD, see LICENSE for more details.
"""
from django_sudo import COOKIE_NAME
from django_sudo.utils import has_sudo_privileges
class SudoMiddleware(object):
def process_request(self, request):
assert hasattr(... | bsd-3-clause | Python |
31231afea71b3fd9213b39cf1bb32e10b2a9e843 | Add Bitpay config model to Django Admin panel | intelligenia/django-virtual-pos,intelligenia/django-virtual-pos,intelligenia/django-virtual-pos | djangovirtualpos/admin.py | djangovirtualpos/admin.py | # coding=utf-8
from django.contrib import admin
from djangovirtualpos.models import VirtualPointOfSale, VPOSRefundOperation, VPOSCeca, VPOSRedsys, VPOSSantanderElavon, VPOSPaypal, VPOSBitpay
admin.site.register(VirtualPointOfSale)
admin.site.register(VPOSRefundOperation)
admin.site.register(VPOSCeca)
admin.site.regis... | # coding=utf-8
from django.contrib import admin
from djangovirtualpos.models import VirtualPointOfSale, VPOSRefundOperation, VPOSCeca, VPOSRedsys, VPOSSantanderElavon, VPOSPaypal
admin.site.register(VirtualPointOfSale)
admin.site.register(VPOSRefundOperation)
admin.site.register(VPOSCeca)
admin.site.register(VPOSReds... | mit | Python |
3811543581d8c0ce31f7db332444f31802e68b46 | Bump version to 0.1a15 | letuananh/chirptext,letuananh/chirptext | chirptext/__version__.py | chirptext/__version__.py | # -*- coding: utf-8 -*-
# chirptext's package version information
__author__ = "Le Tuan Anh"
__email__ = "tuananh.ke@gmail.com"
__copyright__ = "Copyright (c) 2012, Le Tuan Anh"
__credits__ = []
__license__ = "MIT License"
__description__ = "ChirpText is a collection of text processing tools for Python."
__url__ = "ht... | # -*- coding: utf-8 -*-
# chirptext's package version information
__author__ = "Le Tuan Anh"
__email__ = "tuananh.ke@gmail.com"
__copyright__ = "Copyright (c) 2012, Le Tuan Anh"
__credits__ = []
__license__ = "MIT License"
__description__ = "ChirpText is a collection of text processing tools for Python."
__url__ = "ht... | mit | Python |
ef15a8ba699e10b9f2d059669b63af6f4c768d39 | Change to console command prompt | joshuaprince/Cassoundra,joshuaprince/Cassoundra,joshuaprince/Cassoundra | casspy/admin_commands.py | casspy/admin_commands.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Cassoundra: admin-commands
~~~~~~~~~~
Module to handle special commands to control the bot once it is already running.
Created by Joshua Prince, 2017
"""
import discord
from casspy import cassoundra
async def process_input(loop):
while True:
command ... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Cassoundra: admin-commands
~~~~~~~~~~
Module to handle special commands to control the bot once it is already running.
Created by Joshua Prince, 2017
"""
import discord
from casspy import cassoundra
async def process_input(loop):
while True:
command ... | mit | Python |
2d8570f35dd507236d9c3bdc9209da248f572ef2 | update version | Netflix-Skunkworks/cloudaux | cloudaux/__about__.py | cloudaux/__about__.py | __all__ = [
'__title__',
'__summary__',
'__uri__',
'__version__',
'__author__',
'__email__',
'__license__',
'__copyright__'
]
__title__ = 'cloudaux'
__summary__ = 'Cloud Auxiliary is a python wrapper and orchestration module for interacting with cloud providers'
__uri__ = 'https://githu... | __all__ = [
'__title__',
'__summary__',
'__uri__',
'__version__',
'__author__',
'__email__',
'__license__',
'__copyright__'
]
__title__ = 'cloudaux'
__summary__ = 'Cloud Auxiliary is a python wrapper and orchestration module for interacting with cloud providers'
__uri__ = 'https://githu... | apache-2.0 | Python |
11aa00c96a456c3e3bb9699fc96c61ebbe7574d4 | fix removal of temp file | lubosz/cerbero,brion/cerbero,EricssonResearch/cerbero,freedesktop-unofficial-mirror/gstreamer__sdk__cerbero,AlertMe/cerbero,shoreflyer/cerbero,brion/cerbero,sdroege/cerbero,atsushieno/cerbero,ford-prefect/cerbero,atsushieno/cerbero,freedesktop-unofficial-mirror/gstreamer__cerbero,freedesktop-unofficial-mirror/gstreamer... | cerbero/bootstrap/osx.py | cerbero/bootstrap/osx.py | # cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; eit... | # cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; eit... | lgpl-2.1 | Python |
d5a9d238ebdb312d3bc69071227175d0d49756a9 | Fix the security filtering to handle None as a severity. | dlorenc/runtimes-common,sharifelgamal/runtimes-common,nkubala/runtimes-common,GoogleCloudPlatform/runtimes-common,GoogleCloudPlatform/runtimes-common,sharifelgamal/runtimes-common,GoogleCloudPlatform/runtimes-common,dlorenc/runtimes-common,duggelz/runtimes-common,cftorres/runtimes-common,huyhg/runtimes-common,nkubala/r... | security_check/main.py | security_check/main.py | """Checks the specified image for security vulnerabilities."""
import argparse
import json
import logging
import sys
import subprocess
_GCLOUD_CMD = ['gcloud', 'beta', 'container', 'images', '--format=json']
# Severities
_LOW = 'LOW'
_MEDIUM = 'MEDIUM'
_HIGH = 'HIGH'
_CRITICAL = 'CRITICAL'
_SEV_MAP = {
_LOW: ... | """Checks the specified image for security vulnerabilities."""
import argparse
import json
import logging
import sys
import subprocess
_GCLOUD_CMD = ['gcloud', 'beta', 'container', 'images', '--format=json']
# Severities
_LOW = 'LOW'
_MEDIUM = 'MEDIUM'
_HIGH = 'HIGH'
_SEV_MAP = {
_LOW: 0,
_MEDIUM: 1,
... | apache-2.0 | Python |
da9a50ad2d5a5a254c7a842407d046485e410057 | Drop excessive import | fusionbox/satchless,fusionbox/satchless,taedori81/satchless,fusionbox/satchless | satchless/util/__init__.py | satchless/util/__init__.py | from decimal import Decimal
def decimal_format(value, min_decimal_places=0):
decimal_tuple = value.as_tuple()
have_decimal_places = -decimal_tuple.exponent
digits = list(decimal_tuple.digits)
while have_decimal_places < min_decimal_places:
digits.append(0)
have_decimal_places += 1
w... | from decimal import Decimal
import locale
def decimal_format(value, min_decimal_places=0):
decimal_tuple = value.as_tuple()
have_decimal_places = -decimal_tuple.exponent
digits = list(decimal_tuple.digits)
while have_decimal_places < min_decimal_places:
digits.append(0)
have_decimal_pla... | bsd-3-clause | Python |
b32eab807b54c9c378542474631b3bdbced94456 | add filter | s0hvaperuna/Not-a-bot | cogs/r9k.py | cogs/r9k.py | import asyncio
import logging
import re
from cogs.cog import Cog
from utils import unzalgo
logger = logging.getLogger('terminal')
class R9K(Cog):
def __init__(self, bot):
super().__init__(bot)
self._messages = []
self._update_task = asyncio.run_coroutine_threadsafe(self._update_loop(), lo... | import asyncio
import logging
import re
from cogs.cog import Cog
from utils import unzalgo
logger = logging.getLogger('terminal')
class R9K(Cog):
def __init__(self, bot):
super().__init__(bot)
self._messages = []
self._update_task = asyncio.run_coroutine_threadsafe(self._update_loop(), lo... | mit | Python |
75c0861608871de2a2b1a6b4f2ea89c800dd8c07 | Make verbose loading messages optional | laffra/pava,laffra/pava | pava/implementation/__init__.py | pava/implementation/__init__.py | import new
import sys
DEBUG = False
method_count = 0
def method(argcount, nlocals, stacksize, flags, codestring, constants, names,
varnames, filename, name, firstlineno, lnotab, modules, static):
global method_count
if DEBUG:
print 'define', name, method_count
method_count += 1
g... | import sys
method_count = 0
def method(argcount, nlocals, stacksize, flags, codestring, constants, names,
varnames, filename, name, firstlineno, lnotab, modules, static):
global method_count
print 'define', name, method_count
method_count += 1
globals_dict = {}
for module_name in modu... | mit | Python |
c62d69249f7413e2142f7147ccce0872dbbae90a | Fix nipap CLI setup.py to include man file | fredsod/NIPAP,ettrig/NIPAP,SoundGoof/NIPAP,ettrig/NIPAP,SoundGoof/NIPAP,SoundGoof/NIPAP,plajjan/NIPAP,bbaja42/NIPAP,plajjan/NIPAP,bbaja42/NIPAP,SpriteLink/NIPAP,garberg/NIPAP,garberg/NIPAP,bbaja42/NIPAP,ettrig/NIPAP,bbaja42/NIPAP,SoundGoof/NIPAP,SpriteLink/NIPAP,SpriteLink/NIPAP,garberg/NIPAP,bbaja42/NIPAP,plajjan/NIPA... | nipap-cli/setup.py | nipap-cli/setup.py | #!/usr/bin/env python
from distutils.core import setup
import subprocess
import sys
import nipap_cli
# return all the extra data files
def get_data_files():
# This is a bloody hack to circumvent a lack of feature with Python distutils.
# Files specified in the data_files list cannot be renamed upon installa... | #!/usr/bin/env python
from distutils.core import setup
import nipap_cli
# This is a bloody hack to circumvent a lack of feature with Python distutils.
# Files specified in the data_files list cannot be renamed upon installation
# and we don't want to keep two copies of the .nipaprc file in git
import shutil
shutil.c... | mit | Python |
b16d5c08b5766e40fbf1773e3490dce461b20098 | Exit code as int. | cf-platform-eng/aws-pcf-quickstart,cf-platform-eng/aws-pcf-quickstart,cf-platform-eng/aws-pcf-quickstart | ci/github-pullrequest.py | ci/github-pullrequest.py | import json
import sys
import os
import requests
token = os.environ['GITHUB_ACCESS_TOKEN']
with open('version/version') as version_file:
version = version_file.read()
print("Making PR request to this release {}".format(version))
response = requests.post(
url='https://api.github.com/repos/aws-quickstart/quic... | import json
import sys
import os
import requests
token = os.environ['GITHUB_ACCESS_TOKEN']
with open('version/version') as version_file:
version = version_file.read()
print("Making PR request to this release {}".format(version))
response = requests.post(
url='https://api.github.com/repos/aws-quickstart/quic... | apache-2.0 | Python |
b1bc019320eaa8ceb7a70eca21b20fcda9cf609e | Add a timeout to the nginx cache clearing request | NaturalHistoryMuseum/ckanext-nhm,NaturalHistoryMuseum/ckanext-nhm,NaturalHistoryMuseum/ckanext-nhm | ckanext/nhm/lib/cache.py | ckanext/nhm/lib/cache.py | # !/usr/bin/env python
# encoding: utf-8
#
# This file is part of ckanext-nhm
# Created by the Natural History Museum in London, UK
import logging
import requests
from ckan.plugins import toolkit
log = logging.getLogger(__name__)
def cache_clear_nginx_proxy():
'''Clear NGINX Proxy Cache - issue PURGE request t... | # !/usr/bin/env python
# encoding: utf-8
#
# This file is part of ckanext-nhm
# Created by the Natural History Museum in London, UK
import logging
import requests
from ckan.plugins import toolkit
log = logging.getLogger(__name__)
def cache_clear_nginx_proxy():
'''Clear NGINX Proxy Cache - issue PURGE request t... | mit | Python |
c7990836b51cc5e05c5ae3bd49a316c418bac44e | Revert "redirect www.storycheck.co.za to storycheck.co.za" | Code4SA/redirects | code4sa/middleware.py | code4sa/middleware.py | from django.http import HttpResponse, HttpResponsePermanentRedirect, Http404
import newrelic.agent
class RedirectsMiddleware(object):
redirects = {
# domain (without www.) -> full new URL
'living-wage.code4sa.org': 'http://livingwage.code4sa.org/',
'livingwagestory.code4sa.org': 'http://l... | from django.http import HttpResponse, HttpResponsePermanentRedirect, Http404
import newrelic.agent
class RedirectsMiddleware(object):
redirects = {
# domain (without www.) -> full new URL
'living-wage.code4sa.org': 'http://livingwage.code4sa.org/',
'livingwagestory.code4sa.org': 'http://l... | mit | Python |
7e6dc283dbecf4bf9674559198b4a2c06e9f4c2e | Fix unicode import in test | aikramer2/spaCy,aikramer2/spaCy,explosion/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,honnibal/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,aikramer2/spaCy,aikramer2/spaCy,spacy-io/spaCy,aikramer2/spaCy,recognai/spaCy,spacy-io/spaCy,aikramer2/... | spacy/tests/regression/test_issue1799.py | spacy/tests/regression/test_issue1799.py | '''Test sentence boundaries are deserialized correctly,
even for non-projective sentences.'''
from __future__ import unicode_literals
import pytest
import numpy
from ... tokens import Doc
from ... vocab import Vocab
from ... attrs import HEAD, DEP
def test_issue1799():
problem_sentence = 'Just what I was looking... | '''Test sentence boundaries are deserialized correctly,
even for non-projective sentences.'''
import pytest
import numpy
from ... tokens import Doc
from ... vocab import Vocab
from ... attrs import HEAD, DEP
def test_issue1799():
problem_sentence = 'Just what I was looking for.'
heads_deps = numpy.asarray([[... | mit | Python |
a2f66370843658090ccca3fbdbb2ff9d12c7605a | Update to current spotpy code stlye | thouska/spotpy,thouska/spotpy,thouska/spotpy | spotpy/examples/tutorial_own_database.py | spotpy/examples/tutorial_own_database.py | '''
Copyright 2015 by Tobias Houska
This file is part of Statistical Parameter Estimation Tool (SPOTPY).
:author: Tobias Houska
This example implements the Rosenbrock function into SPOT.
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ im... | '''
Copyright 2015 by Tobias Houska
This file is part of Statistical Parameter Estimation Tool (SPOTPY).
:author: Tobias Houska
This example implements the Rosenbrock function into SPOT.
'''
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ im... | mit | Python |
2ccdaf4ac5397a7fb1795cf3f3e52348e775dbbb | Bump version. | incuna/django-settingsjs,incuna/django-settingsjs | settingsjs/__init__.py | settingsjs/__init__.py | __version__ = (0, 1, 3)
def get_version():
return '.'.join(map(str, __version__))
| __version__ = (0, 1, 2)
def get_version():
return '.'.join(map(str, __version__))
| bsd-2-clause | Python |
2b299ab6b26ab5f0cfdbe08d3bff57a03483ca93 | update import script for Epsom & Ewell (closes #2134) | DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations | polling_stations/apps/data_collection/management/commands/import_epsom_and_ewell.py | polling_stations/apps/data_collection/management/commands/import_epsom_and_ewell.py | from addressbase.models import Address
from uk_geo_utils.helpers import Postcode
from data_collection.github_importer import BaseGitHubImporter
class Command(BaseGitHubImporter):
srid = 27700
districts_srid = 27700
council_id = "E07000208"
elections = ["parl.2019-12-12"]
scraper_name = "wdiv-scra... | from addressbase.models import Address
from uk_geo_utils.helpers import Postcode
from data_collection.github_importer import BaseGitHubImporter
class Command(BaseGitHubImporter):
srid = 27700
districts_srid = 27700
council_id = "E07000208"
elections = ["europarl.2019-05-23"]
scraper_name = "wdiv-... | bsd-3-clause | Python |
f4f600a82d652d25cb7fe8fcc3bbea8efa49c0b8 | update help | alvare/chingolo-bot | commands.py | commands.py | import requests
import random
import config
def help():
msg = """
*Command list*
`/js <library>` - checks if library is cool or not
`/help` - return this
`/sadness` - cry
"""
return 'message', {'text': msg, 'parse_mode': 'Markdown'}
def js(string):
if string:
return 'message', {'text': '{} i... | import requests
import random
import config
def help():
msg = """
*Commands:*
`/js <library>`: checks if library is cool or not
`/help`: return this
"""
return 'message', {'text': msg, 'parse_mode': 'Markdown'}
def js(string):
if string:
return 'message', {'text': '{} is gay'.format(string)}... | mit | Python |
0c5daf77caaa6674a011b94ac06c308dbb430cc5 | add PDF and TXT minetype | yjlou/simple-restful | composer.py | composer.py | #!/usr/bin/python
from types import *
import db
import json
class Composer():
def __init__(self, output_format, db):
self.output_format = output_format
self.db = db
def compose(self, content, path):
if self.output_format == "JSON":
if type(content) is ListType: # directory list, DIR
r... | #!/usr/bin/python
from types import *
import db
import json
class Composer():
def __init__(self, output_format, db):
self.output_format = output_format
self.db = db
def compose(self, content, path):
if self.output_format == "JSON":
if type(content) is ListType: # directory list, DIR
r... | mit | Python |
e9cb40d1c044aa48beb221686df3cbfb47524a72 | Remove unused import | MeirKriheli/statirator,MeirKriheli/statirator,MeirKriheli/statirator | statirator/blog/views.py | statirator/blog/views.py | from __future__ import absolute_import
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.base import TemplateView
from .models import Post, I18NTag
class PostView(DetailView):
models = Post
def get_queryset(self):
qs = Post.... | from __future__ import absolute_import
from django.db.models import Count
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.base import TemplateView
from .models import Post, I18NTag
class PostView(DetailView):
models = Post
def get... | mit | Python |
c767ec0308d61c73b41bf20f9c5bf069238a04e4 | change in the iteration state to make things slightly more readable. | mchrzanowski/ProjectEuler,mchrzanowski/ProjectEuler | src/python/Problem066.py | src/python/Problem066.py | '''
Created on Feb 21, 2012
@author: mchrzanowski
'''
from math import sqrt
from Problem064 import getQuotients
from Problem065 import findRationalApproximation
from time import time
LIMIT = 10 ** 3
def getConvergentPair(i, difference=1):
''' a generator that will return iterations of increasingly-precise nume... | '''
Created on Feb 21, 2012
@author: mchrzanowski
'''
from math import sqrt
from Problem064 import getQuotients
from Problem065 import findRationalApproximation
from time import time
LIMIT = 10 ** 3
def getConvergentPair(i, difference=1):
''' a generator that will return iterations of increasingly-precise nume... | mit | Python |
da3c550bfd935fcdf18c04c021b3ff0cd33e13b3 | Fix show_launcher logic | quozl/sugar-toolkit-gtk3,tchx84/sugar-toolkit-gtk3,i5o/sugar-toolkit-gtk3,sugarlabs/sugar-toolkit-gtk3,gusDuarte/sugar-toolkit-gtk3,tchx84/debian-pkg-sugar-toolkit-gtk3,quozl/sugar-toolkit-gtk3,ceibal-tatu/sugar-toolkit,samdroid-apps/sugar-toolkit-gtk3,manuq/sugar-toolkit-gtk3,ceibal-tatu/sugar-toolkit-gtk3,gusDuarte/s... | sugar/activity/bundle.py | sugar/activity/bundle.py | import logging
import os
from ConfigParser import ConfigParser
class Bundle:
"""Info about an activity bundle. Wraps the activity.info file."""
def __init__(self, path):
self._name = None
self._icon = None
self._service_name = None
self._show_launcher = False
self._valid = True
self._path = path
self.... | import logging
import os
from ConfigParser import ConfigParser
class Bundle:
"""Info about an activity bundle. Wraps the activity.info file."""
def __init__(self, path):
self._name = None
self._icon = None
self._service_name = None
self._show_launcher = False
self._valid = True
self._path = path
self.... | lgpl-2.1 | Python |
a21c0ec3ee4518f9072fbc5181fb419b1973afd3 | Fix style #373 | rledisez/shinken,h4wkmoon/shinken,h4wkmoon/shinken,rledisez/shinken,rledisez/shinken,geektophe/shinken,Simage/shinken,KerkhoffTechnologies/shinken,h4wkmoon/shinken,kaji-project/shinken,claneys/shinken,tal-nino/shinken,naparuba/shinken,lets-software/shinken,Aimage/shinken,claneys/shinken,gst/alignak,Alignak-monitoring/a... | shinken/reactionnerlink.py | shinken/reactionnerlink.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2012 :
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2012 :
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you ... | agpl-3.0 | Python |
8d59abab151cbdecb623b7b184dade6193144497 | Store Group enums as strings in Database (internally still as enums) | ProjetSigma/backend,ProjetSigma/backend | sigma_core/models/group.py | sigma_core/models/group.py | from django.db import models
class Group(models.Model):
class Meta:
pass
VIS_PUBLIC = 'public'
VIS_PRIVATE = 'private'
VISIBILITY_CHOICES = (
(VIS_PUBLIC, 'Anyone can see the group'),
(VIS_PRIVATE, 'Group is not visible')
)
MEMBER_ANYONE = 'anyo... | from django.db import models
class Group(models.Model):
class Meta:
pass
VIS_PUBLIC = 0
VIS_PRIVATE = 1
VISIBILITY_CHOICES = (
(VIS_PUBLIC, 'PUBLIC'),
(VIS_PRIVATE, 'PRIVATE')
)
MEMBER_ANYONE = 0
MEMBER_REQUEST = 1
MEMBER_INVITATION = 2
MEMBERSHIP_CHOICES ... | agpl-3.0 | Python |
5e66929d051047385cce9d7e910ce02b61fa1afe | Use joined loading for follower lists | skylines-project/skylines,shadowoneau/skylines,Turbo87/skylines,TobiasLohner/SkyLines,skylines-project/skylines,Turbo87/skylines,RBE-Avionik/skylines,shadowoneau/skylines,kerel-fs/skylines,RBE-Avionik/skylines,kerel-fs/skylines,skylines-project/skylines,Turbo87/skylines,Harry-R/skylines,TobiasLohner/SkyLines,TobiasLohn... | skylines/model/follower.py | skylines/model/follower.py | # -*- coding: utf-8 -*-
from datetime import datetime
from sqlalchemy import ForeignKey, Column
from sqlalchemy.types import Integer, DateTime
from sqlalchemy.orm import relationship
from .base import DeclarativeBase
from .session import DBSession
class Follower(DeclarativeBase):
__tablename__ = 'followers'
... | # -*- coding: utf-8 -*-
from datetime import datetime
from sqlalchemy import ForeignKey, Column
from sqlalchemy.types import Integer, DateTime
from sqlalchemy.orm import relationship
from .base import DeclarativeBase
from .session import DBSession
class Follower(DeclarativeBase):
__tablename__ = 'followers'
... | agpl-3.0 | Python |
40f4f721b59108a929ca0f8a8f9df6619ebccea3 | Fix persona backend | tobias47n9e/social-core,mrwags/python-social-auth,mathspace/python-social-auth,JerzySpendel/python-social-auth,DhiaEddineSaidi/python-social-auth,firstjob/python-social-auth,henocdz/python-social-auth,MSOpenTech/python-social-auth,python-social-auth/social-core,S01780/python-social-auth,degs098/python-social-auth,yprez... | social/backends/persona.py | social/backends/persona.py | """
BrowserID support
"""
from social.backends.base import BaseAuth
from social.exceptions import AuthFailed, AuthMissingParameter
class PersonaAuth(BaseAuth):
"""BrowserID authentication backend"""
name = 'persona'
def get_user_id(self, details, response):
"""Use BrowserID email as ID"""
... | """
BrowserID support
"""
from social.backends.base import BaseAuth
from social.exceptions import AuthFailed, AuthMissingParameter
class PersonaAuth(BaseAuth):
"""BrowserID authentication backend"""
name = 'persona'
def get_user_id(self, details, response):
"""Use BrowserID email as ID"""
... | bsd-3-clause | Python |
538bae320ba46764fbe8cce3aef19f22ddd1b1ec | Add simple Lede to ClustersInJSON | sisirkoppaka/articur8,sisirkoppaka/articur8,sisirkoppaka/articur8,sisirkoppaka/articur8 | articulate/clustering/clusterformats.py | articulate/clustering/clusterformats.py | """Clusters for Humans"""
import itertools
import simplejson as json
from articulate.pymotherlode.api import *
def getLede(content):
#ledeRE = re.compile('^(.*?(?<!\b\w)[.?!])\s+[A-Z0-9]')
#ledes = ledeRE.match(content)
#return ledes.group(0)
lede = content[:50]
lede += "..."
return lede
def clustersToJSON(art... | """Clusters for Humans"""
import itertools
import simplejson as json
from articulate.pymotherlode.api import *
def clustersToJSON(articles, assignments, insertContent):
tag = "kmeans"
clusters = list(set(assignments))
clustersForHumans = []
if insertContent:
print "Inserting content into ClusterInJSON"
else:... | mit | Python |
f15ebf385bfc6ac706b2344db12a7be9967540ef | Test for symm.symmetrize_space | sunqm/pyscf,gkc1000/pyscf,gkc1000/pyscf,gkc1000/pyscf,gkc1000/pyscf,sunqm/pyscf,gkc1000/pyscf,sunqm/pyscf,sunqm/pyscf | symm/test/test_addons.py | symm/test/test_addons.py | #
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
import unittest
import numpy
from pyscf import gto
from pyscf import scf
from pyscf.symm import addons
mol = gto.Mole()
mol.build(
verbose = 0,
atom = [
["O" , (0. , 0. , 0.)],
[1 , (0. , -0.757 , 0.587)],
[1 , (0. , 0.757 , 0.587)] ],
b... | #
# Author: Qiming Sun <osirpt.sun@gmail.com>
#
import unittest
import numpy
from pyscf import gto
from pyscf import scf
from pyscf.symm import addons
mol = gto.Mole()
mol.build(
verbose = 0,
atom = [
["O" , (0. , 0. , 0.)],
[1 , (0. , -0.757 , 0.587)],
[1 , (0. , 0.757 , 0.587)] ],
b... | apache-2.0 | Python |
2cd19b395f4320330b66dff1ef98d149f3a40a31 | Add test for notify dataset/update | aptivate/ckanext-syndicate,sorki/ckanext-redmine-autoissues,aptivate/ckanext-syndicate,sorki/ckanext-redmine-autoissues | ckanext/syndicate/tests/test_plugin.py | ckanext/syndicate/tests/test_plugin.py | from mock import patch
import unittest
import ckan.model as model
from ckan.model.domain_object import DomainObjectOperation
from ckanext.syndicate.plugin import SyndicatePlugin
class TestNotify(unittest.TestCase):
def setUp(self):
super(TestNotify, self).setUp()
self.entity = model.Package()
... | from mock import patch
import unittest
import ckan.model as model
from ckan.model.domain_object import DomainObjectOperation
from ckanext.syndicate.plugin import SyndicatePlugin
class TestPlugin(unittest.TestCase):
def test_notify_syndicates_task(self):
entity = model.Package()
entity.extras = ... | agpl-3.0 | Python |
6d6fc2ed77db220ddfeeaa8709a3518724bb278a | Correct paths in extraction of shape per msa | rlouf/patterns-of-segregation | bin/data_prep/extract_shape_msa.py | bin/data_prep/extract_shape_msa.py | """extract_shape_msa.py
Output one shapefile per MSA containing all the blockgroups it contains
"""
import os
import csv
import fiona
#
# Import MSA to blockgroup crosswalk
#
msa_to_bg = {}
with open('data/crosswalks/msa_blockgroup.csv', 'r') as source:
reader = csv.reader(source, delimiter='\t')
reader.nex... | """extract_shape_msa.py
Output one shapefile per MSA containing all the blockgroups it contains
"""
import os
import csv
import fiona
#
# Import MSA to blockgroup crosswalk
#
msa_to_bg = {}
with open('data/2000/crosswalks/msa_blockgroup.csv', 'r') as source:
reader = csv.reader(source, delimiter='\t')
reade... | bsd-3-clause | Python |
80a1912ce69fd356d6c54bb00f946fbc7874a9ce | Allow multiple alarms for same metric type | voxy/bluecanary | bluecanary/set_cloudwatch_alarm.py | bluecanary/set_cloudwatch_alarm.py | import boto3
from bluecanary.exceptions import NamespaceError
from bluecanary.utilities import throttle
@throttle()
def set_cloudwatch_alarm(identifier, **kwargs):
if not kwargs.get('Dimensions'):
kwargs['Dimensions'] = _get_dimensions(identifier, **kwargs)
if not kwargs.get('AlarmName'):
kw... | import boto3
from bluecanary.exceptions import NamespaceError
from bluecanary.utilities import throttle
@throttle()
def set_cloudwatch_alarm(identifier, **kwargs):
if not kwargs.get('Dimensions'):
kwargs['Dimensions'] = _get_dimensions(identifier, **kwargs)
if not kwargs.get('AlarmName'):
kw... | mit | Python |
67d0388102c2bbf7abff17a23979bbfd02940ee1 | fix gmock/gtest installation | facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro | build/fbcode_builder/specs/gmock.py | build/fbcode_builder/specs/gmock.py | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
def fbcode_builder_spec(builder):
builder.add_option(
'google/googletest:cmake_defines',
{'BUILD_GTEST': 'ON'}
)
return... | #!/usr/bin/env python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
def fbcode_builder_spec(builder):
return {
'steps': [
# google mock also provides the gtest libraries
builder.g... | mit | Python |
a84ccc871b5f85f80844d1cd413ddbf44194da17 | Add version information to documentation | jrsmith3/ibei | doc/conf.py | doc/conf.py | # coding=utf-8
import ibei
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup ------------------------------------------... | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | mit | Python |
94c09cb1442f064496a80be7f49781f640bd3a70 | Merge [14531] from 1.0-stable | walty8/trac,walty8/trac,walty8/trac,walty8/trac | sample-plugins/workflow/StatusFixer.py | sample-plugins/workflow/StatusFixer.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2013 Edgewall Software
# Copyright (C) 2007 Eli Carter <retracile@gmail.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.... | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2013 Edgewall Software
# Copyright (C) 2007 Eli Carter <retracile@gmail.com>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.... | bsd-3-clause | Python |
7611a4b3e064868c37b9f52778c8fe9f721e86c5 | Update namespace monitor with exception handling | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | polyaxon/events/management/commands/monitor_namespace.py | polyaxon/events/management/commands/monitor_namespace.py | import time
from kubernetes.client.rest import ApiException
from django.conf import settings
from django.db import InterfaceError, ProgrammingError, OperationalError
from clusters.models import Cluster
from events.management.commands._base_monitor import BaseMonitorCommand
from events.monitors import namespace
from ... | import time
from kubernetes.client.rest import ApiException
from django.conf import settings
from clusters.models import Cluster
from events.management.commands._base_monitor import BaseMonitorCommand
from events.monitors import namespace
from polyaxon_k8s.manager import K8SManager
class Command(BaseMonitorCommand... | apache-2.0 | Python |
ad26a38263655ddfb3421f7cb748ce7782a91aeb | Fix tests_require | infoxchange/supervisor-logging,infoxchange/supervisor-logging | setup.py | setup.py | #
# Copyright 2014 Infoxchange Australia
#
# 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... | #
# Copyright 2014 Infoxchange Australia
#
# 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... | apache-2.0 | Python |
969acffd6562c27a53973a1fd7551bcf5c6c6cbc | tweak setup to include new version and reqs | eads/tarbell,tarbell-project/tarbell,eads/tarbell,eyeseast/tarbell,eyeseast/tarbell,NUKnightLab/tarbell,NUKnightLab/tarbell,NUKnightLab/tarbell,tarbell-project/tarbell | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
APP_NAME = 'tarbell'
VERSION = '0.9b3'
settings = dict()
# Publish Helper.
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name=APP_NAME,
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
APP_NAME = 'tarbell'
VERSION = '0.9b2'
settings = dict()
# Publish Helper.
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name=APP_NAME,
... | bsd-3-clause | Python |
0e178c8bcb0bad2146fede1e6361bc57bdbf8102 | Bump version for 0.3.0 | jparyani/pycapnp,tempbottle/pycapnp,tempbottle/pycapnp,SymbiFlow/pycapnp,SymbiFlow/pycapnp,rcrowder/pycapnp,rcrowder/pycapnp,tempbottle/pycapnp,jparyani/pycapnp,SymbiFlow/pycapnp,SymbiFlow/pycapnp,jparyani/pycapnp,rcrowder/pycapnp,jparyani/pycapnp,tempbottle/pycapnp,rcrowder/pycapnp | setup.py | setup.py | #!/usr/bin/env python
try:
from Cython.Build import cythonize
import Cython
except ImportError:
raise RuntimeError('No cython installed. Please run `pip install cython`')
if Cython.__version__ < '0.19.1':
raise RuntimeError('Old cython installed. Please run `pip install -U cython`')
from distutils.cor... | #!/usr/bin/env python
try:
from Cython.Build import cythonize
import Cython
except ImportError:
raise RuntimeError('No cython installed. Please run `pip install cython`')
if Cython.__version__ < '0.19.1':
raise RuntimeError('Old cython installed. Please run `pip install -U cython`')
from distutils.cor... | bsd-2-clause | Python |
1f14b95b26e84336e4c1e8a11ea2fd06fa1a802d | Bump version to make PyPI happy | momyc/gevent-fastcgi,momyc/gevent-fastcgi | setup.py | setup.py | import os
import sys
from setuptools import setup, Extension, find_packages
ext_modules = []
# C speedups are no good for PyPy
if '__pypy__' not in sys.builtin_module_names:
ext_modules.append(
Extension('gevent_fastcgi.speedups', ['gevent_fastcgi/speedups.c']))
setup(
name='gevent-fastcgi',
vers... | import os
import sys
from setuptools import setup, Extension, find_packages
ext_modules = []
# C speedups are no good for PyPy
if '__pypy__' not in sys.builtin_module_names:
ext_modules.append(
Extension('gevent_fastcgi.speedups', ['gevent_fastcgi/speedups.c']))
setup(
name='gevent-fastcgi',
vers... | mit | Python |
c4ec856f26e4d83eb11296480ab8180f14588934 | Update python versions | glidernet/ogn-python,glidernet/ogn-python,Meisterschueler/ogn-python,glidernet/ogn-python,glidernet/ogn-python,Meisterschueler/ogn-python,Meisterschueler/ogn-python,Meisterschueler/ogn-python | setup.py | setup.py | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='ogn-python',
versio... | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='ogn-python',
versio... | agpl-3.0 | Python |
e2455de9a8a9a4d1147b75307d73f513cc866e11 | Bump setup.py version to 0.3.0. | ColorGenomics/clr | setup.py | setup.py | from setuptools import setup
requirements = ["dataclasses==0.8;python_version<'3.7'"]
setup(
name="clr",
version="0.3.0",
description="A command line tool for executing custom python scripts.",
author="Color",
author_email="dev@getcolor.com",
url="https://github.com/color/clr",
packages=["... | from setuptools import setup
requirements = ["dataclasses==0.8;python_version<'3.7'"]
setup(
name="clr",
version="0.2.0",
description="A command line tool for executing custom python scripts.",
author="Color",
author_email="dev@getcolor.com",
url="https://github.com/color/clr",
packages=["... | mit | Python |
0404c2d0b25d8d8e3bb542b4872361b24ea568e9 | add long description | pyfarm/pyfarm-agent,pyfarm/pyfarm-core,guidow/pyfarm-agent,guidow/pyfarm-agent,guidow/pyfarm-agent,pyfarm/pyfarm-agent,pyfarm/pyfarm-agent | setup.py | setup.py | # No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
#
# 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
#
# U... | # No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
#
# 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
#
# U... | apache-2.0 | Python |
b79e11ccc4a07a5a257d2135aa9c7d3c2ff75546 | Fix released | dreid/edn | setup.py | setup.py | from setuptools import setup
setup(
name='edn',
version='0.0.1',
packages=['edn'],
package_data={'edn': ['edn.parsley']},
install_requires=[
'iso8601>=0.1.6',
'parsley>=1.2',
'perfidy',
],
)
| from setuptools import setup
setup(
name='edn',
version='0.0.1',
packages=['edn'],
package_data={'edn': ['edn.parsley']},
install_requires=[
# iso8601 0.1.5 introduces a timezone parsing bug.
# https://bitbucket.org/micktwomey/pyiso8601/issue/8/015-parses-negative-timezones-incorre... | mit | Python |
763d59db4d6369434c55af25caa69cf57f8d712f | Fix user statement rendering issues. | TresysTechnology/setools,TresysTechnology/setools,TresysTechnology/setools,TresysTechnology/setools | libapol/policyrep/user.py | libapol/policyrep/user.py | # Copyright 2014, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2.1 of
# the License, or (at your option) any later ... | # Copyright 2014, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2.1 of
# the License, or (at your option) any later ... | lgpl-2.1 | Python |
af3a7217b94254f2ce533deefd4d9e636b9937f9 | Bump version to 0.2-dev | mwilliamson/zuice | setup.py | setup.py | from distutils.core import setup
setup(
name='Zuice',
version='0.2-dev',
description='A dependency injection framework for Python',
author='Michael Williamson',
author_email='mike@zwobble.org',
url='http://gitorious.org/zuice',
packages=['zuice'],
)
| from distutils.core import setup
setup(
name='Zuice',
version='0.1',
description='A dependency injection framework for Python',
author='Michael Williamson',
author_email='mike@zwobble.org',
url='http://gitorious.org/zuice',
packages=['zuice'],
)
| bsd-2-clause | Python |
cfec28aca4a4da5ec89b831b1ad13e551d8d73fa | Modify setup.py | rsk-mind/rsk-mind-framework | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
__version__ = "0.1.1"
setup(
name='RSK Mind',
version=__version__,
description='Framework for machine learning platform',
keywords='machine learning deep learning',
url='git@bitbucket.org:rasarmy/framework.git',
author='RSK Proj... | #!/usr/bin/env python
from setuptools import setup, find_packages
__version__ = "0.1.1"
setup(
name='RSK Mind',
version=__version__,
description='Framework for machine learning platform',
keywords='machine learning deep learning',
url='git@bitbucket.org:rasarmy/framework.git',
author='RSK Proj... | mit | Python |
c7124022925c71bc5b89e02cac059f7f9a03625d | Fix license filename in setup.py | caseydunham/PwnedCheck | setup.py | setup.py | import pwnedcheck
from distutils.core import setup
setup(
name="PwnedCheck",
packages=["pwnedcheck"],
package_dir={"pwnedcheck": "pwnedcheck"},
version=pwnedcheck.__version__,
description="Python package to interact with http://haveibeenpwned.com",
long_description=open("README.rst").read() + ... | import pwnedcheck
from distutils.core import setup
setup(
name="PwnedCheck",
packages=["pwnedcheck"],
package_dir={"pwnedcheck": "pwnedcheck"},
version=pwnedcheck.__version__,
description="Python package to interact with http://haveibeenpwned.com",
long_description=open("README.rst").read() + ... | mit | Python |
528d43ffdf1ae3182f20aab30d73183a6210d3be | include pxd file in depends | mnishida/PyMWM | setup.py | setup.py | import os
from distutils.util import get_platform
import numpy as np
from Cython.Distutils import build_ext
from setuptools import Extension, find_packages, setup
platform = get_platform()
if platform.startswith("win"):
extra_compile_args = []
extra_link_args = []
else:
extra_compile_args = [
"-fP... | import os
from distutils.util import get_platform
import numpy as np
from Cython.Distutils import build_ext
from setuptools import Extension, find_packages, setup
platform = get_platform()
if platform.startswith("win"):
extra_compile_args = []
extra_link_args = []
else:
extra_compile_args = [
"-fP... | mit | Python |
ad15cc955413575008d6fe242d253c9fce5d744a | update setup.py | bashu/django-facebox,bashu/django-facebox,bashu/django-facebox | setup.py | setup.py | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-facebox',
version='0.2',
packages=fi... | import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-facebox',
version='0.2',
packages=['facebox'],
... | bsd-3-clause | Python |
ca1ef6d34d5ba04c6c1364b60d10314d49d00a8b | add classifiers to setup.py | mfussenegger/easymail | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='easymail',
version='0.1.0',
author='Mathias Fussenegger',
author_email='pip@zignar.net',
url='http://pypi.python.org/pypi/easymail/',
license='LICENSE.txt',
description='abstraction layer on top of... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='easymail',
version='0.1.0',
author='Mathias Fussenegger',
author_email='pip@zignar.net',
url='http://pypi.python.org/pypi/easymail/',
license='LICENSE.txt',
description='abstraction layer on top of... | mit | Python |
ca166c74914f570fa08d95380760fc5a1bea59ba | build new fast integration | adrn/gary,adrn/gary,adrn/gala,adrn/gala,adrn/gary,adrn/gala | setup.py | setup.py | # coding: utf-8
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import os
from distutils.core import setup
from distutils.extension import Extension
# Third-party
import numpy as np
from Cython.Distutils import build_ext
from Cython.Build import cytho... | # coding: utf-8
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Standard library
import os
from distutils.core import setup
from distutils.extension import Extension
# Third-party
import numpy as np
from Cython.Distutils import build_ext
from Cython.Build import cytho... | mit | Python |
2ffa5e8f5c8b3beb0026727d12f8d83cc9f931fe | Bump up version | uda/djaccount,uda/djaccount | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='djaccount',
version='0.0.4-alpha1',
description='Django account manager',
author='Yehuda Deutsch',
author_email='yeh@uda.co.il',
l... | import os
from setuptools import setup, find_packages
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='djaccount',
version='0.0.3-alpha2',
description='Django account manager',
author='Yehuda Deutsch',
author_email='yeh@uda.co.il',
l... | mit | Python |
f7909707a96d82492a5b569cc50939b379c64b5d | Bump version to 0.0.30 | lesjoneshmrc/service-manager,hmrc/service-manager,andrewgee/service-manager,lesjoneshmrc/service-manager,andrewgee/service-manager,lesjoneshmrc/service-manager,andrewgee/service-manager,hmrc/service-manager,andrewgee/service-manager,hmrc/service-manager,hmrc/service-manager,lesjoneshmrc/service-manager | setup.py | setup.py |
from setuptools import setup
setup(name='servicemanager',
version='0.0.30',
description='A python tool to manage developing and testing with lots of microservices',
url='https://github.com/hmrc/service-manager',
author='vaughansharman',
license='Apache Licence 2.0',
packages=['serv... |
from setuptools import setup
setup(name='servicemanager',
version='0.0.29',
description='A python tool to manage developing and testing with lots of microservices',
url='https://github.com/hmrc/service-manager',
author='vaughansharman',
license='Apache Licence 2.0',
packages=['serv... | apache-2.0 | Python |
509bf6be9bd139f79a16a32bba45d3198d1da74a | Fix for setup.py | blink1073/oct2py,blink1073/oct2py | setup.py | setup.py | """Setup script for oct2py package.
"""
DISTNAME = 'oct2py'
DESCRIPTION = 'Python to GNU Octave bridge --> run m-files from python.'
LONG_DESCRIPTION = open('README.rst', 'rb').read().decode('utf-8')
MAINTAINER = 'Steven Silvester'
MAINTAINER_EMAIL = 'steven.silvester@ieee.org'
URL = 'http://github.com/blink1073... | """Setup script for oct2py package.
"""
DISTNAME = 'oct2py'
DESCRIPTION = 'Python to GNU Octave bridge --> run m-files from python.'
LONG_DESCRIPTION = open('README.rst', 'rb').read().decode('utf-8')
MAINTAINER = 'Steven Silvester'
MAINTAINER_EMAIL = 'steven.silvester@ieee.org'
URL = 'http://github.com/blink1073... | mit | Python |
db88c98cc1b7ba76a3f8efa417bf241d9eec4532 | Update to version 0.0.2 | hagbarddenstore/cfn | setup.py | setup.py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="cfn",
version="0.0.2",
description="Small script to manipulate AWS CloudFor... | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="cfn",
version="0.0.1",
description="Small script to manipulate AWS CloudFor... | mit | Python |
bc828d621dbea3e9510c05c1d40b952b710c6187 | Update description and link in setup.py | flomotlik/formica | setup.py | setup.py | """Packaging settings."""
from codecs import open
from os.path import abspath, dirname, join
from setuptools import setup
from formica import __version__
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
setup(
name='form... | """Packaging settings."""
from codecs import open
from os.path import abspath, dirname, join
from setuptools import setup
from formica import __version__
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
setup(
name='form... | mit | Python |
05f8743a0047767dd46cdef3788fef2ede8e9ff0 | add Pillow to requirements | Andertaker/django-vkontakte-postcard | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-vkontakte-postcard',
version=__import__('vkontakte_postcard').__version__,
description='Post photo to vk and add comment to it',
long_description=open('README.md').read(),
author='krupin.dv',
author_email='krupin.dv19@gmail.com',
... | from setuptools import setup, find_packages
setup(
name='django-vkontakte-postcard',
version=__import__('vkontakte_postcard').__version__,
description='Post photo to vk and add comment to it',
long_description=open('README.md').read(),
author='krupin.dv',
author_email='krupin.dv19@gmail.com',
... | bsd-3-clause | Python |
5aa525ed26f34705c58d62ccf8a8945d0a64bd15 | add url | tombiasz/django-hibpwned | setup.py | setup.py | from setuptools import setup
setup(
name='django-hibpwned',
version='0.1',
description='Django password validator based on haveibeenpwned.com API',
url='https://github.com/tombiasz/django-hibpwned',
author='tombiasz',
author_email='',
license='MIT',
packages=['haveibeenpwned'],
zip_... | from setuptools import setup
setup(
name='django-hibpwned',
version='0.1',
description='Django password validator based on haveibeenpwned.com API',
url='',
author='tombiasz',
author_email='',
license='MIT',
packages=['haveibeenpwned'],
zip_safe=False,
install_requires=[
... | mit | Python |
8f2c6cb5da0c456cefe958db305292a0abda8607 | Fix license trove classifier, bump to 1.0.1 | Crossway/antimarkdown,Crossway/antimarkdown | setup.py | setup.py | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | # -*- coding: utf-8 -*-
"""setup.py -- setup file for antimarkdown
"""
import os
from setuptools import setup
README = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')
setup(
name = "antimarkdown",
packages = ['antimarkdown'],
install_requires = [
'lxml',
],
package... | mit | Python |
bd3b09b3a0dc7cc450d4a6806802712d521b2d22 | Remove Python 2 | twisted/twistedchecker | setup.py | setup.py | #!/usr/bin/env python
# -*- test-case-name: twistedchecker -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from setuptools import find_packages, setup
with open('README.rst') as f:
longDescription = f.read()
setup(
name='twistedchecker',
description='A Twisted coding standard ... | #!/usr/bin/env python
# -*- test-case-name: twistedchecker -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from setuptools import find_packages, setup
with open('README.rst') as f:
longDescription = f.read()
setup(
name='twistedchecker',
description='A Twisted coding standard ... | mit | Python |
4e1360a3c340552be1145be6c474765bcfcf0379 | write out imgfac/Version.py instead of using version.txt | redhat-imaging/imagefactory,jmcabandara/imagefactory,henrysher/imagefactory,jmcabandara/imagefactory,redhat-imaging/imagefactory,LalatenduMohanty/imagefactory,LalatenduMohanty/imagefactory,henrysher/imagefactory | setup.py | setup.py | # Copyright 2011 Red Hat, 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 t... | # Copyright 2011 Red Hat, 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 t... | apache-2.0 | Python |
e544009bfdded85c6c3e69b34b0d2a74820a3fe7 | Use pip-requirements.txt to populate install_requires | Linux2Go/Surveilr | setup.py | setup.py | #!/usr/bin/python
#
# Surveilr - Log aggregation, analysis and visualisation
#
# Copyright (C) 2011 Linux2Go
#
# 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 versi... | #!/usr/bin/python
#
# Surveilr - Log aggregation, analysis and visualisation
#
# Copyright (C) 2011 Linux2Go
#
# 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 versi... | agpl-3.0 | Python |
f4be8bca302a5124aacbe817c35572e7e4923539 | fix issue 217 by adding contrib to setup.py file | pytube/pytube | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module contains setup instructions for pytube."""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
licens... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""This module contains setup instructions for pytube."""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('LICENSE') as readme_file:
licens... | unlicense | Python |
4fde19b4b77c80b5d36376a763f644fc3711d1e2 | Add Missing Requirement | etscrivner/send_clowder | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read().replace('.. :changelog:', ... | bsd-3-clause | Python |
15694fa2f7cc18f256dc2866e6206686de1ab795 | remove gevent extras_require | Bluehorn/requests,revolunet/requests,psf/requests,revolunet/requests | setup.py | setup.py | #!/usr/bin/env python
"""
distutils/setuptools install script. See inline comments for packaging documentation.
"""
import os
import sys
import requests
from requests.compat import is_py3
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
if... | #!/usr/bin/env python
"""
distutils/setuptools install script. See inline comments for packaging documentation.
"""
import os
import sys
import requests
from requests.compat import is_py3
try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup
if... | isc | Python |
2de635bbb747b21d04eac8530d1412be2c3cd9c1 | Bump version | walkr/nanoservice | setup.py | setup.py | """Nanoservice installation script
https://github.com/walkr/nanoservice
"""
#!/usr/bin/env python
import sys
from setuptools import setup
def read_long_description(readme_file):
""" Read package long description from README file """
try:
import pypandoc
except (ImportError, OSError) as excepti... | """Nanoservice installation script
https://github.com/walkr/nanoservice
"""
#!/usr/bin/env python
import sys
from setuptools import setup
def read_long_description(readme_file):
""" Read package long description from README file """
try:
import pypandoc
except (ImportError, OSError) as excepti... | mit | Python |
e1200dfc7a882340037448ff64241786e828c8c3 | Include changelog on pypi page | F-Secure/mittn,F-Secure/mittn | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read() + '\n' + open('CHANGELOG.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
... | from setuptools import setup, find_packages
setup(
name='mittn',
use_scm_version=True,
description='Mittn',
long_description=open('README.rst').read(),
classifiers=[
"Programming Language :: Python :: 2.7"
],
license='Apache License 2.0',
author='F-Secure Corporation',
au... | apache-2.0 | Python |
ed5119485dcaaf0ff5f68a365fd2cfa44cfd0a16 | exclude test package from setup | weinbusch/django-tex | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-tex',
description='A simple Django app to render Latex templates and compile them into Pdf files.',
url='https://github.com/weinbusch/django-tex',
author='Martin Bierbaum',
license='MIT',
keywords='django latex jinja2',
package... | from setuptools import setup, find_packages
setup(
name='django-tex',
# version='0.2',
description='A simple Django app to render Latex templates and compile them into Pdf files.',
url='https://github.com/weinbusch/django-tex',
author='Martin Bierbaum',
license='MIT',
keywords='django latex... | mit | Python |
fe03ecdf9562a9fb08d6a0adab5848d0deeef224 | add `zvm` script to setup | zerovm/zerovm-cli,zerovm/zerovm-cli,zerovm/zerovm-cli,zerovm/zerovm-cli,zerovm/zerovm-cli,zerovm/zerovm-cli | setup.py | setup.py | # Copyright 2014 Rackspace, 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... | # Copyright 2014 Rackspace, 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... | apache-2.0 | Python |
dafb7d1023d77c2b094b0de5296acc54818722f5 | Bump version to 0.4.1 | d11wtq/dockerpty | setup.py | setup.py | # dockerpty.
#
# Copyright 2014 Chris Corbyn <chris@w3style.co.uk>
#
# 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 ap... | # dockerpty.
#
# Copyright 2014 Chris Corbyn <chris@w3style.co.uk>
#
# 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 ap... | apache-2.0 | Python |
c82a7b64e98cabc301f4d420483cb384888bb960 | prepare for release 1.5 | hhromic/python-bcubed | setup.py | setup.py | """Main setup script."""
from setuptools import setup, find_packages
NAME = "bcubed"
VERSION = "1.5"
DESCRIPTION = "Simple extended BCubed implementation in Python for clustering evaluation"
AUTHOR = "Hugo Hromic"
AUTHOR_EMAIL = "hhromic@gmail.com"
URL = "https://github.com/hhromic/python-bcubed"
DOWNLOAD_URL = URL +... | """Main setup script."""
from setuptools import setup, find_packages
NAME = "bcubed"
VERSION = "1.4"
DESCRIPTION = "Simple extended BCubed implementation in Python for clustering evaluation"
AUTHOR = "Hugo Hromic"
AUTHOR_EMAIL = "hhromic@gmail.com"
URL = "https://github.com/hhromic/python-bcubed"
DOWNLOAD_URL = URL +... | apache-2.0 | Python |
9c72d48b007d71ba53119031d1e4c71662d5988a | Fix for issue 10: chicken/egg issue on importing version number in setup.py | rob-smallshire/cartouche | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
version = '0.9'
with open('README.txt', 'r') as readme:
long_description = readme.read()
requires = ['Sphinx>=0.6']
setup(
name='cartouche',
packages=['cartouche'],
version = "{version}".format(version=version),
url='http://code.google.com/p/... | # -*- coding: utf-8 -*-
from setuptools import setup
from cartouche import __version__ as version
with open('README.txt', 'r') as readme:
long_description = readme.read()
requires = ['Sphinx>=0.6']
setup(
name='cartouche',
packages=['cartouche'],
version = "{version}".format(version=version),
u... | bsd-3-clause | Python |
a55282f2ee339061eee2ee8e9202fe15ab6a389f | fix missing commands directory in install | piton-package-manager/piton | setup.py | setup.py | from distutils.core import setup
setup(
name = 'piton',
license='LICENSE',
packages = ['piton', 'piton/utils', 'piton/commands'], # this must be the same as the name above
version = '0.1.0',
description = 'A local python package manager',
url = 'https://github.com/piton-package-manager/piton', # use the URL to th... | from distutils.core import setup
setup(
name = 'piton',
license='LICENSE',
packages = ['piton', 'piton/utils'], # this must be the same as the name above
version = '0.1.0',
description = 'A local python package manager',
url = 'https://github.com/piton-package-manager/piton', # use the URL to the github repo
key... | mit | Python |
8c5dfce7ccbc7729cc085d44177bcf68b370ba02 | update numpy dep | Rostlab/nalaf | setup.py | setup.py | from setuptools import setup
from setuptools import find_packages
def readme():
with open('README.md', encoding='utf-8') as file:
return file.read()
def license():
with open('LICENSE.txt', encoding='utf-8') as file:
return file.read()
setup(
name='nalaf',
version='0.5.6-SNAPSHOT',
... | from setuptools import setup
from setuptools import find_packages
def readme():
with open('README.md', encoding='utf-8') as file:
return file.read()
def license():
with open('LICENSE.txt', encoding='utf-8') as file:
return file.read()
setup(
name='nalaf',
version='0.5.6-SNAPSHOT',
... | apache-2.0 | Python |
9fc336acb5451f257399c8575fe0e6ca7e4f72ef | add install_requires to setup.py | pbs/zencoder-py,torchbox/zencoder-py,zencoder/zencoder-py | setup.py | setup.py |
from distutils.core import setup
setup(name='zencoder',
version='0.3',
description='Integration library for Zencoder',
author='Alex Schworer',
author_email='alex.schworer@gmail.com',
url='http://github.com/schworer/zencoder-py',
license="MIT License",
install_requires=['httpl... |
from distutils.core import setup
setup(name='zencoder',
version='0.3',
description='Integration library for Zencoder',
author='Alex Schworer',
author_email='alex.schworer@gmail.com',
url='http://github.com/schworer/zencoder-py',
license="MIT License",
packages=['zencoder']
... | mit | Python |
c34ce19b3c1a1f7fb867d2977c924d870b12286c | Bump version to v1.1.0. | MITRECND/yaraprocessor | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2013 The MITRE Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, ... | #!/usr/bin/env python
# Copyright (c) 2013 The MITRE Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, ... | bsd-2-clause | Python |
bb1afe0a8571e22d590b64b6003ae1f4bb1ab31f | Revert version to 1.5.0 | masschallenge/django-accelerator,masschallenge/django-accelerator | setup.py | setup.py | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__)... | # MIT License
# Copyright (c) 2017 MassChallenge, Inc.
import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__)... | mit | Python |
926598b3af76c9c4d8c43b0a4d0c4a001e173653 | Upgrade version to v0.3.2 | AxiaCore/py-expression-eval | setup.py | setup.py | from setuptools import setup
setup(
name='py_expression_eval',
version='0.3.2',
description='Python Mathematical Expression Evaluator',
url='https://github.com/AxiaCore/py-expression-eval/',
author='vero4ka',
author_email='vero4ka.ru@gmail.com',
license='MIT',
packages=['py_expression_e... | from setuptools import setup
setup(
name='py_expression_eval',
version='0.3.1',
description='Python Mathematical Expression Evaluator',
url='https://github.com/AxiaCore/py-expression-eval/',
author='vero4ka',
author_email='vero4ka.ru@gmail.com',
license='MIT',
packages=['py_expression_e... | mit | Python |
d68bd4d65d44ac45b689b34e040a44addf327a1e | Bump version. | sashka/flask-googleauth | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Flask-GoogleAuth',
version='0.4.lft.1',
url='https://github.com/sashka/flask-googleauth',
license='BSD',
author='Alexander Saltanov',
author_email='asd@mokote.com',
description='Super simple OpenID and Google Federated Auth ... | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Flask-GoogleAuth',
version='0.4',
url='https://github.com/sashka/flask-googleauth',
license='BSD',
author='Alexander Saltanov',
author_email='asd@mokote.com',
description='Super simple OpenID and Google Federated Auth for Fl... | bsd-2-clause | Python |
04a6ba1729befd63cd9a4507d633c1497817c40b | Update classifiers | konomae/lastpass-python | setup.py | setup.py | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
raise RuntimeError('Cannot find version information')
set... | from setuptools import setup
def get_version():
import re
with open('lastpass/__init__.py', 'r') as f:
for line in f:
m = re.match(r'__version__ = [\'"]([^\'"]*)[\'"]', line)
if m:
return m.group(1)
raise RuntimeError('Cannot find version information')
set... | mit | Python |
c1fb843497f85eb4e1fb8d26fb7c168d936fc968 | Bump version 1.1.1 -> 1.1.2 | miyakogi/xfail.py | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read(... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from os import path
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
with open(readme_file) as readme_file:
readme = readme_file.read(... | mit | Python |
344901baf5d11649fbc5e0c1fc3caa69175e2482 | Set core version compatible specifier to packages. | googleapis/python-resource-manager,googleapis/python-resource-manager | setup.py | setup.py | # Copyright 2016 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, ... | # Copyright 2016 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, ... | apache-2.0 | Python |
09003c9e9ac1d389c04e851c5700662d3006baec | fix package name & add maintainers | GeoNode/geonode-dialogos | setup.py | setup.py | from distutils.core import setup
setup(
name = "geonode-dialogos",
version = "0.6",
author = "Eldarion",
author_email = "development@eldarion.com",
maintaner = "Geonode Developers",
maintainer_email = "geonode-devel@lists.osgeo.org",
description = "a flaggable comments app",
long_descr... | from distutils.core import setup
setup(
name = "dialogos",
version = "0.6",
author = "Eldarion",
author_email = "development@eldarion.com",
description = "a flaggable comments app",
long_description = open("README.rst").read(),
license = "BSD",
url = "https://github.com/GeoNode/geonode... | bsd-3-clause | Python |
c62d63fee453390f5d421dbd8d6b1654fb121b3e | Add pytest as a dependency to setup.py | google/scaaml,google/scaaml | setup.py | setup.py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | Python |
a99209821a285c78dc487cac34a3e5b9f449d65b | Update version to 1.0.3 | jpdoria/aws_eis | setup.py | setup.py | import os
from setuptools import setup, find_packages
with open('requirements.txt') as file_requirements:
requirements = file_requirements.read().splitlines()
setup(
name='aws_eis',
version='1.0.3',
author='John Paul P. Doria',
author_email='jp@lazyadm.in',
description=('Register snapshot dire... | import os
from setuptools import setup, find_packages
with open('requirements.txt') as file_requirements:
requirements = file_requirements.read().splitlines()
setup(
name='aws_eis',
version='1.0.2',
author='John Paul P. Doria',
author_email='jp@lazyadm.in',
description=('Register snapshot dire... | mit | Python |
5f48ee965e17aa1cebf4c6dfb14c08dd934dc0f8 | Bump requests library to 2.7.0 | jlebzelter/vero-python | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
packages = [
'vero'
]
requires = ['requests==2.7.0']
tests_require = ['mock==1.0.1']
setup(
name='vero',
description='Python wrapper for Vero API',
long_description=open('README.rst').read(),
version='1.... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
packages = [
'vero'
]
requires = ['requests==1.2.3']
tests_require = ['mock==1.0.1']
setup(
name='vero',
description='Python wrapper for Vero API',
long_description=open('README.rst').read(),
version='1.... | bsd-3-clause | Python |
6dc41940388a3bb9ae000c0760514f3a1455e9f1 | Use setuptools find_packages | cowlicks/odo,cowlicks/odo,alexmojaki/odo,quantopian/odo,alexmojaki/odo,Dannnno/odo,ContinuumIO/odo,Dannnno/odo,quantopian/odo,cpcloud/odo,blaze/odo,ContinuumIO/odo,blaze/odo,cpcloud/odo | setup.py | setup.py | #!/usr/bin/env python
import os
from fnmatch import fnmatch
from setuptools import setup, find_packages
import versioneer
def find_data_files(where, exts):
exts = tuple(exts)
for root, dirs, files in os.walk(where):
for f in files:
if any(fnmatch(f, pat) for pat in exts):
... | #!/usr/bin/env python
import os
from fnmatch import fnmatch
from setuptools import setup
import versioneer
def find_packages(path):
for root, _, _ in filter(lambda x: '__init__.py' in x[2], os.walk(path)):
yield os.path.relpath(root).replace(os.sep, '.')
def find_data_files(where, exts):
exts = tu... | bsd-3-clause | Python |
d04bc63fe078e7147112690a997ec35c69b2ad95 | Fix the topic. | valtri/zoosync,valtri/zoosync | setup.py | setup.py | # -*- coding: utf-8
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description =... | # -*- coding: utf-8
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description =... | mit | Python |
24154ca41a5a7d596b8dc9f05c016c272ee130be | Bump version number. | iScienceLuvr/PPP-CAS,ProjetPP/PPP-CAS,iScienceLuvr/PPP-CAS,ProjetPP/PPP-CAS | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_cas',
version='0.4',
description='CAS plugin for PPP',
url='https://github.com/ProjetPP',
author='Projet Pensées Profondes',
author_email='marc.chevalier@ens-lyon.org',
license='MIT',
classifiers=[
... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_cas',
version='0.3.2',
description='CAS plugin for PPP',
url='https://github.com/ProjetPP',
author='Projet Pensées Profondes',
author_email='marc.chevalier@ens-lyon.org',
license='MIT',
classifiers=[
... | mit | Python |
46aebb8479007f03b3a468920ecba2f57ad05241 | add URL | vukasin/tornado-shell | setup.py | setup.py | from setuptools import setup
setup(
name='tornado_shell',
version='0.0.1',
packages=['tornadoshell'],
url='https://github.com/vukasin/tornado-shell',
license='LICENSE.txt',
author='Vukasin Toroman',
author_email='vtoroman@attensity.com',
description='', requires=['tornado']
)
| from setuptools import setup
setup(
name='tornado_shell',
version='0.0.1',
packages=['tornadoshell'],
url='',
license='LICENSE.txt',
author='Vukasin Toroman',
author_email='vtoroman@attensity.com',
description='', requires=['tornado']
)
| bsd-3-clause | Python |
15437c33fd25a1f10c3203037be3bfef17716fbb | Add trove classifiers for Python versions | korfuri/django-prometheus,obytes/django-prometheus,obytes/django-prometheus,korfuri/django-prometheus | setup.py | setup.py | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | import os
from setuptools import setup, find_packages
LONG_DESCRIPTION = """Django-Prometheus
This library contains code to expose some monitoring metrics relevant
to Django internals so they can be monitored by Prometheus.io.
See https://github.com/korfuri/django-prometheus for usage
instructions.
"""
setup(
n... | apache-2.0 | Python |
94fbc9de5e540e9fc14ac0bd777b259df7e8f5d6 | Bump requirements | robotpy/robotpy-wpilib-utilities,Twinters007/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities,Twinters007/robotpy-wpilib-utilities | setup.py | setup.py | #!/usr/bin/env python3
import os
from os.path import dirname, exists, join
import sys, subprocess
from setuptools import setup, find_packages
setup_dir = dirname(__file__)
git_dir = join(setup_dir, '.git')
base_package = 'robotpy_ext'
version_file = join(setup_dir, base_package, 'version.py')
# Automatically generat... | #!/usr/bin/env python3
import os
from os.path import dirname, exists, join
import sys, subprocess
from setuptools import setup, find_packages
setup_dir = dirname(__file__)
git_dir = join(setup_dir, '.git')
base_package = 'robotpy_ext'
version_file = join(setup_dir, base_package, 'version.py')
# Automatically generat... | bsd-3-clause | Python |
0f97e1427cf86cab4d53f613eb440c1cf4426e6d | Change download url for release 0.3.6 | hspandher/django-test-addons | setup.py | setup.py | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.6',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = 'hspandher@outlook.c... | from distutils.core import setup
setup(
name = 'django-test-addons',
packages = ['test_addons'],
version = '0.3.5',
description = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along with django.',
author = 'Hakampreet Singh Pandher',
author_email = 'hspandher@outlook.c... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.