<commit_before>import os
import numpy as np
from sklearn import svm
import pylab as pl
import random

def cross_validation(n, features, labels, penalty):
    """return the scores for 'n' fold cross validation

        Args:
            n: number of folds
            features: feature matrix
            labels: labels for feature matrix
            penalty: penalty parameter for classifier

        Returns:
            scores for this permutation test
    """
    clf = svm.SVC(kernel='linear', C=penalty).fit(features, labels)
    X_folds = np.array_split(features, n)
    y_folds = np.array_split(labels, n)
    scores = list()
    for k in xrange(n):
        X_train = list(X_folds)
        X_test  = X_train.pop(k)
        X_train = np.concatenate(X_train)
        y_train = list(y_folds)
        y_test  = y_train.pop(k)
        y_train = np.concatenate(y_train)
        scores.append(clf.fit(X_train, y_train).score(X_test, y_test))
    return np.array(scores)

def score_stat(features, labels, test_size, penalty):
    """Train a SVM and get the score of classifying test_size data points

        Args:
            features: feature matrix
            labels: labels for feature matrix
            test_size: size of the testing set
            penalty: penalty parameter for classifier

        Returns:
            accuracy of the model's classification of test_size data points
    """
    clf = svm.SVC(kernel='linear', C=penalty).fit(features[:-test_size], labels[:-test_size])
    score = clf.score(features[-test_size:], labels[-test_size:])
    return score

def permutation_test(num_sims, folds, test_size, features, labels):
    """Run a permutation test

        Args:
            num_sims: number of simulations to run
            folds: number of folds to use for cross validation
            features: feature matrix
            labels: labels for feature matrix

        Returns:
            p-value for the permutation test, i.e. how many tests had
            a test statistic greater than or equal to the original
            test statistic
    """
    la = labels.copy()
    test_stat = score_stat(features, la, test_size)
    count = 0
    for p in xrange(0, num_sims):
        random.shuffle(la)
        t = score_stat(features, la, test_size)
        if t >= test_stat:
            count += 1
    pvalue = count / float(num_sims)
    return pvalue
<commit_msg>fix permutation test<commit_after>import os
import numpy as np
from sklearn import svm
import pylab as pl
import random

def cross_validation(n, features, labels, penalty):
    """return the scores for 'n' fold cross validation

        Args:
            n: number of folds
            features: feature matrix
            labels: labels for feature matrix
            penalty: penalty parameter for classifier

        Returns:
            scores for this permutation test
    """
    clf = svm.SVC(kernel='linear', C=penalty).fit(features, labels)
    X_folds = np.array_split(features, n)
    y_folds = np.array_split(labels, n)
    scores = list()
    for k in xrange(n):
        X_train = list(X_folds)
        X_test  = X_train.pop(k)
        X_train = np.concatenate(X_train)
        y_train = list(y_folds)
        y_test  = y_train.pop(k)
        y_train = np.concatenate(y_train)
        scores.append(clf.fit(X_train, y_train).score(X_test, y_test))
    return np.array(scores)

def score_stat(features, labels, test_size, penalty):
    """Train a SVM and get the score of classifying test_size data points

        Args:
            features: feature matrix
            labels: labels for feature matrix
            test_size: size of the testing set
            penalty: penalty parameter for classifier

        Returns:
            accuracy of the model's classification of test_size data points
    """
    clf = svm.SVC(kernel='linear', C=penalty).fit(features[:-test_size], labels[:-test_size])
    score = clf.score(features[-test_size:], labels[-test_size:])
    return score

def permutation_test(num_sims, test_size, features, labels):
    """Run a permutation test

        Args:
            num_sims: number of simulations to run
            test_size: number of data points to test over
            features: feature matrix
            labels: labels for feature matrix

        Returns:
            p-value for the permutation test, i.e. how many tests had
            a test statistic greater than or equal to the original
            test statistic
    """
    la = labels.copy()
    test_stat = score_stat(features, la, test_size)
    count = 0
    for p in xrange(0, num_sims):
        random.shuffle(la)
        t = score_stat(features, la, test_size, 1.0)
        if t >= test_stat:
            count += 1
    pvalue = count / float(num_sims)
    return pvalue
<|endoftext|>


<commit_before>from flask import Flask, request, jsonify
from sense_hat import SenseHat
__author__ = 'agrimasthana'

sense = SenseHat()
app = Flask(__name__)

@app.route("/setpixels", methods=['POST'])
def setpixels():
    _pixels = request.json['pxls']
    try:
	sense.clear()
        sense.set_pixels(_pixels)
    except Exception as error:
        return error
    return jsonify({'status': 'done'})

@app.route("/setpixel", methods=['POST'])
def setpixel():
    _pixel = request.json['pxls']
    try:
	sense.clear()
        sense.set_pixels([_pixel]*64)
    except Exception as error:
        return error
    return jsonify({'status': 'done'})

if __name__ == "__main__":
    app.run(host='0.0.0.0')
<commit_msg>added ability to clear led scren<commit_after>from flask import Flask, request, jsonify
from sense_hat import SenseHat
__author__ = 'agrimasthana'

sense = SenseHat()
app = Flask(__name__)

@app.route("/setpixels", methods=['POST'])
def setpixels():
    _pixels = request.json['pxls']
    try:
        sense.clear()
        sense.set_pixels(_pixels)
    except Exception as error:
        return error
    return jsonify({'status': 'done'})

@app.route("/setpixel", methods=['POST'])
def setpixel():
    _pixel = request.json['pxls']
    try:
        sense.clear()
        sense.set_pixels([_pixel]*64)
    except Exception as error:
        return error
    return jsonify({'status': 'done'})

@app.route("/clear", methods=['GET'])
def setpixel():
    try:
        sense.clear()
    except Exception as error:
        return error
    return jsonify({'status': 'done'})

if __name__ == "__main__":
    app.run(host='0.0.0.0')
<|endoftext|>


<commit_before>from CTFd import create_app

app = create_app()
app.run(debug=True, threaded=True, host="0.0.0.0", port=4000)
<commit_msg>Changed some settings for deployment purposes<commit_after>from CTFd import create_app

app = create_app()
app.run(debug=True, threaded=True, host="0.0.0.0", port=80)

<|endoftext|>


<commit_before>from flask import Flask
from flask import render_template
from flask import request
import cPickle as pickle
import numpy as np
import json
import time
import dateutil.parser
import argparse
from random import shuffle

app = Flask(__name__)

def papers_shuffle():
  ks = db.keys()
  shuffle(ks)
  return [db[k] for k in ks]

def date_sort():
  scores = []
  for pid in db:
    p = db[pid]
    timestruct = dateutil.parser.parse(p['updated'])
    scores.append((timestruct, p))
  scores.sort(reverse=True)
  out = [sp[1] for sp in scores]
  return out

def papers_search_old(qraw):
  """ deprecated, slow, brute-force search """
  qparts = qraw.lower().strip().split() # split by spaces

  # brute force search with unigrams, weeee
  scores = []
  for pid in db:
    p = db[pid]
    score = 0
    for q in qparts:
      # search titles
      if q in p['title'].lower():
        score += 5.0
      # search authors
      score += sum(3.0 for x in p['authors'] if q in x['name'].lower())
      # search abstracts
      score += min(3.0, 1.0 * p['summary'].lower().count(q)) # robustify with min
    scores.append((score, p))
  scores.sort(reverse=True) # descending
  out = [x[1] for x in scores if x[0] > 0]
  return out

def papers_search(qraw):
  qparts = qraw.lower().strip().split() # split by spaces
  # use reverse index and accumulate scores
  scores = []
  for pid in db:
    p = db[pid]
    score = sum(p['search_dict'].get(q,0) for q in qparts)
    scores.append((score, p))
  scores.sort(reverse=True) # descending
  out = [x[1] for x in scores if x[0] > 0]
  return out

def papers_similar(pid):
  if pid in tfidf['ptoi']:
    ix0 = tfidf['ptoi'][pid]
    xquery = X[ix0, np.newaxis]
    ds = np.asarray(np.dot(X, xquery.T)).ravel() # L2 normalized tfidf vectors
    scores = [(ds[i], tfidf['pids'][i]) for i in xrange(X.shape[0])]
    scores.sort(reverse=True) # descending
    out = [db[sp[1]] for sp in scores]
    return out
  else:
    return [db[pid]] # err wat?

def encode_json(ps, n=10):

  ret = []
  for i in xrange(min(len(ps),n)):
    p = ps[i]
    struct = {}
    struct['title'] = p['title']
    struct['pid'] = p['rawid']
    struct['authors'] = [a['name'] for a in p['authors']]
    struct['link'] = p['link']
    struct['abstract'] = p['summary']
    struct['img'] = '/static/thumbs/' + p['rawid'] + '.pdf.jpg'
    struct['tags'] = [t['term'] for t in p['tags']]

    timestruct = dateutil.parser.parse(p['updated'])
    struct['published_time'] = '%s/%s/%s' % (timestruct.month, timestruct.day, timestruct.year)

    cc = p.get('arxiv_comment', '')
    if len(cc) > 100:
      cc = cc[:100] + '...' # crop very long comments
    struct['comment'] = cc

    ret.append(struct)
  return ret

@app.route("/")
@app.route("/<request_pid>")
def intmain(request_pid=None):
  if request_pid == 'favicon.ico': return '' # must be better way, todo
  if request_pid == 'robots.txt': return '' # must be better way, todo

  if request_pid is None:
    papers = papers_shuffle() # perform the query and get sorted documents
  else:
    papers = papers_similar(request_pid)

  ret = encode_json(papers, args.num_results) # encode the top few to json
  return render_template('main.html', papers=ret, numpapers=len(db))

@app.route("/search", methods=['GET'])
def search():
  q = request.args.get('q', '') # get the search request
  papers = papers_search(q) # perform the query and get sorted documents
  ret = encode_json(papers, args.num_results) # encode the top few to json
  return render_template('main.html', papers=ret, numpapers=len(db)) # weeee

if __name__ == "__main__":

  parser = argparse.ArgumentParser()
  parser.add_argument('-p', '--prod', dest='prod', action='store_true', help='run in prod?')
  parser.add_argument('-r', '--num_results', dest='num_results', type=int, default=20, help='number of results to return per query')
  args = parser.parse_args()
  print args

  print 'loading db.p...'
  db = pickle.load(open('db.p', 'rb'))

  print 'loading tfidf.p...'
  tfidf = pickle.load(open("tfidf.p", "rb"))
  X = tfidf['X'].todense()
  vocab = tfidf['vocab']
  idf = tfidf['idf']

  # some utilities for creating a search index for faster search

  punc = "'!\"#$%&\'()*+,./:;<=>?@[\\]^_`{|}~'" # removed hyphen from string.punctuation
  trans_table = {ord(c): None for c in punc}
  def makedict(s, forceidf=None):
    words = s.lower().translate(trans_table).strip().split()
    out = {}
    for w in words:
      if forceidf is None:
        if w in vocab:
          # we have idf for this
          idfval = idf[vocab[w]]
        else:
          idfval = 1.0 # assume idf 1.0 (low)
      else:
        idfval = forceidf
      out[w] = idfval # note, we're overwriting, so no adding up
    return out

  def merge_dicts(dlist):
    out = {}
    for d in dlist:
      for k,v in d.iteritems():
        out[k] = out.get(k,0) + v
    return out

  print 'building an index for faster search...'
  for pid in db:
    p = db[pid]
    dict_title = makedict(p['title'])
    dict_authors = makedict(' '.join(x['name'] for x in p['authors']), 10.0)
    dict_summary = makedict(p['summary'])
    p['search_dict'] = merge_dicts([dict_title, dict_authors, dict_summary])

  #import code; code.interact(local=locals())
  print 'starting!'
  if args.prod:
    app.run(host='0.0.0.0')
  else:
    app.debug = True
    app.run()
<commit_msg>making default sort order by by date<commit_after>from flask import Flask
from flask import render_template
from flask import request
import cPickle as pickle
import numpy as np
import json
import time
import dateutil.parser
import argparse
from random import shuffle

app = Flask(__name__)

def papers_shuffle():
  ks = db.keys()
  shuffle(ks)
  return [db[k] for k in ks]

def date_sort():
  scores = []
  for pid in db:
    p = db[pid]
    timestruct = dateutil.parser.parse(p['updated'])
    scores.append((timestruct, p))
  scores.sort(reverse=True)
  out = [sp[1] for sp in scores]
  return out

def papers_search_old(qraw):
  """ deprecated, slow, brute-force search """
  qparts = qraw.lower().strip().split() # split by spaces

  # brute force search with unigrams, weeee
  scores = []
  for pid in db:
    p = db[pid]
    score = 0
    for q in qparts:
      # search titles
      if q in p['title'].lower():
        score += 5.0
      # search authors
      score += sum(3.0 for x in p['authors'] if q in x['name'].lower())
      # search abstracts
      score += min(3.0, 1.0 * p['summary'].lower().count(q)) # robustify with min
    scores.append((score, p))
  scores.sort(reverse=True) # descending
  out = [x[1] for x in scores if x[0] > 0]
  return out

def papers_search(qraw):
  qparts = qraw.lower().strip().split() # split by spaces
  # use reverse index and accumulate scores
  scores = []
  for pid in db:
    p = db[pid]
    score = sum(p['search_dict'].get(q,0) for q in qparts)
    scores.append((score, p))
  scores.sort(reverse=True) # descending
  out = [x[1] for x in scores if x[0] > 0]
  return out

def papers_similar(pid):
  if pid in tfidf['ptoi']:
    ix0 = tfidf['ptoi'][pid]
    xquery = X[ix0, np.newaxis]
    ds = np.asarray(np.dot(X, xquery.T)).ravel() # L2 normalized tfidf vectors
    scores = [(ds[i], tfidf['pids'][i]) for i in xrange(X.shape[0])]
    scores.sort(reverse=True) # descending
    out = [db[sp[1]] for sp in scores]
    return out
  else:
    return [db[pid]] # err wat?

def encode_json(ps, n=10):

  ret = []
  for i in xrange(min(len(ps),n)):
    p = ps[i]
    struct = {}
    struct['title'] = p['title']
    struct['pid'] = p['rawid']
    struct['authors'] = [a['name'] for a in p['authors']]
    struct['link'] = p['link']
    struct['abstract'] = p['summary']
    struct['img'] = '/static/thumbs/' + p['rawid'] + '.pdf.jpg'
    struct['tags'] = [t['term'] for t in p['tags']]

    timestruct = dateutil.parser.parse(p['updated'])
    struct['published_time'] = '%s/%s/%s' % (timestruct.month, timestruct.day, timestruct.year)

    cc = p.get('arxiv_comment', '')
    if len(cc) > 100:
      cc = cc[:100] + '...' # crop very long comments
    struct['comment'] = cc

    ret.append(struct)
  return ret

@app.route("/")
@app.route("/<request_pid>")
def intmain(request_pid=None):
  if request_pid == 'favicon.ico': return '' # must be better way, todo
  if request_pid == 'robots.txt': return '' # must be better way, todo

  if request_pid is None:
    #papers = papers_shuffle() # perform the query and get sorted documents
    papers = date_sort()
  else:
    papers = papers_similar(request_pid)

  ret = encode_json(papers, args.num_results) # encode the top few to json
  return render_template('main.html', papers=ret, numpapers=len(db))

@app.route("/search", methods=['GET'])
def search():
  q = request.args.get('q', '') # get the search request
  papers = papers_search(q) # perform the query and get sorted documents
  ret = encode_json(papers, args.num_results) # encode the top few to json
  return render_template('main.html', papers=ret, numpapers=len(db)) # weeee

if __name__ == "__main__":

  parser = argparse.ArgumentParser()
  parser.add_argument('-p', '--prod', dest='prod', action='store_true', help='run in prod?')
  parser.add_argument('-r', '--num_results', dest='num_results', type=int, default=20, help='number of results to return per query')
  args = parser.parse_args()
  print args

  print 'loading db.p...'
  db = pickle.load(open('db.p', 'rb'))

  print 'loading tfidf.p...'
  tfidf = pickle.load(open("tfidf.p", "rb"))
  X = tfidf['X'].todense()
  vocab = tfidf['vocab']
  idf = tfidf['idf']

  # some utilities for creating a search index for faster search

  punc = "'!\"#$%&\'()*+,./:;<=>?@[\\]^_`{|}~'" # removed hyphen from string.punctuation
  trans_table = {ord(c): None for c in punc}
  def makedict(s, forceidf=None):
    words = s.lower().translate(trans_table).strip().split()
    out = {}
    for w in words:
      if forceidf is None:
        if w in vocab:
          # we have idf for this
          idfval = idf[vocab[w]]
        else:
          idfval = 1.0 # assume idf 1.0 (low)
      else:
        idfval = forceidf
      out[w] = idfval # note, we're overwriting, so no adding up
    return out

  def merge_dicts(dlist):
    out = {}
    for d in dlist:
      for k,v in d.iteritems():
        out[k] = out.get(k,0) + v
    return out

  print 'building an index for faster search...'
  for pid in db:
    p = db[pid]
    dict_title = makedict(p['title'])
    dict_authors = makedict(' '.join(x['name'] for x in p['authors']), 10.0)
    dict_summary = makedict(p['summary'])
    p['search_dict'] = merge_dicts([dict_title, dict_authors, dict_summary])

  #import code; code.interact(local=locals())
  print 'starting!'
  if args.prod:
    app.run(host='0.0.0.0')
  else:
    app.debug = True
    app.run()
<|endoftext|>


<commit_before>from setuptools import setup, find_packages, Extension

USE_CYTHON = False

extensions = []

if USE_CYTHON:
    extensions = [
        Extension("*", ["elliptic/Kernel/*.py"]),
        Extension("*", ["elliptic/Mesh/*.py"])
    ]
    from Cython.Build import cythonize
    extensions = cythonize(extensions)

setup(
    name="ELLIPTIc",
    version='0.2.0',
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'pytest-cov'],
    install_requires=['numpy'],
    packages=find_packages(),
    license='LICENSE',
    ext_modules=extensions
)
<commit_msg>Adding colorlog to dependency<commit_after>from setuptools import setup, find_packages, Extension

USE_CYTHON = False

extensions = []

if USE_CYTHON:
    extensions = [
        Extension("*", ["elliptic/Kernel/*.py"]),
        Extension("*", ["elliptic/Mesh/*.py"])
    ]
    from Cython.Build import cythonize
    extensions = cythonize(extensions)

setup(
    name="ELLIPTIc",
    version='0.2.0',
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'pytest-cov', 'pytest-mock'],
    install_requires=['numpy', 'colorlog'],
    packages=find_packages(),
    license='LICENSE',
    ext_modules=extensions
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages

base = os.path.dirname(os.path.abspath(__file__))

README_PATH = os.path.join(base, "README.rst")

install_requires = [
]

tests_require = []

setup(name='vcver',
      version='0.0.2',
      description='a tool to provide versions wit scm data.',
      long_description=open(README_PATH).read(),
      author='Yusuke Tsutsumi',
      author_email='yusuke@tsutsumi.io',
      url='',
      packages=find_packages(),
      install_requires=install_requires,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Operating System :: MacOS',
          'Operating System :: POSIX :: Linux',
          'Topic :: System :: Software Distribution',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
      ],
      tests_require=tests_require,
      entry_points={
          'distutils.setup_keywords': [
              'vcver=vcver:setup_keywords_entry_point'
          ],
      },
)
<commit_msg>published 0.0.3<commit_after>#!/usr/bin/env python
import os
from setuptools import setup, find_packages

base = os.path.dirname(os.path.abspath(__file__))

README_PATH = os.path.join(base, "README.rst")

install_requires = [
]

tests_require = []

setup(name='vcver',
      version='0.0.3',
      description='a tool to provide versions wit scm data.',
      long_description=open(README_PATH).read(),
      author='Yusuke Tsutsumi',
      author_email='yusuke@tsutsumi.io',
      url='',
      packages=find_packages(),
      install_requires=install_requires,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Operating System :: MacOS',
          'Operating System :: POSIX :: Linux',
          'Topic :: System :: Software Distribution',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
      ],
      tests_require=tests_require,
      entry_points={
          'distutils.setup_keywords': [
              'vcver=vcver:setup_keywords_entry_point'
          ],
      },
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# coding: utf-8
from glob import glob
from setuptools import setup

setup_args = dict(
    name                = 'jupyterlmod',
    packages            = ['jupyterlmod', 'lmod'],
    version             = "1.8.1",
    description         = "jupyterlmod: notebook server extension to interact with Lmod system",
    long_description    = "Jupyter interactive notebook server extension that allows user to select software modules to load with Lmod before launching kernels.",
    author              = "Félix-Antoine Fortin",
    author_email        = "felix-antoine.fortin@calculquebec.ca",
    url                 = "http://www.calculquebec.ca",
    license             = "MIT",
    platforms           = "Linux, Mac OS X",
    keywords            = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Lmod'],
    classifiers         = [
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
    ],
    install_requires   = [
        'notebook>=5.3.0',
    ],
    data_files=[
        ('share/jupyter/nbextensions/jupyterlmod', glob('jupyterlmod/static/*')),
        ('etc/jupyter/jupyter_notebook_config.d', ['jupyterlmod/etc/jupyterlmod_serverextension.json']),
        ('etc/jupyter/nbconfig/tree.d', ['jupyterlmod/etc/jupyterlmod_nbextension.json'])
    ],
    zip_safe=False
)

def main():
    setup(**setup_args)

if __name__ == '__main__':
    main()
<commit_msg>Bump jupyter-lmod version to 1.9.0<commit_after>#!/usr/bin/env python
# coding: utf-8
from glob import glob
from setuptools import setup

setup_args = dict(
    name                = 'jupyterlmod',
    packages            = ['jupyterlmod', 'lmod'],
    version             = "1.9.0",
    description         = "jupyterlmod: notebook server extension to interact with Lmod system",
    long_description    = "Jupyter interactive notebook server extension that allows user to select software modules to load with Lmod before launching kernels.",
    author              = "Félix-Antoine Fortin",
    author_email        = "felix-antoine.fortin@calculquebec.ca",
    url                 = "http://www.calculquebec.ca",
    license             = "MIT",
    platforms           = "Linux, Mac OS X",
    keywords            = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Lmod'],
    classifiers         = [
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
    ],
    install_requires   = [
        'notebook>=5.3.0',
    ],
    data_files=[
        ('share/jupyter/nbextensions/jupyterlmod', glob('jupyterlmod/static/*')),
        ('etc/jupyter/jupyter_notebook_config.d', ['jupyterlmod/etc/jupyterlmod_serverextension.json']),
        ('etc/jupyter/nbconfig/tree.d', ['jupyterlmod/etc/jupyterlmod_nbextension.json'])
    ],
    zip_safe=False
)

def main():
    setup(**setup_args)

if __name__ == '__main__':
    main()
<|endoftext|>


<commit_before>from Cython.Distutils import build_ext
from setuptools import (Extension, find_packages, setup)
from subprocess import (PIPE, Popen)
import os

def check_compiler(compiler: str) -> bool:
    """
    Check that a compiler is available
    """
    cmd = "{} --version".format(compiler)
    p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True)
    rs = p.communicate()
    err = rs[1]
    if err:
        print(compiler, " compiler not avaialable!")
    return True if not err else False

if check_compiler('icc'):
    os.environ['CC'] = 'icc'
    flags = ['-shared']
elif check_compiler('gcc'):
    flags = ['-fopenmp']

def readme():
    with open('README.rst') as f:
        return f.read()

def check_compiler(cmd: str) -> bool:
    """
    Check that a compiler is available
    """
    p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True)
    rs = p.communicate()
    err = rs[1]
    if err:
        print(cmd, " compiler not avaialable!")
    return True if not err else False

ext_obara_saika = Extension(
        'multipoleObaraSaika', ['nac/integrals/multipoleObaraSaika.pyx'],
        extra_compile_args=flags,
        extra_link_args=flags)

setup(
    name='qmflows-namd',
    version='0.5.0',
    description='Derivative coupling calculation',
    license='Apache-2.0',
    url='https://github.com/SCM-NV/qmflows-namd',
    author=['Felipe Zapata', 'Ivan Infante'],
    author_email='f.zapata@esciencecenter.nl',
    keywords='chemistry Photochemistry Simulation',
    long_description=readme(),
    packages=find_packages(),
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Intended Audience :: Science/Research',
        'programming language :: python :: 3.6',
        'development status :: 4 - Beta',
        'intended audience :: science/research',
        'topic :: scientific/engineering :: chemistry'
    ],
    install_requires=[
        'cython>=0.29.2', 'numpy', 'h5py', 'noodles==0.3.1',
        'qmflows>=0.3.0', 'pymonad', 'scipy', 'schema', 'pyyaml'],
    dependency_links=[
        "https://github.com/SCM-NV/qmflows/tarball/master#egg=qmflows"],
    cmdclass={'build_ext': build_ext},
    ext_modules=[ext_obara_saika],
    extras_require={
        'test': ['coverage', 'pytest>=3.9', 'pytest-cov', 'codacy-coverage']},
    include_package_data=True,
    package_data={
        'nac': ['basisSet/valence_electrons.json']
    },
    scripts=[
        'scripts/cli/run_workflow.py',
        'scripts/distribution/distribute_jobs.py',
        'scripts/hamiltonians/plot_mos_energies.py',
        'scripts/hamiltonians/plot_spectra.py',
        'scripts/pyxaid/plot_average_energy.py',
        'scripts/pyxaid/plot_cooling.py',
        'scripts/pyxaid/plot_spectra_pyxaid.py',
        'scripts/pyxaid/plot_states_pops.py',
        'scripts/qmflows/mergeHDF5.py',
        'scripts/qmflows/plot_dos.py',
        'scripts/qmflows/rdf.py',
        'scripts/qmflows/removeHDF5folders.py',
        'scripts/qmflows/remove_mos_hdf5.py']
)
<commit_msg>fixed installation in cartesius<commit_after>from Cython.Distutils import build_ext
from setuptools import (Extension, find_packages, setup)
from subprocess import (PIPE, Popen)
import os

def check_compiler(compiler: str) -> bool:
    """
    Check that a compiler is available
    """
    cmd = "{} --version".format(compiler)
    p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True)
    rs = p.communicate()
    err = rs[1]
    if err:
        print(compiler, " compiler not avaialable!")
    return True if not err else False

if check_compiler('gcc'):
    flags = ['-fopenmp']

def readme():
    with open('README.rst') as f:
        return f.read()

def check_compiler(cmd: str) -> bool:
    """
    Check that a compiler is available
    """
    p = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True)
    rs = p.communicate()
    err = rs[1]
    if err:
        print(cmd, " compiler not avaialable!")
    return True if not err else False

ext_obara_saika = Extension(
        'multipoleObaraSaika', ['nac/integrals/multipoleObaraSaika.pyx'],
        extra_compile_args=flags,
        extra_link_args=flags)

setup(
    name='qmflows-namd',
    version='0.5.0',
    description='Derivative coupling calculation',
    license='Apache-2.0',
    url='https://github.com/SCM-NV/qmflows-namd',
    author=['Felipe Zapata', 'Ivan Infante'],
    author_email='f.zapata@esciencecenter.nl',
    keywords='chemistry Photochemistry Simulation',
    long_description=readme(),
    packages=find_packages(),
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Intended Audience :: Science/Research',
        'programming language :: python :: 3.6',
        'development status :: 4 - Beta',
        'intended audience :: science/research',
        'topic :: scientific/engineering :: chemistry'
    ],
    install_requires=[
        'cython>=0.29.2', 'numpy', 'h5py', 'noodles==0.3.1',
        'qmflows>=0.3.0', 'pymonad', 'scipy', 'schema', 'pyyaml'],
    dependency_links=[
        "https://github.com/SCM-NV/qmflows/tarball/master#egg=qmflows"],
    cmdclass={'build_ext': build_ext},
    ext_modules=[ext_obara_saika],
    extras_require={
        'test': ['coverage', 'pytest>=3.9', 'pytest-cov', 'codacy-coverage']},
    include_package_data=True,
    package_data={
        'nac': ['basisSet/valence_electrons.json']
    },
    scripts=[
        'scripts/cli/run_workflow.py',
        'scripts/distribution/distribute_jobs.py',
        'scripts/hamiltonians/plot_mos_energies.py',
        'scripts/hamiltonians/plot_spectra.py',
        'scripts/pyxaid/plot_average_energy.py',
        'scripts/pyxaid/plot_cooling.py',
        'scripts/pyxaid/plot_spectra_pyxaid.py',
        'scripts/pyxaid/plot_states_pops.py',
        'scripts/qmflows/mergeHDF5.py',
        'scripts/qmflows/plot_dos.py',
        'scripts/qmflows/rdf.py',
        'scripts/qmflows/removeHDF5folders.py',
        'scripts/qmflows/remove_mos_hdf5.py']
)
<|endoftext|>


<commit_before>import os

version_file = os.path.join(os.path.dirname(__file__), 'OmniReader', 'VERSION.py')
requirements_file = os.path.join(os.path.dirname(__file__), 'OmniReader', 'REQUIREMENTS.py')
with open(version_file) as f:
    __version_info__ = eval(f.read().strip())
with open(requirements_file) as f:
    required = f.read().splitlines()

omnireader_version = '.'.join(str(i) for i in __version_info__)

from distutils.core import setup

setup(
    name = "OmniReader",
    description = "OmniReader Story Teller",
    version = omnireader_version,
    url = "https://github.com/Zenohm/OmniReader",
    long_description = """\
The OmniReader Story Teller is a python package that reads stories
using a TTS engine.  OmniReader requires Python 3.3+.""",
    license = "MIT",
    keywords = ['OmniReader', 'Fanfiction', 'stories',
                'scraping', 'translating', 'Wattpad',
                'text-to-speech', 'deviantart'],
    maintainer = "Isaac Smith (Zenohm)",
    maintainer_email = "sentherus@gmail.com",
    author = "Isaac Smith (Zenohm)",
    author_email = "sentherus@gmail.com",
    classifiers = [
    'Development Status :: 3 - Alpha',
    'Intended Audience :: Other Audience',
    'Intended Audience :: Education',
    'Intended Audience :: Developers',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: MIT License',
    'Operating System :: Microsoft :: Windows',
    'Programming Language :: Python :: 3 :: Only',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.5',
    'Topic :: Multimedia :: Sound/Audio',
    'Topic :: Multimedia :: Sound/Audio :: Speech',
    ],
    packages = ['OmniReader'],
    install_requires=required,
    )
<commit_msg>Beta Status<commit_after>import os

version_file = os.path.join(os.path.dirname(__file__), 'OmniReader', 'VERSION.py')
requirements_file = os.path.join(os.path.dirname(__file__), 'OmniReader', 'REQUIREMENTS.py')
with open(version_file) as f:
    __version_info__ = eval(f.read().strip())
with open(requirements_file) as f:
    required = f.read().splitlines()

omnireader_version = '.'.join(str(i) for i in __version_info__)

from distutils.core import setup

setup(
    name = "OmniReader",
    description = "OmniReader Story Teller",
    version = omnireader_version,
    url = "https://github.com/Zenohm/OmniReader",
    long_description = """\
The OmniReader Story Teller is a python package that reads stories
using a TTS engine.  OmniReader requires Python 3.3+.""",
    license = "MIT",
    keywords = ['OmniReader', 'Fanfiction', 'stories',
                'scraping', 'translating', 'Wattpad',
                'text-to-speech', 'deviantart'],
    maintainer = "Isaac Smith (Zenohm)",
    maintainer_email = "sentherus@gmail.com",
    author = "Isaac Smith (Zenohm)",
    author_email = "sentherus@gmail.com",
    classifiers = [
    'Development Status :: 4 - Beta',
    'Intended Audience :: Other Audience',
    'Intended Audience :: Education',
    'Intended Audience :: Developers',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: MIT License',
    'Operating System :: Microsoft :: Windows',
    'Programming Language :: Python :: 3 :: Only',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.5',
    'Topic :: Multimedia :: Sound/Audio',
    'Topic :: Multimedia :: Sound/Audio :: Speech',
    ],
    packages = ['OmniReader'],
    install_requires=required,
    )
<|endoftext|>


<commit_before>import os
import sys

from setuptools import setup, find_packages, __version__

v = sys.version_info
if sys.version_info < (3, 5):
    msg = "FAIL: Requires Python 3.5 or later, " \
          "but setup.py was run using {}.{}.{}"
    v = sys.version_info
    print(msg.format(v.major, v.minor, v.micro))
    # noinspection PyPackageRequirements
    print("NOTE: Installation failed. Run setup.py using python3")
    sys.exit(1)

# Change to ioflo's source directory prior to running any command
try:
    SETUP_DIRNAME = os.path.dirname(__file__)
except NameError:
    # We're probably being frozen, and __file__ triggered this NameError
    # Work around this
    SETUP_DIRNAME = os.path.dirname(sys.argv[0])

if SETUP_DIRNAME != '':
    os.chdir(SETUP_DIRNAME)

SETUP_DIRNAME = os.path.abspath(SETUP_DIRNAME)

METADATA = os.path.join(SETUP_DIRNAME, 'plenum', '__metadata__.py')
# Load the metadata using exec() so we don't trigger an import of ioflo.__init__
exec(compile(open(METADATA).read(), METADATA, 'exec'))

BASE_DIR = os.path.join(os.path.expanduser("~"), ".plenum")
CONFIG_FILE = os.path.join(BASE_DIR, "plenum_config.py")
POOL_TXN_FILE = os.path.join(BASE_DIR, "pool_transactions_sandbox")

if not os.path.exists(BASE_DIR):
    os.makedirs(BASE_DIR)

setup(
    name='plenum',
    version=__version__,
    description='Plenum Byzantine Fault Tolerant Protocol',
    long_description='Plenum Byzantine Fault Tolerant Protocol',
    url='https://github.com/evernym/plenum',
    download_url='https://github.com/evernym/plenum/tarball/{}'.
        format(__version__),
    author=__author__,
    author_email='dev@evernym.us',
    license=__license__,
    keywords='Byzantine Fault Tolerant Plenum',
    packages=find_packages(exclude=['test', 'test.*', 'docs', 'docs*']) + [
        'data', ],
    package_data={
        '': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
             '*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', 'plenum']},
    include_package_data=True,
    data_files=[(
        (BASE_DIR, ['data/pool_transactions_sandbox', ])
    )],
    install_requires=['ledger==0.2.15', 'stp==0.1.11',
                      'state-trie==0.1.1', 'jsonpickle',
                      'prompt_toolkit==0.57', 'pygments',
                      'ioflo==1.5.4', 'semver', 'base58', 'orderedset',
                      'sortedcontainers==1.5.7', 'psutil', 'pip'],
    extras_require={
        'stats': ['python-firebase']
    },
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'pytest-xdist'],
    scripts=['scripts/plenum', 'scripts/init_plenum_keys',
             'scripts/start_plenum_node',
             'scripts/generate_plenum_pool_transactions',
             'scripts/gen_steward_key', 'scripts/gen_node',
             'scripts/export-gen-txns', 'scripts/get_keys',
             'scripts/udp_sender', 'scripts/udp_receiver']
)

if not os.path.exists(CONFIG_FILE):
    with open(CONFIG_FILE, 'w') as f:
        msg = "# Here you can create config entries according to your " \
              "needs.\n " \
              "# For help, refer config.py in the sovrin package.\n " \
              "# Any entry you add here would override that from config " \
              "example\n"
        f.write(msg)

# TODO: This code should not be copied here.
import getpass
import os
import shutil
import sys

def getLoggedInUser():
    if sys.platform == 'wind32':
        return getpass.getuser()
    else:
        if 'SUDO_USER' in os.environ:
            return os.environ['SUDO_USER']
        else:
            return getpass.getuser()

def changeOwnerAndGrpToLoggedInUser(directory, raiseEx=False):
    loggedInUser = getLoggedInUser()
    try:
        shutil.chown(directory, loggedInUser, loggedInUser)
    except Exception as e:
        if raiseEx:
            raise e
        else:
            pass

changeOwnerAndGrpToLoggedInUser(BASE_DIR)

<commit_msg>re-pin indy dependencies<commit_after>import os
import sys

from setuptools import setup, find_packages, __version__

v = sys.version_info
if sys.version_info < (3, 5):
    msg = "FAIL: Requires Python 3.5 or later, " \
          "but setup.py was run using {}.{}.{}"
    v = sys.version_info
    print(msg.format(v.major, v.minor, v.micro))
    # noinspection PyPackageRequirements
    print("NOTE: Installation failed. Run setup.py using python3")
    sys.exit(1)

# Change to ioflo's source directory prior to running any command
try:
    SETUP_DIRNAME = os.path.dirname(__file__)
except NameError:
    # We're probably being frozen, and __file__ triggered this NameError
    # Work around this
    SETUP_DIRNAME = os.path.dirname(sys.argv[0])

if SETUP_DIRNAME != '':
    os.chdir(SETUP_DIRNAME)

SETUP_DIRNAME = os.path.abspath(SETUP_DIRNAME)

METADATA = os.path.join(SETUP_DIRNAME, 'plenum', '__metadata__.py')
# Load the metadata using exec() so we don't trigger an import of ioflo.__init__
exec(compile(open(METADATA).read(), METADATA, 'exec'))

BASE_DIR = os.path.join(os.path.expanduser("~"), ".plenum")
CONFIG_FILE = os.path.join(BASE_DIR, "plenum_config.py")
POOL_TXN_FILE = os.path.join(BASE_DIR, "pool_transactions_sandbox")

if not os.path.exists(BASE_DIR):
    os.makedirs(BASE_DIR)

setup(
    name='plenum',
    version=__version__,
    description='Plenum Byzantine Fault Tolerant Protocol',
    long_description='Plenum Byzantine Fault Tolerant Protocol',
    url='https://github.com/evernym/plenum',
    download_url='https://github.com/evernym/plenum/tarball/{}'.
        format(__version__),
    author=__author__,
    author_email='dev@evernym.us',
    license=__license__,
    keywords='Byzantine Fault Tolerant Plenum',
    packages=find_packages(exclude=['test', 'test.*', 'docs', 'docs*']) + [
        'data', ],
    package_data={
        '': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
             '*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', 'plenum']},
    include_package_data=True,
    data_files=[(
        (BASE_DIR, ['data/pool_transactions_sandbox', ])
    )],
    install_requires=['ledger==0.2.16', 'stp==0.1.12',
                      'state-trie==0.1.3', 'jsonpickle',
                      'prompt_toolkit==0.57', 'pygments',
                      'ioflo==1.5.4', 'semver', 'base58', 'orderedset',
                      'sortedcontainers==1.5.7', 'psutil', 'pip'],
    extras_require={
        'stats': ['python-firebase']
    },
    setup_requires=['pytest-runner'],
    tests_require=['pytest', 'pytest-xdist'],
    scripts=['scripts/plenum', 'scripts/init_plenum_keys',
             'scripts/start_plenum_node',
             'scripts/generate_plenum_pool_transactions',
             'scripts/gen_steward_key', 'scripts/gen_node',
             'scripts/export-gen-txns', 'scripts/get_keys',
             'scripts/udp_sender', 'scripts/udp_receiver']
)

if not os.path.exists(CONFIG_FILE):
    with open(CONFIG_FILE, 'w') as f:
        msg = "# Here you can create config entries according to your " \
              "needs.\n " \
              "# For help, refer config.py in the sovrin package.\n " \
              "# Any entry you add here would override that from config " \
              "example\n"
        f.write(msg)

# TODO: This code should not be copied here.
import getpass
import os
import shutil
import sys

def getLoggedInUser():
    if sys.platform == 'wind32':
        return getpass.getuser()
    else:
        if 'SUDO_USER' in os.environ:
            return os.environ['SUDO_USER']
        else:
            return getpass.getuser()

def changeOwnerAndGrpToLoggedInUser(directory, raiseEx=False):
    loggedInUser = getLoggedInUser()
    try:
        shutil.chown(directory, loggedInUser, loggedInUser)
    except Exception as e:
        if raiseEx:
            raise e
        else:
            pass

changeOwnerAndGrpToLoggedInUser(BASE_DIR)

<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='Flask-Table',
    packages=['flask_table'],
    version='0.1.8',
    author='Andrew Plummer',
    author_email='plummer574@gmail.com',
    url='https://github.com/plumdog/flask_table',
    description='HTML tables for use with the Flask micro-framework',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Operating System :: OS Independent',
        'Framework :: Flask',
    ])
<commit_msg>Version 0.2.0 (to celebrate 100% test coverage)<commit_after>from distutils.core import setup

setup(
    name='Flask-Table',
    packages=['flask_table'],
    version='0.2.0',
    author='Andrew Plummer',
    author_email='plummer574@gmail.com',
    url='https://github.com/plumdog/flask_table',
    description='HTML tables for use with the Flask micro-framework',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Operating System :: OS Independent',
        'Framework :: Flask',
    ])
<|endoftext|>


<commit_before># /setup.py
#
# Installation and setup script for polysquare-setuptools-lint
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for polysquare-setuptools-lint."""

try:
    from polysquare_setuptools_lint import PolysquareLintCommand
    _CMDCLASS = {
        "polysquarelint": PolysquareLintCommand
    }

except ImportError:
    _CMDCLASS = dict()

import platform

import sys

from setuptools import (find_packages, setup)

if (not (platform.python_implementation() == "PyPy" and
         sys.version_info.major == 3) and
        platform.system() != "Windows"):
    _ADDITIONAL_LINTERS = ["frosted"]
else:
    _ADDITIONAL_LINTERS = list()

setup(name="polysquare-setuptools-lint",
      version="0.0.20",
      description="""Provides a 'polysquarelint' command for setuptools""",
      long_description_markdown_filename="README.md",
      author="Sam Spilsbury",
      author_email="smspillaz@gmail.com",
      url="http://github.com/polysquare/polysquare-setuptools-lint",
      classifiers=["Development Status :: 3 - Alpha",
                   "Programming Language :: Python :: 2",
                   "Programming Language :: Python :: 2.7",
                   "Programming Language :: Python :: 3",
                   "Programming Language :: Python :: 3.1",
                   "Programming Language :: Python :: 3.2",
                   "Programming Language :: Python :: 3.3",
                   "Programming Language :: Python :: 3.4",
                   "Intended Audience :: Developers",
                   "Topic :: Software Development :: Build Tools",
                   "License :: OSI Approved :: MIT License"],
      license="MIT",
      keywords="development linters",
      packages=find_packages(exclude=["test"]),
      cmdclass=_CMDCLASS,
      install_requires=[
          "setuptools",
          "jobstamps>=0.0.8",
          "parmap",
          "pep8",
          "dodgy",
          "mccabe",
          "pep257",
          "pyflakes",
          "pylint-common",
          "pyroma",
          "vulture",
          "logilab-common==0.63.0",
          "prospector>=0.10.1",
          "flake8==2.3.0",
          "flake8-blind-except",
          "flake8-docstrings",
          "flake8-double-quotes",
          "flake8-import-order",
          "flake8-todo",
          "six"
      ] + _ADDITIONAL_LINTERS,
      extras_require={
          "green": [
              "mock",
              "nose",
              "nose-parameterized",
              "setuptools-green",
              "testtools"
          ],
          "upload": ["setuptools-markdown"]
      },
      entry_points={
          "distutils.commands": [
              ("polysquarelint=polysquare_setuptools_lint:"
               "PolysquareLintCommand"),
          ]
      },
      zip_safe=True,
      include_package_data=True)
<commit_msg>Bump version: 0.0.20 -> 0.0.21<commit_after># /setup.py
#
# Installation and setup script for polysquare-setuptools-lint
#
# See /LICENCE.md for Copyright information
"""Installation and setup script for polysquare-setuptools-lint."""

try:
    from polysquare_setuptools_lint import PolysquareLintCommand
    _CMDCLASS = {
        "polysquarelint": PolysquareLintCommand
    }

except ImportError:
    _CMDCLASS = dict()

import platform

import sys

from setuptools import (find_packages, setup)

if (not (platform.python_implementation() == "PyPy" and
         sys.version_info.major == 3) and
        platform.system() != "Windows"):
    _ADDITIONAL_LINTERS = ["frosted"]
else:
    _ADDITIONAL_LINTERS = list()

setup(name="polysquare-setuptools-lint",
      version="0.0.21",
      description="""Provides a 'polysquarelint' command for setuptools""",
      long_description_markdown_filename="README.md",
      author="Sam Spilsbury",
      author_email="smspillaz@gmail.com",
      url="http://github.com/polysquare/polysquare-setuptools-lint",
      classifiers=["Development Status :: 3 - Alpha",
                   "Programming Language :: Python :: 2",
                   "Programming Language :: Python :: 2.7",
                   "Programming Language :: Python :: 3",
                   "Programming Language :: Python :: 3.1",
                   "Programming Language :: Python :: 3.2",
                   "Programming Language :: Python :: 3.3",
                   "Programming Language :: Python :: 3.4",
                   "Intended Audience :: Developers",
                   "Topic :: Software Development :: Build Tools",
                   "License :: OSI Approved :: MIT License"],
      license="MIT",
      keywords="development linters",
      packages=find_packages(exclude=["test"]),
      cmdclass=_CMDCLASS,
      install_requires=[
          "setuptools",
          "jobstamps>=0.0.8",
          "parmap",
          "pep8",
          "dodgy",
          "mccabe",
          "pep257",
          "pyflakes",
          "pylint-common",
          "pyroma",
          "vulture",
          "logilab-common==0.63.0",
          "prospector>=0.10.1",
          "flake8==2.3.0",
          "flake8-blind-except",
          "flake8-docstrings",
          "flake8-double-quotes",
          "flake8-import-order",
          "flake8-todo",
          "six"
      ] + _ADDITIONAL_LINTERS,
      extras_require={
          "green": [
              "mock",
              "nose",
              "nose-parameterized",
              "setuptools-green",
              "testtools"
          ],
          "upload": ["setuptools-markdown"]
      },
      entry_points={
          "distutils.commands": [
              ("polysquarelint=polysquare_setuptools_lint:"
               "PolysquareLintCommand"),
          ]
      },
      zip_safe=True,
      include_package_data=True)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-

from setuptools import setup, find_packages
#from canossa import __version__, __license__, __author__
__author__  = "Hayaki Saito (user@zuse.jp)"
__version__ = "0.0.6"
__license__ = "GPL v3"

setup(name                  = 'canossa',
      version               = __version__,
      description           = 'Provides basic, transparent, off-screen(invisible) terminal emulation service, for terminal apps.',
      long_description      = open("README.rst").read(),
      py_modules            = ['canossa'],
      eager_resources       = [],
      classifiers           = ['Development Status :: 4 - Beta',
                               'Topic :: Terminals',
                               'Environment :: Console',
                               'Intended Audience :: Developers',
                               'License :: OSI Approved :: GNU General Public License (GPL)',
                               'Programming Language :: Python'
                               ],
      keywords              = 'terminal',
      author                = __author__,
      author_email          = 'user@zuse.jp',
      url                   = 'https://github.com/saitoha/canossa',
      license               = __license__,
      packages              = find_packages(exclude=[]),
      zip_safe              = True,
      include_package_data  = False,
      install_requires      = ['tff ==0.0.9'],
      entry_points          = """
                              [console_scripts]
                              canossa = canossa:main
                              """
      )

<commit_msg>Update version 0.0.7 / bug fix<commit_after># -*- coding: utf-8 -*-

from setuptools import setup, find_packages
#from canossa import __version__, __license__, __author__
__author__  = "Hayaki Saito (user@zuse.jp)"
__version__ = "0.0.7"
__license__ = "GPL v3"

setup(name                  = 'canossa',
      version               = __version__,
      description           = 'Provides basic, transparent, off-screen(invisible) terminal emulation service, for terminal apps.',
      long_description      = open("README.rst").read(),
      py_modules            = ['canossa'],
      eager_resources       = [],
      classifiers           = ['Development Status :: 4 - Beta',
                               'Topic :: Terminals',
                               'Environment :: Console',
                               'Intended Audience :: Developers',
                               'License :: OSI Approved :: GNU General Public License (GPL)',
                               'Programming Language :: Python'
                               ],
      keywords              = 'terminal',
      author                = __author__,
      author_email          = 'user@zuse.jp',
      url                   = 'https://github.com/saitoha/canossa',
      license               = __license__,
      packages              = find_packages(exclude=[]),
      zip_safe              = True,
      include_package_data  = False,
      install_requires      = ['tff ==0.0.9'],
      entry_points          = """
                              [console_scripts]
                              canossa = canossa:main
                              """
      )

<|endoftext|>


<commit_before>import sys
import os

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

version = '0.2.6'

requires = [
    'pymongo==2.6.3',	# CI fails to build unless a version (same as in eduid_am) is required here :(
    'eduid_am==0.4.9',
]

testing_extras = [
    'nose==1.2.1',
    'nosexcover==1.0.8',
    'coverage==3.6',
]

setup(name='eduid-dashboard-amp',
      version=version,
      description="eduID DashboardAttribute Manager Plugin",
      long_description=README + '\n\n' + CHANGES,
      classifiers=[
          # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
      ],
      keywords='',
      author='NORDUnet A/S',
      url='https://github.com/SUNET/eduid-dashboard-amp',
      license='BSD',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      extras_require={
        'testing': testing_extras,
        },
      test_suite='eduid_dashboard_amp',
      entry_points="""
      [eduid_am.attribute_fetcher]
      eduid_dashboard = eduid_dashboard_amp:attribute_fetcher
      """,
      )
<commit_msg>Bumped eduid_am version.<commit_after>import sys
import os

from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

version = '0.2.6'

requires = [
    'pymongo==2.6.3',	# CI fails to build unless a version (same as in eduid_am) is required here :(
    'eduid_am==0.5.0-dev',
]

testing_extras = [
    'nose==1.2.1',
    'nosexcover==1.0.8',
    'coverage==3.6',
]

setup(name='eduid-dashboard-amp',
      version=version,
      description="eduID DashboardAttribute Manager Plugin",
      long_description=README + '\n\n' + CHANGES,
      classifiers=[
          # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
      ],
      keywords='',
      author='NORDUnet A/S',
      url='https://github.com/SUNET/eduid-dashboard-amp',
      license='BSD',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      extras_require={
        'testing': testing_extras,
        },
      test_suite='eduid_dashboard_amp',
      entry_points="""
      [eduid_am.attribute_fetcher]
      eduid_dashboard = eduid_dashboard_amp:attribute_fetcher
      """,
      )
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='infosystem',
    version='0.1.33',
    summary='Infosystem Framework',
    url='https://github.com/samueldmq/infosystem',
    author='Samuel de Medeiros Queiroz, Francois Oliveira',
    author_email='samueldmq@gmail.com, oliveira.francois@gmail.com',
    license='Apache-2',
    packages=find_packages(exclude=["tests"])
)
<commit_msg>Update infosystem version<commit_after>from setuptools import setup, find_packages

setup(
    name='infosystem',
    version='0.1.34',
    summary='Infosystem Framework',
    url='https://github.com/samueldmq/infosystem',
    author='Samuel de Medeiros Queiroz, Francois Oliveira',
    author_email='samueldmq@gmail.com, oliveira.francois@gmail.com',
    license='Apache-2',
    packages=find_packages(exclude=["tests"])
)
<|endoftext|>


<commit_before>#!/usr/bin/env python

from setuptools import setup, find_packages

VERSION = '0.5.1'

def readme():
    with open('README.rst') as f:
        return f.read()

setup(
    name='django-backupdb',
    version=VERSION,
    description='Management commands for backing up and restoring databases in Django.',
    long_description=readme(),
    author='Fusionbox programmers',
    author_email='programmers@fusionbox.com',
    keywords='django database backup',
    url='https://github.com/fusionbox/django-backupdb',
    packages=find_packages(exclude=('unit_tests', 'unit_tests_scratch')),
    platforms='any',
    license='Fusionbox',
    test_suite='nose.collector',
    setup_requires=[
        'nose==1.2.1',
        'mock==1.0.1',
        'coverage==3.6',
    ],
    tests_require=[
        'nose==1.2.1',
        'mock==1.0.1',
        'coverage==3.6',
    ],
    install_requires=[
        'django>=1.3',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
    ],
)
<commit_msg>Bump version number<commit_after>#!/usr/bin/env python

from setuptools import setup, find_packages

VERSION = '0.5.2'

def readme():
    with open('README.rst') as f:
        return f.read()

setup(
    name='django-backupdb',
    version=VERSION,
    description='Management commands for backing up and restoring databases in Django.',
    long_description=readme(),
    author='Fusionbox programmers',
    author_email='programmers@fusionbox.com',
    keywords='django database backup',
    url='https://github.com/fusionbox/django-backupdb',
    packages=find_packages(exclude=('unit_tests', 'unit_tests_scratch')),
    platforms='any',
    license='Fusionbox',
    test_suite='nose.collector',
    setup_requires=[
        'nose==1.2.1',
        'mock==1.0.1',
        'coverage==3.6',
    ],
    tests_require=[
        'nose==1.2.1',
        'mock==1.0.1',
        'coverage==3.6',
    ],
    install_requires=[
        'django>=1.3',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python

import os
from distutils.core import setup

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name='spur',
    version='0.3.6',
    description='Run commands and manipulate files locally or over SSH using the same interface',
    long_description=read("README"),
    author='Michael Williamson',
    url='http://github.com/mwilliamson/spur.py',
    keywords="ssh shell subprocess process",
    packages=['spur'],
    install_requires=["paramiko>=1.9.0,<2"],
)
<commit_msg>Bump version to 0.3.7<commit_after>#!/usr/bin/env python

import os
from distutils.core import setup

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name='spur',
    version='0.3.7',
    description='Run commands and manipulate files locally or over SSH using the same interface',
    long_description=read("README"),
    author='Michael Williamson',
    url='http://github.com/mwilliamson/spur.py',
    keywords="ssh shell subprocess process",
    packages=['spur'],
    install_requires=["paramiko>=1.9.0,<2"],
)
<|endoftext|>


<commit_before>from distutils.core import setup
import os

README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='python-particle',
    version='0.2',
    packages=['particle'],
    include_package_data=True,
    license='MIT License',  # example license
    description='A Python wrapper around the Particle (particle.io) Cloud API',
    long_description=README,
    install_requires = [
        'python-dateutil==2.4.2',
        'pytz==2015.4',
        'requests==2.7.0',
    ],
    url='https://github.com/DarkSector/python-particle',
    author='Pronoy Chopra',
    author_email='contact@pronoy.in',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Web Environment',
        #'Framework :: Requests',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'Intended Audience :: Information Technology',
        'License :: OSI Approved :: MIT License', # example license
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
)
<commit_msg>added pexpect to dependencies<commit_after>from distutils.core import setup
import os

README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='python-particle',
    version='0.2',
    packages=['particle'],
    include_package_data=True,
    license='MIT License',  # example license
    description='A Python wrapper around the Particle (particle.io) Cloud API',
    long_description=README,
    install_requires = [
        'python-dateutil==2.4.2',
        'pytz==2015.4',
        'requests==2.7.0',
	'pexpect==3.3'
    ],
    url='https://github.com/DarkSector/python-particle',
    author='Pronoy Chopra',
    author_email='contact@pronoy.in',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Web Environment',
        #'Framework :: Requests',
        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',
        'Intended Audience :: Information Technology',
        'License :: OSI Approved :: MIT License', # example license
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: setup.py
# by Arzaroth Lekva
# arzaroth@arzaroth.com
#

from setuptools import setup, Extension, find_packages

rapidxml = Extension("rapidxml._rapidxml",
                     define_macros=[('MAJOR_VERSION', '1'),
                                    ('MINOR_VERSION', '0')],
                     include_dirs=[
                         './rapidxml/c_ext/inc/',
                         './rapidxml/c_ext/inc/rapidxml-1.13/',
                     ],
                     sources=[
                         "./rapidxml/c_ext/src/common.cpp",
                         "./rapidxml/c_ext/src/rapidxml_module.cpp",
                         "./rapidxml/c_ext/src/base_object.cpp",
                         "./rapidxml/c_ext/src/node_object.cpp",
                         "./rapidxml/c_ext/src/attribute_object.cpp",
                         "./rapidxml/c_ext/src/document_object.cpp",
                         "./rapidxml/c_ext/src/nodeiterator_object.cpp",
                         "./rapidxml/c_ext/src/attributeiterator_object.cpp",
                     ],
)

setup(
    ext_modules=[rapidxml],
    name='RapidXml',
    version='v1.0.0-alpha',
    license='MIT',

    author='Marc-Etienne Barrut',
    author_email='lekva@arzaroth.com',

    description='python bindings for RapidXml, a C++ XML parsing library',
    keywords='rapidxml xml parsing',

    packages=['rapidxml'],
)
<commit_msg>download url<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# File: setup.py
# by Arzaroth Lekva
# arzaroth@arzaroth.com
#

import os
from setuptools import setup, Extension

VERSION = ("1", "0", "0-alpha")

rapidxml = Extension("rapidxml._rapidxml",
                     define_macros=[('MAJOR_VERSION', VERSION[0]),
                                    ('MINOR_VERSION', VERSION[1])],
                     include_dirs=[
                         './rapidxml/c_ext/inc/',
                         './rapidxml/c_ext/inc/rapidxml-1.13/',
                     ],
                     sources=[
                         "./rapidxml/c_ext/src/common.cpp",
                         "./rapidxml/c_ext/src/rapidxml_module.cpp",
                         "./rapidxml/c_ext/src/base_object.cpp",
                         "./rapidxml/c_ext/src/node_object.cpp",
                         "./rapidxml/c_ext/src/attribute_object.cpp",
                         "./rapidxml/c_ext/src/document_object.cpp",
                         "./rapidxml/c_ext/src/nodeiterator_object.cpp",
                         "./rapidxml/c_ext/src/attributeiterator_object.cpp",
                     ],
)

setup(
    ext_modules=[rapidxml],
    name='RapidXml',
    version='.'.join(VERSION),
    license='MIT',

    url='https://github.com/Arzaroth/python_rapidxml',
    download_url='https://github.com/Arzaroth/python_rapidxml/tarball/%s' % ('.'.join(VERSION)),

    author='Marc-Etienne Barrut',
    author_email='lekva@arzaroth.com',

    description='python bindings for RapidXml, a C++ XML parsing library',
    long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
    keywords='rapidxml xml parsing',

    packages=['rapidxml'],
)
<|endoftext|>


<commit_before>#!/usr/bin/python
from distutils.core import setup

VERSION = "1.00"

setup(
name = "SocksiPy",
version = VERSION,
description = "A Python SOCKS module",
long_description = "This Python module allows you to create TCP connections through a SOCKS proxy without any special effort.",
url = "http://socksipy.sourceforge.net/",
author = "Dan-Haim",
author_email="negativeiq@users.sourceforge.net",
license = "BSD",
py_modules=["socks"]
)

<commit_msg>change the name and version so it's not confused with the original module<commit_after>#!/usr/bin/python
from distutils.core import setup

VERSION = "1.01"

setup(
name = "SocksiPy-branch",
version = VERSION,
description = "A Python SOCKS module",
long_description = "This Python module allows you to create TCP connections through a SOCKS proxy without any special effort.",
url = "http://socksipy.sourceforge.net/",
author = "Dan-Haim",
author_email="negativeiq@users.sourceforge.net",
license = "BSD",
py_modules=["socks"]
)

<|endoftext|>


<commit_before># -*- coding: utf-8 -*-

from setuptools import setup, find_packages

name = 'conduit-morepath'
description = (
    'Morepath Conduit implementation'
)
version = '0.0.1'

setup(
    name=name,
    version=version,
    description=description,
    author='Henri Hulski',
    author_email='henri.hulski@gazeta.pl',
    license='MIT',
    url="https://github.com/henri-hulski/realworld-starter-kit",
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    platforms='any',
    install_requires=[
        'more.cerberus',
        'more.jwtauth',
        'more.pony',
        'argon2_cffi',
        'gunicorn',
        'pyyaml',
        'awesome-slugify'
    ],
    extras_require=dict(
        test=[
            'pytest >= 2.9.1',
            'pytest-remove-stale-bytecode',
            'pytest-env',
            'WebTest >= 2.0.14',
        ],
        pep8=[
            'flake8',
            'pep8-naming',
        ],
        coverage=[
            'pytest-cov',
        ],
        production=[
            'psycopg2',
        ]
    ),
    entry_points=dict(
        morepath=[
            'scan = conduit',
        ],
    ),
    classifiers=[
        'Intended Audience :: Developers',
        'Environment :: Web Environment',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ]
)
<commit_msg>Add license classifier to setup.py<commit_after># -*- coding: utf-8 -*-

from setuptools import setup, find_packages

name = 'conduit-morepath'
description = (
    'Morepath Conduit implementation'
)
version = '0.0.1'

setup(
    name=name,
    version=version,
    description=description,
    author='Henri Hulski',
    author_email='henri.hulski@gazeta.pl',
    license='MIT',
    url="https://github.com/henri-hulski/realworld-starter-kit",
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    platforms='any',
    install_requires=[
        'more.cerberus',
        'more.jwtauth',
        'more.pony',
        'argon2_cffi',
        'gunicorn',
        'pyyaml',
        'awesome-slugify'
    ],
    extras_require=dict(
        test=[
            'pytest >= 2.9.1',
            'pytest-remove-stale-bytecode',
            'pytest-env',
            'WebTest >= 2.0.14',
        ],
        pep8=[
            'flake8',
            'pep8-naming',
        ],
        coverage=[
            'pytest-cov',
        ],
        production=[
            'psycopg2',
        ]
    ),
    entry_points=dict(
        morepath=[
            'scan = conduit',
        ],
    ),
    classifiers=[
        'License :: OSI Approved :: MIT License'
        'Intended Audience :: Developers',
        'Environment :: Web Environment',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='simuvex',
    version='4.5.11.23',
    description=' A symbolic execution engine for the VEX IR',
    url='https://github.com/angr/simuvex',
    packages=['simuvex', 'simuvex.plugins', 'simuvex.storage', 'simuvex.vex', 'simuvex.vex.statements', 'simuvex.vex.expressions', 'simuvex.procedures', 'simuvex.procedures.cgc', 'simuvex.procedures.ld-linux-x86-64___so___2', 'simuvex.procedures.testing', 'simuvex.procedures.stubs', 'simuvex.procedures.syscalls', 'simuvex.procedures.ld-uClibc___so___0', 'simuvex.procedures.libc___so___6'],
    install_requires=[
        'bintrees',
        'dpkt-fix',
        'pyvex',
        'archinfo',
        'claripy',
        'cooldict',
        'ana',
    ],
)
<commit_msg>ticked version number to 4.5.12.12<commit_after>from setuptools import setup

setup(
    name='simuvex',
    version='4.5.12.12',
    description=' A symbolic execution engine for the VEX IR',
    url='https://github.com/angr/simuvex',
    packages=['simuvex', 'simuvex.plugins', 'simuvex.storage', 'simuvex.vex', 'simuvex.vex.statements', 'simuvex.vex.expressions', 'simuvex.procedures', 'simuvex.procedures.cgc', 'simuvex.procedures.ld-linux-x86-64___so___2', 'simuvex.procedures.testing', 'simuvex.procedures.stubs', 'simuvex.procedures.syscalls', 'simuvex.procedures.ld-uClibc___so___0', 'simuvex.procedures.libc___so___6'],
    install_requires=[
        'bintrees',
        'dpkt-fix',
        'pyvex',
        'archinfo',
        'claripy',
        'cooldict',
        'ana',
    ],
)
<|endoftext|>


<commit_before># No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import with_statement

import sys
assert sys.version_info[0:2] >= (2, 6), "Python 2.6 or higher is required"

from os import walk
from os.path import isfile, join
from setuptools import setup

install_requires = [
    "pyfarm.core", "pyfarm.models",
    "flask-restful", "flask-login", "flask-admin", "flask-sqlalchemy",
    "itsdangerous"]

if sys.version_info[0:2] < (2, 7):
    install_requires.append("simplejson")

if isfile("README.rst"):
    with open("README.rst", "r") as readme:
        long_description = readme.read()
else:
    long_description = ""

def get_package_data():
    parent = join("pyfarm", "master")

    output = []
    for top in (join(parent, "static"), join(parent, "templates")):
        for root, dirs, files in walk(top):
            for filename in files:
                output.append(join(root, filename).split(parent)[-1][1:])

    return output

setup(
    name="pyfarm.master",
    version="0.7.0-dev3",
    packages=[
        "pyfarm", "pyfarm.master", "pyfarm.master.admin"],
    include_package_data=True,
    package_data={"pyfarm.master": get_package_data()},
    install_requires=install_requires,
    url="https://github.com/pyfarm/pyfarm-master",
    license="Apache v2.0",
    author="Oliver Palmer",
    author_email="development@pyfarm.net",
    description="Sub-library which contains the code necessary to "
                "communicate with the database via a REST api.",
    long_description=long_description,
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2 :: Only",  # (for now)
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Topic :: System :: Distributed Computing"])<commit_msg>adding flask-cache<commit_after># No shebang line, this module is meant to be imported
#
# Copyright 2013 Oliver Palmer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import with_statement

import sys
assert sys.version_info[0:2] >= (2, 6), "Python 2.6 or higher is required"

from os import walk
from os.path import isfile, join
from setuptools import setup

install_requires = [
    "pyfarm.core", "pyfarm.models",
    "flask-restful", "flask-login", "flask-admin",
    "flask-sqlalchemy", "flask-cache",
    "itsdangerous"]

if sys.version_info[0:2] < (2, 7):
    install_requires.append("simplejson")

if isfile("README.rst"):
    with open("README.rst", "r") as readme:
        long_description = readme.read()
else:
    long_description = ""

def get_package_data():
    parent = join("pyfarm", "master")

    output = []
    for top in (join(parent, "static"), join(parent, "templates")):
        for root, dirs, files in walk(top):
            for filename in files:
                output.append(join(root, filename).split(parent)[-1][1:])

    return output

setup(
    name="pyfarm.master",
    version="0.7.0-dev3",
    packages=[
        "pyfarm", "pyfarm.master", "pyfarm.master.admin"],
    include_package_data=True,
    package_data={"pyfarm.master": get_package_data()},
    install_requires=install_requires,
    url="https://github.com/pyfarm/pyfarm-master",
    license="Apache v2.0",
    author="Oliver Palmer",
    author_email="development@pyfarm.net",
    description="Sub-library which contains the code necessary to "
                "communicate with the database via a REST api.",
    long_description=long_description,
    classifiers=[
        "Development Status :: 2 - Pre-Alpha",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2 :: Only",  # (for now)
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Topic :: System :: Distributed Computing"])<|endoftext|>


<commit_before>#!/usr/bin/env python
from __future__ import with_statement
import os
from setuptools import setup, find_packages

readme = 'README.md'
if os.path.exists('README.rst'):
    readme = 'README.rst'
with open(readme) as f:
    long_description = f.read()

with open('requirements.txt') as f:
    requirements = [l for l in f.read().splitlines() if l]

setup(
    name='xunleipy',
    version='0.1.0',
    author='lazygunner',
    author_email='gymgunner@gmail.com',
    url='https://github.com/lazygunner/xunleipy',
    packages=find_packages(),
    keywords='XunLei, xunlei, SDK',
    description='xunleipy: XunLei SDK for Python',
    long_description=long_description,
    install_requires=requirements,
    include_package_data=True,
    tests_require=['nose', 'httmock'],
    test_suite='nose.collector',
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: MIT License',
        'Operating System :: MacOS',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: Implementation :: PyPy'
    ],
)
<commit_msg>Bump version 0.1.1<commit_after>#!/usr/bin/env python
from __future__ import with_statement
import os
from setuptools import setup, find_packages

readme = 'README.md'
if os.path.exists('README.rst'):
    readme = 'README.rst'
with open(readme) as f:
    long_description = f.read()

with open('requirements.txt') as f:
    requirements = [l for l in f.read().splitlines() if l]

setup(
    name='xunleipy',
    version='0.1.1',
    author='lazygunner',
    author_email='gymgunner@gmail.com',
    url='https://github.com/lazygunner/xunleipy',
    packages=find_packages(),
    keywords='XunLei, xunlei, SDK',
    description='xunleipy: XunLei SDK for Python',
    long_description=long_description,
    install_requires=requirements,
    include_package_data=True,
    tests_require=['nose', 'httmock'],
    test_suite='nose.collector',
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: MIT License',
        'Operating System :: MacOS',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: Implementation :: PyPy'
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages

setup(name='pywwt',
      version='0.1.0',
      description = 'Python interface to World Wide Telescope',
      author='John ZuHone',
      author_email='jzuhone@gmail.com',
      url='http://github.com/jzuhone/pywwt',
      classifiers=[
          'Intended Audience :: Science/Research',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 2.7',
          'Topic :: Scientific/Engineering :: Data Visualization',
          ],
      packages = find_packages()
    )
<commit_msg>Small distutils fix<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages

setup(name='pywwt',
      version='0.1.0',
      description = 'Python interface to World Wide Telescope',
      author='John ZuHone',
      author_email='jzuhone@gmail.com',
      url='http://github.com/jzuhone/pywwt',
      classifiers=[
          'Intended Audience :: Science/Research',
          'Operating System :: OS Independent',
          'Programming Language :: Python :: 2.7',
          'Topic :: Scientific/Engineering :: Visualization',
          ],
      packages = find_packages()
    )
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-

from __future__ import absolute_import
from __future__ import print_function

import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext

from setuptools import find_packages
from setuptools import setup

def read(*names, **kwargs):
    return io.open(
        join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
    ).read()

setup(
    name="vegindex",
    version="0.10.2",
    license="MIT",
    description="Python tools for generating vegetation index timeseries from PhenoCam images.",
    long_description="%s\n%s"
    % (
        re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
            "", read("README.rst")
        ),
        re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
    ),
    long_description_content_type="text/x-rst",
    author="Thomas Milliman",
    author_email="thomas.milliman@unh.edu",
    url="https://github.com/tmilliman/python-vegindex",
    packages=find_packages("src"),
    package_dir={"": "src"},
    py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
        "Development Status :: 4 - Beta",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: Unix",
        "Operating System :: POSIX",
        "Operating System :: Microsoft :: Windows",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Topic :: Scientific/Engineering :: Bio-Informatics",
    ],
    keywords=["phenology", "phenocam", "vegetation", "index"],
    install_requires=[
        "matplotlib",
        "Pillow",
        "pyephem",
        "requests",
        "numpy",
        "pandas",
    ],
    extras_require={"rst": ["docutils"]},
    entry_points={
        "console_scripts": [
            "generate_roi_timeseries=vegindex.generate_roi_timeseries:main",
            "update_roi_timeseries=vegindex.update_roi_timeseries:main",
            "generate_roi_ir_timeseries=vegindex.generate_roi_ir_timeseries:main",
            "update_roi_ir_timeseries=vegindex.update_roi_ir_timeseries:main",
            "generate_summary_timeseries=vegindex.generate_summary_timeseries:main",
            "update_summary_timeseries=vegindex.update_summary_timeseries:main",
            "generate_ndvi_timeseries=vegindex.generate_ndvi_timeseries:main",
            "generate_ndvi_summary_timeseries=vegindex.generate_ndvi_summary_timeseries:main",
            "update_ndvi_summary_timeseries=vegindex.update_ndvi_summary_timeseries:main",
            "plot_roistats=vegindex.plot_roistats:main",
        ]
    },
)
<commit_msg>fix setup.py package url<commit_after># -*- coding: utf-8 -*-

from __future__ import absolute_import
from __future__ import print_function

import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext

from setuptools import find_packages
from setuptools import setup

def read(*names, **kwargs):
    return io.open(
        join(dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
    ).read()

setup(
    name="vegindex",
    version="0.10.2",
    license="MIT",
    description="Python tools for generating vegetation index timeseries from PhenoCam images.",
    long_description="%s\n%s"
    % (
        re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub(
            "", read("README.rst")
        ),
        re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
    ),
    long_description_content_type="text/x-rst",
    author="Thomas Milliman",
    author_email="thomas.milliman@unh.edu",
    url="https://github.com/tmilliman/python-vegindex/",
    packages=find_packages("src"),
    package_dir={"": "src"},
    py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
        "Development Status :: 4 - Beta",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Operating System :: Unix",
        "Operating System :: POSIX",
        "Operating System :: Microsoft :: Windows",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Topic :: Scientific/Engineering :: Bio-Informatics",
    ],
    keywords=["phenology", "phenocam", "vegetation", "index"],
    install_requires=[
        "matplotlib",
        "Pillow",
        "pyephem",
        "requests",
        "numpy",
        "pandas",
    ],
    extras_require={"rst": ["docutils"]},
    entry_points={
        "console_scripts": [
            "generate_roi_timeseries=vegindex.generate_roi_timeseries:main",
            "update_roi_timeseries=vegindex.update_roi_timeseries:main",
            "generate_roi_ir_timeseries=vegindex.generate_roi_ir_timeseries:main",
            "update_roi_ir_timeseries=vegindex.update_roi_ir_timeseries:main",
            "generate_summary_timeseries=vegindex.generate_summary_timeseries:main",
            "update_summary_timeseries=vegindex.update_summary_timeseries:main",
            "generate_ndvi_timeseries=vegindex.generate_ndvi_timeseries:main",
            "generate_ndvi_summary_timeseries=vegindex.generate_ndvi_summary_timeseries:main",
            "update_ndvi_summary_timeseries=vegindex.update_ndvi_summary_timeseries:main",
            "plot_roistats=vegindex.plot_roistats:main",
        ]
    },
)
<|endoftext|>


<commit_before>from setuptools import setup

import versioneer

using_ipy4 = False
try:
    from IPython import __version__ as ipyv
    from distutils.version import LooseVersion

    using_ipy4 = (ipyv >= LooseVersion("4"))
except ImportError:
    using_ipy4 = True

install_requires = [
    'Jinja2>=2.7.2',
    'Pygments>=1.6',
    'ipython>=2.3.1',
    'pyzmq>=14.1.0',
]
if using_ipy4:
    install_requires.extend([
        'ipykernel>=4.0.0',
        'nbconvert>=4.0.0',
        'nbformat>=4.0.0',
    ])

readme = ""
with open("README.rst") as readme_file:
    readme = readme_file.read()

setup(name='runipy',
      version=versioneer.get_version(),
      license="BSD 2-Clause",
      description='Run IPython notebooks from the command line',
      long_description=readme,
      url='https://github.com/paulgb/runipy',
      author='Paul Butler',
      author_email='paulgb@gmail.com',
      maintainer='John Kirkham',
      maintainer_email='jakirkham@gmail.com',
      classifiers=[
          'Framework :: IPython',
      ],
      install_requires=install_requires,
      packages=['runipy'],
      entry_points={
          'console_scripts': [
              'runipy = runipy.main:main'
          ]
      },
      cmdclass=versioneer.get_cmdclass(),
      test_suite="test_runipy"
)
<commit_msg>setup.py: Correct indentation.<commit_after>from setuptools import setup

import versioneer

using_ipy4 = False
try:
    from IPython import __version__ as ipyv
    from distutils.version import LooseVersion

    using_ipy4 = (ipyv >= LooseVersion("4"))
except ImportError:
    using_ipy4 = True

install_requires = [
    'Jinja2>=2.7.2',
    'Pygments>=1.6',
    'ipython>=2.3.1',
    'pyzmq>=14.1.0',
]
if using_ipy4:
    install_requires.extend([
        'ipykernel>=4.0.0',
        'nbconvert>=4.0.0',
        'nbformat>=4.0.0',
    ])

readme = ""
with open("README.rst") as readme_file:
    readme = readme_file.read()

setup(
    name='runipy',
    version=versioneer.get_version(),
    license="BSD 2-Clause",
    description='Run IPython notebooks from the command line',
    long_description=readme,
    url='https://github.com/paulgb/runipy',
    author='Paul Butler',
    author_email='paulgb@gmail.com',
    maintainer='John Kirkham',
    maintainer_email='jakirkham@gmail.com',
    classifiers=[
        'Framework :: IPython',
    ],
    install_requires=install_requires,
    packages=['runipy'],
    entry_points={
        'console_scripts': [
            'runipy = runipy.main:main'
        ]
    },
    cmdclass=versioneer.get_cmdclass(),
    test_suite="test_runipy"
)
<|endoftext|>


<commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as test_command

readme = open('README.rst').read()
changes = open('CHANGES.rst').read()

def parse_requirements():
    with open('requirements.txt') as req:
        return [x for x in req.readlines() if not x.startswith('-e')]

class Tox(test_command):

    def finalize_options(self):
        test_command.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)

setup(name='pytest-purkinje',
      version='0.1.5',
      description='py.test plugin for purkinje test runner',
      long_description=readme + '\n\n' + changes,
      author='Bernhard (Bernd) Biskup',
      author_email='bbiskup@gmx.de',
      url='https://github.com/bbiskup',
      package_dir={'pytest_purkinje': 'pytest_purkinje'},
      packages=['pytest_purkinje'],
      zip_safe=False,
      include_package_data=True,
      install_requires=parse_requirements(),
      entry_points={
          'pytest11': [
              'purkinje = pytest_purkinje.testmonitorplugin',
          ],
          'console_scripts': [
              'purkinje_runner = pytest_purkinje.testrunner:main'
          ]
      },
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Environment :: Plugins',
          'Environment :: Web Environment',
          'Intended Audience :: Developers',
          'Topic :: Software Development :: Testing',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          # 'Programming Language :: Python :: 3.4',
      ],
      license='The MIT License (MIT)',
      keywords='purkinje pytest testrunner websockets',
      tests_require=['tox'],
      cmdclass={'test': Tox}
      )
<commit_msg>Set correct author URL<commit_after>import sys
from setuptools import setup
from setuptools.command.test import test as test_command

readme = open('README.rst').read()
changes = open('CHANGES.rst').read()

def parse_requirements():
    with open('requirements.txt') as req:
        return [x for x in req.readlines() if not x.startswith('-e')]

class Tox(test_command):

    def finalize_options(self):
        test_command.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        errcode = tox.cmdline(self.test_args)
        sys.exit(errcode)

setup(name='pytest-purkinje',
      version='0.1.5',
      description='py.test plugin for purkinje test runner',
      long_description=readme + '\n\n' + changes,
      author='Bernhard (Bernd) Biskup',
      author_email='bbiskup@gmx.de',
      url='https://github.com/bbiskup/pytest-purkinje/',
      package_dir={'pytest_purkinje': 'pytest_purkinje'},
      packages=['pytest_purkinje'],
      zip_safe=False,
      include_package_data=True,
      install_requires=parse_requirements(),
      entry_points={
          'pytest11': [
              'purkinje = pytest_purkinje.testmonitorplugin',
          ],
          'console_scripts': [
              'purkinje_runner = pytest_purkinje.testrunner:main'
          ]
      },
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Environment :: Console',
          'Environment :: Plugins',
          'Environment :: Web Environment',
          'Intended Audience :: Developers',
          'Topic :: Software Development :: Testing',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          # 'Programming Language :: Python :: 3.4',
      ],
      license='The MIT License (MIT)',
      keywords='purkinje pytest testrunner websockets',
      tests_require=['tox'],
      cmdclass={'test': Tox}
      )
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-

# Copyright 2016 rpaas authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import codecs

from setuptools import setup, find_packages

README = codecs.open('README.rst', encoding='utf-8').read()

setup(
    name="tsuru-rpaas",
    version="0.2.5",
    description="Reverse proxy as-a-service API for Tsuru PaaS",
    long_description=README,
    author="Tsuru",
    author_email="tsuru@corp.globo.com",
    classifiers=[
        "Programming Language :: Python :: 2.7",
    ],
    packages=find_packages(exclude=["docs", "tests"]),
    include_package_data=True,
    install_requires=[
        "cffi==1.8.3",
        "cryptography==1.6",
        "pyOpenSSL==17.2.0",
        "Flask==0.12.4",
        "Werkzeug==0.11.15",
        "requests==2.18.4",
        "gevent==1.1b6",
        "gunicorn==0.17.2",
        "tsuru-hm==0.6.12",
        "celery[redis]==3.1.23",
        "flower==0.9.1",
        "GloboNetworkAPI==0.8.1",
        "python-consul==0.6.1",
        "raven==4.2.3",
        "blinker==1.4",
        "acme==0.9.3",
        "letsencrypt==0.7.0",
        "certbot==0.9.3",
        "certifi==2016.9.26",
        "pbr==3.1.1",
        "Babel==2.3.4",
        "zope.interface==4.3.3",
        "parsedatetime==2.1",
    ],
    extras_require={
        'tests': [
            "mock==2.0.0",
            "flake8==2.1.0",
            "coverage==3.7.1",
            "freezegun==0.3.7",
        ]
    },
)
<commit_msg>bump to 0.2.6<commit_after># -*- coding: utf-8 -*-

# Copyright 2016 rpaas authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import codecs

from setuptools import setup, find_packages

README = codecs.open('README.rst', encoding='utf-8').read()

setup(
    name="tsuru-rpaas",
    version="0.2.6",
    description="Reverse proxy as-a-service API for Tsuru PaaS",
    long_description=README,
    author="Tsuru",
    author_email="tsuru@corp.globo.com",
    classifiers=[
        "Programming Language :: Python :: 2.7",
    ],
    packages=find_packages(exclude=["docs", "tests"]),
    include_package_data=True,
    install_requires=[
        "cffi==1.8.3",
        "cryptography==1.6",
        "pyOpenSSL==17.2.0",
        "Flask==0.12.4",
        "Werkzeug==0.11.15",
        "requests==2.18.4",
        "gevent==1.1b6",
        "gunicorn==0.17.2",
        "tsuru-hm==0.6.12",
        "celery[redis]==3.1.23",
        "flower==0.9.1",
        "GloboNetworkAPI==0.8.1",
        "python-consul==0.6.1",
        "raven==4.2.3",
        "blinker==1.4",
        "acme==0.9.3",
        "letsencrypt==0.7.0",
        "certbot==0.9.3",
        "certifi==2016.9.26",
        "pbr==3.1.1",
        "Babel==2.3.4",
        "zope.interface==4.3.3",
        "parsedatetime==2.1",
    ],
    extras_require={
        'tests': [
            "mock==2.0.0",
            "flake8==2.1.0",
            "coverage==3.7.1",
            "freezegun==0.3.7",
        ]
    },
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import os

import os
long_description = 'Twitter Tap is a python tool that connects to the Twitter API and issues calls to the search or the streaming endpoint using a query that the user has entered.'
if os.path.exists('README.rst'):
    long_description = open('README.md').read()

CLASSIFIERS = [
    'Development Status :: 5 - Production/Stable',
    'Intended Audience :: Developers',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: MIT License',
    'Topic :: Communications :: Chat',
    'Topic :: Internet',
    'Topic :: Database'
]

dist = setup(
    name='twitter-tap',
    version='2.0.4',
    author='Janez Kranjc',
    description='Collect tweets to a mongoDB using either the Twitter search API or the streaming API.',
    long_description=long_description,
    author_email='janez.kranjc@gmail.com',
    url='http://janezkranjc.github.io/twitter-tap/',
    license = 'MIT',
    install_requires=['pymongo','twython','six'],
    classifiers=CLASSIFIERS,
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    entry_points={
        'console_scripts': [
         'tap = twitter_tap.tap:main',
        ],
    }
)
<commit_msg>version bump<commit_after>from setuptools import setup, find_packages
import os

import os
long_description = 'Twitter Tap is a python tool that connects to the Twitter API and issues calls to the search or the streaming endpoint using a query that the user has entered.'
if os.path.exists('README.rst'):
    long_description = open('README.md').read()

CLASSIFIERS = [
    'Development Status :: 5 - Production/Stable',
    'Intended Audience :: Developers',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: MIT License',
    'Topic :: Communications :: Chat',
    'Topic :: Internet',
    'Topic :: Database'
]

dist = setup(
    name='twitter-tap',
    version='2.0.5',
    author='Janez Kranjc',
    description='Collect tweets to a mongoDB using either the Twitter search API or the streaming API.',
    long_description=long_description,
    author_email='janez.kranjc@gmail.com',
    url='http://janezkranjc.github.io/twitter-tap/',
    license = 'MIT',
    install_requires=['pymongo','twython','six'],
    classifiers=CLASSIFIERS,
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    entry_points={
        'console_scripts': [
         'tap = twitter_tap.tap:main',
        ],
    }
)
<|endoftext|>