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
a83de7bb6bb0836b754e0670c9bbe3fa4f76f4c0
fix docstring in log method
shopkeep/shpkpr,shopkeep/shpkpr
shpkpr/cli.py
shpkpr/cli.py
# stdlib imports import os import sys # third-party imports import click # local imports from shpkpr.marathon import MarathonClient from shpkpr.mesos import MesosClient CONTEXT_SETTINGS = dict(auto_envvar_prefix='SHPKPR') class Context(object): def __init__(self): self.marathon_client = None ...
# stdlib imports import os import sys # third-party imports import click # local imports from shpkpr.marathon import MarathonClient from shpkpr.mesos import MesosClient CONTEXT_SETTINGS = dict(auto_envvar_prefix='SHPKPR') class Context(object): def __init__(self): self.marathon_client = None def...
mit
Python
a4263c3d4156d8b419103e23cdd176b50b737e02
Change "--no-patch" to "-s", which has the same behavior
google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Ti...
slave/skia_slave_scripts/run_bench.py
slave/skia_slave_scripts/run_bench.py
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Run the Skia benchmarking executable. """ from build_step import BuildStep from utils import shell_utils import os import re i...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Run the Skia benchmarking executable. """ from build_step import BuildStep from utils import shell_utils import os import re i...
bsd-3-clause
Python
23964bb3bb9b4d850bc60708eab82d1636cde9c8
make pretty
RoboJackets/robocup-software,RoboJackets/robocup-software,RoboJackets/robocup-software,RoboJackets/robocup-software
soccer/gameplay/positions/position.py
soccer/gameplay/positions/position.py
import robocup import single_robot_composite_behavior import enum import typing ## Parent class of any position # Deals with relative positions as well # as the generic pass options class Position(single_robot_composite_behavior.SingleRobotCompositeBehavior): class Type(enum.Enum): Striker = 0 Mid...
import robocup import single_robot_composite_behavior import enum import typing ## Parent class of any position # Deals with relative positions as well # as the generic pass options class Position(single_robot_composite_behavior.SingleRobotCompositeBehavior): class Type(enum.Enum): Striker = 0 Mid...
apache-2.0
Python
d5d359c5ec0f1735e97355839f1a12c6ea45c460
Add add_remote to pygit2 implementation
solarnz/polygamy,solarnz/polygamy
polygamy/pygit2_git.py
polygamy/pygit2_git.py
from __future__ import absolute_import import pygit2 from .base_git import NoSuchRemote from .plain_git import PlainGit class Pygit2Git(PlainGit): @staticmethod def is_on_branch(path): repo = pygit2.Repository(path) return not (repo.head_is_detached or repo.head_is_unborn) @staticmetho...
from __future__ import absolute_import import pygit2 from .base_git import NoSuchRemote from .plain_git import PlainGit class Pygit2Git(PlainGit): @staticmethod def is_on_branch(path): repo = pygit2.Repository(path) return not (repo.head_is_detached or repo.head_is_unborn) @staticmetho...
bsd-3-clause
Python
c8c29109b4f44bf1b251c67b208c3cf7a6269692
Improve error handling/detection.
zooniverse/docker-status
docker_status.py
docker_status.py
from flask import Flask from multiprocessing import Process, Value from time import sleep import datetime import os import re import urllib2 import sys import traceback OK_STATUSES = [ 200, 301, 302 ] HTTP_TIMEOUT = os.environ.get('HTTP_TIMEOUT', 30) TEST_INTERVAL = os.environ.get('TEST_INTERVAL', 30) DEBUG = os.envi...
from flask import Flask from multiprocessing import Process, Value from time import sleep import datetime import os import re import urllib2 import sys OK_STATUSES = [ 200, 301, 302 ] HTTP_TIMEOUT = os.environ.get('HTTP_TIMEOUT', 30) TEST_INTERVAL = os.environ.get('TEST_INTERVAL', 30) DEBUG = os.environ.get('DEBUG', ...
apache-2.0
Python
0826b8fa1157eccef406b108928f7be516d054e2
add some more generic service tests.
spaam/svtplay-dl,olof/svtplay-dl,olof/svtplay-dl,spaam/svtplay-dl
lib/svtplay_dl/tests/test_service.py
lib/svtplay_dl/tests/test_service.py
from __future__ import absolute_import import unittest from svtplay_dl.service import Generic from svtplay_dl.service import opengraph_get from svtplay_dl.service import Service from svtplay_dl.service import service_handler from svtplay_dl.service.services import sites from svtplay_dl.utils.parser import setup_defau...
from __future__ import absolute_import import unittest from svtplay_dl.service import opengraph_get from svtplay_dl.service import Service from svtplay_dl.service import service_handler from svtplay_dl.service.services import sites from svtplay_dl.utils.parser import setup_defaults class MockService(Service): s...
mit
Python
301924877984658716d69425f18bb5bd6e75cae8
update server
mzmttks/miteteyo
server/app.py
server/app.py
from flask import Flask, request from pymongo import MongoClient import os import json import pprint app = Flask(__name__) client = MongoClient(os.environ["MONGOLAB_URI"]) db = client["heroku_gw4w78g9"] col = db["locations"] print col @app.route('/location', methods=["POST"]) def addLocation(): try: col.insert_...
from flask import Flask, request from pymongo import MongoClient import os import json import pprint app = Flask(__name__) client = MongoClient(os.environ["MONGOLAB_URI"]) db = client["heroku_gw4w78g9"] col = db["locations"] print col @app.route('/location', methods=["POST"]) def addLocation(): try: print "REQU...
mit
Python
0aafba5834f4448d798452d00dfc53efcaa39898
update shuffling
dssg/wikienergy,dssg/wikienergy,dssg/wikienergy,dssg/wikienergy,dssg/wikienergy
disaggregator/utils.py
disaggregator/utils.py
import appliance import pandas as pd import numpy as np import os import pickle def aggregate_instances(instances, metadata, how="strict"): ''' Given a list of temporally aligned instances, aggregate them into a single signal. ''' if how == "strict": traces = [instance.traces for instance i...
import appliance import pandas as pd import numpy as np import os import pickle def concatenate_traces(traces, metadata=None, how="strict"): ''' Given a list of appliance traces, returns a single concatenated trace. With how="strict" option, must be sampled at the same rate and consecutive, without ove...
mit
Python
88bfcad3e764bab14a057f092ba9562301db89eb
fix to `_standardize`
wkentaro/chainer,chainer/chainer,okuta/chainer,hvy/chainer,niboshi/chainer,chainer/chainer,okuta/chainer,niboshi/chainer,chainer/chainer,okuta/chainer,wkentaro/chainer,hvy/chainer,niboshi/chainer,hvy/chainer,niboshi/chainer,pfnet/chainer,hvy/chainer,chainer/chainer,wkentaro/chainer,wkentaro/chainer,okuta/chainer
tests/chainer_tests/functions_tests/normalization_tests/test_standardize.py
tests/chainer_tests/functions_tests/normalization_tests/test_standardize.py
import numpy from chainer.functions.normalization._standardize import _standardize from chainer import testing @testing.parameterize(*(testing.product({ 'ch_out': [1, 5], 'size': [10, 20], 'dtype': [numpy.float32, numpy.float16], 'eps': [1e-5, 1e-1], }))) @testing.backend.inject_backend_tests( No...
import numpy from chainer import functions from chainer import testing @testing.parameterize(*(testing.product({ 'ch_out': [1, 5], 'size': [10, 20], 'dtype': [numpy.float32, numpy.float16], 'eps': [1e-5, 1e-1], }))) @testing.backend.inject_backend_tests( None, # CPU tests testing.product(...
mit
Python
a11a5deb0f87e9abe939f864c7f929552ea07d98
Fix likelihood (#83)
johnveitch/cpnest
examples/gaussianmixture.py
examples/gaussianmixture.py
import unittest import numpy as np import cpnest.model class GaussianMixtureModel(cpnest.model.Model): """ A simple gaussian model with parameters mean and sigma Shows example of using your own data """ def __init__(self): self.names=['mean1','sigma1','mean2','sigma2','weight'] self...
import unittest import numpy as np import cpnest.model class GaussianMixtureModel(cpnest.model.Model): """ A simple gaussian model with parameters mean and sigma Shows example of using your own data """ def __init__(self): self.names=['mean1','sigma1','mean2','sigma2','weight'] self...
mit
Python
60f24436f10465c81facd0705c184aa906bd05e6
Use the updated psxml module.
chingc/DJRivals,chingc/DJRivals
psxml.py
psxml.py
class PrettySimpleXML(): """A simple little pretty print XML generator.""" def __init__(self, width=4): self._output = [] self._open_tags = [] self._width = " " * width self._depth = 0 def _untrim(self, string, newline): """Inserts indentation and newline to a string...
class PrettySimpleXML(): """A simple little pretty print XML generator.""" def __init__(self, width=4): self._output = [] self._open_tags = [] self._width = " " * width self._depth = 0 def _untrim(self, value, newline): lead = "" if not self._output or self._output[-...
bsd-2-clause
Python
4f2a77093ba4305ec673d73281033f91eb70e511
prepare for release 1.2.129-dev
kvick/aminator,coryb/aminator,bmoyles/aminator,Netflix/aminator
aminator/__init__.py
aminator/__init__.py
# -*- coding: utf-8 -*- # # # Copyright 2013 Netflix, 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 ...
# -*- coding: utf-8 -*- # # # Copyright 2013 Netflix, 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 ...
apache-2.0
Python
579b11b16d6e6b7f53c6ea8debd1163f3eb50bb9
Update example for symmetry detection
sunqm/pyscf,sunqm/pyscf,gkc1000/pyscf,gkc1000/pyscf,gkc1000/pyscf,gkc1000/pyscf,sunqm/pyscf,sunqm/pyscf,gkc1000/pyscf
examples/gto/13-symmetry.py
examples/gto/13-symmetry.py
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # from pyscf import gto ''' Specify symmetry. Mole.symmetry can be True/False to turn on/off the symmetry (default is off), or a string to specify the symmetry of molecule. symmetry_subgroup keyword can be set to generate a subgroup of the detected...
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # from pyscf import gto ''' Specify symmetry. Mole.symmetry can be True/False to turn on/off the symmetry (default is off), or a string to specify the symmetry of molecule. symmetry_subgroup keyword can be set to generate a subgroup of the dectecte...
apache-2.0
Python
b0cd7f7d3296028bcc28dff9e222a2a5f4537afa
Fix division by zero
timvandermeij/sentiment-analysis,timvandermeij/sentiment-analysis
analyze.py
analyze.py
import sys import re def main(argv): # Message to perform sentiment analysis on message = argv[0] if len(argv) > 0 else "" if message == "": print("Usage: python analyze.py [message]") sys.exit(1) # Load the positive and negative words words = {} with open("words/positive.txt"...
import sys import re def main(argv): # Message to perform sentiment analysis on message = argv[0] if len(argv) > 0 else "" if message == "": print("Usage: python analyze.py [message]") sys.exit(1) # Load the positive and negative words words = {} with open("words/positive.txt"...
mit
Python
e5a6957fc7bcdf7568065df796d3048ffe20ca2e
remove typo
lmzintgraf/MultiMAuS
authenticators/simple_authenticators.py
authenticators/simple_authenticators.py
from authenticators.abstract_authenticator import AbstractAuthenticator class OracleAuthenticator(AbstractAuthenticator): def authorise_transaction(self, customer): if customer.fraudster: return False else: return True class NeverSecondAuthenticator(AbstractAuthenticator...
from authenticators.abstract_authenticator import AbstractAuthenticator class OracleAuthenticator(AbstractAuthenticator): def authorise_transaction(self, customer): if customer.fraudster: return False else: return True class NeverSecondAuthenticator(AbstractAuthenticator...
mit
Python
a0e024b273bcdad825b84e2527fc93d24ed9d098
Make the functional testing annotated steps script call the eggplant starting script
dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/...
tools/bots/functional_testing.py
tools/bots/functional_testing.py
#!/usr/bin/python # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ Buildbot steps for functional testing master and slaves """ import os import re im...
#!/usr/bin/python # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ Buildbot steps for functional testing master and slaves """ import os import re im...
bsd-3-clause
Python
6f77910ac036209a852bc3b08989de7b84b5ee29
Print error if job is missing config
Foxboron/Frank,Foxboron/Frank,martinp/jarvis2,martinp/jarvis2,mpolden/jarvis2,Foxboron/Frank,mpolden/jarvis2,mpolden/jarvis2,martinp/jarvis2
app/run.py
app/run.py
#!/usr/bin/env python """JARVIS 2 helper script Usage: run.py -j [-s] [NAME] run.py [-d] Options: -h --help Show usage -d --debug Run app in debug mode -j --job Run a job, will prompt if NAME is not given -s --json Print job output as JSON """ from __future__ import print...
#!/usr/bin/env python """JARVIS 2 helper script Usage: run.py -j [-s] [NAME] run.py [-d] Options: -h --help Show usage -d --debug Run app in debug mode -j --job Run a job, will prompt if NAME is not given -s --json Print job output as JSON """ from __future__ import print...
mit
Python
5fc65183e40dd1d06bd6ae3e4e7ba0f0a0e2bdd6
Add DAG & non-DAG adjacency dicts
bowen0701/algorithms_data_structures
alg_check_dag.py
alg_check_dag.py
from __future__ import absolute_import from __future__ import print_function from __future__ import division def _previsit(): pass def _postvisit(): pass def _dfs_explore(): pass def check_dag(): """Check Directed Acyclic Graph (DAG).""" pass def main(): # Graph adjacency dictionary for D...
from __future__ import absolute_import from __future__ import print_function from __future__ import division def _previsit(): pass def _postvisit(): pass def _dfs_explore(): pass def check_dag(): """Check Directed Acyclic Graph (DAG).""" pass def main(): # DAG. dag_adj_d = { '...
bsd-2-clause
Python
17688f5ea2261345cbc0df6b4ffe99a076deaec2
Tidy up and optimize Client creation
hobarrera/django-afip,hobarrera/django-afip
django_afip/clients.py
django_afip/clients.py
import pytz from zeep import Client from zeep.cache import SqliteCache from zeep.transports import Transport TZ_AR = pytz.timezone(pytz.country_timezones['ar'][0]) transport = Transport(cache=SqliteCache(timeout=86400)) wsdls = { ('wsaa', False): 'https://wsaa.afip.gov.ar/ws/services/LoginCms?wsdl', ('wsfe',...
import pytz from django.utils.functional import LazyObject from zeep import Client TZ_AR = pytz.timezone(pytz.country_timezones['ar'][0]) # XXX: Below are a set of clients for each WS. Each one is # lazy-initialized ONCE, and only once. # # The code layout is somewhat ugly, so, if you have better code-pattern, # pat...
isc
Python
e77480eaef553567073af2a7e0cdf7d42628a0c4
fix #5, use run('sudo ..') instead of sudo('..') in uwsgi restart
mocco/django-fabric
django_fabric/uwsgi.py
django_fabric/uwsgi.py
# -*- coding: utf-8 -*- from fabric.operations import run from django_fabric.base import App class UwsgiApp(App): ini_files = {} def __init__(self, ini_files, *args, **kwargs): super(UwsgiApp, self).__init__(*args, **kwargs) self.ini_files = ini_files def restart_app(self, instance): ...
# -*- coding: utf-8 -*- from fabric.operations import sudo from django_fabric.base import App class UwsgiApp(App): ini_files = {} def __init__(self, ini_files, *args, **kwargs): super(UwsgiApp, self).__init__(*args, **kwargs) self.ini_files = ini_files def restart_app(self, instance): ...
mit
Python
06ef8037e8439d70dd229ff465887e8bfd0373a3
Allow archive generation even when some JSON files are missing
speth/planetary-annihilation-db,speth/planetary-annihilation-db,KillerKiwiJuice/planetary-annihilation-db,KillerKiwiJuice/planetary-annihilation-db
archive.py
archive.py
import units import tarfile import os def save_db_info(pa_root=None, version=None): if pa_root: units.CONFIG['pa_root'] = pa_root else: pa_root = units.CONFIG['pa_root'] db = units.VersionDb() db.load_units() if version is None: version = open(pa_root +'/../version.txt').r...
import units import tarfile import os def save_db_info(pa_root=None, version=None): if pa_root: units.CONFIG['pa_root'] = pa_root else: pa_root = units.CONFIG['pa_root'] db = units.VersionDb() db.load_units() if version is None: version = open(pa_root +'/../version.txt').r...
mit
Python
61b55fa9bf2aa8a8f15803033ee34347d009c1e7
Use CompositionProgress refactoring in console script
ivanovwaltz/wavelet_sound_microscope
analyse_sound.py
analyse_sound.py
#!/usr/bin/env python3 import logging import os from contextlib import contextmanager from functools import partial import click from composition import CompositionProgress logging.basicConfig() log = logging.getLogger(__name__) @contextmanager def statusbar(val): log.debug('Status before %s', val) yield...
#!/usr/bin/env python3 import logging import os from contextlib import contextmanager import click from composition import Composition logging.basicConfig() log = logging.getLogger(__name__) class CompositionWithProgressbar(Composition): def get_whole_image(self, chunks, decimate): with click.progres...
mit
Python
343ad64efe98f950284ca4ccb8de363d3b535c08
print tests
forrestv/myhdl,forrestv/myhdl,forrestv/myhdl,forrestv/myhdl
myhdl/test/toVHDL/test_print.py
myhdl/test/toVHDL/test_print.py
from myhdl import * def PrintBench(): si1 = Signal(intbv(0)[8:]) si2 = Signal(intbv(0, min=-10, max=12)) sb = Signal(bool(0)) @instance def logic(): i1 = intbv(0)[8:] i2 = intbv(0, min=-10, max=12) b = bool(1) i1[:] = 10 si1.next = 11 i2[:] = -7 ...
from myhdl import * def PrintBench(): @instance def logic(): i1 = intbv(0)[8:] i2 = intbv(0, min=-10, max=12) b = bool(1) i1[:] = 10 print int(i1) yield delay(10) print "Test" yield delay(10) print i1 yield delay(10) i2[:]...
lgpl-2.1
Python
503dfd707275789af1d143db16b177ca48a86468
Fix typo in docs
jpbottaro/anna
anna/model/bridge.py
anna/model/bridge.py
"""Bridges transform the state from the encoders so they fit the decoder Inspired by OpenNMT & google/seq2seq ## Available bridges @@NoBridge @@ZeroBridge @@DenseBridge """ import tensorflow as tf class Bridge: """Transforms the state from the encoders so they fit the decoder""" def __call__(self, zero_st...
"""Bridges transform the state from the encoders so they fit the decoder Inspired by OpenNMT & google/seq2seq ## Available bridges @@Bridge @@NoBridge @@ZeroBridge @@DenseBridge """ import tensorflow as tf class Bridge: """Transforms the state from the encoders so they fit the decoder""" def __call__(self...
mit
Python
cc77c6affaa34333e3eebc6638a53f56f1323348
Remove extraneous import.
closeio/nylas,ErinCall/sync-engine,PriviPK/privipk-sync-engine,Eagles2F/sync-engine,Eagles2F/sync-engine,wakermahmud/sync-engine,closeio/nylas,jobscore/sync-engine,closeio/nylas,nylas/sync-engine,gale320/sync-engine,nylas/sync-engine,wakermahmud/sync-engine,PriviPK/privipk-sync-engine,gale320/sync-engine,nylas/sync-eng...
inbox/models/util.py
inbox/models/util.py
from inbox.models import (Calendar, Contact, Message, Event, Block, Tag, Thread) def reconcile_message(new_message, session): """ Check to see if the (synced) Message instance new_message was originally created/sent via the Inbox API (based on the X-Inbox-Uid header. If so, u...
from inbox.models import (Calendar, Contact, Message, Event, Block, Message, Tag, Thread) def reconcile_message(new_message, session): """ Check to see if the (synced) Message instance new_message was originally created/sent via the Inbox API (based on the X-Inbox-Uid header. If ...
agpl-3.0
Python
9cce9ac6f183e035cb5fbead1b83830058cacd8d
Set default tips app
MeirKriheli/debian.org.il,MeirKriheli/debian.org.il
apps/tips/__init__.py
apps/tips/__init__.py
default_app_config = 'tips.apps.TipsConfig'
mit
Python
46738818354d42fa93a6358aba7763de91d14bb0
Comment example Selenium script
srguiwiz/nrvr-commander
dev/examples/qa/selenium/selenium-tests.py
dev/examples/qa/selenium/selenium-tests.py
#!/usr/bin/python from selenium import webdriver browser = webdriver.Firefox() browser.implicitly_wait(180) browser.get("http://www.bbc.co.uk/") # this is just a website we had picked as an example, # it may have different links by the time you are trying it out # # why this doesn't go all of below links all the ti...
#!/usr/bin/python from selenium import webdriver browser = webdriver.Firefox() browser.implicitly_wait(60) browser.get("http://www.bbc.co.uk/") browser.find_element_by_link_text("News").click() browser.find_element_by_link_text("US & Canada").click() browser.find_element_by_link_text("Europe").click() browser.find_...
bsd-2-clause
Python
e9c9076090540f093a368be8b8e6076774ba93fd
fix response
msmexplorer/msmexplorer,msmexplorer/msmexplorer
devtools/travis-ci/update_versions_json.py
devtools/travis-ci/update_versions_json.py
import json try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen from msmexplorer import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.msmbuilder.org/msmexplorer' res = urlopen(URL + '/versions.json').read().decode('utf-8')...
import json try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen from msmexplorer import version if not version.release: print("This is not a release.") exit(0) URL = 'http://www.msmbuilder.org/msmexplorer' versions = json.load(urlopen(URL + '/versions.json')) # new...
mit
Python
4b665bb2e85994e3df0324afacb2453b8f4998a1
Handle dask TimeoutError exception in tests
dwhswenson/contact_map,dwhswenson/contact_map
contact_map/tests/test_dask_runner.py
contact_map/tests/test_dask_runner.py
# pylint: disable=wildcard-import, missing-docstring, protected-access # pylint: disable=attribute-defined-outside-init, invalid-name, no-self-use # pylint: disable=wrong-import-order, unused-wildcard-import from .utils import * from contact_map.dask_runner import * def dask_setup_test_cluster(distributed, n_workers...
# pylint: disable=wildcard-import, missing-docstring, protected-access # pylint: disable=attribute-defined-outside-init, invalid-name, no-self-use # pylint: disable=wrong-import-order, unused-wildcard-import from .utils import * from contact_map.dask_runner import * class TestDaskContactFrequency(object): def te...
lgpl-2.1
Python
bbda0a77d564631379616b416e830c2f9432ffb5
Fix log.
Labbiness/Pancake,Labbiness/Pancake
Pancake/pancake.py
Pancake/pancake.py
# # Copyright (c) 2017 Shota Shimazu # # 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 w...
# # Copyright (c) 2017 Shota Shimazu # # 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 w...
apache-2.0
Python
3a3b1ac34119c6b6bcb9add10589ca13b1ed5f27
Add fallback to use local rhyme db if not installed
fathat/pyrhyme
rhyme.py
rhyme.py
#!/usr/bin/env python import sqlite3 as sql import sys, os, os.path _rhymedb_path = os.path.join(sys.prefix, 'data/rhyme.db') try: _conn = sql.connect(_rhymedb_path) except sql.OperationalError: _rhymedb_path = os.path.join(os.path.dirname(sys.argv[0]), 'data/rhyme.db') _conn = sql.connect(_rhymedb_path) #...
#!/usr/bin/env python import sqlite3 as sql import sys, os, os.path _conn = sql.connect(os.path.join(sys.prefix, 'data/rhyme.db')) def rhymes_with(word): """Returns a list of words that rhyme, or [] if no words rhyme.""" global _conn cursor = _conn.execute("select * from words where word=?", (word.lower()...
mit
Python
fdc139414ef0c0415448088d55f3c34aa56ef349
Update RebuildMetadata.py
Bookworm-project/BookwormDB,Bookworm-project/BookwormDB
RebuildMetadata.py
RebuildMetadata.py
import MySQLdb import re import sys import json import os from subprocess import call from ParseDate import * from CreateDatabase import * from ImportNewLibrary import * from WordsTableCreate import WordsTableCreate # Pull a dbname from command line input. dbname = sys.argv[1] dbuser = sys.argv[2] dbpassword = sys.ar...
import MySQLdb import re import sys import json import os from subprocess import call import ParseDate #These three libraries define the Bookworm-specific methods. from CreateDatabase import * from ImportNewLibrary import * from WordsTableCreate import WordsTableCreate # Pull a dbname from command line input. dbname...
mit
Python
61dc22ffd1fc2eed8625e7bc3d1431f8b5d92fbd
remove gen_image
kozistr/Awesome-GANs
image_utils.py
image_utils.py
import tensorflow as tf import numpy as np import imageio import cv2 def down_sampling(img): shape = img.get_shape() # [batch, height, width, channels] h2 = int(shape[1] // 2) w2 = int(shape[2] // 2) return tf.image.resize_images(img, [h2, w2], tf.image.ResizeMethod.BILINEAR) def up_sampling(img)...
import tensorflow as tf import numpy as np import imageio import cv2 def down_sampling(img): shape = img.get_shape() # [batch, height, width, channels] h2 = int(shape[1] // 2) w2 = int(shape[2] // 2) return tf.image.resize_images(img, [h2, w2], tf.image.ResizeMethod.BILINEAR) def up_sampling(img)...
mit
Python
e6a1c5fbeb3f0bb370dd459092ae52e69e45bbc6
Tidy up imports
incuna/incuna-mail,incuna/incuna-mail
incuna_mail.py
incuna_mail.py
from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core.mail import EmailMessage, EmailMultiAlternatives from django.template.loader import render_to_string def get_manager_emails(): """ Get a list of the managers email address...
from django.conf import settings from django.contrib.sites.models import Site from django.template.loader import render_to_string from django.core.mail import EmailMultiAlternatives, EmailMessage from django.contrib.auth.models import User def get_manager_emails(): """ Get a list of the managers email addres...
bsd-2-clause
Python
58e3a0a09600f2b99df4eee74b39c462e56a2e0a
Use py.test for running tests in invoke tasks file
FreeMusicNinja/freemusic.ninja,FreeMusicNinja/freemusic.ninja
django/tasks.py
django/tasks.py
import os from invoke import run, task @task def test(speed='fast'): if speed == 'fast': os.environ['DATABASE_URL'] = "sqlite://" run("py.test")
import os from invoke import run, task @task def test(speed='fast'): if speed == 'fast': os.environ['DATABASE_URL'] = "sqlite://" run("coverage run manage.py test") run("coverage html")
bsd-3-clause
Python
791ee4a19313242fd16e4460b0d4b06d96fdc226
fix documentation version
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild
doc-src/conf.py
doc-src/conf.py
#!/usr/bin/env python3 import recommonmark from pkg_resources import DistributionNotFound, get_distribution from recommonmark.parser import CommonMarkParser from recommonmark.transform import AutoStructify try: __version__ = get_distribution("benchbuild").version except DistributionNotFound: pass project = 'b...
#!/usr/bin/env python3 import recommonmark from recommonmark.parser import CommonMarkParser from recommonmark.transform import AutoStructify from pkg_resources import DistributionNotFound, get_distribution try: __version__ = get_distribution("benchbuild").version except DistributionNotFound: LOG.error("could no...
mit
Python
1bb4d511723682568c0683450cdedf6b4878643e
Add detailed Maintenance admin
mfcovington/django-system-maintenance,mfcovington/django-system-maintenance,mfcovington/django-system-maintenance
system_maintenance/admin.py
system_maintenance/admin.py
from django.contrib import admin from .models import Maintenance, MaintenanceType, Software, SysAdmin, System @admin.register(Maintenance) class MaintenanceAdmin(admin.ModelAdmin): fieldset_basic = ('Basic', { 'fields': [ 'system', 'sys_admin', 'maintenance_type', ...
from django.contrib import admin from .models import Maintenance, MaintenanceType, Software, SysAdmin, System admin.site.register(Maintenance) admin.site.register(MaintenanceType) admin.site.register(Software) admin.site.register(SysAdmin) admin.site.register(System)
bsd-3-clause
Python
75c5a6c5562938da67c8c0930fbaa6faaf972d32
update version
icoxfog417/mlimages
setup.py
setup.py
from distutils.core import setup setup( name="mlimages", packages=[ "mlimages", "mlimages.gather", "mlimages.scripts", "mlimages.util", ], install_requires=[ "requests", "aiohttp" ], version="0.2", description="gather image data and create tr...
from distutils.core import setup setup( name="mlimages", packages=[ "mlimages", "mlimages.imagenet" ], install_requires=[ "requests", "aiohttp" ], version="0.1", description="gather and create image dataset for machine learning", author="icoxfog417", ...
mit
Python
d3545dabf741528e0b95fae995861299dbba5e52
Change version to 0.1.7
keitaoouchi/seleniumwrapper
setup.py
setup.py
from setuptools import setup from sys import version if version < '2.6.0': raise Exception("This module doesn't support any version less than 2.6") import sys sys.path.append("./test") with open('README.rst', 'r') as f: long_description = f.read() classifiers = [ 'Development Status :: 4 - Beta', 'I...
from setuptools import setup from sys import version if version < '2.6.0': raise Exception("This module doesn't support any version less than 2.6") import sys sys.path.append("./test") with open('README.rst', 'r') as f: long_description = f.read() classifiers = [ 'Development Status :: 4 - Beta', 'I...
bsd-3-clause
Python
42b5ce9a1f2c320597e80b49b58b8f0fc9e80661
bump 0.1.2
arubertoson/mayatest
setup.py
setup.py
#! /usr/bin/env python import os import sys from setuptools import setup if sys.version_info[:2] < (2, 7): sys.exit('mayalauncher requires Python 2.7 or higher.') here = os.path.abspath(os.path.dirname(__file__)) # Get long description try: import pypandoc pypandoc.convert_file('README.md', 'rst', outpu...
#! /usr/bin/env python import os import sys from setuptools import setup if sys.version_info[:2] < (2, 7): sys.exit('mayalauncher requires Python 2.7 or higher.') here = os.path.abspath(os.path.dirname(__file__)) # Get long description try: import pypandoc pypandoc.convert_file('README.md', 'rst', outpu...
mit
Python
9937071cfb85ab39c1c22a862f826c226b0e71ba
change long description to markdown
mhajiloo/persiantools
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from io import open from setuptools import setup version = '1.3.0' def readme(): with open('README.md', encoding='utf-8') as f: return f.read() setup(name='persiantools', version=version, description='Jalali date and datetime with other tools',...
#!/usr/bin/env python # -*- coding: utf-8 -*- from io import open from setuptools import setup version = '1.3.0' def readme(): with open('README.md', encoding='utf-8') as f: return f.read() setup(name='persiantools', version=version, description='Jalali date and datetime with other tools',...
mit
Python
c9abb51e496e19137dd596a55dbd98f613659c07
Change author in setup.py
pegasus-isi/pegasus-metrics,pegasus-isi/pegasus-metrics,pegasus-isi/pegasus-metrics
setup.py
setup.py
import os import sys from setuptools import setup # Utility function to read the README file. def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() # The packages we depend on dependencies = [ "Flask==0.9", "MySQL-python==1.2.4c1", "repoze.lru==0.5", "WTForms==1.0.3",...
import os import sys from setuptools import setup # Utility function to read the README file. def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() # The packages we depend on dependencies = [ "Flask==0.9", "MySQL-python==1.2.4c1", "repoze.lru==0.5", "WTForms==1.0.3",...
apache-2.0
Python
cfe09669a329df0c92795e0864ab089e7a8c8224
Set zip_safe=True
sfischer13/python-arpa,sfischer13/python-arpa
setup.py
setup.py
#!/usr/bin/env python3 import sys try: from setuptools import setup except ImportError: from distutils.core import setup if not ((3, 4) <= sys.version_info < (4, 0)): print('ERROR: Python 3.4+ is required!') sys.exit(1) with open('README.md') as readme_file: readme = readme_file.read() with ope...
#!/usr/bin/env python3 import sys try: from setuptools import setup except ImportError: from distutils.core import setup if not ((3, 4) <= sys.version_info < (4, 0)): print('ERROR: Python 3.4+ is required!') sys.exit(1) with open('README.md') as readme_file: readme = readme_file.read() with ope...
mit
Python
dffcb768f233b1a3875342d467f1323be3e2364c
add required geo packages to setup.py
openego/eDisGo,openego/eDisGo
setup.py
setup.py
from setuptools import find_packages, setup from setuptools.command.install import install import os BASEPATH='.eDisGo' class InstallSetup(install): def run(self): self.create_edisgo_path() install.run(self) @staticmethod def create_edisgo_path(): edisgo_path = os.path.join(os.pa...
from setuptools import find_packages, setup from setuptools.command.install import install import os BASEPATH='.eDisGo' class InstallSetup(install): def run(self): self.create_edisgo_path() install.run(self) @staticmethod def create_edisgo_path(): edisgo_path = os.path.join(os.pa...
agpl-3.0
Python
b981a87e1945dc5ff6850f02a8081c0d7534c709
Bump version
sdelements/django-multi-import
setup.py
setup.py
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return "" install_requires = ...
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return "" install_requires = ...
mit
Python
9e6988d2eed1478f0944da1da177e88b2dfe557d
fix bad req spec
galaxy-iuc/parsec
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import glob try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'Click>=6.7', 'git+https://github.com...
#!/usr/bin/env python # -*- coding: utf-8 -*- import glob try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'Click>=6.7', 'git+https://github.com...
apache-2.0
Python
c997c6518aa675828ced24a49345bcc6f251cf36
update dev status
ariebovenberg/omgorm,ariebovenberg/snug
setup.py
setup.py
import os.path from setuptools import setup, find_packages def read_local_file(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, 'r') as rfile: return rfile.read() metadata = {} exec(read_local_file('snug/__about__.py'), metadata) readme = read_local_file('README.rst') hi...
import os.path from setuptools import setup, find_packages def read_local_file(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, 'r') as rfile: return rfile.read() metadata = {} exec(read_local_file('snug/__about__.py'), metadata) readme = read_local_file('README.rst') hi...
mit
Python
8f2fc6bbcbc7e6e9fb78021e6e0636783b98f263
add extras to setup.py
openannotation/annotator-store,nobita-isc/annotator-store,nobita-isc/annotator-store,happybelly/annotator-store,ningyifan/annotator-store,nobita-isc/annotator-store,nobita-isc/annotator-store
setup.py
setup.py
from setuptools import setup, find_packages import sys requires = [ 'Flask==0.9', 'pyes==0.19.1', 'PyJWT==0.1.4', 'iso8601==0.1.4', ] if sys.version_info < (2, 7): requires.append('ordereddict==1.1') setup( name = 'annotator', version = '0.10.0', packages = find_packages(), insta...
from setuptools import setup, find_packages import sys requires = [ 'Flask==0.9', 'pyes==0.19.1', 'PyJWT==0.1.4', 'iso8601==0.1.4', ] if sys.version_info < (2, 7): requires.append('ordereddict==1.1') setup( name = 'annotator', version = '0.10.0', packages = find_packages(), insta...
mit
Python
dd64e237e0f8e1dc4c00a371e1849ab6accb60a5
add cython dependency to try to built pylbfgs
datamade/rlr
setup.py
setup.py
#!/usr/bin/python # -*- coding: utf-8 -*- try: from setuptools import setup, Extension except ImportError : raise ImportError("setuptools module required, please go to https://pypi.python.org/pypi/setuptools and follow the instructions for installing setuptools") setup( name='rlr', url='https://githu...
#!/usr/bin/python # -*- coding: utf-8 -*- try: from setuptools import setup, Extension except ImportError : raise ImportError("setuptools module required, please go to https://pypi.python.org/pypi/setuptools and follow the instructions for installing setuptools") setup( name='rlr', url='https://githu...
bsd-3-clause
Python
7fee938e21701c09fe129fe01843e33352c5678c
Update setup script
MahjongRepository/mahjong
setup.py
setup.py
import io from distutils.core import setup def get_long_description(): """Generate a long description from the README file.""" descr = [] for fname in ('README.rst',): with io.open(fname, encoding='utf-8') as f: descr.append(f.read()) return '\n\n'.join(descr) setup( name='ma...
import io from distutils.core import setup def get_long_description(): """Generate a long description from the README file.""" descr = [] for fname in ('README.rst',): with io.open(fname, encoding='utf-8') as f: descr.append(f.read()) return '\n\n'.join(descr) setup( name='ma...
mit
Python
a28fbfd15ec86c6b9178e5c63c14dea4d12226b8
Update setup.py
materialsproject/custodian,specter119/custodian,xhqu1981/custodian,specter119/custodian,materialsproject/custodian,specter119/custodian,davidwaroquiers/custodian,materialsproject/custodian
setup.py
setup.py
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os from io import open from setuptools import setup, find_packages with open("README.rst") as f: long_desc = f.read() ind = long_desc.find("\n") long_desc = long_desc[ind + 1:] setup( ...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os from io import open from setuptools import setup, find_packages with open("README.rst") as f: long_desc = f.read() ind = long_desc.find("\n") long_desc = long_desc[ind + 1:] setup( ...
mit
Python
c9e6e9c11a56bfc04649d393bd56339e0ecce5ff
make "python setup.py test" install and run tox
davidcaste/fabtools,sociateru/fabtools,ahnjungho/fabtools,AMOSoft/fabtools,bitmonk/fabtools,fabtools/fabtools,ronnix/fabtools,badele/fabtools,hagai26/fabtools,pombredanne/fabtools,n0n0x/fabtools-python,wagigi/fabtools-python,prologic/fabtools
setup.py
setup.py
import os import re import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand def read(filename): path = os.path.join(os....
import os import re try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages def read(filename): path = os.path.join(os.path.dirname(__file__), filename) contents = open(path).read() ...
bsd-2-clause
Python
89c4863322bcfcb31242ee5123f4ed42bd7ce7f4
Add test command to setup.py again
mpkato/interleaving
setup.py
setup.py
# -*- coding:utf-8 -*- from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): import pytest ...
# -*- coding:utf-8 -*- from setuptools import setup setup( name = "interleaving", packages = ["interleaving", "interleaving.simulation"], version = "0.0.1", description = "Interleaving library for ranking evaluation", author = "Makoto P. Kato, Tomohiro Manabe", author_email = "kato@dl.kuis.kyot...
mit
Python
4472aa5b2e852d4fbb3b1287384f39f459368bad
add temporary version in setup.py (#84)
deepcharles/ruptures,deepcharles/ruptures
setup.py
setup.py
from setuptools import setup, find_packages, Extension import numpy as np from Cython.Build import cythonize ext_modules = [ Extension( "ruptures.detection._detection.ekcpd", sources=[ "ruptures/detection/_detection/ekcpd.pyx", "ruptures/detection/_detection/ekcpd_computati...
from setuptools import setup, find_packages, Extension import numpy as np from Cython.Build import cythonize ext_modules = [ Extension( "ruptures.detection._detection.ekcpd", sources=[ "ruptures/detection/_detection/ekcpd.pyx", "ruptures/detection/_detection/ekcpd_computati...
bsd-2-clause
Python
ef23394f9c0e06fb6705bc37fab28a3077fe15c8
Bump version
Sberned/djaio
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup, find_packages base = os.path.dirname(os.path.abspath(__file__)) install_requires = [ 'aiohttp==1.0.5', 'aiohttp_jinja2', 'asyncio', 'aiohttp_debugtoolbar', 'aiohttp_autoreload', 'schematics>=2.0.0.dev2', 'aiopg==0.11.0', ] test...
#!/usr/bin/env python import os from setuptools import setup, find_packages base = os.path.dirname(os.path.abspath(__file__)) install_requires = [ 'aiohttp==1.0.5', 'aiohttp_jinja2', 'asyncio', 'aiohttp_debugtoolbar', 'aiohttp_autoreload', 'schematics>=2.0.0.dev2', 'aiopg==0.11.0', ] test...
apache-2.0
Python
b951bb360f14da66ebb30d31c863ec811955f3cb
Set upper limits on some dependency versions. (#568)
transientskp/tkp,transientskp/tkp
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = """ astropy<3.0.0 colorlog numpy>=1.3.0,<1.17.0 psycopg2 python-casacore python-dateutil>=1.4.1 pytz scipy>=0.7.0,<1.3.0 sqlalchemy>=1.0.0 alembic monotonic """.split() extras_require =...
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = """ astropy colorlog numpy>=1.3.0 psycopg2 python-casacore python-dateutil>=1.4.1 pytz scipy>=0.7.0 sqlalchemy>=1.0.0 alembic monotonic """.split() extras_require = { 'monetdb': ['s...
bsd-2-clause
Python
8a645a839d40f1c95b5007d8128a636f738649a4
Bump version
Organice/django-organice-theme-rssk,Organice/django-organice-theme-rssk,Organice/django-organice-theme-rssk,Organice/django-organice-theme-rssk
setup.py
setup.py
#!/usr/bin/env python # # Copyright 2014 Peter Bittner <django@bittner.it> # # 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 require...
#!/usr/bin/env python # # Copyright 2014 Peter Bittner <django@bittner.it> # # 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 require...
apache-2.0
Python
026caa995dee9115956d1a25c49b2c26647d876f
Update setup.py
duverse/django-cdnjs
setup.py
setup.py
from setuptools import setup, find_packages import os import codecs def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() setup( name='django-cdnjs', packages=find_packages(), version='2017.10.19-...
from setuptools import setup, find_packages import os import codecs def read(*parts): filename = os.path.join(os.path.dirname(__file__), *parts) with codecs.open(filename, encoding='utf-8') as fp: return fp.read() setup( name='django-cdnjs', packages=find_packages(), version='2017.10.19-...
mit
Python
530aeadbc686f436e907ca8d111b5a72788906ee
Bump version to 1.0.4.dev
deepmind/graph_nets
setup.py
setup.py
# Copyright 2018 The GraphNets 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 required by applicabl...
# Copyright 2018 The GraphNets 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 required by applicabl...
apache-2.0
Python
3621089d5ed6374e89138be01f5796ddf1727f69
Update version to 4.0.8
pmaigutyak/mp-shop,pmaigutyak/mp-shop,pmaigutyak/mp-shop
setup.py
setup.py
from setuptools import setup, find_packages __version__ = '4.0.8' with open('requirements.txt') as f: requires = f.read().splitlines() url = 'https://github.com/pmaigutyak/mp-shop' setup( name='django-mp-shop', version=__version__, description='Django shop apps', long_description=open('READM...
from setuptools import setup, find_packages __version__ = '4.0.7' with open('requirements.txt') as f: requires = f.read().splitlines() url = 'https://github.com/pmaigutyak/mp-shop' setup( name='django-mp-shop', version=__version__, description='Django shop apps', long_description=open('READM...
isc
Python
4affa5053a3268d0becc9d2af849ecefa1da7c75
Fix for setup.py TypeError
areski/django-nvd3,chiu/django-nvd3,lgp171188/django-nvd3,chiu/django-nvd3,marcogiusti/django-nvd3,lgp171188/django-nvd3,areski/django-nvd3,chiu/django-nvd3,areski/django-nvd3,lgp171188/django-nvd3
setup.py
setup.py
from setuptools import setup, find_packages import django_nvd3 import os import re def read(*parts): return open(os.path.join(os.path.dirname(__file__), *parts)).read() def parse_requirements(file_name): requirements = [] for line in open(file_name, 'r').read().split('\n'): if re.match(r'(\s*#)|...
from setuptools import setup, find_packages import django_nvd3 import os import codecs import re def read(*parts): return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read() def parse_requirements(file_name): requirements = [] for line in open(file_name, 'r').read().split('\n'): ...
mit
Python
baf1ef102ad367b1997c17dc2ca815ba94e13b38
Bump to next dev version
tswicegood/django-timelinejs2
setup.py
setup.py
from distutils.core import setup import os # Stolen from django-registration # Compile the list of packages available, because distutils doesn't have # an easy way to do this. packages, data_files = [], [] root_dir = os.path.dirname(__file__) if root_dir: os.chdir(root_dir) for dirpath, dirnames, filenames in os....
from distutils.core import setup import os # Stolen from django-registration # Compile the list of packages available, because distutils doesn't have # an easy way to do this. packages, data_files = [], [] root_dir = os.path.dirname(__file__) if root_dir: os.chdir(root_dir) for dirpath, dirnames, filenames in os....
apache-2.0
Python
b64d17589b321451237314fd8f5615590d66a93d
Make classifiers a list
dirn/When.py
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 settings = dict() # Publish if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() settings.update( name='whenpy'...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup settings = dict() # Publish if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() settings.update( name='whenpy'...
bsd-3-clause
Python
0595acfc90fd432007603ec6c318380d3ef174a0
Add 2 applicable Trove classifiers
moreati/python-niceware
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] test_requirements = [ 'flake8', 'pytest', ] setup( name='nic...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] test_requirements = [ 'flake8', 'pytest', ] setup( name='nic...
mit
Python
e8069c8ff771b766757a1a96bc741a4073fcf9c1
add wheel support
cyberdelia/atomic
setup.py
setup.py
# -*- coding: utf-8 -*- import io import os from setuptools.dist import Distribution from setuptools import setup, find_packages try: from atomic import ffi except ImportError: ext_modules=[] else: ext_modules=[ffi.verifier.get_extension()] class BinaryDistribution(Distribution): def is_pure(self): ...
# -*- coding: utf-8 -*- import io from setuptools import setup, find_packages try: from atomic import ffi except ImportError: ext_modules=[] else: ext_modules=[ffi.verifier.get_extension()] with io.open('README.rst', encoding='utf-8') as f: readme = f.read() setup( name='atomic', version='0....
mit
Python
16a9a9ad4554c2f727be5a833c388e13a77a8cfe
add lark file to data files
amplify-education/python-hcl2
setup.py
setup.py
"""setup.py controls the build, testing, and distribution of the egg""" import re import os.path from setuptools import setup, find_packages VERSION_REGEX = re.compile(r""" ^__version__\s=\s ['"](?P<version>.*?)['"] """, re.MULTILINE | re.VERBOSE) VERSION_FILE = os.path.join("hcl2", "version.py") def get_lo...
"""setup.py controls the build, testing, and distribution of the egg""" import re import os.path from setuptools import setup, find_packages VERSION_REGEX = re.compile(r""" ^__version__\s=\s ['"](?P<version>.*?)['"] """, re.MULTILINE | re.VERBOSE) VERSION_FILE = os.path.join("hcl2", "version.py") def get_lo...
mit
Python
2e6187224724780d5a026b6bd228c0fda155e338
Add test dependency towards extension-template
openfisca/openfisca-core,openfisca/openfisca-core
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'OpenFisca-Core', version = '12.1.4', author = 'OpenFisca Team', author_email = 'contact@openfisca.fr', classifiers = [ "Development Status :: 2 - Pre-Alpha", "License :: OSI ...
#! /usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = 'OpenFisca-Core', version = '12.1.4', author = 'OpenFisca Team', author_email = 'contact@openfisca.fr', classifiers = [ "Development Status :: 2 - Pre-Alpha", "License :: OSI ...
agpl-3.0
Python
e4dd1da8f2fdfa2f4071ab1796b31147f12d00a0
Add Python 3.2 trove classifier
kisielk/covenant,kisielk/covenant
setup.py
setup.py
from setuptools import setup setup(name='covenant', version='0.1.0', description='Code contracts for Python 3', author='Kamil Kisiel', author_email='kamil@kamilkisiel.net', url='http://pypi.python.org/pypi/covenant', license="BSD License", packages=["covenant"], keywords...
from setuptools import setup setup(name='covenant', version='0.1.0', description='Code contracts for Python 3', author='Kamil Kisiel', author_email='kamil@kamilkisiel.net', url='http://pypi.python.org/pypi/covenant', license="BSD License", packages=["covenant"], keywords...
mit
Python
8fd223aac8bb3255efeeac47502484fe3801c0ca
Fix travis
openfisca/openfisca-tunisia,openfisca/openfisca-tunisia
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- """Tunisia specific model for OpenFisca -- a versatile microsimulation free software""" from setuptools import setup, find_packages classifiers = """\ Development Status :: 2 - Pre-Alpha License :: OSI Approved :: GNU Affero General Public License v3 Operating System...
#! /usr/bin/env python # -*- coding: utf-8 -*- """Tunisia specific model for OpenFisca -- a versatile microsimulation free software""" from setuptools import setup, find_packages classifiers = """\ Development Status :: 2 - Pre-Alpha License :: OSI Approved :: GNU Affero General Public License v3 Operating System...
agpl-3.0
Python
9f7a6e0a55291aa0d89348b401569179163b6eb6
Undo a 2to3 change
ligonier/django-athumb
setup.py
setup.py
from distutils.core import setup import athumb long_description = open('README.rst').read() setup( name='django-athumb', version=athumb.VERSION, packages=['athumb', 'athumb.backends', 'athumb.management', 'athumb.management.commands', 'athumb.templatetags', 'athumb.upload_handl...
from distutils.core import setup from . import athumb long_description = open('README.rst').read() setup( name='django-athumb', version=athumb.VERSION, packages=['athumb', 'athumb.backends', 'athumb.management', 'athumb.management.commands', 'athumb.templatetags', 'athumb.uploa...
bsd-3-clause
Python
44b9649df3418713b8ef5ae8e1f2990a92a48907
Patch 0.2.1 to remove print
gilesbrown/python-icapservice,gilesbrown/python-icapservice
setup.py
setup.py
from setuptools import setup setup( name='icapservice', version='0.2.1', description='ICAP service library for Python', author='Giles Brown', author_email='giles_brown@hotmail.com', url='https://github.com/gilesbrown/icapservice', license='MIT', packages=['icapservice'], zip_safe=F...
from setuptools import setup setup( name='icapservice', version='0.2.0', description='ICAP service library for Python', author='Giles Brown', author_email='giles_brown@hotmail.com', url='https://github.com/gilesbrown/icapservice', license='MIT', packages=['icapservice'], zip_safe=F...
mit
Python
d79145f60abbecda2b681525d40d972e93d18109
Bump to 0.3.0
managedbyq/mbq.metrics
setup.py
setup.py
import codecs import setuptools __version__ = '0.3.0' with codecs.open('README.rst', 'r', 'utf-8') as f: readme = f.read() setuptools.setup( name='mbq.metrics', long_description=readme, version=__version__, license='Apache 2.0', url='https://github.com/managedbyq/mbq.metrics', author='Man...
import codecs import setuptools __version__ = '0.2.1' with codecs.open('README.rst', 'r', 'utf-8') as f: readme = f.read() setuptools.setup( name='mbq.metrics', long_description=readme, version=__version__, license='Apache 2.0', url='https://github.com/managedbyq/mbq.metrics', author='Man...
apache-2.0
Python
e1c76a8b4b052d15d68cd282eee86364a348667c
bump version to 0.1.1. we're really coming along.
maw/python-kestrel
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup(name="kestrel", version="0.1.1", description="Oversimple library to talk to Kestrel", author="Michael Wolf", author_email="maw+python-kestrel@pobox.com", keywords="queues kestrel memcache", ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup(name="kestrel", version="0.1", description="Oversimple library to talk to Kestrel", author="Michael Wolf", author_email="maw+python-kestrel@pobox.com", keywords="queues kestrel memcache", ...
mit
Python
5b1ae941f00420d04b18d61b0e5f8523086e07c0
Bump version
netbek/chrys,netbek/chrys,netbek/chrys
setup.py
setup.py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="chrys", version="3.0.1", author="Hein Bekker", author_email="hein@netbek.co.za", description="A collection of color palettes for mapping and visualisation", long_description=long_descr...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="chrys", version="3.0.0", author="Hein Bekker", author_email="hein@netbek.co.za", description="A collection of color palettes for mapping and visualisation", long_description=long_descr...
bsd-3-clause
Python
55bc397d6c2884fa68e3c6caf9d79ea27af79a6e
add requirements to setup.py
cwacek/cobertura-clover-transform
setup.py
setup.py
from setuptools import setup, find_packages setup( name="cobertura-clover-transform", version='1.1.1', packages=find_packages(), include_package_data=True, description="Tools for transforming Cobertura test " "coverage XML into Clover-style XML", install_requires=['lxml'], a...
from setuptools import setup, find_packages setup( name="cobertura-clover-transform", version='1.1.1', packages=find_packages(), include_package_data=True, description="Tools for transforming Cobertura test " "coverage XML into Clover-style XML", author='Chris Wacek', author...
mit
Python
2c655c86d16b427d596cda64ef95d5ea48dc9470
Update version for next release 0.2
elliotpeele/prism_rest_client
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.txt')).read() requires = [ 'requests', ] setup(name='prism_rest_client', version='0.2', description='prism_rest_client', long_description=REA...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.txt')).read() requires = [ 'requests', ] setup(name='prism_rest_client', version='0.1', description='prism_rest_client', long_description=REA...
mit
Python
375888254dbb27cdf460e1d31141c4edfb3d314f
添加pyshere到setup.py
lloy/api-agent
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages __author__ = 'Hardy.zheng' __version = '0.1' setup( name='cdsagent', version=__version, description='cdsagent ', author='hardy.Zheng', author_email='wei.zheng@yun-idc.com', install_requires=[ 'eventlet>=0.13.0', ...
#!/usr/bin/env python from setuptools import setup, find_packages __author__ = 'Hardy.zheng' __version = '0.1' setup( name='cdsagent', version=__version, description='cdsagent ', author='hardy.Zheng', author_email='wei.zheng@yun-idc.com', install_requires=[ 'eventlet>=0.13.0', ...
apache-2.0
Python
6edfa553e32dfefb0494c453b60798d754558fee
Remove matplotlib requirement
SamStudio8/gretel
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools requirements = [ "numpy", "hanselx", "pysam", "PyVCF", ] test_requirements = [ ] setuptools.setup( name="gretel", version="0.0.1a", url="https://github.com/samstudio8/gretel", description="An algorithm for recovering p...
#!/usr/bin/env python # -*- coding: utf-8 -*- import setuptools requirements = [ "numpy", "hanselx", "pysam", "PyVCF", "matplotlib", ] test_requirements = [ ] setuptools.setup( name="gretel", version="0.0.1a", url="https://github.com/samstudio8/gretel", description="An algorith...
mit
Python
356f4caabf4b6c455c9045102594b0f72cea7016
Bump version.
mwchase/class-namespaces,mwchase/class-namespaces
setup.py
setup.py
"""A setuptools based setup module.""" # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open as c_open from os import path HERE = path.abspath(path.dirname(__file__)) # Get the long description from the README file with c_open(pat...
"""A setuptools based setup module.""" # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open as c_open from os import path HERE = path.abspath(path.dirname(__file__)) # Get the long description from the README file with c_open(pat...
mit
Python
42b45b7f5629c235cd6d3931221d241727842e06
Update version to 1.0.7
Xuanwo/qingcloud-sdk-python,yunify/qingcloud-sdk-python,markduan/qingcloud-sdk-python
setup.py
setup.py
# coding:utf-8 import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.version_info < (2, 6): error = 'ERROR: qingcloud-sdk requires Python Version 2.6 or above.' print >> sys.stderr, error sys.exit(1) setup( name = 'qingcloud-sdk', versio...
# coding:utf-8 import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.version_info < (2, 6): error = 'ERROR: qingcloud-sdk requires Python Version 2.6 or above.' print >> sys.stderr, error sys.exit(1) setup( name = 'qingcloud-sdk', versio...
apache-2.0
Python
308d456a39f07b150d75c4a957aaf6f0765ac83f
fix error in setup.py
chrisb2/pi_ina219
setup.py
setup.py
try: # Try using ez_setup to install setuptools if not already installed. from ez_setup import use_setuptools use_setuptools() except ImportError: # Ignore import error and assume Python 3 which already has setuptools. pass from setuptools import setup import sys # Define required packages. requi...
try: # Try using ez_setup to install setuptools if not already installed. from ez_setup import use_setuptools use_setuptools() except ImportError: # Ignore import error and assume Python 3 which already has setuptools. pass from setuptools import setup import sys # Define required packages. requi...
mit
Python
c8e8dd74bc8801b6c97932a81180960319714046
Increment version to 0.0.2
marekjm/diaspy
setup.py
setup.py
from setuptools import setup, find_packages setup(name='diaspy', version='0.0.2', author='Moritz Kiefer', author_email='moritz.kiefer@gmail.com', url='https://github.com/Javafant/diaspora-api', description='A python api to the social network diaspora', packages=find_packages(), ...
from setuptools import setup, find_packages setup(name='diaspy', version='0.0.1', author='Moritz Kiefer', author_email='moritz.kiefer@gmail.com', packages=find_packages(), install_requires=['requests'] )
mit
Python
75318d6c8cc843112edb875359afb1492858765c
Fix version conflict
arcticfoxnv/slackminion,arcticfoxnv/slackminion
setup.py
setup.py
from setuptools import setup, find_packages from slackminion.plugins.core import version setup( name='slackminion', version=version, packages=find_packages(exclude=['test_plugins']), url='https://github.com/arcticfoxnv/slackminion', license='MIT', author='Nick King', ...
from setuptools import setup, find_packages from slackminion.plugins.core import version setup( name='slackminion', version=version, packages=find_packages(exclude=['test_plugins']), url='https://github.com/arcticfoxnv/slackminion', license='MIT', author='Nick King', ...
mit
Python
a85494c6e9db0458ca50a59232fca508ba9619f5
Increment version.
consbio/parserutils
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', 'parserutils.tests.tes...
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', 'parserutils.tests.tes...
bsd-3-clause
Python
d657f8416dddedcd300fa451e6f510b0a639f61b
Bump minimum version for google-api-core to 1.14.0. (#8709)
googleapis/python-dataproc,googleapis/python-dataproc
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
c2a863d2b6da40a9cd23d31390b7510cf6786cd6
Refactor setup.py
eiginn/passpie,marcwebbie/passpie,scorphus/passpie,scorphus/passpie,eiginn/passpie,marcwebbie/passpie
setup.py
setup.py
#!/usr/bin/env python import os import sys try: from setuptools import setup, Command, find_packages except ImportError: from distutils.core import setup, Command, find_packages __version__ = "1.0" if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') os.system('python setup.py b...
#!/usr/bin/env python import os import sys try: from setuptools import setup, Command, find_packages except ImportError: from distutils.core import setup, Command, find_packages __version__ = "1.0" if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') os.system('python setup.py b...
mit
Python
cf42122aa4e82c22bb26140921bb7468df159636
Update classifiers
yprez/django-logentry-admin,yprez/django-logentry-admin
setup.py
setup.py
from setuptools import setup with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='1.0.6', packages=['logentry_admin'], package_data={ ...
from setuptools import setup with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='1.0.6', packages=['logentry_admin'], package_data={ ...
isc
Python
ed8dd36a07876a711a62eae98d6af79322801b03
Make sure the shared library doesn't appear in source builds, using various hacks
sklam/llvmlite,markdewing/llvmlite,numba/llvmlite,pitrou/llvmlite,ssarangi/llvmlite,numba/llvmlite,m-labs/llvmlite,m-labs/llvmlite,ssarangi/llvmlite,ssarangi/llvmlite,m-labs/llvmlite,sklam/llvmlite,markdewing/llvmlite,sklam/llvmlite,numba/llvmlite,markdewing/llvmlite,squisher/llvmlite,numba/llvmlite,m-labs/llvmlite,mar...
setup.py
setup.py
try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension from distutils.spawn import spawn from distutils.command.build import build from distutils.command.build_ext import build_ext import os import sys from llvmlite.utils import get_library_name here_dir...
try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension from distutils.spawn import spawn from distutils.command.build import build import os import sys from llvmlite.utils import get_library_name here_dir = os.path.dirname(__file__) class LlvmliteBuild...
bsd-2-clause
Python
5a3df5efb35f55d136d2364402f1c9009b85e6a4
Bump version
hammerlab/mhctools,hammerlab/mhctools
setup.py
setup.py
# Copyright (c) 2014. Mount Sinai School of Medicine # # 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...
# Copyright (c) 2014. Mount Sinai School of Medicine # # 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
a4b2c2f46744bc10b138612adc18f8f32d682b94
Fix "ImportError: cannot import name wraps" on trusty
Rayman/ros-get,Rayman/ros-get
setup.py
setup.py
#!/usr/bin/env python import os import re from setuptools import setup, find_packages def get_ini_variable(name): with open(os.path.join(os.path.dirname(__file__), 'src', 'ros_get', '__init__.py')) as f: return re.compile(r".*%s = '(.*?)'" % name, re.S).match(f.read()).group(1) with open(os.path.join(os...
#!/usr/bin/env python import os import re from setuptools import setup, find_packages def get_ini_variable(name): with open(os.path.join(os.path.dirname(__file__), 'src', 'ros_get', '__init__.py')) as f: return re.compile(r".*%s = '(.*?)'" % name, re.S).match(f.read()).group(1) with open(os.path.join(os...
mit
Python
15f0275b7b8b75bcb100c26dc48392efc90a392e
Bump version.
sunscrapers/djet
setup.py
setup.py
import codecs from setuptools import setup requirements = [i.strip() for i in open('requirements.txt').readlines()] setup( name='djet', version='0.1.0', description='Set of helpers for easy testing of Django apps.', long_description=codecs.open('README.rst', encoding='utf-8').read(), license='MIT'...
import codecs from setuptools import setup requirements = [i.strip() for i in open('requirements.txt').readlines()] setup( name='djet', version='0.0.10', description='Set of helpers for easy testing of Django apps.', long_description=codecs.open('README.rst', encoding='utf-8').read(), license='MIT...
mit
Python
c62bcab18e38712ce2346cc5fe11f7c01759a431
bump version number
facciocose/django-italian-utils
setup.py
setup.py
import os from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-italian-utils', version='0.3.3', packages=find_packages(), include_package_data=True, license='MIT License', description='Libreria di utility per sempli...
import os from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='django-italian-utils', version='0.3.2', packages=find_packages(), include_package_data=True, license='MIT License', description='Libreria di utility per sempli...
mit
Python
a98511d4028b678333a56edd293c5905d976ac88
Fix typo in setup.py
robolivable/prettystring
setup.py
setup.py
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
mit
Python
602ec25dcb8934da3d8f3eea3f21d4fdaf93ac37
add 'mock'
hpk42/p4p
setup.py
setup.py
#! /usr/bin/env python import os, sys from setuptools import setup, find_packages if __name__ == "__main__": here = os.path.abspath(".") README = open(os.path.join(here, 'README.rst')).read() install_requires = ["webob", "simplejson", "pycrypto", "requests", "twisted", "mock"] if sys.version_info < (...
#! /usr/bin/env python import os, sys from setuptools import setup, find_packages if __name__ == "__main__": here = os.path.abspath(".") README = open(os.path.join(here, 'README.rst')).read() install_requires = ["webob", "simplejson", "pycrypto", "requests", "twisted"] if sys.version_info < (2,7): ...
mit
Python
4130eb4652f76b90bcfd929fd2fcb15c463d3634
Improve setup.py, support for extras_require, replace ' with "
farzadghanei/statsd-metrics
setup.py
setup.py
#!/usr/bin/env python """ statsdmetrics -------------- Data metrics for Statsd. """ from __future__ import print_function import os from os.path import dirname try: import setuptools from setuptools import setup except ImportError: setuptools = None from distutils.core import setup try: import...
#!/usr/bin/env python """ statsdmetrics -------------- Data metrics for Statsd. """ from __future__ import print_function import os try: import setuptools from setuptools import setup except ImportError: setuptools = None from distutils.core import setup try: import distutilazy.test import...
mit
Python
d614dbe8e1d96c9029fc64f72da5acb85a53a5ac
Update setup.py
yunojuno/django-onfido
setup.py
setup.py
# -*- coding: utf-8 -*- from os import path, pardir, chdir from setuptools import setup, find_packages README = open(path.join(path.dirname(__file__), 'README.rst')).read() # requirements.txt must be included in MANIFEST.in and include_package_data must be True # in order for this to work; ensures that tox can use the...
# -*- coding: utf-8 -*- from os import path, pardir, chdir from setuptools import setup, find_packages README = open(path.join(path.dirname(__file__), 'README.rst')).read() # requirements.txt must be included in MANIFEST.in and include_package_data must be True # in order for this to work; ensures that tox can use the...
mit
Python
19f4fcf2acbedd78b4510b8260e95f7d389f812b
Fix the version of pycodestyle to 2.5.0
hhatto/autopep8,hhatto/autopep8
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup for autopep8.""" import ast import io from setuptools import setup INSTALL_REQUIRES = ( ['pycodestyle == 2.5.0'] ) def version(): """Return version string.""" with io.open('autopep8.py') as input_file: for line in input_file: ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup for autopep8.""" import ast import io from setuptools import setup INSTALL_REQUIRES = ( ['pycodestyle >= 2.5.0'] ) def version(): """Return version string.""" with io.open('autopep8.py') as input_file: for line in input_file: ...
mit
Python
e1f874902ee338ef779cbbf10d5d68d39630ac97
add a newline for pep8 pass
BrianHicks/emit,BrianHicks/emit,BrianHicks/emit
setup.py
setup.py
import os from setuptools import setup, find_packages import emit def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: # for tox return '' setup( # System information name='emit', version=emit.__version__, packages=find_pac...
import os from setuptools import setup, find_packages import emit def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: # for tox return '' setup( # System information name='emit', version=emit.__version__, packages=find_pack...
mit
Python
7f688edf040a8bbb4bb03f408bd1c4cfab6b19ef
Update Version
pirsquare/BigQuery-GCS
setup.py
setup.py
from setuptools import find_packages from setuptools import setup VERSION = '0.0.2' setup_args = dict( name='BigQuery-GCS', description='Export Large Results from BigQuery to Google Cloud Storage', url='https://github.com/pirsquare/BigQuery-GCS', version=VERSION, license='MIT', packages=find_p...
from setuptools import find_packages from setuptools import setup VERSION = '0.0.1' setup_args = dict( name='BigQuery-GCS', description='Export Large Results from BigQuery to Google Cloud Storage', url='https://github.com/pirsquare/BigQuery-GCS', version=VERSION, license='MIT', packages=find_p...
mit
Python
dd949fdcd9834400f0534c054b56cb4d825a2be2
Add package_data to setup.py
rizumu/django-paste-organizer
setup.py
setup.py
from setuptools import setup, find_packages version = '0.1.0' setup( name='django-writeboards', version=version, description="Manage 123.writeboard.com hosted writeboards in one place. Allows easier team collaboration on multiple writeboardsself.", long_description=read('README'), author='Thomas S...
from setuptools import setup, find_packages version = '0.1.0' setup( name='django-writeboards', version=version, description="Manage 123.writeboard.com hosted writeboards in one place. Allows easier team collaboration on multiple writeboardsself.", long_description=read('README'), classifiers=[ ...
mit
Python