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
5c8bd07ae79d8e3689ef2d05a48bf09cc8ed0bd3
Add debugging output to test_config test
m42e/tvnamer,lahwaacz/tvnamer,dbr/tvnamer
tests/test_config.py
tests/test_config.py
#!/usr/bin/env python #encoding:utf-8 #author:dbr/Ben #project:tvnamer #repository:http://github.com/dbr/tvnamer #license:Creative Commons GNU GPL v2 # http://creativecommons.org/licenses/GPL/2.0/ """Test tvnamer's config loading and saving """ import os import tempfile from tvnamer.config import Config def test_s...
#!/usr/bin/env python #encoding:utf-8 #author:dbr/Ben #project:tvnamer #repository:http://github.com/dbr/tvnamer #license:Creative Commons GNU GPL v2 # http://creativecommons.org/licenses/GPL/2.0/ """Test tvnamer's config loading and saving """ import os import tempfile from tvnamer.config import Config def test_s...
unlicense
Python
5e57dce84ffe7be7e699af1e2be953d5a65d8435
Add code to clean up
wxiang7/dill,mindw/dill
tests/test_module.py
tests/test_module.py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2014 California Institute of Technology. # License: 3-clause BSD. The full license text is available at: # - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/dill/LICENSE import sys import dill import ...
bsd-3-clause
Python
3d9973fd040869088d1901ae61f38a19df1204b2
Update test_myshop.py
AndersonMasese/Myshop,AndersonMasese/Myshop,AndersonMasese/Myshop
tests/test_myshop.py
tests/test_myshop.py
import unittest import urllib from flask_testing import LiveServerTestCase from flask_testing import TestCase from flask import Flask from app.main import * from app.redundant import * class Myshop(TestCase): '''class defining tests for the myshop application''' render_templates = False def create_app(se...
import unittest import urllib from flask_testing import LiveServerTestCase from flask_testing import TestCase from flask import Flask from app.main import * from redundant import * class Myshop(TestCase): '''class defining tests for the myshop application''' render_templates = False def create_app(self):...
mit
Python
319d861a7403f7309d59c8d756cf4a8fa62ab599
add rule for no-reply rejection
fonorobert/mailforward
mailfwd.py
mailfwd.py
#!/usr/bin/env python3 import sys import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.parser import Parser from configparser import ConfigParser from email.utils import parseaddr #Parse config config = ConfigParser() config.read('/home/fonorobert/scripts/mailf...
#!/usr/bin/env python3 import sys import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.parser import Parser from configparser import ConfigParser from email.utils import parseaddr #Parse config config = ConfigParser() config.read('/home/fonorobert/scripts/mailf...
mit
Python
9068b694268f344501fd9941db0103ae8778e2c4
add some good stuff to __main__
conslo/ngSe
ngSe/__main__.py
ngSe/__main__.py
from browser import Browser from by import By
lgpl-2.1
Python
21251b1b7e3a5b4fddbcbb9e78d01aa23b7f94b6
Fix indentation
ImmobilienScout24/afp-cli,ImmobilienScout24/afp-cli,ImmobilienScout24/afp-cli
src/main/python/afp_cli/aws_credentials_file.py
src/main/python/afp_cli/aws_credentials_file.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from six.moves import configparser from afp_cli.compat import OrderedDict import os import six def write(aws_credentials, filename=None, profile_name='default'): if six.PY2: # WTF ORIG_DEFAULTSECT = configparser.DEFAULTSECT configparser.DEFAUL...
#!/usr/bin/env python # -*- coding: utf-8 -*- from six.moves import configparser from afp_cli.compat import OrderedDict import os import six def write(aws_credentials, filename=None, profile_name='default'): if six.PY2: # WTF ORIG_DEFAULTSECT = configparser.DEFAULTSECT configparser.DEFAUL...
apache-2.0
Python
66a6223ca2c512f3f39ecb4867547a440611713b
Add an error message when trying to load nisl without having Numpy, Scipy and Sklearn installed.
abenicho/isvr
nisl/__init__.py
nisl/__init__.py
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ try: import numpy except ImportError: print 'Numpy could not be found, please install it properly to use nisl.' try: import scipy except Im...
""" Machine Learning module for NeuroImaging in python ================================================== See http://nisl.github.com for complete documentation. """ #from . import check_build #from .base import clone try: from numpy.testing import nosetester class NoseTester(nosetester.NoseTester): ...
bsd-3-clause
Python
ff7c0dc56206447cebf5894992324f23bc6ceec7
integrate featuresign and basis search
koningrobot/sparse-coding-theano,liangz0707/sparse-coding-theano,cooijmanstim/sparse-coding-theano
sparse_coding.py
sparse_coding.py
import os import numpy as np import logging logging.basicConfig(level=logging.DEBUG) from featuresign import l1ls_featuresign from bases import l2ls_learn_basis_dual def sparse_coding(X, num_bases, beta, num_iters, iter_callback): B = np.random((X.shape[0], num_bases)) - 0.5 B = B / np.sqrt(np.sum(B**2, 0)) ...
def sparse_coding(X, num_bases, beta, num_iters): B = np.random((X.shape[0], num_bases)) - 0.5; B = B / np.sqrt(np.sum(B**2, 0)) S = np.zeros((num_bases, X.shape[1])) for t in xrange(num_iters): # shuffle samples np.random.shuffle(X.T) # TODO: this function uses the other conv...
mit
Python
67586e17273f4639afc4a83d594d82774940da84
Test for CASSANDRA-10382
iamaleksey/cassandra-dtest,bdeggleston/cassandra-dtest,thobbs/cassandra-dtest,snazy/cassandra-dtest,carlyeks/cassandra-dtest,thobbs/cassandra-dtest,bdeggleston/cassandra-dtest,stef1927/cassandra-dtest,beobal/cassandra-dtest,blerer/cassandra-dtest,spodkowinski/cassandra-dtest,riptano/cassandra-dtest,snazy/cassandra-dtes...
nodetool_test.py
nodetool_test.py
from ccmlib.node import NodetoolError from dtest import Tester, debug import os class TestNodetool(Tester): def test_decommission_after_drain_is_invalid(self): """ @jira_ticket CASSANDRA-8741 Running a decommission after a drain should generate an unsupported operation message a...
from ccmlib.node import NodetoolError from dtest import Tester class TestNodetool(Tester): def test_decommission_after_drain_is_invalid(self): """ @jira_ticket CASSANDRA-8741 Running a decommission after a drain should generate an unsupported operation message and exit with an er...
apache-2.0
Python
f93937d76fcec338843eac26bc688783a695f168
Use zinnia.db instead of zinnia_tests.db
Zopieux/django-blog-zinnia,dapeng0802/django-blog-zinnia,Fantomas42/django-blog-zinnia,Maplecroft/django-blog-zinnia,Fantomas42/django-blog-zinnia,petecummings/django-blog-zinnia,extertioner/django-blog-zinnia,dapeng0802/django-blog-zinnia,bywbilly/django-blog-zinnia,aorzh/django-blog-zinnia,marctc/django-blog-zinnia,g...
zinnia/tests/implementations/settings.py
zinnia/tests/implementations/settings.py
"""Settings for testing zinnia""" import os from zinnia.xmlrpc import ZINNIA_XMLRPC_METHODS DATABASES = {'default': {'NAME': 'zinnia.db', 'ENGINE': 'django.db.backends.sqlite3'}} SITE_ID = 1 USE_TZ = True STATIC_URL = '/static/' SECRET_KEY = 'secret-key' ROOT_URLCONF = 'zinnia.tests.imple...
"""Settings for testing zinnia""" import os from zinnia.xmlrpc import ZINNIA_XMLRPC_METHODS DATABASES = {'default': {'NAME': 'zinnia_tests.db', 'ENGINE': 'django.db.backends.sqlite3'}} SITE_ID = 1 USE_TZ = True STATIC_URL = '/static/' SECRET_KEY = 'secret-key' ROOT_URLCONF = 'zinnia.tests...
bsd-3-clause
Python
f52392dc9000bc515ba198bf4de29a40fbcab2e3
Update __init__.py
nateyoder/gspread,burnash/gspread
gspread/__init__.py
gspread/__init__.py
# -*- coding: utf-8 -*- """ gspread ~~~~~~~ Google Spreadsheets client library. """ __version__ = '2.1.1' __author__ = 'Anton Burnashev' try: from urllib import urlencode except ImportError: from urllib.parse import urlencode from .client import Client from .models import Spreadsheet, Worksheet, Cell fr...
# -*- coding: utf-8 -*- """ gspread ~~~~~~~ Google Spreadsheets client library. """ __version__ = '2.0.2' __author__ = 'Anton Burnashev' try: from urllib import urlencode except ImportError: from urllib.parse import urlencode from .client import Client from .models import Spreadsheet, Worksheet, Cell fr...
mit
Python
7125727cacf99e9603ec2b89a6256fe2c894cc1e
Install script update
Cibiv/Teaser,Cibiv/Teaser,Cibiv/Teaser,Cibiv/Teaser,Cibiv/Teaser
install.py
install.py
#!/usr/bin/env python import os import sys major=sys.version_info[0] errors=[] def error(msg): errors.append(msg) def sub(cmd): if os.system(cmd) != 0: errors.append("Command failed: %s"%cmd) return False else: return True print("Checking Python version...") if major != 2: error("Teaser currently requires...
#!/usr/bin/env python import os import sys major=sys.version_info[0] errors=[] def error(msg): errors.append(msg) def sub(cmd): if os.system(cmd) != 0: errors.append("Command failed: %s"%cmd) print("Checking Python version...") if major != 2: error("Teaser currently requires Python 2! Version: %s"%str(sys.vers...
mit
Python
78b22168827e73f71582842a7399df5dde9b4a47
Complete write method
jonathanstallings/learning-journal,jonathanstallings/learning-journal
journal.py
journal.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import os from pyramid.config import Configurator from pyramid.view import view_config import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from waitress im...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import os from pyramid.config import Configurator from pyramid.view import view_config import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker from waitress im...
mit
Python
11be5e48cf245d4365f8908f6f7ea26259666121
Use actual message
dashford/sentinel
src/Sensors/BME680.py
src/Sensors/BME680.py
import bme680 import time class BME680: def __init__(self): self._sensor = bme680.BME680() self._sensor.set_humidity_oversample(bme680.OS_2X) self._sensor.set_pressure_oversample(bme680.OS_4X) self._sensor.set_temperature_oversample(bme680.OS_8X) self._sensor.set_filter(bme...
import bme680 import time class BME680: def __init__(self): self._sensor = bme680.BME680() self._sensor.set_humidity_oversample(bme680.OS_2X) self._sensor.set_pressure_oversample(bme680.OS_4X) self._sensor.set_temperature_oversample(bme680.OS_8X) self._sensor.set_filter(bme...
mit
Python
21d8e9dd874887522f64993a5c08574a26b36391
add rcu and seqlock tests to new_bench
msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler
case_studies/scripts/new_bench.py
case_studies/scripts/new_bench.py
#!/usr/bin/env python3 from collections import namedtuple import sys, subprocess VERSIONS = ['c11', 'rmc', 'sc'] TestGroup = namedtuple('TestGroup', ['name', 'subtests', 'groups', 'params']) ### # Code for executing the stuff def get_binaries(test, groups): binaries = set(x for g in groups for x in test.groups[...
#!/usr/bin/env python3 from collections import namedtuple import sys, subprocess VERSIONS = ['c11', 'rmc', 'sc'] TestGroup = namedtuple('TestGroup', ['name', 'subtests', 'groups', 'params']) ### # Code for executing the stuff def get_binaries(test, groups): binaries = set(x for g in groups for x in test.groups[...
mit
Python
c167c519c5d431afa22011e1c5f2937c644a12aa
Fix bug in PrintCamera; replace non-existant properties
3stack-software/celery-cloudwatch
celery_cloudwatch/print_camera.py
celery_cloudwatch/print_camera.py
from .stats import Stats from .camera import Camera class PrintCamera(Camera): clear_after = True def on_shutter(self, state): print '-----' print 'Time to Start' total = Stats() for method_name, stats in state.time_to_start.items(): print "%s avg:%.2fs, max:%.2...
from .stats import Stats from .camera import Camera class PrintCamera(Camera): clear_after = True def on_shutter(self, state): print '-----' print 'Time to Start' total = Stats() for method_name, stats in state.time_to_start.items(): print "%s avg:%.2fs, max:%.2...
mit
Python
d5d58ae4f72a2088ac28334d16f64615706def09
Bump version (0.3.5)
damianignacio/anima,damianignacio/anima,damianignacio/anima
src/anima/__init__.py
src/anima/__init__.py
# -*- coding: utf-8 -*- __version__ = '0.3.5' from django.apps import AppConfig class Config(AppConfig): label = 'anima' verbose_name = 'Anima' name = 'anima' models_module = 'anima.models'
# -*- coding: utf-8 -*- __version__ = '0.3.4' from django.apps import AppConfig class Config(AppConfig): label = 'anima' verbose_name = 'Anima' name = 'anima' models_module = 'anima.models'
mit
Python
818e6bc68954e6a5a516a3949837125828dca7ed
Update LDA.py
mostafa-mahmoud/HyPRec,mostafa-mahmoud/sahwaka
lib/LDA.py
lib/LDA.py
#!/usr/bin/env python import numpy from lib.content_based import ContentBased from sklearn.decomposition import LatentDirichletAllocation from sklearn.feature_extraction.text import CountVectorizer class LDARecommender(ContentBased): def __init__(self, abstracts, n_factors, n_iterations=5): self.n_factors...
#!/usr/bin/env python import numpy from lib.content_based import ContentBased from sklearn.decomposition import LatentDirichletAllocation from sklearn.feature_extraction.text import CountVectorizer class LDARecommender(ContentBased): def __init__(self, abstracts, n_factors, n_iterations=5): self.n_factors...
apache-2.0
Python
6034866897b5617c23e6549e79b41a463116ff8c
Fix flake8
open-synergy/opnsynid-accounting-report
opnsynid_general_ledger_with_ou/wizard/wizard_general_ledger.py
opnsynid_general_ledger_with_ou/wizard/wizard_general_ledger.py
# -*- coding: utf-8 -*- # Copyright 2020 OpenSynergy Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields class WizardReportGeneralLedger(models.TransientModel): _inherit = "account.wizard_report_general_ledger" operating_unit_ids = fields.Many2many( ...
# -*- coding: utf-8 -*- # Copyright 2020 OpenSynergy Indonesia # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import api, models, fields class WizardReportGeneralLedger(models.TransientModel): _inherit = "account.wizard_report_general_ledger" operating_unit_ids = fields.Many2ma...
agpl-3.0
Python
d988220ed34aa10f7dc1c7617d451bcae6311d27
clean up config to remove unused settings
hazelcast/hazelcast-python-client,cangencer/hazelcast-python-client,hazelcast/hazelcast-python-client
hazelcast/config.py
hazelcast/config.py
""" Configuration module """ DEFAULT_GROUP_NAME = "dev" DEFAULT_GROUP_PASSWORD = "dev-pass" PROPERTY_HEARTBEAT_INTERVAL = "hazelcast.client.heartbeat.interval" PROPERTY_HEARTBEAT_TIMEOUT = "hazelcast.client.heartbeat.timeout" class ClientConfig(object): def __init__(self): self.properties = {} s...
""" Configuration module """ DEFAULT_GROUP_NAME = "dev" DEFAULT_GROUP_PASSWORD = "dev-pass" PROPERTY_HEARTBEAT_INTERVAL = "hazelcast.client.heartbeat.interval" PROPERTY_HEARTBEAT_TIMEOUT = "hazelcast.client.heartbeat.timeout" class ClientConfig(object): def __init__(self): self.properties = {} se...
apache-2.0
Python
7de2125c0ac4e0864f4d98fff30406efee8f6a3f
Increment version to 1.7.0.
akash1808/wrapt,ionelmc/python-lazy-object-proxy,pombredanne/python-lazy-object-proxy,linglaiyao1314/wrapt,wujuguang/wrapt,github4ry/wrapt,linglaiyao1314/wrapt,pombredanne/python-lazy-object-proxy,pombredanne/wrapt,akash1808/wrapt,GrahamDumpleton/wrapt,pombredanne/wrapt,GrahamDumpleton/wrapt,github4ry/wrapt,wujuguang/w...
src/__init__.py
src/__init__.py
__version_info__ = ('1', '7', '0') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, resolve_path, apply_patch, wrap_object, function_wrapper, wrap_function_wrapper, patch_function_wrapper,...
__version_info__ = ('1', '6', '0') __version__ = '.'.join(__version_info__) from .wrappers import (ObjectProxy, CallableObjectProxy, FunctionWrapper, BoundFunctionWrapper, WeakFunctionProxy, resolve_path, apply_patch, wrap_object, function_wrapper, wrap_function_wrapper, patch_function_wrapper,...
bsd-2-clause
Python
11e8ad60f78b179e67a806ede62dc16e2dacf033
add docstrings.
jwilk/anorack,jwilk/anorack
lib/cli.py
lib/cli.py
# Copyright © 2016 Jakub Wilk <jwilk@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, p...
# Copyright © 2016 Jakub Wilk <jwilk@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, p...
mit
Python
c020a713065b928ab6f684c26cb0d61a728d5c8f
Update __init__.py
Diapolo10/RPGenie
src/__init__.py
src/__init__.py
#!/usr/bin/env python """ RPGenie; a modular toolkit for developing RPG games in Python RPGenie focuses on modularity and ease-of-use; not only can you add functionality through the pre-defined classes, functions and mixins, but you can also directly use any of them as base classes. The toolkit is aiming to be fully...
#!/usr/bin/env python """ RPGenie; a modular toolkit for developing RPG games in Python RPGenie focuses on modularity and ease-of-use; not only can you add functionality through the pre-defined classes, functions and mixins, but you can also directly use any of them as base classes. The toolkit is aiming to be fully...
mit
Python
b547847a850109e2dde150b1ba4a227a1e295108
return strings for dist,duration
chasingbob/enlightment-mirror,chasingbob/enlightment-mirror,chasingbob/enlightment-mirror
route.py
route.py
import json from urllib.parse import urlparse import urllib import requests import config #!/usr/bin/env python3 #!python3 def get_key(): return config.get_value('google_key') def get_current_traffic(origin,destination): return '14km', '32min' #o = origin.replace(' ','+') #d = destination.replace('...
import json from urllib.parse import urlparse import urllib import requests import config #!/usr/bin/env python3 #!python3 def get_key(): return config.get_value('google_key') def get_current_traffic(origin,destination): return '14', '32' #o = origin.replace(' ','+') #d = destination.replace(' ','+...
mit
Python
afeb2ef6c5e570a122b677440c5a4daa3ebcd2c5
Update version to next release
minio/minio-py,minio/minio-py,NitishT/minio-py,NitishT/minio-py
minio/__init__.py
minio/__init__.py
# -*- coding: utf-8 -*- # Minio Python Library for Amazon S3 Compatible Cloud Storage, # (C) 2015, 2016, 2017 Minio, 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.ap...
# -*- coding: utf-8 -*- # Minio Python Library for Amazon S3 Compatible Cloud Storage, # (C) 2015, 2016, 2017 Minio, 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.ap...
apache-2.0
Python
2af557ef1658f11af26cee8cb36a0f9e909dd003
support for manual patch file
Vaishal-shah/Envision,mgalbier/Envision,lukedirtwalker/Envision,mgalbier/Envision,Vaishal-shah/Envision,lukedirtwalker/Envision,mgalbier/Envision,lukedirtwalker/Envision,lukedirtwalker/Envision,dimitar-asenov/Envision,dimitar-asenov/Envision,lukedirtwalker/Envision,Vaishal-shah/Envision,mgalbier/Envision,mgalbier/Envis...
misc/idPatcher.py
misc/idPatcher.py
#!/usr/bin/python3 ''' Created on Aug 19, 2015 @author: Balz Guenat ''' import re import sys import fileinput from os.path import isfile patchFileSuffix = ".idpatch" manualFileSuffix = ".idpatch.manual" subRegex = re.compile("^(\t*\S+ \S+ \{)(\S+)(\} \{)(\S+)(\}.*)$") def patch(fileName): print("Patching file ...
#!/usr/bin/python3 ''' Created on Aug 19, 2015 @author: Balz Guenat ''' import re import sys import fileinput patchFileSuffix = ".idpatch" subRegex = re.compile("^(\t*\S+ \S+ \{)(\S+)(\} \{)(\S+)(\}.*)$") def patch(fileName): print("Patching file " + fileName) patches = {} # Maps old IDs to new IDs for ...
bsd-3-clause
Python
a4c5e7407ccdbba961319fe60f506643c84ab108
add a bunch of sgraph howtos
srikris/how-to,nagyistoce/how-to-graphlab-create,dato-code/how-to
triple_apply_shortest_path.py
triple_apply_shortest_path.py
# Title: Implement shortest_path using SGraph.triple_apply import graphlab as gl import time def sssp_update_fn(src, edge, dst): sdist = src['distance'] ddist = dst['distance'] if sdist + 1 < ddist: dst['changed'] = True dst['distance'] = sdist + 1 return (src, edge, dst) def sssp_tr...
# Title: Implement shortest_path using SGraph.triple_apply import graphlab as gl import time def sssp_update_fn(src, edge, dst): sdist = src['distance'] ddist = dst['distance'] newDist = sdist + 1 newDist = min(ddist, newDist) if not dst['changed']: dst['changed'] = ddist != newDist ds...
cc0-1.0
Python
3290747958eda86802d548c7fc3c5ff86fcbeaba
fix patch-queue branch error message
red-hat-storage/rhcephpkg,red-hat-storage/rhcephpkg
rhcephpkg/build.py
rhcephpkg/build.py
from time import sleep from tambo import Transport import posixpath import rhcephpkg.log as log import rhcephpkg.util as util from rhcephpkg.watch_build import WatchBuild class Build(object): help_menu = 'build a package in Jenkins' _help = """ Build a package in Jenkins. """ name = 'build' def __ini...
from time import sleep from tambo import Transport import posixpath import rhcephpkg.log as log import rhcephpkg.util as util from rhcephpkg.watch_build import WatchBuild class Build(object): help_menu = 'build a package in Jenkins' _help = """ Build a package in Jenkins. """ name = 'build' def __ini...
mit
Python
5a74ebe16cc46b93c5d6a7cb4880e74a7ea69442
Fix import error when CUDA is not available
okuta/chainer,keisuke-umezawa/chainer,wkentaro/chainer,chainer/chainer,hvy/chainer,wkentaro/chainer,hvy/chainer,keisuke-umezawa/chainer,chainer/chainer,wkentaro/chainer,keisuke-umezawa/chainer,chainer/chainer,tkerola/chainer,keisuke-umezawa/chainer,pfnet/chainer,okuta/chainer,wkentaro/chainer,niboshi/chainer,niboshi/ch...
chainerx/_cuda.py
chainerx/_cuda.py
import chainerx try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the CUDA backend. This is needed in o...
import chainerx from chainerx import _pybind_cuda try: import cupy _cupy_available = True except Exception: _cupy_available = False _chainerx_allocator = None def cupy_share_allocator(owner=chainerx._global_context): # Replace CuPy's allocator with ChainerX's if ChainerX is available with # the...
mit
Python
0024f1d1c45e6e3e306fbeed811263704588033c
order by name of survey on home page
unicefuganda/uSurvey,unicefuganda/uSurvey,unicefuganda/uSurvey,unicefuganda/uSurvey,unicefuganda/uSurvey
survey/views/home_page.py
survey/views/home_page.py
from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.http import HttpResponseRedirect from django.shortcuts import render from survey.forms.aboutus_form import AboutUsForm from survey.models import Survey, AboutUs from django.conf import settings def home(requ...
from django.contrib import messages from django.contrib.auth.decorators import permission_required from django.http import HttpResponseRedirect from django.shortcuts import render from survey.forms.aboutus_form import AboutUsForm from survey.models import Survey, AboutUs from django.conf import settings def home(requ...
bsd-3-clause
Python
267cda0ff8c5968f056f2e2d509bd0839ee95af9
Remove unused imports and trailing whitespace
paulproteus/spambayes-pyblosxom,paulproteus/spambayes-pyblosxom
txt2msg.py
txt2msg.py
from lxml import etree import calendar import time import email.utils import codecs import sys utf8_stdout = codecs.getwriter('utf8')(sys.stdout) ### FIXME: content encoding utf8 def _get_tag(data, tag_name): out = data.xpath('//' + tag_name) if out: return out[0].text return None def split_hea...
from lxml import etree import calendar import datetime import time import email.utils import pytz import codecs import sys utf8_stdout = codecs.getwriter('utf8')(sys.stdout) ### FIXME: content encoding utf8 def _get_tag(data, tag_name): out = data.xpath('//' + tag_name) if out: return out[0].text ...
cc0-1.0
Python
876144b1f2feeecfdfcce416f410ea5dd73749b4
Add superuser.com to nofollow offenders
p/olib
olib/nofollow.py
olib/nofollow.py
import lxml.etree nofollow_offenders = [ 'stackoverflow.com', 'superuser.com', 'wikipedia.org', 'trackpedia.com', ] # for faster lookups nofollow_offenders = ['.' + offender for offender in nofollow_offenders] def nofollow_antiabuse(html): import urlparse doc = lxml.etree.HTML(html) ...
import lxml.etree nofollow_offenders = [ 'stackoverflow.com', 'wikipedia.org', 'trackpedia.com', ] # for faster lookups nofollow_offenders = ['.' + offender for offender in nofollow_offenders] def nofollow_antiabuse(html): import urlparse doc = lxml.etree.HTML(html) for element in d...
bsd-2-clause
Python
910e1a1762dac1d62c8a6749286c436d6c2b28d9
Update convex hull of the group when removing a node from the group
onitake/Uranium,onitake/Uranium
UM/Operations/RemoveSceneNodeOperation.py
UM/Operations/RemoveSceneNodeOperation.py
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. from . import Operation from UM.Scene.Selection import Selection from UM.Application import Application ## An operation that removes a SceneNode from the scene. class RemoveSceneNodeOperation(Operation.Operation): ...
agpl-3.0
Python
381892bc976638ae9fdca53344a4dcbffd1650f2
change LOG to log
cxysteven/Paddle,yu239/Paddle,reyoung/Paddle,jacquesqiao/Paddle,PaddlePaddle/Paddle,pengli09/Paddle,PaddlePaddle/Paddle,lispc/Paddle,PaddlePaddle/Paddle,QiJune/Paddle,Canpio/Paddle,luotao1/Paddle,beckett1124/Paddle,Canpio/Paddle,wen-bo-yang/Paddle,jacquesqiao/Paddle,beckett1124/Paddle,yu239/Paddle,livc/Paddle,hedaoyuan...
demo/recommendation/evaluate.py
demo/recommendation/evaluate.py
#!/usr/bin/python # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # 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 ...
#!/usr/bin/python # Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved # # 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 ...
apache-2.0
Python
75f30e339d7a9ebe50e08362c5044e7fc7a8718e
Fix ipv6 problem
simonyiszk/openwebrx,simonyiszk/openwebrx,simonyiszk/openwebrx
sdrhu.py
sdrhu.py
#!/usr/bin/python2 """ This file is part of OpenWebRX, an open-source SDR receiver software with a web UI. Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as...
#!/usr/bin/python2 """ This file is part of OpenWebRX, an open-source SDR receiver software with a web UI. Copyright (c) 2013-2015 by Andras Retzler <randras@sdr.hu> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as...
agpl-3.0
Python
9bd149335cc7c852de16ea8fe12e404e68e47d77
fix missing pbx framework for latest sdl2
kivy/kivy-ios,kivy/kivy-ios,kivy/kivy-ios
recipes/sdl2/__init__.py
recipes/sdl2/__init__.py
from toolchain import Recipe, shprint import sh class LibSDL2Recipe(Recipe): #version = "2.0.3" #url = "https://www.libsdl.org/release/SDL2-{version}.tar.gz" version = "iOS-improvements" url = "https://bitbucket.org/slime73/sdl-experiments/get/{version}.tar.gz" library = "Xcode-iOS/SDL/build/Relea...
from toolchain import Recipe, shprint import sh class LibSDL2Recipe(Recipe): #version = "2.0.3" #url = "https://www.libsdl.org/release/SDL2-{version}.tar.gz" version = "iOS-improvements" url = "https://bitbucket.org/slime73/sdl-experiments/get/{version}.tar.gz" library = "Xcode-iOS/SDL/build/Relea...
mit
Python
a17f711a6e055a9de4674e4c35570a2c6d6f0335
Move newline handling to a function.
RichardBronosky/ttysend
ttysend.py
ttysend.py
#!/usr/bin/env python from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): if len(data): # Handle trailing newline if data[-1][-1] != '\n': ...
from __future__ import print_function import sys import os import fcntl import termios import argparse class RootRequired(Exception): """Our standard exception.""" pass def send(data, tty): """Send each char of data to tty.""" if(os.getuid() != 0): raise RootRequired('Only root can send in...
mit
Python
782c1b8379d38f99de413398919aa797af0df645
Use animation if dirname is provided
M2-AAIS/BAD
plot_s_curve.py
plot_s_curve.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys import os import matplotlib.animation as animation fig = plt.figure() inpath = sys.argv[1] if os.path.isfile(inpath): print('Visiting {}'.format(inpath)) filenames = [inpath] else: _fil...
#!/usr/bin/env python # -*- coding: utf-8 -*- import matplotlib.pyplot as plt from numpy import array, log import sys x = [] y = [] infile = open(sys.argv[1]) for line in infile: data = line.replace('\n','').split() print(data) try : x.append(float(data[0])) y.append(float(data[1])) ...
mit
Python
a8cb32a87614ccf0863acde95913bbd8c9a5ce78
Update experiment name
NickAnderegg/rpacr-mazeexperiment,NickAnderegg/mazeexperiment
mazeexperiment/mazeexperiment.py
mazeexperiment/mazeexperiment.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2016 Your Name # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including with...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2016 Your Name # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including with...
mit
Python
7e9ee6f7da1f5dcf405c4545bcdd5f9730742b99
change copyright to GISCE-IT S.L.
gisce/bankbarcode
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='bankbarcode', version='0.1.0', packages=find_packages(), url='https://github.com/gisce/bankbarcode', license='GNU Affero General Public License v3', author='GISCE-TI, S.L.', author_email='devel@gisce.net', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='bankbarcode', version='0.1.0', packages=find_packages(), url='https://github.com/gisce/bankbarcode', license='GNU Affero General Public License v3', author='Simó Albert i Beltran', author_email='sim6@probeta.n...
agpl-3.0
Python
67fd09f9faabdcf18c0fa65d3894ee3be1035964
remove dead code
rlowrance/mlpack,rlowrance/mlpack
module_squared.py
module_squared.py
'''module for squared loss''' import numpy as np import unittest import pdb def squared(): '''squared error''' def output(predicted, expected): error = predicted - expected return np.dot(error, error) def gradient(predicted, expected): '''gradient wrt predicted''' # NOTE: ...
'''module for squared loss''' import numpy as np import unittest import pdb def squared(): '''squared error''' def output(predicted, expected): error = predicted - expected return np.dot(error, error) def gradient(predicted, expected): '''gradient wrt predicted''' error = ...
mit
Python
cd12d41c215161a9560b0110162c6b71bd7195a3
bump version
ioO/billjobs
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-billjobs', version='0.2.5', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-billjobs', version='0.2.3', ...
mit
Python
dbcf6cf8cd4575f9bae5820b9236f342874af7c8
Fix copypasta - pull debug args for jvm_run.py from the jcm config section.
Yasumoto/commons,pombredanne/commons,Yasumoto/commons,WCCCEDU/twitter-commons,nkhuyu/commons,jsirois/commons,VaybhavSharma/commons,atollena/commons,foursquare/commons-old,imsut/commons,imsut/commons,WCCCEDU/twitter-commons,brutkin/commons,cevaris/commons,cevaris/commons,atollena/commons,abel-von/commons,ericzundel/comm...
src/python/twitter/pants/tasks/jvm_run.py
src/python/twitter/pants/tasks/jvm_run.py
# ================================================================================================== # Copyright 2012 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
# ================================================================================================== # Copyright 2012 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
apache-2.0
Python
141eb0c6aad137b3915316fe3d564375c7eb1b0c
Add `decorator` to install_requires
jamiebull1/eppy,jamiebull1/eppy,eayoungs/eppy,eayoungs/eppy,santoshphilip/eppy,santoshphilip/eppy,eayoungs/eppy,jamiebull1/eppy,santoshphilip/eppy
setup.py
setup.py
from __future__ import print_function from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import io import codecs import os import sys import eppy here = os.path.abspath(os.path.dirname(__file__)) def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'u...
from __future__ import print_function from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand import io import codecs import os import sys import eppy here = os.path.abspath(os.path.dirname(__file__)) def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'u...
mit
Python
7c0a8eda80a7e85f6fbe784e3289b6e180c670f8
drop 3.4 in python_requires too
pitthsls/pycounter
setup.py
setup.py
from __future__ import with_statement import os import platform from setuptools import find_packages, setup version = {} # will be set by exec below with open(os.path.join(os.path.dirname(__file__), "pycounter/version.py"), "r") as fp: exec(fp.read(), version) with open("README.rst") as readmefile: readme...
from __future__ import with_statement import os import platform from setuptools import find_packages, setup version = {} # will be set by exec below with open(os.path.join(os.path.dirname(__file__), "pycounter/version.py"), "r") as fp: exec(fp.read(), version) with open("README.rst") as readmefile: readme...
mit
Python
c562c241e20fd5bd58e5db34e63c6b2c5aed2273
Create a pypi library
ArthurFortes/CaseRecommender
setup.py
setup.py
from distutils.core import setup from setuptools import find_packages __author__ = "Arthur Fortes" setup( name='CaseRecommender', packages=find_packages(), version='0.0.4', license='GPL3 License', description='A recommender systems CaseRecommender for python', author='Arthur Fortes da Costa',...
from distutils.core import setup __author__ = "Arthur Fortes" setup( name='CaseRecommender', packages=['CaseRecommender'], version='0.0.4', license='GPL3 License', description='A recommender systems CaseRecommender for python', author='Arthur Fortes da Costa', author_email='fortes.arthur@g...
mit
Python
3a5adc6ca29647a4395ea4b8ca4224762bbef42d
Bump version number.
mattions/pyfaidx
setup.py
setup.py
from setuptools import setup setup( name='pyfaidx', provides='pyfaidx', version='0.1.5', author='Matthew Shirley', author_email='mdshw5@gmail.com', url='http://mattshirley.com', description='pyfaidx: efficient pythonic random ' 'access to fasta subsequences', license='MI...
from setuptools import setup setup( name='pyfaidx', provides='pyfaidx', version="0.1.4", author='Matthew Shirley', author_email='mdshw5@gmail.com', url='http://mattshirley.com', description='"samtools faidx" compatible FASTA indexing in pure python', license='MIT', packages=['pyfaid...
bsd-3-clause
Python
46e58b9d105f06397f6597b0e44a12de13cd9723
Bump to version 3
pimlie/django-countries,velfimov/django-countries,fladi/django-countries,jrfernandes/django-countries,schinckel/django-countries,rahimnathwani/django-countries,SmileyChris/django-countries
setup.py
setup.py
#!/usr/bin/env python import io import os from setuptools import setup, find_packages def long_description(): """ Build the long description from a README file located in the same directory as this module. """ base_path = os.path.dirname(os.path.realpath(__file__)) with io.open(os.path.join(ba...
#!/usr/bin/env python import io import os from setuptools import setup, find_packages def long_description(): """ Build the long description from a README file located in the same directory as this module. """ base_path = os.path.dirname(os.path.realpath(__file__)) with io.open(os.path.join(ba...
mit
Python
be5465abb85bddafd070058222fec31067511358
bump to v0.18.2
bplotnick/pyramid_zipkin,Yelp/pyramid_zipkin
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup __version__ = '0.18.2' setup( name='pyramid_zipkin', version=__version__, provides=["pyramid_zipkin"], author='Yelp, Inc.', author_email='opensource+pyramid-zipkin@yelp.com', license='Co...
#!/usr/bin/python # -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup __version__ = '0.18.1' setup( name='pyramid_zipkin', version=__version__, provides=["pyramid_zipkin"], author='Yelp, Inc.', author_email='opensource+pyramid-zipkin@yelp.com', license='Co...
apache-2.0
Python
d8aea9c50d00a997aa8c17acaa4b797126935cb5
fix package name
vcoque/consul-ri
setup.py
setup.py
#!/usr/bin/python from distutils.core import setup setup( name = 'consulrest', version = '0.1', author = 'Vinicius Coque', author_email = 'vcoque@gmail.com', packages=['consulrest'], install_requires=['requests'] )
#!/usr/bin/python from distutils.core import setup setup( name = 'consular-agent', version = '0.1', author = 'Vinicius Coque', author_email = 'vcoque@gmail.com', packages=['consularagent'], install_requires=['requests'] )
mit
Python
c9686958ced83ade4e9579a95913ea22bbc38b32
Bump version to 1.4.5
mwilliamson/python-mammoth
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() _install_requires = [ "cobble>=0.1.3,<0.2", ] if sys.version_info[:2] <= (2, 6): _install_requires.append("argparse>=1.1,<2.0") setup( name='m...
#!/usr/bin/env python import os import sys from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() _install_requires = [ "cobble>=0.1.3,<0.2", ] if sys.version_info[:2] <= (2, 6): _install_requires.append("argparse>=1.1,<2.0") setup( name='m...
bsd-2-clause
Python
ffee5aac9c05693ece04628a96f7c717eeb4f425
Add download url
PytLab/catplot
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
#!/usr/bin/env python from distutils.core import setup from catplot import __version__ as version maintainer = 'Shao-Zheng-Jiang' maintainer_email = 'shaozhengjiang@gmail.com' author = maintainer author_email = maintainer_email description = __doc__ requires = [ 'numpy', 'scipy', 'matplotlib', ] license...
mit
Python
1e611e50e1464f1f36c86af55df6777328d29c36
increment version
pmrowla/gumiyabot
setup.py
setup.py
from setuptools import find_packages, setup from codecs import open from os import path version = '0.1.4.dev' install_requires = ['aiohttp', 'irc3', 'osuapi'] here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( na...
from setuptools import find_packages, setup from codecs import open from os import path version = '0.1.3' install_requires = ['aiohttp', 'irc3', 'osuapi'] here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='...
mit
Python
4cc751e37ce5d0139cb0361b9c258066c0cda6ca
Bump faker from 2.0.2 to 2.0.3
marshmallow-code/marshmallow-jsonapi
setup.py
setup.py
import re from setuptools import setup, find_packages INSTALL_REQUIRES = ("marshmallow>=2.15.2",) EXTRAS_REQUIRE = { "tests": ["pytest", "mock", "faker==2.0.3", "Flask==1.1.1"], "lint": ["flake8==3.7.8", "flake8-bugbear==19.8.0", "pre-commit~=1.18"], } EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_R...
import re from setuptools import setup, find_packages INSTALL_REQUIRES = ("marshmallow>=2.15.2",) EXTRAS_REQUIRE = { "tests": ["pytest", "mock", "faker==2.0.2", "Flask==1.1.1"], "lint": ["flake8==3.7.8", "flake8-bugbear==19.8.0", "pre-commit~=1.18"], } EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_R...
mit
Python
c42ce24984b557b8b82c252112310e8d259e79df
Bump version number to 0.5.4.
ProjetPP/PPP-datamodel-Python,ProjetPP/PPP-datamodel-Python
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_datamodel', version='0.5.4', description='Data model for the Projet Pensées Profondes.', url='https://github.com/ProjetPP/PPP-datamodel-Python', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_datamodel', version='0.5.3', description='Data model for the Projet Pensées Profondes.', url='https://github.com/ProjetPP/PPP-datamodel-Python', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens...
agpl-3.0
Python
8630facbfbcd6290adfc54a8c690966e09eb0e70
add Python 3 as a classifier
sbyrnes321/eq_band_diagram
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup long_description = ("Calculates equilibrium band diagrams for planar " "multilayer semiconductor structures. To learn " "more go to " "http://pythonhosted.org/eq_band_diagram/") descr...
# -*- coding: utf-8 -*- import os from setuptools import setup long_description = ("Calculates equilibrium band diagrams for planar " "multilayer semiconductor structures. To learn " "more go to " "http://pythonhosted.org/eq_band_diagram/") descr...
mit
Python
448925fd52a3285b43f7f53adbb1e81129511b80
Add and reorganize arguments in setup.py.
joeyespo/gitpress
setup.py
setup.py
import os from setuptools import setup, find_packages import gitpress as package def read(fname): with open(os.path.join(os.path.dirname(__file__), fname)) as f: return f.read() setup( name=package.__name__, version=package.__version__, description=package.__description__, long_descripti...
import os from setuptools import setup, find_packages import gitpress as package def read(fname): with open(os.path.join(os.path.dirname(__file__), fname)) as f: return f.read() setup( name=package.__name__, author='Joe Esposito', author_email='joe@joeyespo.com', url='http://github.com/j...
mit
Python
0fd65a7666e99bc124d3638cd15c02fc75a34ba9
Bump version to v0.6a2
onyb/reobject,onyb/reobject
setup.py
setup.py
from codecs import open from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) setup( name='reobject', version='0.6a2', description='Python without ifs and buts', url='https://github.com/onyb/reobject', author='Anirudha Bose', author_email=...
from codecs import open from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) setup( name='reobject', version='0.6a1', description='Python without ifs and buts', url='https://github.com/onyb/reobject', author='Anirudha Bose', author_email=...
apache-2.0
Python
db57577d94e975283d603128241d6c43f9874767
Update setup.py
bukun/TorCMS,bukun/TorCMS,bukun/TorCMS,bukun/TorCMS,bukun/TorCMS
setup.py
setup.py
#!/usr/bin/env python2 # -*- coding:utf-8 -*- ''' For pypi ''' from setuptools import setup, find_packages desc = ('Flexible, extensible Web CMS framework built on Tornado,' 'compatible with Python 3.4 and above.') setup( name='torcms', version='0.6.22', keywords=('torcms', 'tornado', 'cms',), ...
#!/usr/bin/env python2 # -*- coding:utf-8 -*- ''' For pypi ''' from setuptools import setup, find_packages desc = ('Flexible, extensible Web CMS framework built on Tornado,' 'compatible with Python 3.4 and above.') setup( name='torcms', version='0.6.22', keywords=('torcms', 'tornado', 'cms',), ...
mit
Python
3e5858366297e61de0d6f2cd0096a04c2f0be4eb
split requirements into mandatory and extra
maxim5/hyper-engine
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'maxim' import os from setuptools import setup, find_packages def read(file_): return open(os.path.join(os.path.dirname(__file__), file_)).read() setup( name = 'hyper-engine', version = '0.1.2', author = 'Maxim Podkolzine', author_email = 'maxim.p...
#! /usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'maxim' import os from setuptools import setup, find_packages def read(file_): return open(os.path.join(os.path.dirname(__file__), file_)).read() setup( name = 'hyper-engine', version = '0.1.2', author = 'Maxim Podkolzine', author_email = 'maxim.p...
apache-2.0
Python
ae1e2e630e7a82a9178dfaf5faeedcc10d9aab7f
bump required antismash_models version to 0.1.12
antismash/dispatcher
setup.py
setup.py
import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand short_description = "Dispatcher for web-submitted antiSMASH jobs" long_description = short_description if os.path.exists('README.rst'): long_description = open('README.rst').read() install_requires = [ 'a...
import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand short_description = "Dispatcher for web-submitted antiSMASH jobs" long_description = short_description if os.path.exists('README.rst'): long_description = open('README.rst').read() install_requires = [ 'a...
agpl-3.0
Python
76a2e560dff08b3f7b01f5264d7f9cadb35aaf05
Update setup.py
orf/xcat,orf/xcat
setup.py
setup.py
from setuptools import find_packages, setup import os readme = "" if os.path.exists("README.rst"): with open("README.rst") as f: readme = f.read() setup(name="xcat", version="0.6.1", author="Tom Forbes", author_email="tom@tomforb.es", package_dir = {'xcat': 'xcat'}, packages...
from setuptools import find_packages, setup import os readme = "" if os.path.exists("README.rst"): with open("README.rst") as f: readme = f.read() setup(name="xcat", version="0.6.1", description="", author="Tom Forbes", author_email="tom@tomforb.es", package_dir = {'xcat': '...
mit
Python
20a5bf2c288d0ab2a9c8e3c5717b07218f0a2482
remove dead code
olympiag3/olypy,olympiag3/olypy,olympiag3/olypy,olympiag3/olypy
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")] def initialize_options(self): TestCommand.initialize_options(self) self.p...
#!/usr/bin/env python import re import sys from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")] def initialize_options(self): TestCommand.initialize_options(self) ...
apache-2.0
Python
6356038eafaa8b0ea74cc09b78090af163564938
Bump version to 0.1.1
portfoliome/pgawedge
pgawedge/_version.py
pgawedge/_version.py
version_info = (0, 1, 1) __version__ = '.'.join(map(str, version_info))
version_info = (0, 1, 0) __version__ = '.'.join(map(str, version_info))
mit
Python
e3c4ff38fe7017dfed9f24f486e61916a7421c35
move test stuff out to its own section
vihang/talon,AlexRiina/talon,agussman/talon,tgwizard/talon,mailgun/talon,mailgun/talon
setup.py
setup.py
from setuptools import setup, find_packages setup(name='talon', version='1.0.2', description=("Mailgun library " "to extract message quotations and signatures."), long_description=open("README.rst").read(), author='Mailgun Inc.', author_email='admin@mailgunhq.com', ...
from setuptools import setup, find_packages setup(name='talon', version='1.0.2', description=("Mailgun library " "to extract message quotations and signatures."), long_description=open("README.rst").read(), author='Mailgun Inc.', author_email='admin@mailgunhq.com', ...
apache-2.0
Python
bbfeff5188b0e5a30f2484b8dd21f8b249b2ba68
bump version; add python 3.6
yahoo/TensorFlowOnSpark,yahoo/TensorFlowOnSpark
setup.py
setup.py
from setuptools import setup setup( name = 'tensorflowonspark', packages = ['tensorflowonspark'], version = '1.0.3', description = 'Deep learning with TensorFlow on Apache Spark clusters', author = 'Yahoo, Inc.', url = 'https://github.com/yahoo/TensorFlowOnSpark', keywords = ['tensorflowonspark', 'tensor...
from setuptools import setup setup( name = 'tensorflowonspark', packages = ['tensorflowonspark'], version = '1.0.2', description = 'Deep learning with TensorFlow on Apache Spark clusters', author = 'Yahoo, Inc.', url = 'https://github.com/yahoo/TensorFlowOnSpark', keywords = ['tensorflowonspark', 'tensor...
apache-2.0
Python
aa19efefca24219204aee2a4ad4a09a831ccba7f
Update ircbot.py
tyler274/nexe_willie_bot
modules/ircbot.py
modules/ircbot.py
from willie import module import datetime import random import os #os.environ.setdefault("DJANGO_SETTINGS_MODULE", "alliance_auth.settings") #from services.managers.openfire_manager import OpenfireManager # @module.rule('hello!?') # def hi(bot, trigger): # bot.say('Hi ' + trigger.nick + ", I'm a bot") @module...
from willie import module import datetime import random import os #os.environ.setdefault("DJANGO_SETTINGS_MODULE", "alliance_auth.settings") #from services.managers.openfire_manager import OpenfireManager # @module.rule('hello!?') # def hi(bot, trigger): # bot.say('Hi ' + trigger.nick + ", I'm a bot") @module...
mit
Python
6b04ea187e7e94cce477eec77e5d8129466f265e
Drop old distutils code
sebastinas/python-libdiscid,sebastinas/python-libdiscid
setup.py
setup.py
#!/usr/bin/python import os.path import sys from setuptools import setup, Extension try: from Cython.Build import cythonize have_cython = True except ImportError: have_cython = False if have_cython: # if Cython is available, rebuild _discid.c ext = cythonize([ Extension('libdiscid._discid', [ ...
#!/usr/bin/python import os.path import sys try: from setuptools import setup, Extension have_setuptools = True except ImportError: from distutils.core import setup from distutils.extension import Extension have_setuptools = False try: from Cython.Build import cythonize have_cython = True except Import...
mit
Python
de6cae778237742e3e7a0702e038f5a0fed51ca1
update email in setup.py
Mic92/pry.py
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup( name='Pry', version='0.0.1', description='Pry ruby-like interactive shell, written in Python', author='Jörg Thalheim', author_email='joerg@thaleheim.io', url='https://github.com/Mic92/pry.py', py_modules=['pry'], zip_safe=Tr...
#!/usr/bin/env python from distutils.core import setup setup( name='Pry', version='0.0.1', description='Pry ruby-like interactive shell, written in Python', author='Jörg Thalheim', author_email='github@higgsboson.tk', url='https://github.com/Mic92/pry.py', py_modules=['pry'], zip_safe=...
mit
Python
562a833846c0f60e58160535caac5d52ec90dfb7
Update the setup file for the 1.0.3 release
zeroSteiner/smoke-zephyr
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # setup.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # setup.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions...
bsd-3-clause
Python
b8f6c4a91e121fae263b0aee3f1d2b044029246c
Fix bad trove classifier
googleapis/python-runtimeconfig,googleapis/python-runtimeconfig
setup.py
setup.py
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
apache-2.0
Python
c4c272813611b79b31752f9a5331571db0a1f3be
update version
drgrib/dotmap
setup.py
setup.py
from setuptools import setup setup( version = '1.2.5', name = 'dotmap', packages = ['dotmap'], # this must be the same as the name above description = 'ordered, dynamically-expandable dot-access dictionary', author = 'Chris Redford', author_email = 'credford@gmail.com', url = 'https://github.com/drgrib/dotmap',...
from setuptools import setup setup( version = '1.2.4', name = 'dotmap', packages = ['dotmap'], # this must be the same as the name above description = 'ordered, dynamically-expandable dot-access dictionary', author = 'Chris Redford', author_email = 'credford@gmail.com', url = 'https://github.com/drgrib/dotmap',...
mit
Python
bf24325db3675bdf140e024cc7a0341274827ac1
change these settings too
saymedia/batchhttp
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='batchhttp', version='1.0', description='HTTP Request Batching', packages=['batchhttp'], package_dir={'batchhttp': '.'}, install_requires=['httplib2>=0.4.0'], provides=['batchhttp'], author='Six Apart', author_email='py...
#!/usr/bin/env python from setuptools import setup setup( name='batchhttp', version='1.0', description='HTTP Request Batching', packages=['batchhttp'], package_dir={'batchhttp': '.'}, install_requires=['httplib2>=0.4.0'], provides=['remoteobjects'], author='Six Apart', author_email...
bsd-3-clause
Python
1b80a7837a27ddf319cc5dd4bd5830e2b2e16857
Update setup.py
filwaitman/dlogr-python
setup.py
setup.py
from setuptools import setup from dlogr import __version__ BASE_CVS_URL = 'https://github.com/filwaitman/dlogr-python/' setup( name='dlogr', packages=['dlogr', ], version=__version__, author='Filipe Waitman', author_email='filwaitman@gmail.com', install_requires=[x.strip() for x in open('requi...
from setuptools import setup from dlogr import __version__ BASE_CVS_URL = 'http://github.com/filwaitman/dlogr' setup( name='dlogr', packages=['dlogr', ], version=__version__, author='Filipe Waitman', author_email='filwaitman@gmail.com', install_requires=[x.strip() for x in open('requirements.t...
mit
Python
f9c08e2efc4172d3d8de40209730f79337259c12
Update flake8 to 2.5.1
aio-libs/aioppspp,kxepal/aioppspp
setup.py
setup.py
# -*- coding: utf-8 -*- # # 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, softwar...
# -*- coding: utf-8 -*- # # 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, softwar...
apache-2.0
Python
4710fb37f064ac08da0dfc54367a47a6bee377f1
Bump version number to 0.6
Maxence1/flask-wtf,Maxence1/flask-wtf
setup.py
setup.py
""" Flask-WTF --------- Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration. Links ````` * `documentation <http://packages.python.org/Flask-WTF>`_ * `development version <http://bitbucket.org/danjac/flask-wtf/get/tip.gz#egg=Flask-WTF>`_ """ from setuptools import setup ...
""" Flask-WTF --------- Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration. Links ````` * `documentation <http://packages.python.org/Flask-WTF>`_ * `development version <http://bitbucket.org/danjac/flask-wtf/get/tip.gz#egg=Flask-WTF>`_ """ from setuptools import setup ...
bsd-3-clause
Python
a4b47cf6d22211b4573ce2628f214d79c4da25fc
bump version
khchine5/opal,khchine5/opal,khchine5/opal
setup.py
setup.py
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='opal', version='0.3.0', packages=['opal', 'opal.utils'], ...
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='opal', version='0.1', packages=['opal', 'opal.utils'], ...
agpl-3.0
Python
a4881fc160a0815411f296d6b43c4c12b7c69bee
bump required vsc-install
rjeschmi/vsc-base,rjeschmi/vsc-base
setup.py
setup.py
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2009-2014 Ghent University # # This file is part of vsc-base, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscen...
#!/usr/bin/env python # -*- coding: latin-1 -*- # # Copyright 2009-2014 Ghent University # # This file is part of vsc-base, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscen...
lgpl-2.1
Python
6619c425538cefaeed41cab66e1561a4f05c1a4c
Update PyPI classifiers
bcse/stringscore
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() history = open('HISTORY.rst...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() history = open('HISTORY.rst...
mit
Python
bbe2373bf48744cd8b7b54cfe3ab659b4c85adf5
Bump version to 0.16
andreroggeri/pynubank
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup setup( name='pynubank', version='0.16', url='https://github.com/andreroggeri/pynubank', author='André Roggeri Campos', author_email='a.roggeri.c@gmail.com', license='BSD', packages=['pynubank'], package_data={'pynubank': ['queries/*.g...
# -*- coding: utf-8 -*- from setuptools import setup setup( name='pynubank', version='0.15', url='https://github.com/andreroggeri/pynubank', author='André Roggeri Campos', author_email='a.roggeri.c@gmail.com', license='BSD', packages=['pynubank'], package_data={'pynubank': ['queries/*.g...
mit
Python
418b04d5bd93f541d3a0371b923700b767a03d29
Bump revision
drcraig/concorde,drcraig/concorde
setup.py
setup.py
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='concorde', version='0.1.2', description='Static site generator using Markdown and Jinja', long_description=readme(), classifiers=[ 'Development Status :: 3 - Alpha', ...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='concorde', version='0.1.1', description='Static site generator using Markdown and Jinja', long_description=readme(), classifiers=[ 'Development Status :: 3 - Alpha', ...
mit
Python
4782614200f9b23f1cc48dc3020187f5338bb65d
update lib version - pypi
skimhub/aws-utils
setup.py
setup.py
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.5' INSTALL_REQUIRES = [ 'boto>=2.38.0,<3.0.0', 'boto3>=1.2.3,<1.3.0', 'smart-open>=1.3.1,<1.4.0', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] TEST_REQUIRES = [ 'moto>=0.4.19,<0.5.0', 'pytest>=2.8.5,<2.9.0', '...
from setuptools import setup, find_packages package = 'aws-utils' version = '0.2.4' INSTALL_REQUIRES = [ 'boto>=2.38.0,<3.0.0', 'boto3>=1.2.3,<1.3.0', 'smart-open>=1.3.1,<1.4.0', 'dateutils>=0.6.6', 'retrying>=1.3.3' ] TEST_REQUIRES = [ 'moto>=0.4.19,<0.5.0', 'pytest>=2.8.5,<2.9.0', '...
apache-2.0
Python
36de6736135639317ee4bd198ad7282840515cba
Bump to dev2
joeirimpan/shop,joeirimpan/shop,joeirimpan/shop
setup.py
setup.py
from setuptools import setup, find_packages setup( name='Fulfil-Shop', version='0.1dev2', packages=find_packages(), license='BSD', include_package_data=True, zip_safe=False, long_description=open('README.rst').read(), install_requires=[ 'Flask', 'Flask-WTF', 'Fla...
from setuptools import setup, find_packages setup( name='Fulfil-Shop', version='0.1dev1', packages=find_packages(), license='BSD', include_package_data=True, zip_safe=False, long_description=open('README.rst').read(), install_requires=[ 'Flask', 'Flask-WTF', 'Fla...
bsd-3-clause
Python
041cb0e2787801646241cb9c494c1fd3d0356401
update setup.py
fukuball/fuku-ml,fukuball/fuku-ml
setup.py
setup.py
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import FukuML if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() long_description = open('README.rst').read() requirements_lines = [line...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup import FukuML if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() long_description = open('README.rst').read() requirements_lines = [line...
mit
Python
f163cb88be087074cfa0801bcb02d897e30f812a
Add refract.contrib to packages
kylef/refract.py
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='refract', version='0.1.0', description='A Python library for interacting with Refract.', url='https://github.com/kylef/refract.py', packages=['refract', 'refract.elements', 'refract.contrib'], author='Kyle Fuller', author_emai...
#!/usr/bin/env python from setuptools import setup setup( name='refract', version='0.1.0', description='A Python library for interacting with Refract.', url='https://github.com/kylef/refract.py', packages=['refract', 'refract.elements'], author='Kyle Fuller', author_email='kyle@fuller.li',...
bsd-3-clause
Python
574a8bbd4a60077f549a6a19c6a470daca37fa3e
Update version number.
unaguil/sphinx-swagger,unaguil/sphinx-swaggerdoc
setup.py
setup.py
import sys import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return op...
import sys import os from setuptools import setup, find_packages # Utility function to read the README file. # Used for the long_description. It's nice, because now 1) we have a top level # README file and 2) it's easier to type in the README file than to put a raw # string in below ... def read(fname): return op...
mit
Python
dba38e04d2b1f769a4999386b1aa173e93ea46b5
Fix py3 support
virtuald/pyhcl,clearcare/pyhcl,scottbelden/pyhcl,virtuald/pyhcl,scottbelden/pyhcl,clearcare/pyhcl
setup.py
setup.py
#!/usr/bin/env python from __future__ import print_function from os.path import dirname, join, exists from distutils.core import setup try: from setuptools.command.install import install as _install except ImportError: from distutils.command.install import install as _install import sys import subprocess s...
#!/usr/bin/env python from __future__ import print_function from os.path import dirname, join, exists from distutils.core import setup try: from setuptools.command.install import install as _install except ImportError: from distutils.command.install import install as _install import sys import subprocess s...
mpl-2.0
Python
b7245f6222cc431074e7b52a9445309b3c3bb4b0
update email address
moralrecordings/mrcrowbar
setup.py
setup.py
from setuptools import setup setup(name='mrcrowbar', version='0.4', description=('A library and model framework for ' 'preserving/excavating binary file formats'), url='https://bitbucket.org/moralrecordings/mrcrowbar', license='BSD', author='Scott Percival', autho...
from setuptools import setup setup(name='mrcrowbar', version='0.4', description=('A library and model framework for ' 'preserving/excavating binary file formats'), url='https://bitbucket.org/moralrecordings/mrcrowbar', license='BSD', author='Scott Percival', autho...
bsd-3-clause
Python
3af4bb158be128a52c753f88eaffaed872d85880
update setup.py add download_url
muchu1983/story_chain,muchu1983/story_chain,muchu1983/story_chain
setup.py
setup.py
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ from setuptools import setup,find_packages with open("README.txt") as file: long_description = file.read() setup( name =...
# -*- coding: utf-8 -*- """ Copyright (C) 2015, MuChu Hsu Contributed by Muchu Hsu (muchu1983@gmail.com) This file is part of BSD license <https://opensource.org/licenses/BSD-3-Clause> """ from setuptools import setup,find_packages with open("README.txt") as file: long_description = file.read() setup( name =...
bsd-3-clause
Python
f44ee0b133544e8115b546ac338b524222de98f1
Update python packaging keywords.
ethoms/django-djaken,ethoms/django-djaken
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-djaken', version='2.0.2', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-djaken', version='2.0.2', ...
bsd-2-clause
Python
b1f1c6800323c71c12c8fbe7a6715aa49ba32a76
Add trove classifiers. What is even a trove?
hzdg/django-ecstatic
setup.py
setup.py
#/usr/bin/env python import codecs import os from setuptools import setup, find_packages read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read() def exec_file(filepath, globalz=None, localz=None): exec(read(filepath), globalz, localz) # Load package meta from the pkgmeta module without loading the pa...
#/usr/bin/env python import codecs import os from setuptools import setup, find_packages read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read() def exec_file(filepath, globalz=None, localz=None): exec(read(filepath), globalz, localz) # Load package meta from the pkgmeta module without loading the pa...
mit
Python
beb206b35dc6fa00d39b1a5d8585f61463827668
Add README as long_description
consbio/gis-metadata-parser
setup.py
setup.py
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
import subprocess import sys from setuptools import Command, setup class RunTests(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te...
bsd-3-clause
Python
c5ef0d8333bb427c588aa65ee6f081742c31c41e
Add Pygments as installation requirement
trilan/snippets,trilan/snippets
setup.py
setup.py
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='mike@yumatov.org', packages=find_packages(), instal...
from setuptools import setup, find_packages setup( name='snippets', version='0.0.dev', license='ISC', description='Code snippets repository generator', url='https://github.com/trilan/snippets', author='Mike Yumatov', author_email='mike@yumatov.org', packages=find_packages(), classi...
isc
Python
c9de166be3411fb82a98400e6b6769cdc4b85b84
Update setup.py to develop version
theherk/figgypy
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import sys try: import pypandoc readme = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): with open('README.md') as f: readme = f.read() install_requires = [ 'boto3', 'gnupg>=2.0.2', 'seria', 'pyt...
#!/usr/bin/env python from setuptools import setup, find_packages import sys try: import pypandoc readme = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): with open('README.md') as f: readme = f.read() install_requires = [ 'boto3', 'gnupg>=2.0.2', 'seria', 'pyt...
mit
Python
a9d28dd2b842d803c786cf2927b46dee782186ea
bump version
mdshw5/fastqp
setup.py
setup.py
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.2", author = 'Matthew Shirley', author_email = 'mdshw5@gmail.com', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.1", author = 'Matthew Shirley', author_email = 'mdshw5@gmail.com', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
mit
Python
94afec53ab09f3e077e2fd7996a0fa36e81b8209
revert preventing normalization (#53)
googleapis/python-analytics-admin,googleapis/python-analytics-admin
setup.py
setup.py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
apache-2.0
Python
33a77bb390e426bacc04fca24cb9573131edd06c
Fix setup (no need of importing pbr in this file)
karel-brinda/rnftools,karel-brinda/rnftools
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setuptools.setup( setup_requires=['pbr'], pbr=True, )
import sys import setuptools from pbr import util setuptools.setup( setup_requires=['pbr'], pbr=True, )
mit
Python
a26a1b8e1cd3576215d800b99e598f08cb845638
Bump version
graphistry/pygraphistry,graphistry/pygraphistry
setup.py
setup.py
#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages #from codecs import open #from os import path #here = path.abspath(path.dirname(__file__)) #with open(path.joi...
#!/usr/bin/env python """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages #from codecs import open #from os import path #here = path.abspath(path.dirname(__file__)) #with open(path.joi...
bsd-3-clause
Python
4c013ec00ee7453aa7bea75ba649d8e2f8ca5e60
Bump isort from 5.1.0 to 5.1.1 (#532)
larq/larq
setup.py
setup.py
from setuptools import find_packages, setup def readme(): with open("README.md", "r") as f: return f.read() setup( name="larq", version="0.10.0", python_requires=">=3.6", author="Plumerai", author_email="lukas@plumerai.co.uk", description="An Open Source Machine Learning Library ...
from setuptools import find_packages, setup def readme(): with open("README.md", "r") as f: return f.read() setup( name="larq", version="0.10.0", python_requires=">=3.6", author="Plumerai", author_email="lukas@plumerai.co.uk", description="An Open Source Machine Learning Library ...
apache-2.0
Python
989a1d8312708e10d5caad729474f0dc9b439549
update setup.py
oscar6echo/ezhc,oscar6echo/ezhc,garaud/ezhc,oscar6echo/ezhc
setup.py
setup.py
# necessary to push to PyPI # cf. http://peterdowns.com/posts/first-time-with-pypi.html # cf. https://tom-christie.github.io/articles/pypi/ from setuptools import setup, find_packages with open('README.rst') as f: long_description = f.read() setup( name = 'ezhc', packages = ['ezhc'], version = '0.4.5', ...
# necessary to push to PyPI # cf. http://peterdowns.com/posts/first-time-with-pypi.html # cf. https://tom-christie.github.io/articles/pypi/ from distutils.core import setup from setuptools import find_packages with open('README.rst') as f: long_description = f.read() setup( name = 'ezhc', packages = ['ezhc']...
mit
Python