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
782fa525f899454514724a98434d40b83005cebe
Update bomb-enemy.py
tudennis/LeetCode---kamyu104-11-24-2015,githubutilities/LeetCode,kamyu104/LeetCode,kamyu104/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,jaredkoontz/leetcode,kamyu104/LeetCode,githubutilities/LeetCode,yiwen-luo/LeetCode,yiwen-luo/LeetCode,githubutilities/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,githubutilit...
Python/bomb-enemy.py
Python/bomb-enemy.py
# Time: O(m * n) # Space: O(m * n) class Solution(object): def maxKilledEnemies(self, grid): """ :type grid: List[List[str]] :rtype: int """ result = 0 if not grid or not grid[0]: return result down = [[0 for _ in xrange(len(grid[0]))] for _ in ...
# Time: O(m * n) # Space: O(m * n) class Solution(object): def maxKilledEnemies(self, grid): """ :type grid: List[List[str]] :rtype: int """ result = 0 if not grid or not grid[0]: return result down = [[0 for _ in xrange(len(grid[0]))] for _ in ...
mit
Python
2ce3029dcfd8b17497095e993e2002980b9f96fb
bump version
williballenthin/python-registry
Registry/__init__.py
Registry/__init__.py
# This file is part of python-registry. # # Copyright 2011 Will Ballenthin <william.ballenthin@mandiant.com> # while at Mandiant <http://www.mandiant.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
# This file is part of python-registry. # # Copyright 2011 Will Ballenthin <william.ballenthin@mandiant.com> # while at Mandiant <http://www.mandiant.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
apache-2.0
Python
accdcbf20a6360ee45cb953697b1d0797f50f402
Update SD-SeGrid-Execute.py
benhastings/SeGrid_EC2,benhastings/SeGrid_EC2,benhastings/SeGrid_EC2
SD-SeGrid-Execute.py
SD-SeGrid-Execute.py
from subprocess import Popen import sys import urllib2 import time # Find hostname to use for passing to webdriver resp=urllib2.urlopen('http://169.254.169.254/latest/meta-data/public-hostname') PHOST=resp.read() PHOST='localhost' # Poll Hub interface to determine free/busy status of resources def freeCheck(): ...
from subprocess import Popen import sys import urllib2 import time # Find hostname to use for passing to webdriver resp=urllib2.urlopen('http://169.254.169.254/latest/meta-data/public-hostname') PHOST=resp.read() PHOST='localhost' # Poll Hub interface to determine free/busy status of resources def freeCheck(): ...
bsd-3-clause
Python
a0476e9a074a5e990cbbf1b74f74412ae5671255
Fix : comment manage_brok in dummy_broker, because its a better idea to start with the method from BaseModule instead.
rednach/krill,peeyush-tm/shinken,h4wkmoon/shinken,Aimage/shinken,staute/shinken_deb,titilambert/alignak,KerkhoffTechnologies/shinken,ddurieux/alignak,kaji-project/shinken,tal-nino/shinken,xorpaul/shinken,h4wkmoon/shinken,rledisez/shinken,staute/shinken_deb,titilambert/alignak,gst/alignak,dfranco/shinken,lets-software/s...
shinken/modules/dummy_broker.py
shinken/modules/dummy_broker.py
#!/usr/bin/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 can redis...
#!/usr/bin/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 can redis...
agpl-3.0
Python
12491c5780a39ed50eb4e7782863b6ac661dbba0
Use EventDispatcher2 and make python3.x compatible.
sippy/b2bua,sippy/b2bua
sippy/Rtp_proxy_client_local.py
sippy/Rtp_proxy_client_local.py
# Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. # Copyright (c) 2006-2014 Sippy Software, Inc. All rights reserved. # # 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. Redistrib...
# Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. # Copyright (c) 2006-2014 Sippy Software, Inc. All rights reserved. # # 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. Redistrib...
bsd-2-clause
Python
f37d4d9628edbb82db9254b19a615454be4a17cd
Test conversion of datetime to seconds
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
tests/core/test_timeutils.py
tests/core/test_timeutils.py
import unittest from hamcrest import assert_that, equal_to import pytz import datetime from backdrop.core.timeutils import parse_time_as_utc, as_seconds from tests.support.test_helpers import d_tz, d class ParseTimeAsUTCTestCase(unittest.TestCase): def test_valid_time_string_is_parsed(self): assert_that(...
import unittest from hamcrest import assert_that, equal_to import pytz from backdrop.core.timeutils import parse_time_as_utc from tests.support.test_helpers import d_tz, d class ParseTimeAsUTCTestCase(unittest.TestCase): def test_valid_time_string_is_parsed(self): assert_that(parse_time_as_utc("2012-12-12...
mit
Python
1098d8278864ec850e56c89812875a196dcdb315
Add photologue to urls.py
TuinfeesT/PicAxe
picaxe/urls.py
picaxe/urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'picaxe.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), url(r'photologue/', include('photologue.url...
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'picaxe.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), )
mit
Python
f8dd1fd8ee899c0147a9a88149097e9b7cd68f01
Remove unecessary attribute from test
BradWhittington/django-templated-email,BradWhittington/django-templated-email,vintasoftware/django-templated-email,vintasoftware/django-templated-email
tests/generic_views/views.py
tests/generic_views/views.py
from django.views.generic.edit import CreateView from templated_email.generic_views import TemplatedEmailFormViewMixin from tests.generic_views.models import Author # This view send a welcome email to the author class AuthorCreateView(TemplatedEmailFormViewMixin, CreateView): model = Author fields = ['name',...
from django.views.generic.edit import CreateView from templated_email.generic_views import TemplatedEmailFormViewMixin from tests.generic_views.models import Author # This view send a welcome email to the author class AuthorCreateView(TemplatedEmailFormViewMixin, CreateView): model = Author fields = ['name',...
mit
Python
23e877e33dac44acb0f8a22245a42332fb2785db
Remove the comment.
hello-base/web,hello-base/web,hello-base/web,hello-base/web
base/components/correlations/managers.py
base/components/correlations/managers.py
# -*- coding: utf-8 -*- from datetime import date from django.contrib.contenttypes.models import ContentType from django.db import models class CorrelationManager(models.Manager): def update_or_create(self, instance, timestamp, attribute): ctype = ContentType.objects.get_for_model(instance.sender) ...
# -*- coding: utf-8 -*- from datetime import date from django.contrib.contenttypes.models import ContentType from django.db import models class CorrelationManager(models.Manager): def update_or_create(self, instance, timestamp, attribute): ctype = ContentType.objects.get_for_model(instance.sender) ...
apache-2.0
Python
8f3319e69506bf443ae5d499935e802be419778c
Return dict() to make it easier for submodules to add domains.
acsone/partner-contact,diagramsoftware/partner-contact,open-synergy/partner-contact
base_location_nuts/models/res_partner.py
base_location_nuts/models/res_partner.py
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api from openerp.tools...
# -*- coding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api from openerp.tools...
agpl-3.0
Python
443daab1e9167a5948b8ba4cc509a7b95ba4fd03
use examples from git, not test-inputs
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild
benchbuild/projects/benchbuild/lammps.py
benchbuild/projects/benchbuild/lammps.py
from glob import glob import os from benchbuild.utils.wrapping import wrap from benchbuild.projects.benchbuild.group import BenchBuildGroup from benchbuild.utils.compiler import lt_clang_cxx from benchbuild.utils.downloader import Git from benchbuild.utils.run import run from benchbuild.utils.cmd import make from plum...
from os import path from glob import glob from benchbuild.utils.wrapping import wrap from benchbuild.projects.benchbuild.group import BenchBuildGroup from benchbuild.utils.compiler import lt_clang_cxx from benchbuild.utils.downloader import Git from benchbuild.utils.run import run from benchbuild.utils.cmd import cp, ...
mit
Python
0b32e322b2d4bc9c9fe45411bd9830ef7227c57b
put url at the end instead
anlutro/botologist
plugins/url.py
plugins/url.py
import logging log = logging.getLogger(__name__) import re import requests import requests.exceptions import botologist.plugin url_shorteners = r'|'.join(( r'https?://bit\.ly', r'https?://is\.gd', r'https?://redd\.it', r'https?://t\.co', r'https?://tinyurl\.com', )) short_url_regex = re.compile(r'((' + url_sho...
import logging log = logging.getLogger(__name__) import re import requests import requests.exceptions import botologist.plugin url_shorteners = r'|'.join(( r'https?://bit\.ly', r'https?://is\.gd', r'https?://redd\.it', r'https?://t\.co', r'https?://tinyurl\.com', )) short_url_regex = re.compile(r'((' + url_sho...
mit
Python
f95384a937fbfee10ae4be4c9c28f731e3de1ccb
Fix python3 unit test failures found by Travis CI
KimiNewt/pyshark,eaufavor/pyshark-ssl
tests/test_cap_operations.py
tests/test_cap_operations.py
import mock import time import pytest from trollius import TimeoutError from multiprocessing import Process, Queue from multiprocessing.queues import Empty from pyshark.packet.packet_summary import PacketSummary def test_packet_callback_called_for_each_packet(lazy_simple_capture): # Test cap has 24 packets mo...
import mock import time import pytest from trollius import TimeoutError from multiprocessing import Process, Queue from multiprocessing.queues import Empty from pyshark.packet.packet_summary import PacketSummary def test_packet_callback_called_for_each_packet(lazy_simple_capture): # Test cap has 24 packets mo...
mit
Python
9009ef38f9638f410fc8f025b58f0dab565ad370
Update more affected code.
Plexxi/st2,StackStorm/st2,StackStorm/st2,nzlosh/st2,nzlosh/st2,Plexxi/st2,StackStorm/st2,Plexxi/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,nzlosh/st2
st2stream/st2stream/controllers/v1/stream.py
st2stream/st2stream/controllers/v1/stream.py
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
apache-2.0
Python
a344920f2b22345ad3dbc20b7dff7ae58ce26c52
test sorting on text file write
ynop/spych,ynop/spych
tests/utils/test_textfile.py
tests/utils/test_textfile.py
import os import unittest import tempfile from spych.utils import textfile class TextFileUtilsTest(unittest.TestCase): def test_read_separated_lines(self): file_path = os.path.join(os.path.dirname(__file__), 'multi_column_file.txt') expected = [ ['a', '1', 'x'], ['b', '2'...
import os import unittest from spych.utils import textfile class TextFileUtilsTest(unittest.TestCase): def test_read_separated_lines(self): file_path = os.path.join(os.path.dirname(__file__), 'multi_column_file.txt') expected = [ ['a', '1', 'x'], ['b', '2', 'y'], ...
mit
Python
ab93ee7e0a0f6150e0616cc1ce656bf3ee4ba3ea
add prblem sentence
smrmkt/project_euler
problem_032.py
problem_032.py
#!/usr/bin/env python #-*-coding:utf-8-*- ''' We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once; for example, the 5-digit number, 15234, is 1 through 5 pandigital. The product 7254 is unusual, as the identity, 39 × 186 = 7254, containing multiplicand, multiplier, ...
#!/usr/bin/env python #-*-coding:utf-8-*- ''' ''' import timeit def calc(): pandigital = set() for i in range(1, 10000): for j in range(i, int(10000/i)+1): if ''.join(sorted(list(str(i) + str(j) + str(i*j)))) == '123456789': pandigital.add(i*j) return sum(pandigital) ...
mit
Python
05ba498867ff16c4221dcd758d5cdef9ee884b27
Convert GitData tests to a unittest suite
OpenTreeOfLife/phylesystem-api,OpenTreeOfLife/phylesystem-api,OpenTreeOfLife/phylesystem-api
modules/test_gitdata.py
modules/test_gitdata.py
import unittest import os import sys from gitdata import GitData import simplejson as json class TestGitData(unittest.TestCase): def test_fetch(self): gd = GitData(repo="./treenexus") study_id = 438 study_nexson = gd.fetch_study(study_id) valid = 1 try: json.loa...
from nose import with_setup from nose.tools import * import os import sys from gitdata import GitData import simplejson as json def test_fetch(): gd = GitData(repo="./treenexus") study_id = 438 study_nexson = gd.fetch_study(study_id) valid = 1 try: json.loads(study_nexson) except...
bsd-2-clause
Python
0f78a593828e13182d9fee5366300a1487673000
set debug=False
petchat/senz.analyzer.user.staticinfo.degree
app.py
app.py
# -*- encoding:utf-8 -*- import logging from analyzer.StaticInfoPredictor import staticinfo_predict from leancloud_utils import settings from analyzer import AppDict from leancloud_utils.LeancloudUtils import LeancloudUtils __author__ = 'zhongziyuan', 'Jayvee' from flask import Flask, request import json logger = ...
# -*- encoding:utf-8 -*- import logging from analyzer.StaticInfoPredictor import staticinfo_predict from leancloud_utils import settings from analyzer import AppDict from leancloud_utils.LeancloudUtils import LeancloudUtils __author__ = 'zhongziyuan', 'Jayvee' from flask import Flask, request import json logger = ...
mit
Python
6370ee3e3453f0d6d6ed4ef2729b4dcf816ff7ca
Update app.py
dhilipsiva/dhilipsiva.github.io,dhilipsiva/dhilipsiva.github.io,dhilipsiva/dhilipsiva.github.io,dhilipsiva/dhilipsiva.github.io
app.py
app.py
from flask import Flask, render_template, redirect app = Flask(__name__) @app.route('/') def home(): return render_template('home.html') @app.route('/i_am') def i_am(): return render_template('i_am.html') @app.route('/projects') def projects(): return render_template('projects.html') @app.route('/t...
from flask import Flask, render_template, redirect app = Flask(__name__) @app.route('/') def home(): return render_template('home.html') @app.route('/i_am') def i_am(): return render_template('i_am.html') @app.route('/projects') def projects(): return render_template('projects.html') @app.route('/t...
mit
Python
46e9586d8f41c66418b1f09fa13d9181ce1822db
Change charity to donee
DanielleSucher/Text-Donation
app.py
app.py
import os from flask import Flask, request import twilio.twiml from charity import Charity app = Flask(__name__) @app.route("/", methods=['GET', 'POST']) def hello(): text_content = request.form['Body'] if '5' in text_content: donee = Charity(5) elif '10' in text_content: donee = Charit...
import os from flask import Flask, request import twilio.twiml from charity import Charity app = Flask(__name__) @app.route("/", methods=['GET', 'POST']) def hello(): text_content = request.form['Body'] if '5' in text_content: charity = Charity(5) elif '10' in text_content: charity = Ch...
mit
Python
9250446f13299a9a7937c73692098e7c95ce7a81
fix bug with appliction not registered
madeleinel/WoMentor,madeleinel/WoMentor
app.py
app.py
import ConfigParser from cordb import db from flask import Flask, render_template from flask_data_models import User, Offer, Languages, Skills from flask_sqlalchemy import SQLAlchemy # config importing config = ConfigParser.ConfigParser() config.readfp(open('dbcnnct.cfg')) username = config.get('PostgresDB', 'user') ...
import ConfigParser from cordb import db from flask import Flask, render_template from flask_data_models import User, Offer, Languages, Skills from flask_sqlalchemy import SQLAlchemy # config importing config = ConfigParser.ConfigParser() config.readfp(open('twitoauth.cfg')) username = config.get('PostgresDB', 'user'...
mit
Python
544f804dd6f529832af6509808bbe8627b757b52
Update application to use db in '/sounds' controller
spb201/turbulent-octo-rutabaga-api,spb201/turbulent-octo-rutabaga-api,spb201/turbulent-octo-rutabaga-api
app.py
app.py
from flask import Flask, request, jsonify, send_from_directory import os import uuid import shutil import psycopg2 import urlparse urlparse.uses_netloc.append("postgres") url = urlparse.urlparse(os.environ["DATABASE_URL"]) conn = psycopg2.connect( database=url.path[1:], user=url.username, password=url.pas...
from flask import Flask, request, jsonify, send_from_directory import os import uuid import shutil app = Flask(__name__) UPLOAD_FOLDER = "uploads/" @app.route("/") def index(): return send_from_directory('static/', 'index.html') @app.route("/<path:path>") def serve_static_files(path): return send_from_direct...
mit
Python
02ec6555b79a9aefbc8f1867e1c8851efc58ed0b
Fix route command
tribhuvanesh/R3PI-PO
app.py
app.py
#!flask/bin/python __author__ = 'tribhu' from flask import Flask, jsonify, abort, make_response, url_for, request from persistent_helpers import get_recipe_info, get_recipe_ids from parse_helper import route_command app = Flask(__name__) @app.route('/recipes/api/v1.0/recipes', methods=['GET']) def get_recipes(): ...
#!flask/bin/python __author__ = 'tribhu' from flask import Flask, jsonify, abort, make_response, url_for, request from persistent_helpers import get_recipe_info, get_recipe_ids from parse_helper import route_command app = Flask(__name__) @app.route('/recipes/api/v1.0/recipes', methods=['GET']) def get_recipes(): ...
apache-2.0
Python
a05372ad910900ec2ef89bb10d4a0759c9bcd437
Test sending a fresh message
DanielleSucher/Text-Donation
app.py
app.py
import os from flask import Flask, request import twilio.twiml from twilio.rest import TwilioRestClient app = Flask(__name__) @app.route("/", methods=['GET', 'POST']) def hello(): from_number = request.args.get('From') text_content = request.args.get('Body').lower() client = TwilioRestClient(os.environ...
import os from flask import Flask, request, redirect, session import twilio.twiml from twilio.rest import TwilioRestClient from charity import Charity SECRET_KEY = os.environ['DONATION_SECRET_KEY'] app = Flask(__name__) @app.route("/", methods=['GET', 'POST']) def hello(): from_number = request.values.get('From'...
mit
Python
5607c015f1f42f91996ac8992e43290e9655261d
Add functions to get uber.
jreinstra/mhacks8
app.py
app.py
from flask import Flask from flask_pymongo import PyMongo import grequests import json CONFIGURATION_FILENAME = "configuration.json" GOOGLE_MAPS_BASE_URL = 'https://maps.googleapis.com/maps/api/directions/json' GOOGLE_MAPS_MODES = ["walking", "bicycling", "transit"] GOOGLE_MAPS_API_KEY = '' UBER_BASE_URL = 'https://...
from flask import Flask from flask_pymongo import PyMongo import grequests import json CONFIGURATION_FILENAME = "configuration.json" GOOGLE_MAPS_BASE_URL = 'https://maps.googleapis.com/maps/api/directions/json' GOOGLE_MAPS_MODES = ["walking", "bicycling", "transit"] GOOGLE_MAPS_API_KEY = '' def getConfigurationVari...
mit
Python
e89514ce8c9eae8ac0aab655e354f685b2526c64
Disable cache
rcmachado/cookiecutter-search,rcmachado/cookiecutter-search,rcmachado/cookiecutter-search
app.py
app.py
import pylibmc import requests from requests.auth import HTTPBasicAuth from flask import Flask, request, render_template, jsonify import config app = Flask(__name__) cache = pylibmc.Client(config.MEMCACHE['SERVERS'], binary=True, behaviors=config.MEMCACHE['OPTIONS']) @app.route("/") def index(...
import pylibmc import requests from requests.auth import HTTPBasicAuth from flask import Flask, request, render_template, jsonify import config app = Flask(__name__) cache = pylibmc.Client(config.MEMCACHE['SERVERS'], binary=True, behaviors=config.MEMCACHE['OPTIONS']) @app.route("/") def index(...
mit
Python
5e379ea5d42a823acb74fbc303850a479dbbd535
Revert because we don't need it
phase/o,phase/o,phase/o,phase/o
ide.py
ide.py
# NOTE: pass -d to this to print debugging info when the server crashes. from flask import Flask, render_template, url_for, request from subprocess import Popen, PIPE, check_call import sys, os, string, glob, logging app = Flask(__name__) app.logger.addHandler(logging.StreamHandler(sys.stdout)) app.logger.setLevel(lo...
# NOTE: pass -d to this to print debugging info when the server crashes. from flask import Flask, render_template, url_for, request from subprocess import Popen, PIPE, check_call import sys, os, string, glob, logging app = Flask(__name__) app.logger.addHandler(logging.StreamHandler(sys.stdout)) app.logger.setLevel(lo...
mit
Python
63e4b4fc15d4eb8b2e5ce5e8e5ded8616d920cb1
add docs
asah/meatshields-python-botkit,asah/meatshields-python-botkit
ms1.py
ms1.py
# # ms1.py # # Skeleton API server for writing meatshields bots: # see https://meatshields.com/createBotGuide.php # # 1. install Flask-Restful on a fresh Ubuntu 16.04 install: # sudo apt-get update; sudo apt-get upgrade # sudo apt-get install python3-pip # pip3 install flask flask-restful # # 2. run the bot server # ....
# # ms1.py # # Skeleton API server for writing meatshields bots: # see https://meatshields.com/createBotGuide.php # from flask import Flask, request from flask_restful import Resource, Api app = Flask(__name__) api = Api(app) class Heartbeat(Resource): def post(self): return "OK" class NullNextMove(Reso...
mit
Python
b2a7e2926b5aed3dd7e3cc5fd1015c0a5ee52dbd
Fix imports after renaming tools' files.
DoomTaper/ptp,owtf/ptp
ptp.py
ptp.py
""" .. module:: ptp :synopsis: PTP library. .. moduleauthor:: Tao Sauvage """ from libptp.exceptions import NotSupportedToolError from libptp.tools.arachni.report import ArachniReport from libptp.tools.skipfish.report import SkipfishReport from libptp.tools.w3af.report import W3AFReport from libptp.tools.wapit...
""" .. module:: ptp :synopsis: PTP library. .. moduleauthor:: Tao Sauvage """ from libptp.exceptions import NotSupportedToolError from libptp.tools.arachni.arachni import ArachniReport from libptp.tools.skipfish.skipfish import SkipfishReport from libptp.tools.w3af.w3af import W3AFReport from libptp.tools.wapi...
bsd-3-clause
Python
4db3f0a5a27139ad96e78879356d5e6744018856
Test with generator input.
sinkpoint/dipy,demianw/dipy,nilgoyyou/dipy,sinkpoint/dipy,matthieudumont/dipy,JohnGriffiths/dipy,demianw/dipy,FrancoisRheaultUS/dipy,nilgoyyou/dipy,villalonreina/dipy,StongeEtienne/dipy,FrancoisRheaultUS/dipy,JohnGriffiths/dipy,villalonreina/dipy,StongeEtienne/dipy,matthieudumont/dipy
dipy/segment/tests/test_select.py
dipy/segment/tests/test_select.py
import numpy as np import numpy.testing as npt from dipy.segment.select import select_by_roi def test_select_by_roi(): streamlines = [np.array([[0, 0., 0.9], [1.9, 0., 0.]]), np.array([[0., 0., 0], [0, 1., 1.], ...
import numpy as np import numpy.testing as npt from dipy.segment.select import select_by_roi def test_select_by_roi(): streamlines = [np.array([[0, 0., 0.9], [1.9, 0., 0.]]), np.array([[0., 0., 0], [0, 1., 1.], ...
bsd-3-clause
Python
7116d03be6135798d4d854ed8adb6ab7c37f675e
Fix katc render command
ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck,KA-Advocates/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck,KA-Advocates/KATranslationCheck
katc.py
katc.py
#!/usr/bin/env python3 from UpdateAllFiles import updateTranslations from check import performRender from LintReport import updateLintFromGoogleGroups def updateLintHandler(args): updateLintFromGoogleGroups() if __name__ == "__main__": import argparse parser = argparse.ArgumentParser() subparsers = pa...
#!/usr/bin/env python3 from UpdateAllFiles import updateTranslations from check import performRender from LintReport import updateLintFromGoogleGroups def updateLintHandler(args): updateLintFromGoogleGroups() if __name__ == "__main__": import argparse parser = argparse.ArgumentParser() subparsers = pa...
apache-2.0
Python
fe577d719ae9443cd36f4fbe7c445a8d6fecc009
Add more logs
kpj/SDEMotif,kpj/SDEMotif
main.py
main.py
""" Infer metabolite correlation patterns from network motifs """ import sys import multiprocessing import numpy as np from tqdm import tqdm from setup import load_systems from solver import solve_system, get_steady_state from utils import compute_correlation_matrix, cache_data from filters import filter_steady_stat...
""" Infer metabolite correlation patterns from network motifs """ import sys import multiprocessing import numpy as np from tqdm import tqdm from setup import load_systems from solver import solve_system, get_steady_state from utils import compute_correlation_matrix, cache_data from filters import filter_steady_stat...
mit
Python
cd732a7ca0051fc83a072874a6bdfb82a1c1909c
Support 8 Transducers SImultanously
hopexavier/MUSSE
main.py
main.py
import time, RPi.GPIO as GPIO def measure(): GPIO.output(GPIO_TRIGGER, True) time.sleep(0.00001) GPIO.output(GPIO_TRIGGER, False) start = time.time() while GPIO.input(GPIO_ECHO)==0: start = time.time() while GPIO.input(GPIO_ECHO)==1: stop = time.time() pulse_interval = stop-start distance = (pulse_interv...
import time, RPi.GPIO as GPIO def measure(): GPIO.output(GPIO_TRIGGER, True) time.sleep(0.00001) GPIO.output(GPIO_TRIGGER, False) start = time.time() while GPIO.input(GPIO_ECHO)==0: start = time.time() while GPIO.input(GPIO_ECHO)==1: stop = time.time() pulse_interval = stop-start distance = (pulse_interv...
mit
Python
e48065e8b2cdb601f4c85661b34e0195ca78949b
add testing options
duarte-pompeu/best-r-jokes,duarte-pompeu/best-r-jokes
main.py
main.py
#!/usr/bin/python2 import praw import sqlite3 import subprocess # originally used to store secret keys #~ import secrets TESTING = False HIGH_SCORE = 300 TWITTER_LIMIT = 140 TWEET_SUCCESS = 0 # database # open jokes_db # create table submissions(id text, url text); PATH_TO_DB = "home/jubileu/git/personal/best-r-jo...
#!/usr/bin/python2 import praw import sqlite3 import subprocess # originally used to store secret keys #~ import secrets HIGH_SCORE = 1000 TWITTER_LIMIT = 140 # database # open jokes_db # create table submissions(id text, url text); PATH_TO_DB = "home/jubileu/git/personal/best-r-jokes/jokes_db" DB = sqlite3.connec...
mit
Python
4f6f9d8e7a99a8e009cec7122d54627ed92c468e
Add TODOs.
adrian-nicolau/ipsec-poc,adrian-nicolau/ipsec-poc
main.py
main.py
#!/usr/bin/python from pytun import TunTapDevice from binascii import hexlify if __name__ == '__main__': tun = TunTapDevice(name='ipsec-tun') tun.up() tun.persist(True) while True: try: buf = tun.read(tun.mtu) print hexlify(buf[4:]) IPpayload = buf[4:] # TODO encrypt buf # TODO send to wlan0 ...
#!/usr/bin/python from pytun import TunTapDevice if __name__ == '__main__': tun = TunTapDevice(name='ipsec-tun') tun.up() while True: buf = tun.read(tun.mtu) print buf
mit
Python
94e0e31a8329cbbdc1545fa5c12b04600422627f
Add code to remove cached sub-modules on upgrade
SublimeText/AAAPackageDev,SublimeText/PackageDev,SublimeText/AAAPackageDev
main.py
main.py
try: from package_control import events except ImportError: pass else: if events.post_upgrade(__package__): # clean up sys.modules to ensure all submodules are reloaded import sys modules_to_clear = set() for module_name in sys.modules: if module_name.startswith(_...
# Must be named "plugins_" # because sublime_plugin claims a plugin module's `plugin` attribute for itself. from .plugins_ import * # noqa
mit
Python
43f4d8454f68023b2174daf4376295e37ed22423
fix None label startup
maks-a/batterym,maks-a/batterym
main.py
main.py
#!/usr/bin/python # This code is an example for a tutorial on Ubuntu Unity/Gnome AppIndicators: # http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html # icons from https://materialdesignicons.com/ import os import time import signal import threading from datetime import datetime fro...
#!/usr/bin/python # This code is an example for a tutorial on Ubuntu Unity/Gnome AppIndicators: # http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html # icons from https://materialdesignicons.com/ import os import time import signal import threading from datetime import datetime fro...
apache-2.0
Python
b252d80e7497df19d23dcf34718d6043fd7bc551
fix broken encoding
Contextualist/Quip4AHA,Contextualist/Quip4AHA
main.py
main.py
import traceback import logging logging.basicConfig(level=logging.INFO) from NewDoc import NewDoc from AssignHost import AssignHost from UpdateWeather import UpdateWeather from flask import Flask app = Flask(__name__) #app.config['DEBUG'] = True # Note: We don't need to call run() since our application i...
import traceback import logging logging.basicConfig(level=logging.INFO) from NewDoc import NewDoc from AssignHost import AssignHost from UpdateWeather import UpdateWeather from flask import Flask app = Flask(__name__) #app.config['DEBUG'] = True # Note: We don't need to call run() since our application i...
apache-2.0
Python
cffbbe42584cfcc5fa82149efb33f11388eabfab
Mark v3.0.3
lukeyeager/github-testing,lukeyeager/github-testing
main.py
main.py
print('3.0.4')
print('3.0.3')
mit
Python
9425617d960949b5abbd7889e0220b079d3136b1
Rename function
projectweekend/Pi-Magic-Button,projectweekend/Pi-Magic-Button
main.py
main.py
import yaml import requests import RPi.GPIO as GPIO from time import sleep REQUESTS = { "GET": requests.get, "POST": requests.post, "PUT": requests.put, "DELETE": requests.delete } SUCCESS_CODES = [200, 201, 204] GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) with open('./config.yml') as file_data: ...
import yaml import requests import RPi.GPIO as GPIO from time import sleep REQUESTS = { "GET": requests.get, "POST": requests.post, "PUT": requests.put, "DELETE": requests.delete } SUCCESS_CODES = [200, 201, 204] GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) with open('./config.yml') as file_data: ...
mit
Python
fdf037fecb86d6255148b6fb2a45d0d8828c0e32
change frequency of the meme depending on the number of images
drsm79/err-memeon
meme.py
meme.py
from errbot import BotPlugin from random import choice, randint class MemeOn(BotPlugin): memes = { "oh my": [ "http://925rebellion.com/wp-content/uploads/2013/09/3q7rym.jpg", "http://media1.giphy.com/media/FoUHKTJhoQU6I/200_s.gif", "http://ruadouche.com/wp-content/uplo...
from errbot import BotPlugin from random import choice, randint class MemeOn(BotPlugin): memes = { "oh my": [ "http://925rebellion.com/wp-content/uploads/2013/09/3q7rym.jpg", "http://media1.giphy.com/media/FoUHKTJhoQU6I/200_s.gif", "http://ruadouche.com/wp-content/uplo...
apache-2.0
Python
3d725546a3ab99aa2641d42ee2193f3a026aec17
fix bug after changing files to file in arguments.
SanketDG/mexe
mexe.py
mexe.py
import argparse import os import stat __version__ = "0.0.2" shebangs = { '2': b"#!/usr/bin/env python2\n", '3': b"#!/usr/bin/env python3\n", 'default': b"#!/usr/bin/env python\n" } def parse_arguments(): parser = argparse.ArgumentParser() parser.add_argument('file', metavar="FILE", nargs='+', ...
import argparse import os import stat __version__ = "0.0.2" shebangs = { '2': b"#!/usr/bin/env python2\n", '3': b"#!/usr/bin/env python3\n", 'default': b"#!/usr/bin/env python\n" } def parse_arguments(): parser = argparse.ArgumentParser() parser.add_argument('file', metavar="FILE", nargs='+', ...
mit
Python
57f7f8f9dda6c39406387f1be8e385be9fb7fa8f
update path to api key
opencleveland/RTAHeatMap,skorasaurus/RTAHeatMap
mine.py
mine.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from DataGeneration.MapboxAPIWrapper import MapboxAPIWrapper from DataGeneration.DatabaseHandler import DatabaseHandler from DataGeneration.UniformMapGenerator import UniformMapGenerator from DataGeneration.MapLocation import MapLocation from DataGeneration.DataGenerator i...
#!/usr/bin/env python # -*- coding: utf-8 -*- from DataGeneration.MapboxAPIWrapper import MapboxAPIWrapper from DataGeneration.DatabaseHandler import DatabaseHandler from DataGeneration.UniformMapGenerator import UniformMapGenerator from DataGeneration.MapLocation import MapLocation from DataGeneration.DataGenerator i...
mit
Python
7c5bddf805ecbc7844cf3ea9f43e923296f8f1ae
Refactor main to generate collection based on type.
AmosGarner/PyInventory
main.py
main.py
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
apache-2.0
Python
2274fe4b245d0f28f36574ac31f94f75753f8caa
Add another setting, refine
vipulroxx/TweetCounter,svineet/TweetCounter
main.py
main.py
# ATTENTION: Add a file called settings.py with appropriate settings # as imported below. import tweepy from settings import consumer_key, consumer_secret, access_token, access_token_secret, hashtag print ("Authenticating.") auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token...
import tweepy from settings import consumer_key, consumer_secret, access_token, access_token_secret print ("Authenticating.") auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) print ("Authenticated.") print ("Now fetching tweets....
mit
Python
87b9fa7a27c843c8ca05c0e21e02aa1d3be7c98f
Remove !
samjavner/samjavner.com,samjavner/samjavner.com,samjavner/samjavner.com
main.py
main.py
#!/usr/bin/env python # # Copyright 2007 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 o...
#!/usr/bin/env python # # Copyright 2007 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 o...
mit
Python
35a2e4ecfc7c39ca477279a49d1a49bb4395b7ad
Make a better error message for ValidationError
elwinar/chronicler
main.py
main.py
"""Usage: chronicler [-c CHRONICLE] The Chronicler remembers… Options: -c, --chronicle CHRONICLE chronicle file to use [default: chronicle.hjson] """ import docopt import hjson import jsonschema import chronicle def main(): options = docopt.docopt(__doc__) try: c = open(options['--chronicle'...
"""Usage: chronicler [-c CHRONICLE] The Chronicler remembers… Options: -c, --chronicle CHRONICLE chronicle file to use [default: chronicle.hjson] """ import docopt import hjson import jsonschema import chronicle def main(): options = docopt.docopt(__doc__) try: c = open(options['--chronicle'...
unlicense
Python
ef85c5e80ade11744cecfc61aff90d404876a85c
Support standalone execute
Tomohiro/apex-python-boilerplate,Tomohiro/apex-python-boilerplate
main.py
main.py
import config from src.example import Example def handle(event, context): print Example().work() return event if __name__ == '__main__': handle({}, {})
import config from src.example import Example def handle(event, context): print Example().work() return event
mit
Python
cb8767e629525f633a6c5f0e06ff4d243e973e6f
Fix conflicting argument in task_durations recipe
ahal/active-data-recipes,ahal/active-data-recipes
adr/recipes/task_durations.py
adr/recipes/task_durations.py
""" Get information on the longest running tasks. Returns the total count, average runtime and total runtime over a given date range and set of branches. .. code-block:: bash adr task_durations `View Results <https://mozilla.github.io/active-data-recipes/#task-durations>`__ """ from __future__ import print_funct...
""" Get information on the longest running tasks. Returns the total count, average runtime and total runtime over a given date range and set of branches. .. code-block:: bash adr task_durations `View Results <https://mozilla.github.io/active-data-recipes/#task-durations>`__ """ from __future__ import print_funct...
mpl-2.0
Python
968274deace1aa16d45df350c437eab699d02b16
Fix type hints of brand DTO image fields
homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps
byceps/services/brand/transfer/models.py
byceps/services/brand/transfer/models.py
""" byceps.services.brand.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2020 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from dataclasses import dataclass from typing import Optional from ....typing import BrandID @dataclass(frozen=True) class Brand: id: B...
""" byceps.services.brand.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2020 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from dataclasses import dataclass from ....typing import BrandID @dataclass(frozen=True) class Brand: id: BrandID title: str im...
bsd-3-clause
Python
7a56837fa8625dc8d2bcd7227938c3b9b1056904
Reorder the form fields.
theju/smp,theju/smp
scheduler/forms.py
scheduler/forms.py
import pytz import json import os from django import forms from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from django.conf import settings from allauth.socialaccount.models import SocialAccount from .models import User, Sch...
import pytz import json import os from django import forms from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from django.conf import settings from allauth.socialaccount.models import SocialAccount from .models import User, Sch...
mit
Python
ff4807dda8bbfa93989ecc36892d20f0ee0c6888
fix server prompt and relative url error
tankywoo/simiki,tankywoo/simiki,zhaochunqi/simiki,zhaochunqi/simiki,9p0le/simiki,tankywoo/simiki,9p0le/simiki,9p0le/simiki,zhaochunqi/simiki
simiki/server.py
simiki/server.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, absolute_import import os import os.path import sys import logging import SimpleHTTPServer import SocketServer URL_ROOT = None PUBLIC_DIRECTORY = None class Reuse_TCPServer(SocketServer.TCPServer): allow_reuse_address = True ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function, absolute_import import os import os.path import sys import logging import SimpleHTTPServer import SocketServer URL_ROOT = None PUBLIC_DIRECTORY = None class Reuse_TCPServer(SocketServer.TCPServer): allow_reuse_address = True ...
mit
Python
ee444fe9ee45e1a2ac09033f5e15d6e9956885db
Test recent changes filters
DemocracyClub/yournextrepresentative,DemocracyClub/yournextrepresentative,DemocracyClub/yournextrepresentative
ynr/apps/candidates/tests/test_recent_changes_view.py
ynr/apps/candidates/tests/test_recent_changes_view.py
from django_webtest import WebTest import people.tests.factories from candidates.models import LoggedAction from candidates.models.db import ActionType from .auth import TestUserMixin class TestRecentChangesView(TestUserMixin, WebTest): def setUp(self): test_person_1 = people.tests.factories.PersonFact...
from django_webtest import WebTest import people.tests.factories from candidates.models import LoggedAction from candidates.models.db import ActionType from .auth import TestUserMixin class TestRecentChangesView(TestUserMixin, WebTest): def setUp(self): test_person_1 = people.tests.factories.PersonFact...
agpl-3.0
Python
c0b9c1a4fa48b0c76a49a35a943eeb5d8e110066
remove lazy map eval
mandiant/capa,mandiant/capa
capa/features/extractors/ida/function.py
capa/features/extractors/ida/function.py
import idaapi import idautils import capa.features.extractors.ida.helpers from capa.features import Characteristic from capa.features.extractors import loops def extract_function_switch(f): """ extract switch indicators from a function arg: f (IDA func_t) """ if capa.features.extract...
import idaapi import idautils import capa.features.extractors.ida.helpers from capa.features import Characteristic from capa.features.extractors import loops def extract_function_switch(f): """ extract switch indicators from a function arg: f (IDA func_t) """ if capa.features.extract...
apache-2.0
Python
fdb21772b2b6327a2d49a68bf20a68ea1e119ab4
check for valid number
bvanderhaar/spark-weatheranalysis
temperature-sparkpy.py
temperature-sparkpy.py
from __future__ import print_function import sys import math from operator import add from pyspark import SparkContext def is_number(s): try: float(s) return True except ValueError: return False def mapper(line): # positive or negative sign = line[87:88] # bef...
from __future__ import print_function import sys import math from operator import add from pyspark import SparkContext def mapper(line): # positive or negative sign = line[87:88] # before the decimal point, remove leading zeros before_decimal = line[88:92].lstrip("0") # combin...
mit
Python
c208f596b2627845b50c33bae6e4c577ba960efe
Disable multithreading
sharkone/scrapyard
scrapyard/utils.py
scrapyard/utils.py
from multiprocessing.pool import ThreadPool def mt_map(func, iterable): # thread_pool = ThreadPool() # result = thread_pool.map(func, iterable) # thread_pool.close() # thread_pool.join() result = map(func, iterable) return result
from multiprocessing.pool import ThreadPool def mt_map(func, iterable): thread_pool = ThreadPool() result = thread_pool.map(func, iterable) thread_pool.close() thread_pool.join() return result
mit
Python
1aec563bc6fe9067f8c845b151d5e5e764f674d8
support on python 3
tomography/tomobank
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='tomobank', author='Francesco De Carlo', packages=find_packages(), version=open('VERSION').read().strip(), description = 'Tomography Data Archive.', license='BSD-3', platforms='Any', classifiers=[ '...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='tomobank', author='Francesco De Carlo', packages=find_packages(), version=open('VERSION').read().strip(), description = 'Tomography Data Archive.', license='BSD-3', platforms='Any', classifiers=[ '...
bsd-3-clause
Python
a8775d8552169b84914ff8b7c5ba48e36b169f25
Add version requirement to pyasn1 dependency.
moreati/python-u2flib-server,Yubico/python-u2flib-server
setup.py
setup.py
# Copyright (C) 2014 Yubico AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is ...
# Copyright (C) 2014 Yubico AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is ...
bsd-2-clause
Python
13f837152262bdddb7bdb298724f7eb2a0fd4e1f
Increment version
farrepa/django-autocert
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() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.6', packages=['autocert'], include_...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.5', packages=['autocert'], include_...
mit
Python
185e1128cef22e58fda45a80f727b6ec8f010946
Update setup.py
tdpreece/ApprovalTests.Python,approvals/ApprovalTests.Python,approvals/ApprovalTests.Python,approvals/ApprovalTests.Python
setup.py
setup.py
from distutils.core import setup setup( name='approvaltests', version='0.1.10', description='Assertion/verification library to aid testing', author='ApprovalTests Contributors', author_email='jamesrcounts@outlook.com', url='https://github.com/approvals/ApprovalTests.Python', packages=['appr...
from distutils.core import setup setup( name='approvaltests', version='0.1.9', description='Assertion/verification library to aid testing', author='ApprovalTests Contributors', author_email='jamesrcounts@outlook.com', url='https://github.com/approvals/ApprovalTests.Python', packages=['appro...
apache-2.0
Python
ec379b3f0c05dfc469fa03b8e637602a8804aaf5
Stop taking long rst description from README markdown
pombredanne/bunch,Infinidat/munch
setup.py
setup.py
#!python # -*- coding: utf-8 -*- import sys, os, re from os.path import dirname, abspath, join from setuptools import setup, find_packages HERE = abspath(dirname(__file__)) readme = open(join(HERE, 'README.md')).read() package_file = open(join(HERE, 'munch', '__init__.py'), 'rU') __version__ = re.sub( r".*\b__ve...
#!python # -*- coding: utf-8 -*- import sys, os, re from os.path import dirname, abspath, join from setuptools import setup, find_packages HERE = abspath(dirname(__file__)) readme = open(join(HERE, 'README.md')).read() package_file = open(join(HERE, 'munch', '__init__.py'), 'rU') __version__ = re.sub( r".*\b__ve...
mit
Python
10dd2eeaa22f495209cfbbd8e7837f08acaa615a
bump to 0.6.9
kobejohn/polymaze
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='polymaze', version='0.6.9', description='Create polygon-tessela...
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='polymaze', version='0.6.8', description='Create polygon-tessela...
mit
Python
01ff4ea3ce6b5c5bc610afcdc1ebd0913a7d0f58
fix #71 update cache_cleanup for django 1.3 and higher
frewsxcv/django-extensions,linuxmaniac/django-extensions,jpadilla/django-extensions,atchariya/django-extensions,ctrl-alt-d/django-extensions,dpetzold/django-extensions,Moulde/django-extensions,levic/django-extensions,Moulde/django-extensions,ewjoachim/django-extensions,helenst/django-extensions,bionikspoon/django-exten...
django_extensions/jobs/daily/cache_cleanup.py
django_extensions/jobs/daily/cache_cleanup.py
""" Daily cleanup job. Can be run as a cronjob to clean out old data from the database (only expired sessions at the moment). """ from django_extensions.management.jobs import DailyJob class Job(DailyJob): help = "Cache (db) cleanup Job" def execute(self): from django.conf import settings f...
""" Daily cleanup job. Can be run as a cronjob to clean out old data from the database (only expired sessions at the moment). """ from django_extensions.management.jobs import DailyJob class Job(DailyJob): help = "Cache (db) cleanup Job" def execute(self): from django.conf import settings f...
mit
Python
fb90e8cdbf5863fd260f22d426118fa763048b90
Drop Python 2.6 from supported versions, and add 3.5
mitya57/pymarkups,retext-project/pymarkups
setup.py
setup.py
#!/usr/bin/env python3 import sys try: from setuptools import setup, Command except ImportError: from distutils.core import setup, Command from markups import __version__ as version long_description = \ """This module provides a wrapper around the various text markup languages, such as Markdown_ and reStructuredTex...
#!/usr/bin/env python3 import sys try: from setuptools import setup, Command except ImportError: from distutils.core import setup, Command from markups import __version__ as version long_description = \ """This module provides a wrapper around the various text markup languages, such as Markdown_ and reStructuredTex...
bsd-3-clause
Python
031615ac17850eee3b3b3beafa675fed906f9387
add ability to list non-reporting servers and delete them
sidcarter/indus,sidcarter/indus,sidcarter/indus,sidcarter/indus
scripts/nr_data.py
scripts/nr_data.py
#!/usr/bin/env python import os import sys import argparse import requests import json api_key=os.getenv("NEW_RELIC_API_KEY") if not api_key: exit("Please set environment variable NEW_RELIC_API_KEY. Aborting....") else: header={'x-api-key':api_key} v2_endpoint="https://api.newrelic.com/v2" def get...
#!/usr/bin/env python import os import sys import requests import json api_key=os.getenv("NEW_RELIC_API_KEY") if not api_key: exit("Please set environment variable NEW_RELIC_API_KEY. Aborting....") else: header={'x-api-key':api_key} v2_endpoint="https://api.newrelic.com/v2" def get_endpoint(type): ...
mit
Python
abf486de8e36055e3cbd2f716f5e55129526927d
use package name in package_data
knighton/mapreduce,knighton/mapreduce
setup.py
setup.py
import re from functools import partial from setuptools import setup, find_packages from pkg_resources import resource_string, resource_filename get_resource = partial(resource_string, __name__) get_resource_name = partial(resource_filename, __name__) # Regex groups: 0: URL part, 1: package name, 2: package version f...
import re from functools import partial from setuptools import setup, find_packages from pkg_resources import resource_string, resource_filename get_resource = partial(resource_string, __name__) get_resource_name = partial(resource_filename, __name__) # Regex groups: 0: URL part, 1: package name, 2: package version f...
mit
Python
a2edee8d5b05d13d28ad8ea6084b4fbdeae167a6
bump version/requirements
SEL-Columbia/pybamboo,SEL-Columbia/pybamboo
setup.py
setup.py
from distutils.core import setup setup( name='pybamboo', version='0.6.1.0', author='modilabs', author_email='info@modilabs.org', packages=['pybamboo'], package_dir={'pybamboo': 'pybamboo'}, url='http://pypi.python.org/pypi/pybamboo/', description='A Python package to interact with bambo...
from distutils.core import setup setup( name='pybamboo', version='0.5.8.1', author='modilabs', author_email='info@modilabs.org', packages=['pybamboo'], package_dir={'pybamboo': 'pybamboo'}, url='http://pypi.python.org/pypi/pybamboo/', description='A Python package to interact with bambo...
bsd-3-clause
Python
54c3e81a9f814a95570380c98b4b42f8bd15e27d
Bump to version 0.2.1
jbrudvik/yahooscraper
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup README = 'README.md' try: import pypandoc long_description = pypandoc.convert(README, 'rst') except: long_description = '' setup( name='yahooscraper', version='0.2.1', description='Utilities for scr...
try: from setuptools import setup except ImportError: from distutils.core import setup README = 'README.md' try: import pypandoc long_description = pypandoc.convert(README, 'rst') except: long_description = '' setup( name='yahooscraper', version='0.2.0', description='Utilities for scr...
mit
Python
597f5a71d95f1937f9661eea3e6139f85cd8eef0
Update setup.py
chris104957/django-carrot,chris104957/django-carrot
setup.py
setup.py
import os from setuptools import find_packages, setup def readme(): with open('README.rst') as f: return f.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-carrot', version='1.0.1', packages=find_packages(), include_package_data=...
import os from setuptools import find_packages, setup def readme(): with open('README.rst') as f: return f.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-carrot', version='1.0.1a3', packages=find_packages(), include_package_dat...
apache-2.0
Python
8216a9fc73f3115a607be878ad757e05da2b5984
bump tag to 0.1.2
pedrospdc/pinger
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools from setuptools import setup, find_packages if setuptools.__version__ < '0.7': raise RuntimeError("setuptools must be newer than 0.7") version = "0.1.2" setup( name="pinger", version=version, author="Pedro Palhares (pedrospdc)", aut...
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools from setuptools import setup, find_packages if setuptools.__version__ < '0.7': raise RuntimeError("setuptools must be newer than 0.7") version = "0.1.0" setup( name="pinger", version=version, author="Pedro Palhares (pedrospdc)", aut...
mit
Python
e931989e57eb83460346a780363005fdd8db7074
Migrate to Python3.
stuartlangridge/ColourPicker,stuartlangridge/ColourPicker
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys, os from setuptools import setup icons = [] for dirpath, dirnames, filenames in os.walk("data/icons/"): relpath = dirpath[len("data/icons/"):] if relpath and filenames: icons.append((sys.prefix+"/share/icons/hicolor/"+relpath, [os.path.join(dirp...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, os from setuptools import setup icons = [] for dirpath, dirnames, filenames in os.walk("data/icons/"): relpath = dirpath[len("data/icons/"):] if relpath and filenames: icons.append((sys.prefix+"/share/icons/hicolor/"+relpath, [os.path.join(dirpa...
mit
Python
6daa9301d240fd69cd79aea1e69987ab846662b5
Remove unused io import
waveform80/picamera
docs/examples/circular_record1.py
docs/examples/circular_record1.py
import random import picamera def motion_detected(): # Randomly return True (like a fake motion detection routine) return random.randint(0, 10) == 0 camera = picamera.PiCamera() stream = picamera.PiCameraCircularIO(camera, seconds=20) camera.start_recording(stream, format='h264') try: while True: ...
import io import random import picamera def motion_detected(): # Randomly return True (like a fake motion detection routine) return random.randint(0, 10) == 0 camera = picamera.PiCamera() stream = picamera.PiCameraCircularIO(camera, seconds=20) camera.start_recording(stream, format='h264') try: while True...
bsd-3-clause
Python
0b6903e3b4ccbb489d7ae4809a8bf288719d62c9
Bump version to disqus-6
dcramer/nashvegas
setup.py
setup.py
import os from setuptools import setup, find_packages VERSION = __import__("nashvegas").__version__ def read(*path): return open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *path)).read() tests_require = [ 'nose>=1.1.2', 'django-nose>=0.1.3', ] setup( name="nashvegas", version=VE...
import os from setuptools import setup, find_packages VERSION = __import__("nashvegas").__version__ def read(*path): return open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *path)).read() tests_require = [ 'nose>=1.1.2', 'django-nose>=0.1.3', ] setup( name="nashvegas", version=VE...
mit
Python
37b5a9b1cd548cdb4b7e3f78c09ff1337a7ee15d
update licence info
oylbin/iOSCodeSign
setup.py
setup.py
from setuptools import setup, find_packages setup( name='ioscodesign', version='1.0.0', description='codesign tool for iOS package', url='https://github.com/oylbin/iOSCodeSign', author='oylbin', author_email='oylbin@gmail.com', license='Apache', classifiers=[ 'Development Status...
from setuptools import setup, find_packages setup( name='ioscodesign', version='1.0.0', description='codesign tool for iOS package', url='https://github.com/oylbin/iOSCodeSign', author='oylbin', author_email='oylbin@gmail.com', license='Apache License 2.0', classifiers=[ 'Develo...
apache-2.0
Python
aa1437e9d38f6ef6f3e24d4aba9733207e96482c
fix incorrect indent
sony/nnabla,sony/nnabla,sony/nnabla
build-tools/code_generator/utils/common.py
build-tools/code_generator/utils/common.py
# Copyright (c) 2017 Sony Corporation. 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 required by applicabl...
# Copyright (c) 2017 Sony Corporation. 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 required by applicabl...
apache-2.0
Python
6a0fc147c30cffb9b54e1e3a2578da2a222aa7cd
bump to 0.1.1
aphentik/django-webdriver
setup.py
setup.py
import os from setuptools import setup, find_packages def README(): try: import pypandoc return pypandoc.convert('README.md', 'rst') except (IOError, ImportError): return open('README.md').read() setup( name='django-webdriver', version='0.1.1', packages=find_packages(), ...
import os from setuptools import setup, find_packages def README(): try: import pypandoc return pypandoc.convert('README.md', 'rst') except (IOError, ImportError): return open('README.md').read() setup( name='django-webdriver', version='0.1.1-dev', packages=find_packages(),...
apache-2.0
Python
67af7702281da25d8ade8b66cd655974acc9d008
Modify long_description argument of setup() (#214)
jendrikseipp/vulture,jendrikseipp/vulture
setup.py
setup.py
#! /usr/bin/env python import codecs import os.path import re import setuptools def read(*parts): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, *parts), "r") as f: return f.read() def find_version(*file_parts): version_file = read(*file_parts) versio...
#! /usr/bin/env python import codecs import os.path import re import setuptools def read(*parts): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, *parts), "r") as f: return f.read() def find_version(*file_parts): version_file = read(*file_parts) versio...
mit
Python
7d7c732f0a2d4f326b7bd760c3c02814848914e5
Bump version due to PyPI submit error caused by server outage.
BlasiusVonSzerencsi/pagerduty-events-api
setup.py
setup.py
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.1', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.2.1', ...
from setuptools import setup setup(name='pagerduty_events_api', version='0.2.0', description='Python wrapper for Pagerduty Events API', url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api', download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.2.0', ...
mit
Python
90bdd37c218e01f7656de0a9f5c1855138782140
bump version
ContextLab/quail
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages DESCRIPTION = 'A python toolbox for analyzing and plotting free recall data' LONG_DESCRIPTION = """\ Quail is a Python package that facilitates analyses of behavioral data from memory experiments. (The current focus is on free recall experiments.) Ke...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages DESCRIPTION = 'A python toolbox for analyzing and plotting free recall data' LONG_DESCRIPTION = """\ Quail is a Python package that facilitates analyses of behavioral data from memory experiments. (The current focus is on free recall experiments.) Ke...
mit
Python
425056e6196dbce50f08d94f1578a2984b8a1c21
Read in README.md as long description
forseti-security/resource-policy-evaluation-library
setup.py
setup.py
# Copyright 2019 The resource-policy-evaluation-library 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 # # Unl...
# Copyright 2019 The resource-policy-evaluation-library 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 # # Unl...
apache-2.0
Python
5f0d48a18d2e8e3e90337fbeaff49a49edd943e7
Bump version number.
google/jax-md,google/jax-md
setup.py
setup.py
# Copyright 2019 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 2019 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
3fe6351f5c729b6c6ecea90da9a7ef95444c22a0
Bump sentry version
bogdal/sentry-youtrack,bogdal/sentry-youtrack,bogdal/sentry-youtrack,bogdal/sentry-youtrack
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=6.1.0', 'requests>=1.1.0', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtrack', versio...
#!/usr/bin/env python from setuptools import setup, find_packages from sentry_youtrack import VERSION import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_settings') install_requires = [ 'sentry>=5.1.0', 'requests>=1.1.0', 'BeautifulSoup>=3.2.1', ] setup( name='sentry-youtrack', versio...
bsd-2-clause
Python
c745b96e080d530f8bd369f535739980f70432af
bump version
farrokhi/dnstools,farrokhi/dnsdiag
setup.py
setup.py
from setuptools import setup, find_packages setup( name = "dnsdiag", version = "1.3.4", packages = find_packages(), scripts = ['dnsping.py', 'dnstraceroute.py', 'dnseval.py'], classifiers=[ "Topic :: System :: Networking", "Environment :: Console", "Intended Audience :: Develope...
from setuptools import setup, find_packages setup( name = "dnsdiag", version = "1.3.3", packages = find_packages(), scripts = ['dnsping.py', 'dnstraceroute.py', 'dnseval.py'], classifiers=[ "Topic :: System :: Networking", "Environment :: Console", "Intended Audience :: Develope...
bsd-2-clause
Python
f14cba94786eb59ccc437e0e8002d942e233e370
Remove IgDiscover stuff
AntonelliLab/seqcap_processor,AntonelliLab/seqcap_processor,AntonelliLab/seqcap_processor,AntonelliLab/seqcap_processor
secapr/__init__.py
secapr/__init__.py
from ._version import get_versions __version__ = get_versions()['version'] del get_versions
#Borrowed from IgDiscover from ._version import get_versions __version__ = get_versions()['version'] del get_versions #from .table import read_table
mit
Python
6e2930f10db4e217adebe479f4403770397a0c65
Make requests dep optionnal
antoinearnoud/openfisca-france,sgmap/openfisca-france,antoinearnoud/openfisca-france,sgmap/openfisca-france
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'OpenFisca-France', version = '23.1.1', author = 'OpenFisca Team', author_email = 'contact@openfisca.fr', classifiers = [ "Development Status :: 2 - Pre-Alpha", "License :: OS...
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'OpenFisca-France', version = '23.1.1', author = 'OpenFisca Team', author_email = 'contact@openfisca.fr', classifiers = [ "Development Status :: 2 - Pre-Alpha", "License :: OS...
agpl-3.0
Python
dede7f58727e85f05c9d2c2b8716b0cebe3d7d96
Fix setup.py
ColorGenomics/clr
setup.py
setup.py
from clr import __version__ try: from setuptools import setup except: from distutils.core import setup platform_packages = { 'Darwin': ['readline'], }.get(os.uname()[0], []) setup(name = "clr", version = __version__, description = "A command line tool for executing custom python scripts.", ...
from clr import __version__ try: from setuptools import setup except: from distutils.core import setup platform_packages = { 'Darwin': ['readline'], }.get(os.uname()[0], []) setup(name = "clr", version = __version__, description = "A command line tool for executing custom python scripts.", ...
mit
Python
8045c8bab104c9c8a9a9af0c4c2f405fae0a7818
Remove unknown classifiers from setup.py.
ptcrypto/pycoin,Kefkius/pycoin,lekanovic/pycoin,tomholub/pycoin,devrandom/pycoin,thirdkey-solutions/pycoin,antiface/pycoin,moocowmoo/pycoin,shivaenigma/pycoin,tomholub/pycoin,richardkiss/pycoin,mperklin/pycoin,zsulocal/pycoin,Tetchain/pycoin,shivaenigma/pycoin,Magicking/pycoin,Bluejudy/pycoin,pycoin/pycoin,Treefunder/p...
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup version = "0.41" setup( name="pycoin", version=version, packages = [ "pycoin", "pycoin.convention", "pycoin.ecdsa", "pycoin.key", "pycoin.tx", "pycoin.tx.script", "pycoin.serialize", "pycoin...
#!/usr/bin/env python from setuptools import setup version = "0.41" setup( name="pycoin", version=version, packages = [ "pycoin", "pycoin.convention", "pycoin.ecdsa", "pycoin.key", "pycoin.tx", "pycoin.tx.script", "pycoin.serialize", "pycoin...
mit
Python
9e795b70b83352ea8d75d3e34d975c7fa74dd279
Add and clean up trove classifiers
thusoy/public-pillar,thusoy/public-pillar
setup.py
setup.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import unicode_literals from setuptools import setup import sys install_requires = [ 'pycrypto', 'pyyaml', ] if sys.version_info < (2, 7, 0): install_requires.append('argparse') setup( name='ppillar', version='0.2.0', author='...
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import unicode_literals from setuptools import setup import sys install_requires = [ 'pycrypto', 'pyyaml', ] if sys.version_info < (2, 7, 0): install_requires.append('argparse') setup( name='ppillar', version='0.2.0', author='...
mit
Python
cffe926ce820110fd2bf1c147911510967956aa1
Declare this module python 3 compatible: note that one test still fails, but it is due to a regression bug in Pillow on Python 3
storborg/pyramid_frontend,storborg/pyramid_frontend,storborg/pyramid_frontend
setup.py
setup.py
from __future__ import print_function import os from setuptools import setup from distutils.command.build import build as _build executables = [ 'jpegoptim', 'pngcrush', 'optipng', 'convert', # From GraphicsMagick or ImageMagick. 'lessc', 'r.js', ] def which(exe): for path in os.enviro...
from __future__ import print_function import os from setuptools import setup from distutils.command.build import build as _build executables = [ 'jpegoptim', 'pngcrush', 'optipng', 'convert', # From GraphicsMagick or ImageMagick. 'lessc', 'r.js', ] def which(exe): for path in os.enviro...
mit
Python
1d44515592b476c01157ba6523556bd0efc20b7d
remove tornado<5 pin as latest versions of jaeger and opentracing aligned on requiring tornado<6
globality-corp/microcosm,globality-corp/microcosm
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup project = "microcosm" version = "2.12.2" setup( name=project, version=version, description="Microcosm - Simple microservice configuration", long_description=open("README.md").read(), long_description_content_type="text/markdown", ...
#!/usr/bin/env python from setuptools import find_packages, setup project = "microcosm" version = "2.12.2" setup( name=project, version=version, description="Microcosm - Simple microservice configuration", long_description=open("README.md").read(), long_description_content_type="text/markdown", ...
apache-2.0
Python
10b589c7d41ba7fe6c0d9f8728f2341d86f3487b
Include schemas when installing via setup.py
wurstmineberg/people
setup.py
setup.py
#!/usr/bin/env python import setuptools setuptools.setup( name='people', version='0.1', description='People.json database interface', url='http://github.com/wurstmineberg/people', author='Wurstmineberg', author_email='mail@wurstmineberg.de', license='MIT', packages=['people'], pack...
#!/usr/bin/env python import setuptools setuptools.setup( name='people', version='0.1', description='People.json database interface', url='http://github.com/wurstmineberg/people', author='Wurstmineberg', author_email='mail@wurstmineberg.de', license='MIT', packages=['people'], zip_...
mit
Python
eeb98767ce6033cad291a5aff8cdbcda2f774f5e
Update setup.py
txerpa/dj-txmoney
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): filename = os.path.join(os.path.dirname(__file__), *file_paths) version_file = open(filename).read() ve...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys from setuptools import setup def get_version(*file_paths): filename = os.path.join(os.path.dirname(__file__), *file_paths) version_file = open(filename).read() version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", ver...
mit
Python
050879ca5ab218078b47bfb3a0cad89b363ca5fc
Add OpenStack Bandit to test requirements.
marrow/schema,marrow/schema
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup from sys import argv, version_info as python_version from pathlib import Path if python_version < (3, 5): raise SystemExit("Python 3.5 or later is required.") here = Path(__file__).resolve().parent exec((here / "marrow" / "schema" / "release.py").read_text('utf-8...
#!/usr/bin/env python3 from setuptools import setup from sys import argv, version_info as python_version from pathlib import Path if python_version < (3, 5): raise SystemExit("Python 3.5 or later is required.") here = Path(__file__).resolve().parent exec((here / "marrow" / "schema" / "release.py").read_text('utf-8...
mit
Python
412e05ed7a37ccac6271abbf27d0338be02fa55d
Bump version to 0.4.1.
bloggse/ftptool
setup.py
setup.py
from distutils.core import setup import os readme_fname = os.path.join(os.path.dirname(__file__), "README.rst") readme_text = open(readme_fname).read() setup(name="ftptool", version="0.4.1", url="http://blogg.se", description="Higher-level interface to ftplib", author="Blogg Esse AB", author_email="op...
from distutils.core import setup import os readme_fname = os.path.join(os.path.dirname(__file__), "README.rst") readme_text = open(readme_fname).read() setup(name="ftptool", version="0.4", url="http://blogg.se", description="Higher-level interface to ftplib", author="Blogg Esse AB", author_email="open...
bsd-3-clause
Python
b9294c21230be7db75dc71713d149d749500f140
Create command line utility executable for h5diag
UCBerkeleySETI/blimpy,UCBerkeleySETI/blimpy
setup.py
setup.py
""" setup.py -- setup script for use of packages. """ from setuptools import setup, find_packages __version__ = '2.0.22' with open("README.md", "r") as fh: long_description = fh.read() # create entry points # see http://astropy.readthedocs.org/en/latest/development/scripts.html entry_points = { 'console_scri...
""" setup.py -- setup script for use of packages. """ from setuptools import setup, find_packages __version__ = '2.0.22' with open("README.md", "r") as fh: long_description = fh.read() # create entry points # see http://astropy.readthedocs.org/en/latest/development/scripts.html entry_points = { 'console_scri...
bsd-3-clause
Python
7a0b972a966f59e337b610066cd5806d691e29e0
update install script
oesteban/mriqc,oesteban/mriqc,poldracklab/mriqc,oesteban/mriqc,poldracklab/mriqc,poldracklab/mriqc,poldracklab/mriqc,oesteban/mriqc
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: oesteban # @Date: 2015-11-19 16:44:27 # @Last Modified by: oesteban # @Last Modified time: 2016-03-11 13:40:47 """ MRIQC setup script """ import os import sys __version__ = '0.0.2rc1' def main(): """ Install entry-point """ from glob import glob ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: oesteban # @Date: 2015-11-19 16:44:27 # @Last Modified by: oesteban # @Last Modified time: 2016-03-01 13:39:02 """ MRIQC setup script """ import os import sys __version__ = '0.0.2rc1' def main(): """ Install entry-point """ from glob import glob ...
apache-2.0
Python
fc9ce761ab7f0aeb683db3aa8163781b4b3d0db3
Bump version to 0.13.7
MarkusH/django-nap,limbera/django-nap
setup.py
setup.py
from setuptools import setup, find_packages setup( name='django-nap', version='0.13.7', description='A light REST tool for Django', author='Curtis Maloney', author_email='curtis@tinbrain.net', url='http://github.com/funkybob/django-nap', keywords=['django', 'json', 'rest'], packages = f...
from setuptools import setup, find_packages setup( name='django-nap', version='0.13.6', description='A light REST tool for Django', author='Curtis Maloney', author_email='curtis@tinbrain.net', url='http://github.com/funkybob/django-nap', keywords=['django', 'json', 'rest'], packages = f...
bsd-3-clause
Python
5ce20643d33fe9dbef46a34830c4984911fe6ca3
bump version to 2.1.1
dralshehri/epiweeks
setup.py
setup.py
import pathlib from setuptools import setup here = pathlib.Path(__file__).parent readme = (here / "README.rst").read_text(encoding="utf-8") changelog = (here / "CHANGELOG.rst").read_text(encoding="utf-8") setup( name="epiweeks", version="2.1.1", description="Epidemiological weeks based on the CDC (MMWR) a...
import pathlib from setuptools import setup here = pathlib.Path(__file__).parent readme = (here / "README.rst").read_text(encoding="utf-8") changelog = (here / "CHANGELOG.rst").read_text(encoding="utf-8") setup( name="epiweeks", version="2.1.0", description="Epidemiological weeks based on the CDC (MMWR) a...
mit
Python
263f34631371e0bdad4bb86bf8fa22e8305e569b
update depd
google/uncertainty-baselines
setup.py
setup.py
"""Uncertainty Baselines. See more details in the [`README.md`](https://github.com/google/uncertainty-baselines). """ import os import sys from setuptools import find_packages from setuptools import setup # To enable importing version.py directly, we add its path to sys.path. version_path = os.path.join(os.path.dir...
"""Uncertainty Baselines. See more details in the [`README.md`](https://github.com/google/uncertainty-baselines). """ import os import sys from setuptools import find_packages from setuptools import setup # To enable importing version.py directly, we add its path to sys.path. version_path = os.path.join(os.path.dir...
apache-2.0
Python
ff49464d9b0752ac299fc06375d3bab472b8864b
Fix missing package
J-CPelletier/WebComicToCBZ,J-CPelletier/webcomix,J-CPelletier/webcomix
setup.py
setup.py
from setuptools import setup, find_packages setup( name="webcomix", version="3.1.1", description="Webcomic downloader", long_description="webcomix is a webcomic downloader that can additionally create a .cbz file once downloaded.", url="https://github.com/J-CPelletier/webcomix", author="Jean-Ch...
from setuptools import setup setup( name="webcomix", version="3.1.1", description="Webcomic downloader", long_description="webcomix is a webcomic downloader that can additionally create a .cbz file once downloaded.", url="https://github.com/J-CPelletier/webcomix", author="Jean-Christophe Pellet...
mit
Python