commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
482f9ffaf1c2998fafc924a91b07656d3c054c91 | fix string | wgerlach/pipeline,teharrison/pipeline,teharrison/pipeline,wgerlach/pipeline,MG-RAST/pipeline,teharrison/pipeline,MG-RAST/pipeline,wgerlach/pipeline,MG-RAST/pipeline | bin/extract_darkmatter.py | bin/extract_darkmatter.py | #!/usr/bin/env python
import argparse
import leveldb
import os
import shutil
import sys
from Bio import SeqIO
def main(args):
parser = argparse.ArgumentParser(description="Script to extract darkmatter - predicted proteins with no similarities")
parser.add_argument("-i", "--input", dest="input", help="Name of ... | #!/usr/bin/env python
import argparse
import leveldb
import os
import shutil
import sys
from Bio import SeqIO
def main(args):
parser = argparse.ArgumentParser(description="Script to extract darkmatter - predicted proteins with no similarities")
parser.add_argument("-i", "--input", dest="input", help="Name of ... | bsd-2-clause | Python |
19d5d98350c8ef6f8e3d9153a899a6ce466e5e21 | Rename `UserOwnedModelManager` to just `UserOwnedManager` for consistency with Django naming convention. Replace `_for_user` methods with methods that override the base manager methods - this should help enforce a user context for models, and implement initial set of method overrides in this manner. | discolabs/django-owned-models | owned_models/models.py | owned_models/models.py | from django.conf import settings
from django.db import models
class UserOwnedManager(models.Manager):
"""
Wraps standard Manager query methods and adds a required `user` argument, to enforce all calls
made through this manager to be made within a user context.
"""
def all(self, user):
ret... | from django.conf import settings
from django.db import models
class UserOwnedModelManager(models.Manager):
def filter_for_user(self, user, *args, **kwargs):
return super(UserOwnedModelManager, self).get_queryset().filter(user = user, *args, **kwargs)
def get_for_user(self, user, *args, **kwargs):
... | mit | Python |
aa6b1daedbd911c23857033bcc601bdae37627f0 | Fix the Stream wrapping class. It had moved from elsewhere, but wasn't corrected for its new home in util.py | jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion | subversion/bindings/swig/python/svn/util.py | subversion/bindings/swig/python/svn/util.py | #
# svn.util: public Python interface for miscellaneous bindings
#
# Subversion is a tool for revision control.
# See http://subversion.tigris.org for more information.
#
# ====================================================================
# Copyright (c) 2000-2001 CollabNet. All rights reserved.
#
# This software... | #
# svn.util: public Python interface for miscellaneous bindings
#
# Subversion is a tool for revision control.
# See http://subversion.tigris.org for more information.
#
# ====================================================================
# Copyright (c) 2000-2001 CollabNet. All rights reserved.
#
# This software... | apache-2.0 | Python |
be10731cab38445a3d1c3a6df3703fba3fecc93f | Fix accessing argv | Tatsh/xirvik-tools | examples/move-by-label.py | examples/move-by-label.py | #!/usr/bin/env python
"""
Example script to move torrents based on their label set in ruTorrent.
./move-by-label.py USERNAME HOSTNAME [PATH]
"""
from __future__ import print_function
from time import sleep
import sys
from xirvik.client import ruTorrentClient
USERNAME = sys.argv[1]
HOST = sys.argv[2]
try:
PATH = ... | #!/usr/bin/env python
"""
Example script to move torrents based on their label set in ruTorrent.
./move-by-label.py USERNAME HOSTNAME [PATH]
"""
from __future__ import print_function
from time import sleep
import sys
from xirvik.client import ruTorrentClient
USERNAME = sys.argv[1]
HOST = sys.arg[2]
try:
PATH = s... | mit | Python |
6ece7062e539e2196ff04c49f07913c884907878 | rearrange lines to make colors to player map clear | chillpop/RELAX-HARDER,chillpop/RELAX-HARDER | run-relax.py | run-relax.py | #!/usr/bin/env python
import sys
import time
from Mindwave.mindwave import BluetoothHeadset, FakeHeadset
# Note: on OS X, BluetoothHeadset will not work
from parameters import SharedParameters
from threads import HeadsetThread
from gameplay import GameObject
from game_effects import generate_player_renderer
from contr... | #!/usr/bin/env python
import sys
import time
from Mindwave.mindwave import BluetoothHeadset, FakeHeadset
# Note: on OS X, BluetoothHeadset will not work
from parameters import SharedParameters
from threads import HeadsetThread
from gameplay import GameObject
from game_effects import generate_player_renderer
from contr... | mit | Python |
0f0fc4037997f6ae4eef019547e3c8d8cf05db9c | modify test data | nakagami/pydrda | drda/tests/test_derby.py | drda/tests/test_derby.py | ##############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2016 Hajime Nakagami
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software... | ##############################################################################
# The MIT License (MIT)
#
# Copyright (c) 2016 Hajime Nakagami
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software... | mit | Python |
2ab1c23ca4be991c174514998496ea4f7c8f6c3a | Make indentation consistent with other code | logandk/serverless-wsgi,logandk/serverless-wsgi | serve.py | serve.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module serves a WSGI application using werkzeug.
Author: Logan Raarup <logan@logan.dk>
"""
import importlib
import os
import sys
try:
from werkzeug import serving
except ImportError: # pragma: no cover
sys.exit('Unable to import werkzeug (run: pip instal... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module serves a WSGI application using werkzeug.
Author: Logan Raarup <logan@logan.dk>
"""
import importlib
import os
import sys
try:
from werkzeug import serving
except ImportError: # pragma: no cover
sys.exit('Unable to import werkzeug (run: pip instal... | mit | Python |
cdedb1d6875a8ab5f42369b1801a1fc0ee205654 | Add option to generate coverage report | necozay/tulip-control,necozay/tulip-control,tulip-control/tulip-control,necozay/tulip-control,tulip-control/tulip-control,tulip-control/tulip-control,tulip-control/tulip-control,necozay/tulip-control,necozay/tulip-control | run_tests.py | run_tests.py | #!/usr/bin/env python
"""
Driver script for testing nu-TuLiP. Try calling it with "-h" flag.
SCL; 5 Sep 2013.
"""
import sys
import os.path
import nose
if __name__ == "__main__":
if ("-h" in sys.argv) or ("--help" in sys.argv):
print """Usage: run_tests.py [--cover] [--fast] [OPTIONS...] [[-]TESTFILES..... | #!/usr/bin/env python
"""
Driver script for testing nu-TuLiP. Try calling it with "-h" flag.
SCL; 6 May 2013.
"""
import sys
import os.path
import nose
if __name__ == "__main__":
if ("-h" in sys.argv) or ("--help" in sys.argv):
print """Usage: run_tests.py [--fast] [OPTIONS...] [[-]TESTFILES...]
TE... | bsd-3-clause | Python |
b74d9d3a780082b8cb326a553a9b4c84ca5368be | Add IS_OFFLINE environment variable to serve | logandk/serverless-wsgi,logandk/serverless-wsgi | serve.py | serve.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module serves a WSGI application using werkzeug.
Author: Logan Raarup <logan@logan.dk>
"""
import importlib
import os
import sys
try:
from werkzeug import serving
except ImportError: # pragma: no cover
sys.exit('Unable to import werkzeug (run: pip instal... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module serves a WSGI application using werkzeug.
Author: Logan Raarup <logan@logan.dk>
"""
import importlib
import os
import sys
try:
from werkzeug import serving
except ImportError: # pragma: no cover
sys.exit('Unable to import werkzeug (run: pip instal... | mit | Python |
224aa339ee7f1720ebb3616aa62ba06975c1a11d | handle .blend model sources | illwieckz/grtoolbox,illwieckz/Urcheon | pak_profiles/common.py | pak_profiles/common.py | #! /usr/bin/env python3
#-*- coding: UTF-8 -*-
### Legal
#
# Author: Thomas DEBESSE <dev@illwieckz.net>
# License: ISC
#
file_common_deps = {
"file_base": "DEPS",
"description": "Package DEPS file",
"action": "copy",
}
file_common_external_editor = {
"file_ext": [
"xcf",
"psd",
"ora",
],
"description":... | #! /usr/bin/env python3
#-*- coding: UTF-8 -*-
### Legal
#
# Author: Thomas DEBESSE <dev@illwieckz.net>
# License: ISC
#
file_common_deps = {
"file_base": "DEPS",
"description": "Package DEPS file",
"action": "copy",
}
file_common_external_editor = {
"file_ext": [
"xcf",
"psd",
"ora",
],
"description":... | isc | Python |
52d835ec8a3dfec53c3cab23598be6f63da9addc | Update prims_minimum_spanning.py | keon/algorithms | algorithms/graph/prims_minimum_spanning.py | algorithms/graph/prims_minimum_spanning.py | '''
This Prim's Algorithm Code is for finding weight of minimum spanning tree
of a connected graph.
For argument graph, it should be a dictionary type
such as
graph = {
'a': [ [3, 'b'], [8,'c'] ],
'b': [ [3, 'a'], [5, 'd'] ],
'c': [ [8, 'a'], [2, 'd'], [4, 'e'] ],
'd': [ [5, 'b'], [2, 'c'], [6, 'e'] ],
... | import heapq # for priority queue
# prim's algo. to find weight of minimum spanning tree
def prims(graph):
vis=[]
s=[[0,1]]
prim = []
mincost=0
while(len(s)>0):
v=heapq.heappop(s)
x=v[1]
if(x in vis):
continue
mincost += v[0]
prim.append(x)... | mit | Python |
9e0f62c3eedd2c5376af4178a0ecf529898a041b | Update command doc for open | guildai/guild,guildai/guild,guildai/guild,guildai/guild | guild/commands/open_.py | guild/commands/open_.py | # Copyright 2017-2020 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | # Copyright 2017-2020 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 | Python |
f12b3f5c5a1409f44fc2acbb54d53fc668028e4a | Set print options for numpy 1.14 to 1.13. | cmshobe/landlab,landlab/landlab,landlab/landlab,amandersillinois/landlab,landlab/landlab,cmshobe/landlab,amandersillinois/landlab,cmshobe/landlab | landlab/__init__.py | landlab/__init__.py | #! /usr/bin/env python
"""The Landlab
:Package name: TheLandlab
:Release date: 2013-03-24
:Authors: Greg Tucker, Nicole Gasparini, Erkan Istanbulluoglu, Daniel Hobley,
Sai Nudurupati, Jordan Adams, Eric Hutton
:URL: http://csdms.colorado.edu/trac/landlab
:License: MIT
"""
from __future__ import absolute_import
im... | #! /usr/bin/env python
"""The Landlab
:Package name: TheLandlab
:Release date: 2013-03-24
:Authors: Greg Tucker, Nicole Gasparini, Erkan Istanbulluoglu, Daniel Hobley,
Sai Nudurupati, Jordan Adams, Eric Hutton
:URL: http://csdms.colorado.edu/trac/landlab
:License: MIT
"""
from __future__ import absolute_import
im... | mit | Python |
bcac5b2faf882fda49a3bff7eae147bcb8cbd460 | Fix spelling of setup-readme.md | aylward/ITKTubeTK,aylward/ITKTubeTK,aylward/ITKTubeTK,aylward/ITKTubeTK | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import print_function
from os import sys
try:
from skbuild import setup
except ImportError:
print('scikit-build is required to build from source.', file=sys.stderr)
print('Please run:', file=sys.stderr)
print('', file=sys.stderr)
print(' python -m pip instal... | # -*- coding: utf-8 -*-
from __future__ import print_function
from os import sys
try:
from skbuild import setup
except ImportError:
print('scikit-build is required to build from source.', file=sys.stderr)
print('Please run:', file=sys.stderr)
print('', file=sys.stderr)
print(' python -m pip instal... | apache-2.0 | Python |
caf45bc9d92bb496a3fb32b494db623b5b405208 | bump version | dakrauth/picker,dakrauth/picker | picker/__init__.py | picker/__init__.py | VERSION = (0, 5, 0)
default_app_config = 'picker.apps.PickerConfig'
def get_version():
return '.'.join(map(str, VERSION))
| VERSION = (0, 4, 0)
default_app_config = 'picker.apps.PickerConfig'
def get_version():
return '.'.join(map(str, VERSION))
| mit | Python |
2b939c703951c0a7042fa336d9c685c437fb0586 | Bump to version 1.2 | Fantomas42/templer.django-project-app | setup.py | setup.py | """Setup script for templer.django-project-app"""
from setuptools import setup
from setuptools import find_packages
version = '1.2'
setup(
name='templer.django-project-app',
version=version,
description='Templer extension for creating '
'Django applications within projects.',
long_description=open... | """Setup script for templer.django-project-app"""
from setuptools import setup
from setuptools import find_packages
version = '1.1'
setup(
name='templer.django-project-app',
version=version,
description='Templer extension for creating '
'Django applications within projects.',
long_description=open... | bsd-3-clause | Python |
9669a99d1a76f346b2cfb9b4197636ac3142f9d2 | Update users table in a batched manner | TribeMedia/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse,matrix-org/synapse | synapse/storage/schema/delta/30/as_users.py | synapse/storage/schema/delta/30/as_users.py | # Copyright 2016 OpenMarket Ltd
#
# 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 writin... | # Copyright 2016 OpenMarket Ltd
#
# 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 writin... | apache-2.0 | Python |
da5a05c27f1c19c69ce23f5cd6cd0f09edb9d7f7 | Refactor common serializer selection code. | jarvis-cochrane/paranuara | paranuara_api/views.py | paranuara_api/views.py | from rest_framework import viewsets
from paranuara_api.models import Company, Person
from paranuara_api.serializers import (
CompanySerializer, CompanyListSerializer, PersonListSerializer,
PersonSerializer
)
class MultiSerializerMixin(object):
def get_serializer_class(self):
return self.s... | from rest_framework import viewsets
from paranuara_api.models import Company, Person
from paranuara_api.serializers import (
CompanySerializer, CompanyListSerializer, PersonListSerializer,
PersonSerializer
)
class CompanyViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Company.objects.all()
... | bsd-3-clause | Python |
a2a849f3d425e9c544a66d2b04ab80555be16add | Fix path error | drivnal/drivnal,drivnal/drivnal,drivnal/drivnal | drivnal/handlers/path.py | drivnal/handlers/path.py | from drivnal.constants import *
from drivnal.backup import Client
import drivnal.utils as utils
from drivnal import server
import os
import flask
@server.app.route('/path', methods=['GET'])
@server.app.route('/path/<path:path>', methods=['GET'])
def path_get(path=None):
path = '/' + (path or '')
paths = []
... | from drivnal.constants import *
from drivnal.backup import Client
import drivnal.utils as utils
from drivnal import server
import os
import flask
@server.app.route('/path', methods=['GET'])
@server.app.route('/path/<path:path>', methods=['GET'])
def path_get(path=None):
path = '/' + (path or '')
paths = []
... | agpl-3.0 | Python |
9728d151967b6796ef2a34d8a9867fd109fe48f3 | remove psutil from setup.py | sailthru/mongo-connector,rassor/mongo-connector,hzwjava/mongo-connector,imclab/mongo-connector,XDestination/mongo-connector,Philmod/mongo-connector,jtharpla/mongo-connector,sachinkeshav/mongo-connector,banzo/mongo-connector,jaredkipe/mongo-connector,devopservices/mongo-connector,dgsh/mongo-connector,algolia/mongo-conne... | setup.py | setup.py | # Copyright 2013-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | # Copyright 2013-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 | Python |
f8ee0fc34d060016f0f601e1d84000b9c612efc6 | exclude "abstract" methods from coverage | stcorp/muninn,stcorp/muninn | muninn/storage/base.py | muninn/storage/base.py | import os.path
import muninn.util as util
class StorageBackend(object):
def __init__(self):
self.supports_symlinks = False
self.global_prefix = ''
def get_tmp_root(self, product):
if self._tmp_root:
tmp_root = os.path.join(self._tmp_root, product.core.archive_path)
... | import os.path
import muninn.util as util
class StorageBackend(object):
def __init__(self):
self.supports_symlinks = False
self.global_prefix = ''
def get_tmp_root(self, product):
if self._tmp_root:
tmp_root = os.path.join(self._tmp_root, product.core.archive_path)
... | bsd-3-clause | Python |
5261aa35eb5ab697310efc5bc8b7d11e8655127b | Update project info | uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal | setup.py | setup.py | """ setup script for "portal" package
for development:
python setup.py develop
to install:
python setup.py install
"""
from setuptools import setup
project = "portal"
# maintain long_description as a single long line.
# workaround for a bug in pkg_info._get_metadata("PKG-INFO")
long_description =\
"""Alph... | """ setup script for "portal" package
for development:
python setup.py develop
to install:
python setup.py install
"""
from setuptools import setup
project = "portal"
# maintain long_description as a single long line.
# workaround for a bug in pkg_info._get_metadata("PKG-INFO")
long_description =\
"""Alph... | bsd-3-clause | Python |
6ce8537236f6bbc92789dc57a07befad391e2bc8 | fix install_requires | pavel-paulau/cbagent,vmx/cbagent,couchbase/cbagent,mikewied/cbagent | setup.py | setup.py | from setuptools import setup
version = '2.4.2'
setup(
name='cbagent',
version=version,
description='Stats collectors package for Couchbase Server monitoring',
author='Couchbase',
license='Apache Software License',
packages=[
'cbagent',
'cbagent.collectors',
'cbagent.col... | from setuptools import setup
version = '2.4.1'
setup(
name='cbagent',
version=version,
description='Stats collectors package for Couchbase Server monitoring',
author='Couchbase',
license='Apache Software License',
packages=[
'cbagent',
'cbagent.collectors',
'cbagent.col... | apache-2.0 | Python |
b1933e4d998d703a14bbb1769e04a078fac215bc | Update HexStats.py | Vlek/plugins | HexChat/HexStats.py | HexChat/HexStats.py | import hexchat
#Based on Weechat's Weestats: https://weechat.org/scripts/source/weestats.py.html/
#By Filip H.F. 'FiXato' Slagter <fixato [at] gmail [dot] com>
__module_name__ = 'HexStats'
__module_version__ = '0.0.1'
__module_description__ = 'Displays HexChat-wide User Statistics'
__module_author__ = 'Vlek'
def st... | import hexchat
#Based on Weechat's Weestats: https://weechat.org/scripts/source/weestats.py.html/
#By Filip H.F. 'FiXato' Slagter <fixato [at] gmail [dot] com>
__module_name__ = 'HexStats'
__module_version__ = '0.0.1'
__module_description__ = 'Displays HexChat Wide User Statistics'
__module_author__ = 'Vlek'
def st... | mit | Python |
1a6b79629c4e79e3917287a693047fbe5e0129ad | Check user if admin before lockdown | ProtoxiDe22/Octeon | plugins/lock_the_chat.py | plugins/lock_the_chat.py | """
Echo plugin example
"""
import octeon
global locked
locked = []
PLUGINVERSION = 2
# Always name this variable as `plugin`
# If you dont, module loader will fail to load the plugin!
plugin = octeon.Plugin()
@plugin.message(regex=".*") # You pass regex pattern
def lock_check(bot, update):
if update.message.chat_i... | """
Echo plugin example
"""
import octeon
global locked
locked = []
PLUGINVERSION = 2
# Always name this variable as `plugin`
# If you dont, module loader will fail to load the plugin!
plugin = octeon.Plugin()
@plugin.message(regex=".*") # You pass regex pattern
def lock_check(bot, update):
if update.message.chat_i... | mit | Python |
d60f0fa1f942a24ca38ce20f2b5a617eb5181456 | update session backend | pyprism/Hiren-Disk,pyprism/Hiren-Disk,pyprism/Hiren-Disk | hiren/hiren/settings.py | hiren/hiren/settings.py | """
Django settings for hiren project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | """
Django settings for hiren project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | mit | Python |
243c4ba66d35efbe58944ff973d668d9a3b7c6f8 | Update __init__.py | bardia73/Graph,bardia73/Graph,bardia-heydarinejad/Graph,bardia-heydarinejad/Graph | VertexActions/__init__.py | VertexActions/__init__.py | #
| mit | Python | |
9a9a6643bbc26a3f359df52b0b4bbb4207225017 | Update VariationalAutoencoderRunner.py | cshallue/models,alexgorban/models,sshleifer/object_detection_kitti,jiaphuan/models,tombstone/models,alexgorban/models,alexgorban/models,sshleifer/object_detection_kitti,derekjchow/models,tombstone/models,jiaphuan/models,jiaphuan/models,cshallue/models,jiaphuan/models,cshallue/models,tombstone/models,tombstone/models,de... | autoencoder/VariationalAutoencoderRunner.py | autoencoder/VariationalAutoencoderRunner.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import sklearn.preprocessing as prep
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
from autoencoder_models.VariationalAutoencoder import VariationalAutoe... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import sklearn.preprocessing as prep
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
from autoencoder_models.VariationalAutoencoder import VariationalAutoe... | apache-2.0 | Python |
32fa9354c221f91cc6790177371a00468d22cb85 | Fix the scan script | OiNutter/microbit-scripts | scan/scan.py | scan/scan.py | # Add your Python code here. E.g.
from microbit import *
MAX_ROWS=4
level = 9
def scan(pause=500, reverse=False):
for i in range(0,10):
x = 0
rows = i
cols = i
while x <= i:
for y in range(0,rows+1):
if x <= MAX_ROWS and y <= MAX_ROWS:
... | # Add your Python code here. E.g.
from microbit import *
MAX_ROWS=4
def scan(level,pause=500, reverse=False):
for i in range(0,10):
x = 0
rows = i
cols = i
while x <= i:
for y in range(0,rows+1):
if x <= MAX_ROWS and y <= MAX_ROWS:
co... | mit | Python |
9360c15f8883543ad5d83aa7dc870c60a1fed5ec | add infos | efficios/pytsdl | setup.py | setup.py | #!/usr/bin/env python3
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Philippe Proulx <philippe.proulx@efficios.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, i... | #!/usr/bin/env python3
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Philippe Proulx <philippe.proulx@efficios.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, i... | mit | Python |
dc1773eaf3e66ddf5cbaa564bb55dbb8e51218ff | Fix #752: test case failed | yapdns/yapdnsbeat,yapdns/yapdnsbeat | topbeat/tests/system/test_filesystem.py | topbeat/tests/system/test_filesystem.py | from topbeat import TestCase
import numbers
"""
Contains tests for ide statistics.
"""
class Test(TestCase):
def test_filesystems(self):
"""
Checks that system wide stats are found in the output and
have the expected types.
"""
self.render_config_template(
syst... | from topbeat import TestCase
"""
Contains tests for ide statistics.
"""
class Test(TestCase):
def test_filesystems(self):
"""
Checks that system wide stats are found in the output and
have the expected types.
"""
self.render_config_template(
system_stats=False... | mit | Python |
1dacd99bbe1b32586a013d7d6f0874271e097e7c | Revise var to reach | bowen0701/algorithms_data_structures | lc0055_jump_game.py | lc0055_jump_game.py | """Leetcode 55. Jump Game
Medium
URL: https://leetcode.com/problems/jump-game/
Given an array of non-negative integers, you are initially positioned at the
first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
E... | """Leetcode 55. Jump Game
Medium
URL: https://leetcode.com/problems/jump-game/
Given an array of non-negative integers, you are initially positioned at the
first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.
E... | bsd-2-clause | Python |
e908792a8a47b4afc478a89f479ab836d7acea5e | set 2to3 False | desihub/desiutil,desihub/desiutil | setup.py | setup.py | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
#
# Standard imports
#
import glob
import os
import sys
from setuptools import setup, find_packages
#
# desiutil needs to import some of its own code.
#
sys.path.insert(... | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
#
# Standard imports
#
import glob
import os
import sys
from setuptools import setup, find_packages
#
# desiutil needs to import some of its own code.
#
sys.path.insert(... | bsd-3-clause | Python |
25ff2bcd545c7429dda5f3cd48ff8272c28d8965 | Complete recur sort w/ iter merge sol | bowen0701/algorithms_data_structures | lc0148_sort_list.py | lc0148_sort_list.py | """Leetcode 148. Sort List
Medium
URL: https://leetcode.com/problems/sort-list/
Sort a linked list in O(n log n) time using constant space complexity.
Example 1:
Input: 4->2->1->3
Output: 1->2->3->4
Example 2:
Input: -1->5->3->4->0
Output: -1->0->3->4->5
"""
# Definition for singly-linked list.
class ListNode(obje... | """Leetcode 148. Sort List
Medium
URL: https://leetcode.com/problems/sort-list/
Sort a linked list in O(n log n) time using constant space complexity.
Example 1:
Input: 4->2->1->3
Output: 1->2->3->4
Example 2:
Input: -1->5->3->4->0
Output: -1->0->3->4->5
"""
# Definition for singly-linked list.
class ListNode(obje... | bsd-2-clause | Python |
d3d8267588b60f77b6c55ffd8461ddfa163501da | add dependency for protobuf | Cue/fast-python-pb | setup.py | setup.py | #!/usr/bin/env python
# Copyright 2011 The fast-python-pb Authors.
#
# 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 a... | #!/usr/bin/env python
# Copyright 2011 The fast-python-pb Authors.
#
# 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 a... | apache-2.0 | Python |
2035099fd78b1d0906403ec836a4b7e7144a6bbc | bump to 0.0.6 | SwingTix/bookkeeper | swingtix/bookkeeper/__init__.py | swingtix/bookkeeper/__init__.py | __VERSION__='0.0.6'
| __VERSION__='0.0.5'
| agpl-3.0 | Python |
448d1fc24dd92e6d9f063a1b679db2d5be2f7106 | Simplify n - 1 | bowen0701/algorithms_data_structures | lc0293_flip_game.py | lc0293_flip_game.py | """Leetcode 293. Flip Game (Premium)
Easy
URL: https://leetcode.com/problems/flip-game
You are playing the following Flip Game with your friend: Given a string that
contains only these two characters: + and -, you and your friend take turns to
flip two consecutive "++" into "--". The game ends when a person can no lo... | """Leetcode 293. Flip Game (Premium)
Easy
URL: https://leetcode.com/problems/flip-game
You are playing the following Flip Game with your friend: Given a string that
contains only these two characters: + and -, you and your friend take turns to
flip two consecutive "++" into "--". The game ends when a person can no lo... | bsd-2-clause | Python |
4e9444f76ba36ed58b13843017cb2d67a6ebd2a7 | create version 2.4.8 | Duke-GCB/DukeDSClient,Duke-GCB/DukeDSClient | setup.py | setup.py | from setuptools import setup
setup(name='DukeDSClient',
version='2.4.8',
description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.',
url='https://github.com/Duke-GCB/DukeDSClient',
keywords='duke dds dukedataservice',
author='John Bradley',
... | from setuptools import setup
setup(name='DukeDSClient',
version='2.4.7',
description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.',
url='https://github.com/Duke-GCB/DukeDSClient',
keywords='duke dds dukedataservice',
author='John Bradley',
... | mit | Python |
ac85d822f1c2656ee2c83550e613b52d97b8f2da | update message for image check gate when base id is out of date Fixes #50 | anchore/anchore,anchore/anchore | anchore/anchore-modules/gates/11_check_image.py | anchore/anchore-modules/gates/11_check_image.py | #!/usr/bin/env python
import sys
import os
import json
import re
import anchore
from anchore import anchore_utils
gate_name = "IMAGECHECK"
triggers = {
'BASEOUTOFDATE':
{
'description':'triggers if the image\'s base image has been updated since the image was built/analyzed',
'params':'None'
... | #!/usr/bin/env python
import sys
import os
import json
import re
import anchore
from anchore import anchore_utils
gate_name = "IMAGECHECK"
triggers = {
'BASEOUTOFDATE':
{
'description':'triggers if the image\'s base image has been updated since the image was built/analyzed',
'params':'None'
... | apache-2.0 | Python |
7f03e3ee668f272a68fd326d642966eb876609d7 | Fix a debug email error. | grengojbo/satchmo,grengojbo/satchmo | satchmo/apps/satchmo_store/mail.py | satchmo/apps/satchmo_store/mail.py | from django.conf import settings
from django.template import loader, Context
from satchmo_store.shop.models import Config
from socket import error as SocketError
import logging
log = logging.getLogger('satchmo_store.mail')
if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
else:
from django.... | from django.conf import settings
from django.template import loader, Context
from satchmo_store.shop.models import Config
from socket import error as SocketError
import logging
log = logging.getLogger('satchmo_store.mail')
if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
else:
from django.... | bsd-3-clause | Python |
d146e397b0240d1a22e2f53d3c538a90180a122d | remove wxPython from install_requires, as setuptools can't find/install it | motmot/wxvideo | setup.py | setup.py | from setuptools import setup, find_packages
import os
kws = {}
if not int(os.getenv( 'DISABLE_INSTALL_REQUIRES','0' )):
kws['install_requires'] = [
'numpy>=1.0.4',
'PIL>=1.1.6',
'motmot.imops',
]
setup(name='motmot.wxvideo',
description='wx viewer of image sequences',
l... | from setuptools import setup, find_packages
import os
kws = {}
if not int(os.getenv( 'DISABLE_INSTALL_REQUIRES','0' )):
kws['install_requires'] = [
'numpy>=1.0.4',
'PIL>=1.1.6',
'motmot.imops',
'wxPython>=2.8'
]
setup(name='motmot.wxvideo',
description='wx viewer of i... | bsd-3-clause | Python |
51de92a1402739e4a6a703ce1fc7e2f2ade308f3 | add information to pypi page (#21) | VirusTotal/vt-graph-api,VirusTotal/vt-graph-api | setup.py | setup.py | """Setup for vt_graph_api module."""
import re
import sys
import setuptools
with open("./vt_graph_api/version.py") as f:
version = (
re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'",
f.read()).groups()[0])
# check python version >2.7.x and >=3.2.x
installable = True
if sys.ver... | """Setup for vt_graph_api module."""
import re
import sys
import setuptools
with open("./vt_graph_api/version.py") as f:
version = (
re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'",
f.read()).groups()[0])
# check python version >2.7.x and >=3.2.x
installable = True
if sys.ver... | apache-2.0 | Python |
d36e17e3823af74b5a6f75191f141ec98fdf281f | Fix failing reconnects; add quit IRC command | howard/p1tr-tng,howard/p1tr-tng | plugins/irc/irc.py | plugins/irc/irc.py | from p1tr.helpers import clean_string
from p1tr.plugin import *
@meta_plugin
class Irc(Plugin):
"""Provides commands for basic IRC operations."""
@command
@require_master
def nick(self, server, channel, nick, params):
"""Usage: nick NEW_NICKNAME - changes the bot's nickname."""
if len(... | from p1tr.helpers import clean_string
from p1tr.plugin import *
@meta_plugin
class Irc(Plugin):
"""Provides commands for basic IRC operations."""
@command
@require_master
def nick(self, server, channel, nick, params):
"""Usage: nick NEW_NICKNAME - changes the bot's nickname."""
if len(... | mit | Python |
c831f6bee344b67171900ca7e50bf6fc85ea9345 | Remove outdated qualifier in setup.py | groveco/django-sql-explorer,groveco/django-sql-explorer,groveco/django-sql-explorer,epantry/django-sql-explorer,groveco/django-sql-explorer,epantry/django-sql-explorer,epantry/django-sql-explorer | setup.py | setup.py | import os
from setuptools import setup
from explorer import __version__
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | import os
from setuptools import setup
from explorer import __version__
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | mit | Python |
d8e0109e4c697f4a920ff4993c491eb5b0d38d55 | Update pylint dependency to 1.9.1 | onelogin/python-saml,onelogin/python-saml | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2018 OneLogin, Inc.
# MIT License
from setuptools import setup
setup(
name='python-saml',
version='2.4.1',
description='Onelogin Python Toolkit. Add SAML support to your Python software using this library',
classifiers=[
'De... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2018 OneLogin, Inc.
# MIT License
from setuptools import setup
setup(
name='python-saml',
version='2.4.1',
description='Onelogin Python Toolkit. Add SAML support to your Python software using this library',
classifiers=[
'De... | mit | Python |
c0566fabd434b2f9722ac37538fd74b4959fedbc | Add click as dependency | clb6/jarvis-cli | setup.py | setup.py | from setuptools import setup, find_packages
from jarvis_cli import __version__
setup(
name = "jarvis-cli",
version = __version__,
packages = find_packages(),
author = "Michael Hwang",
author_email = "hirehwang@gmail.com",
description = ("Jarvis command-line tool"),
... | from setuptools import setup, find_packages
from jarvis_cli import __version__
setup(
name = "jarvis-cli",
version = __version__,
packages = find_packages(),
author = "Michael Hwang",
author_email = "hirehwang@gmail.com",
description = ("Jarvis command-line tool"),
... | apache-2.0 | Python |
cf16c64e378f64d2267f75444c568aed895f940c | Add csblog to installed scripts. | mhils/countershape,samtaufa/countershape,cortesi/countershape,cortesi/countershape,samtaufa/countershape,mhils/countershape | setup.py | setup.py | import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd",
autho... | import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd",
autho... | mit | Python |
496abc7854985c6f1bfd8463330f2f07a0f3048c | remove unused dependency libcst (#39) | googleapis/python-bigquery-migration,googleapis/python-bigquery-migration | setup.py | setup.py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | apache-2.0 | Python |
a339b96b33fd7f2ef8e2d18c64e997173309a459 | Prepare for more development. | khardix/udiskie,coldfix/udiskie,pstray/udiskie,coldfix/udiskie,pstray/udiskie,mathstuf/udiskie | setup.py | setup.py | from distutils.core import setup
setup(
name='udiskie',
version='0.2.1',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
packages=[
'udiskie',
],
scripts=[
... | from distutils.core import setup
setup(
name='udiskie',
version='0.2.0',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
packages=[
'udiskie',
],
scripts=[
... | mit | Python |
118c079b2065f1b624f2ed54722483f1dca46eac | fix typo in setup.py | McLeopold/PythonHtmlr | setup.py | setup.py | from distutils.core import setup
setup(
name='htmlr',
version='0.1.0',
author='Scott Hamilton',
author_email='mcleopold@gmail.com',
packages=['htmlr',
'htmlr.testsuite'
],
url='http://github.com/McLeopold/PythonHtmlr/',
license="BSD",
description='DSL to generate HTML ... | from distutils.core import setup
setup(
name='htmlr',
version='0.1.0',
author='Scott Hamilton',
author_email='mcleopold@gmail.com',
packages=['htmlr',
'skills.testsuite'
],
url='http://github.com/McLeopold/PythonHtmlr/',
license="BSD",
description='DSL to generate HTML... | bsd-2-clause | Python |
6bd7a61272ca5fe3d916488e24a1dab5e022f61b | Fix installing PIP issues | nprapps/HypChat,RidersDiscountCom/HypChat,nprapps/HypChat,dougkeen/HypChat,dougkeen/HypChat | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
def read_file(name):
"""
Read file content
"""
f = open(name)
try:
return f.read()
except IOError:
print("could not read %r" % name)
f.close()
setup(name='hypchat',
version='0.4',
description="Package f... | #!/usr/bin/env python
from distutils.core import setup
setup(name='hypchat',
version='0.4',
description="Package for HipChat's v2 API",
long_description=open('README.rst').read(),
author='James Bliss',
author_email='james@ridersdiscount.com',
url='https://github.com/RidersDiscountC... | mit | Python |
91746b5a3352ffc56baf770d6b35f0130b2e4128 | update version | qurit/rt-utils | setup.py | setup.py | import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
version = '0.0.3'
setuptools.setup(
name="rt-utils",
version=version,
author="Asim Shrestha",
author_email="asim.shrestha@ho... | import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
version = '0.0.2'
setuptools.setup(
name="rt-utils",
version=version,
author="Asim Shrestha",
author_email="asim.shrestha@ho... | mit | Python |
c754e7fd020ff3bdada2e724087c82ce72ee061b | Bump version to 0.2.19 | rbauction/sfdclib | setup.py | setup.py | """sfdclib package setup"""
import textwrap
from setuptools import setup
setup(
name='sfdclib',
version='0.2.19',
author='Andrey Shevtsov',
author_email='ashevtsov@rbauction.com',
packages=['sfdclib'],
url='https://github.com/rbauction/sfdclib',
license='MIT',
description=("SFDClib is ... | """sfdclib package setup"""
import textwrap
from setuptools import setup
setup(
name='sfdclib',
version='0.2.18',
author='Andrey Shevtsov',
author_email='ashevtsov@rbauction.com',
packages=['sfdclib'],
url='https://github.com/rbauction/sfdclib',
license='MIT',
description=("SFDClib is ... | mit | Python |
ec070a097ead0370cf7b1ac9c21e6c4a68f9477c | Send file before changes | edne/pineal | bin/py/watch.py | bin/py/watch.py | #!/usr/bin/env python
from __future__ import print_function
import os
from sys import argv
from time import sleep
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import liblo
logger = logging.getLogger("watcher.py")
logger.setLevel(logging.INFO)
logger.addHandl... | #!/usr/bin/env python
from __future__ import print_function
import os
from sys import argv
from time import sleep
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import liblo
logger = logging.getLogger("watcher.py")
logger.setLevel(logging.INFO)
logger.addHandl... | agpl-3.0 | Python |
633110a0967f75f590bc24dd9d5d3400cb9efb0a | Remove unused classmethod from setup.py | vamem9z-Moses/quintet | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
# long option, short option, description
user_options = [
('flakes', None, 'Use pyflakes'),
('coverage', 'C',... | #!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
# long option, short option, description
user_options = [
('flakes', None, 'Use pyflakes'),
('coverage', 'C',... | mit | Python |
effe6edab431c133aed40c72698f6a1b976b6a67 | add dependencies to setup.py | ckan/ckanext-qa,ckan/ckanext-qa,ckan/ckanext-qa | setup.py | setup.py | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description="Quality Assurance plugin for CKAN",
long_description="""
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
... | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description="Quality Assurance plugin for CKAN",
long_description="""
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
... | mit | Python |
6076ceb869a604eb460a19b11b8c17043f21362f | bump version to 0.11.2 | jamtwister/vncdotool,sibson/vncdotool | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
README = open('README.rst', 'rt').read()
setup(
name='vncdotool',
version='0.11.2',
description='Command line VNC client',
install_requires=[
'Twisted',
"Pillow",
],
tests_require=[
'nose',
'pexpect',
],
... | #!/usr/bin/env python
from setuptools import setup
README = open('README.rst', 'rt').read()
setup(
name='vncdotool',
version='0.11.1',
description='Command line VNC client',
install_requires=[
'Twisted',
"Pillow",
],
tests_require=[
'nose',
'pexpect',
],
... | mit | Python |
921ef5f43e8f6f0c3274ca3ed48b856c50b0ead9 | Fix build with Python 3 | nschloe/voropy | setup.py | setup.py | # -*- coding: utf-8 -*-
#
from setuptools import setup, find_packages
import os
import codecs
# https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(base_dir, 'voropy', '__about__.py'), 'rb') as f:
exec(f.read(), about)
def re... | # -*- coding: utf-8 -*-
#
from setuptools import setup, find_packages
import os
import codecs
# https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(base_dir, 'voropy', '__about__.py')) as f:
exec(f.read(), about)
def read(fna... | mit | Python |
1de80ec1d74c2cf074d8f90a9c7da3c6e0380b05 | Fix setup.py (really) | lorien/grab,lorien/grab | setup.py | setup.py | import os
from setuptools import setup
ROOT = os.path.dirname(os.path.realpath(__file__))
with open("README.md", encoding="utf-8") as inp:
README_CONTENT = inp.read()
setup(
# Meta data
name="grab",
version="0.6.41",
author="Gregory Petukhov",
author_email="lorien@lorien.name",
maintaine... | import os
from setuptools import setup
ROOT = os.path.dirname(os.path.realpath(__file__))
with open("README.md", encoding="utf-8") as inp:
README_CONTENT = inp.read()
setup(
# Meta data
name="grab",
version="0.6.41",
author="Gregory Petukhov",
author_email="lorien@lorien.name",
maintaine... | mit | Python |
c9a21b84a4fd719fc0cf50cf96e642d7c494ea5d | use setup from distribution.py | freevo/kaa-base,freevo/kaa-base | setup.py | setup.py | # -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# setup.py - Setup script for kaa.base
# -----------------------------------------------------------------------------
# $Id$
#
# -----------------------------------------------------------------------------
# C... | # -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# setup.py - Setup script for kaa.base
# -----------------------------------------------------------------------------
# $Id$
#
# -----------------------------------------------------------------------------
# C... | lgpl-2.1 | Python |
b1742f04c0d3c39e5fa7faa2606f46561a82fad7 | Add requirements to setup.py | Spferical/visram | setup.py | setup.py | #!/usr/bin/env python2
from distutils.core import setup
setup(name='visram',
version='0.1.0',
description='Graphical RAM/CPU Visualizer',
license='MIT',
author='Matthew Pfeiffer',
author_email='spferical@gmail.com',
url='http://github.com/Spferical/visram',
packages=['visram'... | #!/usr/bin/env python2
from distutils.core import setup
setup(name='visram',
version='0.1.0',
description='Graphical RAM/CPU Visualizer',
license='MIT',
author='Matthew Pfeiffer',
author_email='spferical@gmail.com',
url='http://github.com/Spferical/visram',
packages=['visram'... | mit | Python |
9c5b61c7ac246db59436e0faf667e20d945244e9 | Update Development Status | harikvpy/crud,harikvpy/crud,harikvpy/crud | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
setup(
name='singleurlcrud',
description='Django CRUD, implemented using a single view and consequently a single URL.',
long_description=readme,
version='0.13',
author='Hari Mahadevan... | from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
setup(
name='singleurlcrud',
description='Django CRUD, implemented using a single view and consequently a single URL.',
long_description=readme,
version='0.13',
author='Hari Mahadevan... | bsd-3-clause | Python |
b96a5f4bb4c61a272dfd9d7a090b10245535ebbe | Fix find_packages() for python3 | clchiou/garage,clchiou/garage,clchiou/garage,clchiou/garage | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name = 'garage',
description = 'My personal python modules',
license = 'MIT',
packages = find_packages(),
install_requires = [
'lxml',
'requests',
'startup',
],
)
| from setuptools import find_packages, setup
setup(
name = 'garage',
description = 'My personal python modules',
license = 'MIT',
packages = find_packages(include=['garage', 'garage.*']),
install_requires = [
'lxml',
'requests',
'startup',
],
)
| mit | Python |
646adedf91ed4b939f95418e5d362f6ad0906d7d | Add setup_requires | spoqa/nirum-python,spoqa/nirum-python | setup.py | setup.py | import ast
import sys
from setuptools import find_packages, setup
def readme():
try:
with open('README.rst') as f:
return f.read()
except (IOError, OSError):
return
def get_version():
filename = 'nirum/__init__.py'
version = None
with open(filename, 'r') as f:
... | import ast
import sys
from setuptools import find_packages, setup
def readme():
try:
with open('README.rst') as f:
return f.read()
except (IOError, OSError):
return
def get_version():
filename = 'nirum/__init__.py'
version = None
with open(filename, 'r') as f:
... | mit | Python |
12695de726b1d1c81257a50ec8e3896ee4c9a737 | bump version; bump requests | azweb76/x-cloud | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="xcloud",
version="0.0.4",
install_requires=[
'PyYaml',
'jinja2',
'glob2',
'python-keystoneclient==3.10.0',
'python-neutronclient==6.2.0',
'python-novaclient==7.1.0',
'requests>=2.19.1',
... | from setuptools import setup, find_packages
setup(
name="xcloud",
version="0.0.3",
install_requires=[
'PyYaml',
'jinja2',
'glob2',
'python-keystoneclient==3.10.0',
'python-neutronclient==6.2.0',
'python-novaclient==7.1.0',
'requests==2.14.2',
... | mit | Python |
e165a146805e01fbe4a9f91686c27939bb6abdf0 | update dependency | biothings/biothings_explorer,biothings/biothings_explorer | setup.py | setup.py | from setuptools import setup
install_requires = [
'jsonschema>=3.0.1',
'networkx>=2.3',
'jsonpath-rw>=1.4.0',
'requests>=2.21.0',
'graphviz>=0.11.1',
'aiohttp>=3.5.4'
]
setup(
name="biothings_explorer",
version="0.0.1",
author="Jiwen Xin, Chunlei Wu",
author_email="cwu@scripp... | from setuptools import setup
install_requires = [
'jsonschema>=3.0.1',
'networkx>=2.3',
'jsonpath-rw>=1.4.0',
'requests>=2.21.0',
'grequests>=0.4.0',
'graphviz>=0.11.1'
]
setup(
name="biothings_explorer",
version="0.0.1",
author="Jiwen Xin, Chunlei Wu",
author_email="cwu@scri... | apache-2.0 | Python |
7a840f58ee083aa5e23ac324beace4b4ad2335ca | bump to v30.0.1 so we can use semver on pypi | inorton/junit2html | setup.py | setup.py | import os
from setuptools import setup
files = ["*.css",
os.path.join("templates", "*.html")]
setup(
name="junit2html",
version="30.0.1",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/ju... | import os
from setuptools import setup
files = ["*.css",
os.path.join("templates", "*.html")]
setup(
name="junit2html",
version="2.0.1",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/jun... | mit | Python |
6a16baa99d7a23271367b233b514e02721e63e1c | Add requests to dependencies | jvivian/rnaseq-lib,jvivian/rnaseq-lib | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='rnaseq-lib',
version='1.0a6',
description='',
url='http://github.com/jvivian/rnaseq-lib',
author='John Vivian',
author_email='jtvivian@gmail.com',
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'... | from setuptools import setup, find_packages
setup(name='rnaseq-lib',
version='1.0a6',
description='',
url='http://github.com/jvivian/rnaseq-lib',
author='John Vivian',
author_email='jtvivian@gmail.com',
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'... | mit | Python |
5cac38046b708ce83f8dfe7081941c47afed453d | Add gmuffin entry point | drgarcia1986/muffin,klen/muffin | setup.py | setup.py | #!/usr/bin/env python
import re
from os import path as op
from setuptools import setup, find_packages
def _read(fname):
try:
return open(op.join(op.dirname(__file__), fname)).read()
except IOError:
return ''
_meta = _read('muffin/__init__.py')
_license = re.search(r'^__license__\s*=\s*"(.*)... | #!/usr/bin/env python
import re
from os import path as op
from setuptools import setup, find_packages
def _read(fname):
try:
return open(op.join(op.dirname(__file__), fname)).read()
except IOError:
return ''
_meta = _read('muffin/__init__.py')
_license = re.search(r'^__license__\s*=\s*"(.*)... | mit | Python |
023501d5b6c3355672d7227a7dc30e7decd5688f | Bump version | machtfit/adyen | setup.py | setup.py | from distutils.core import setup
setup(name='adyen',
version='0.1.1',
description='Python library for the Adyen payment provider',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['adyen', 'django... | from distutils.core import setup
setup(name='adyen',
version='0.1',
description='Python library for the Adyen payment provider',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['adyen', 'django_a... | mit | Python |
73114498b9c54739812827c89f639828333ad723 | Fix cross-platform install bug. | wsmith323/staticmodel,wsmith323/constantmodel | setup.py | setup.py | import os
from setuptools import setup, find_packages
def file_read(filename):
filepath = os.path.join(os.path.dirname(__file__), filename)
with open(filepath) as flo:
return flo.read()
__version__ = file_read(os.path.join('staticmodel', 'VERSION.txt')).strip()
setup(
name="staticmodel",
... | import os
from setuptools import setup, find_packages
def file_read(filename):
filepath = os.path.join(os.path.dirname(__file__), filename)
with open(filepath) as flo:
return flo.read()
__version__ = file_read('staticmodel/VERSION.txt').strip()
setup(
name="staticmodel",
version=__version... | mit | Python |
b1ee098ed3f205923efcae2189ebfb53d3f7b3e0 | check status codes instead of error message | x89/botologist,x89/botologist,anlutro/botologist,moopie/botologist | plugins/weather.py | plugins/weather.py | import logging
log = logging.getLogger(__name__)
import urllib
import json
import ircbot.plugin
import socket
def make_http_request(url):
return urllib.request.urlopen(url, timeout=2).read().decode('utf-8')
class WeatherPlugin(ircbot.plugin.Plugin):
@ircbot.plugin.command('weather')
def weather(self, cmd):
if... | import logging
log = logging.getLogger(__name__)
import urllib
import json
import ircbot.plugin
import socket
def make_http_request(url):
return urllib.request.urlopen(url, timeout=2).read().decode('utf-8')
class WeatherPlugin(ircbot.plugin.Plugin):
@ircbot.plugin.command('weather')
def weather(self, cmd):
if... | mit | Python |
a6dc2ce5dea3d216dab1c94138904762290495d9 | Remove extraneous entry points | ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLU... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLU... | bsd-2-clause | Python |
230162033388f64e7b2c27b7df8ade4f72b743c4 | Bump version | Rhathe/fixtureupper | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# ref: https://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def ini... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# ref: https://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def ini... | mit | Python |
0891664b3d23b31e855eb48d4fea1ac436190e82 | Read long description from README.rst | mitya57/pymarkups,retext-project/pymarkups | setup.py | setup.py | #!/usr/bin/env python3
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
from markups import __version__ as version
from os.path import dirname, join
with open(join(dirname(__file__), 'README.rst')) as readme_file:
long_description = '\n' + readme_f... | #!/usr/bin/env python3
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
from markups import __version__ as version
long_description = \
"""This module provides a wrapper around the various text markup languages,
such as Markdown_ and reStructuredTex... | bsd-3-clause | Python |
5a70307744d6f33384d4184ebb08f928766247e7 | Increment version to 3.1 | GetAmbassador/django-redis,zl352773277/django-redis,smahs/django-redis,lucius-feng/django-redis,yanheng/django-redis | setup.py | setup.py | from setuptools import setup
description = """
Full featured redis cache backend for Django.
"""
setup(
name = "django-redis",
url = "https://github.com/niwibe/django-redis",
author = "Andrei Antoukh",
author_email = "niwi@niwi.be",
version='3.1',
packages = [
"redis_cache",
"r... | from setuptools import setup
description = """
Full featured redis cache backend for Django.
"""
setup(
name = "django-redis",
url = "https://github.com/niwibe/django-redis",
author = "Andrei Antoukh",
author_email = "niwi@niwi.be",
version='3.0',
packages = [
"redis_cache",
"r... | bsd-3-clause | Python |
357a54f6358dc440ad61ff5c507981d9a79f953c | Add hook for installing image package. | getwarped/powershift-cli,getwarped/powershift-cli | setup.py | setup.py | import sys
import os
from setuptools import setup
long_description = open('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Pytho... | import sys
import os
from setuptools import setup
long_description = open('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Pytho... | bsd-2-clause | Python |
8cdafd66bb59895d24681a79765d7d60006bc4b4 | remove pip session from setup (#493) | google/turbinia,google/turbinia,google/turbinia,google/turbinia,google/turbinia | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | apache-2.0 | Python |
6f7003f39acb80d375010acebeb2840e1d83a7d7 | bump to version 0.7.3 | cdelguercio/slothauth,cdelguercio/slothauth | setup.py | setup.py | from setuptools import setup
setup(
name='slothauth',
packages=['slothauth'],
install_requires=['djangorestframework>=3.3.3', ],
version='0.7.3',
description='A Python Django package for user accounts and authentication.',
author='Chris Del Guercio',
author_email='cdelguercio@gmail.com',
url='https://gi... | from setuptools import setup
setup(
name='slothauth',
packages=['slothauth'],
install_requires=['djangorestframework>=3.3.3', ],
version='0.7.2',
description='A Python Django package for user accounts and authentication.',
author='Chris Del Guercio',
author_email='cdelguercio@gmail.com',
url='https://gi... | apache-2.0 | Python |
79c1f49f5451141192b366aaf62a27c62c9f17b9 | bump setup.py | peerchemist/peercoin_rpc | setup.py | setup.py | from setuptools import setup
setup(name='peercoin_rpc',
version='0.55',
description='Library to communicate with peercoin daemon via JSON-RPC protocol.',
url='https://github.com/peerchemist/peercoin_rpc',
author='Peerchemist',
author_email='peerchemist@protonmail.ch',
license='MIT',... | from setuptools import setup
setup(name='peercoin_rpc',
version='0.50',
description='Library to communicate with peercoin daemon via JSON-RPC protocol.',
url='https://github.com/peerchemist/peercoin_rpc',
author='Peerchemist',
author_email='peerchemist@protonmail.ch',
license='MIT',... | mit | Python |
c021ca2b2faec465c70b89f774c29c58b6312112 | bump version to 0.6.1 | PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild | setup.py | setup.py | #!/usr/bin/evn python2
from setuptools import setup, find_packages
setup(name='pprof',
version='0.6.1',
packages= find_packages(),
author = "Andreas Simbuerger",
author_email = "simbuerg@fim.uni-passau.de",
description = "This is the experiment driver for the pprof study",
license =... | #!/usr/bin/evn python2
from setuptools import setup, find_packages
setup(name='pprof',
version='0.6',
packages= find_packages(),
author = "Andreas Simbuerger",
author_email = "simbuerg@fim.uni-passau.de",
description = "This is the experiment driver for the pprof study",
license = "... | mit | Python |
c967bea5399c87b006ae5f057f8b78175e574de5 | Add 'install_requires' | StanczakDominik/PlasmaPy | setup.py | setup.py | from setuptools import setup
# Package metadata
metadata = {}
with open('plasmapy/_metadata.py', 'r') as metadata_file:
exec(metadata_file.read(), metadata)
# Requirements
with open('requirements/base.txt', 'r') as req_file:
requirements = req_file.read().splitlines()
setup(name=metadata['name'],
vers... | from setuptools import setup
# Package metadata
metadata = {}
with open('plasmapy/_metadata.py', 'r') as metadata_file:
exec(metadata_file.read(), metadata)
# Requirements
with open('requirements/base.txt', 'r') as req_file:
requirements = req_file.read().splitlines()
setup(name=metadata['name'],
vers... | bsd-3-clause | Python |
19752f793b82ce4af07d798cdbd781629fa7d887 | fix development status value | joncastro/SafeInCloud | setup.py | setup.py | from setuptools import setup
setup(
zip_safe=True,
name='desafe',
version='0.0.4',
author='pjon',
py_modules=['desafe'],
description='An utility to decrypt Safe in Cloud password files',
license='LICENSE',
install_requires=[
"pycrypto",
"xmltodict",
"passlib",
... | from setuptools import setup
setup(
zip_safe=True,
name='desafe',
version='0.0.4',
author='pjon',
py_modules=['desafe'],
description='An utility to decrypt Safe in Cloud password files',
license='LICENSE',
install_requires=[
"pycrypto",
"xmltodict",
"passlib",
... | apache-2.0 | Python |
075488b6f2b33c211b734dc08414d45cb35c4e68 | Bump version to prepare for next release. | locationlabs/mockredis | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.9.0.12'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredispy',
version=__version__ + __build__,
description='Mock for redis-py',
url='htt... | #!/usr/bin/env python
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.9.0.11'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredispy',
version=__version__ + __build__,
description='Mock for redis-py',
url='htt... | apache-2.0 | Python |
cea141e94259e6ffdff63570b77541c5d7623056 | bump minor version | amlweems/python-paddingoracle,mwielgoszewski/python-paddingoracle | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='paddingoracle',
author='Marcin Wielgoszewski',
author_email='marcin.wielgoszewski@gmail.com',
version='0.2.1',
url='https://github.com/mwielgoszewski/python-paddingoracle',
py_modules=['... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='paddingoracle',
author='Marcin Wielgoszewski',
author_email='marcin.wielgoszewski@gmail.com',
version='0.2',
url='https://github.com/mwielgoszewski/python-paddingoracle',
py_modules=['pa... | bsd-2-clause | Python |
6452a600b29dd191695b91d5402fdffbcc3c755e | Bump version to 0.1.0b7 | wendbv/schemavalidator,wendbv/schemavalidator | setup.py | setup.py | from distutils.core import setup
setup(
name='schemavalidator',
packages=['schemavalidator'],
version='0.1.0b7',
description='A local JSON schema validator based on jsonschema',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
license='MIT',
url='https://github.com/wendbv/schem... | from distutils.core import setup
setup(
name='schemavalidator',
packages=['schemavalidator'],
version='0.1.0b6',
description='A local JSON schema validator based on jsonschema',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
license='MIT',
url='https://github.com/wendbv/schem... | mit | Python |
76f254582243dc927ca25eebf2b47702ef43167b | Fix install-time dependency on pymongo. | rahulg/mongorm | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
VERSION = (0, 6, 5)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
version = '.'.join(map(str, VERSION))
if __name__ == '__main__':
setup(
name='mongorm',
version=versi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
from mongorm import VERSION
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
version = '.'.join(map(str, VERSION))
if __name__ == '__main__':
setup(
name='mongorm',
versi... | bsd-2-clause | Python |
e7ad292b2d38e33dc466fa2114018a2e04076965 | Bump version to 0.7.3 | twisted/twistedchecker | setup.py | setup.py | #!/usr/bin/env python
# -*- test-case-name: twistedchecker -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from setuptools import find_packages, setup
with open('README.rst') as f:
longDescription = f.read()
setup(
name='twistedchecker',
description='A Twisted coding standard ... | #!/usr/bin/env python
# -*- test-case-name: twistedchecker -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from setuptools import find_packages, setup
with open('README.rst') as f:
longDescription = f.read()
setup(
name='twistedchecker',
description='A Twisted coding standard ... | mit | Python |
98f60aeb3cbcf1ae241620ecfca5884483717347 | Update setup.py classifiers | levi-rs/explicit | setup.py | setup.py | '''
explicit setup
'''
import versioneer
from setuptools import setup, find_packages
install_requires = ['versioneer', ]
setup(
name='explicit',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='Levi Noecker',
author_email='levi.noecker@gmail.com',
url='https://gith... | '''
explicit setup
'''
import versioneer
from setuptools import setup, find_packages
install_requires = ['versioneer', ]
setup(
name='explicit',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='Levi Noecker',
author_email='levi.noecker@gmail.com',
url='https://gith... | mit | Python |
b7ec7f787a052c07af18d59990e44ed9fd3a58dd | add flask_featureflags.contrib sub package in install script | jskulski/Flask-FeatureFlags,trustrachel/Flask-FeatureFlags,iromli/Flask-FeatureFlags | setup.py | setup.py | import os
from setuptools import setup
from sys import argv
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except:
README = ''
CHANGES = ''
install_requires = ["Flask"]
if "develop" in argv... | import os
from setuptools import setup
from sys import argv
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except:
README = ''
CHANGES = ''
install_requires = ["Flask"]
if "develop" in argv... | apache-2.0 | Python |
b7d082b9b8efc441eb849fd6584ecb5e72d9c8fc | remove dependency on pyqt5 | WilliamHPNielsen/broadbean | setup.py | setup.py | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='William H.P. Niels... | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1',
'PyQt5'],
... | mit | Python |
345fc7fcfea208d36c7e0647b6dccb6fe4fd160d | Bump Core dependency to v32 | openfisca/openfisca-tunisia,openfisca/openfisca-tunisia | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Tunisia specific model for OpenFisca -- a versatile microsimulation free software"""
from setuptools import setup, find_packages
classifiers = """\
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: GNU Affero General Public License v3
Operating System... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Tunisia specific model for OpenFisca -- a versatile microsimulation free software"""
from setuptools import setup, find_packages
classifiers = """\
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: GNU Affero General Public License v3
Operating System... | agpl-3.0 | Python |
b1a3831de9c4d52f674cf1b1d4aed7cf74e8d4ba | Update setup.py | xiaozhouw/663 | setup.py | setup.py | #! /usr/bin/env python
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
setup(
name='hmm',
version='1.0.0',
description='Implementation of the Linear Sparse Version Algorithms to Hidden Markov Model',
long_description= ... | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
setup(
name='hmm',
version='1.0.0',
description='Implementation of the Linear Sparse Version Algorithms to Hidden Markov Model',
long_description= This is an implementatio... | mit | Python |
142ef9b0c2a1d7307132a32cb0803fd047af3b14 | Fix invalid variable name | Kynarth/pokediadb | pokediadb/utils.py | pokediadb/utils.py | import sqlite3
def max_sql_variables():
"""Get the maximum number of arguments allowed in a query by the current
sqlite3 implementation.
Returns:
int: SQLITE_MAX_VARIABLE_NUMBER
"""
db = sqlite3.connect(':memory:')
cur = db.cursor()
cur.execute('CREATE TABLE t (test)')
low, h... | import sqlite3
def max_sql_variables():
"""Get the maximum number of arguments allowed in a query by the current
sqlite3 implementation.
Returns:
int: SQLITE_MAX_VARIABLE_NUMBER
"""
db = sqlite3.connect(':memory:')
cur = db.cursor()
cur.execute('CREATE TABLE t (test)')
low, h... | mit | Python |
a33df7cb106e0eaf8498b60d3477269f85be891b | fix setup | torpedoallen/family | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='family',
version=version,
description="Easy to create your microservice based on Falcon.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers... | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='family',
version=version,
description="Easy to create your microservice based on Falcon.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers... | mit | Python |
8199edb90c9de9a70c1c4acb69b0e51a3b470a33 | Update __init__.py | phalt/pykemon,PokeAPI/pykemon | pokepy/__init__.py | pokepy/__init__.py | #!/usr/bin/env python
# coding: utf-8
"""
Pokepy
A Python wrapper for PokeAPI (https://pokeapi.co)
Usage:
>>> import pokepy
>>> clientV2 = pokepy.V2Client()
>>> clientV2.get_pokemon('bulbasaur')[0]
<Pokemon - Bulbasaur>
"""
__author__ = 'Paul Hallett'
__email__ = 'hello@phalt.co'
__credits__ = ["Paul Hallett", "Owe... | #!/usr/bin/env python
# coding: utf-8
"""
Pokepy
A Python wrapper for PokeAPI (https://pokeapi.co)
Usage:
>>> import pokepy
>>> clientV2 = pokepy.V2Client()
>>> clientV2.get_pokemon('bulbasaur')[0]
<Pokemon - Bulbasaur>
"""
__author__ = 'Paul Hallett'
__email__ = 'hello@phalt.co'
__credits__ = ["Paul Hallett", "Owe... | bsd-3-clause | Python |
cc70b8b3b263428c9a0cdffe50077ca1828cb82d | Remove Gunicorn from requirements | praekelt/familyconnect-registration,praekelt/familyconnect-registration | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="familyconnect-registration",
version="0.1",
url='http://github.com/praekelt/familyconnect-registration',
license='BSD',
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages(),
include_pac... | from setuptools import setup, find_packages
setup(
name="familyconnect-registration",
version="0.1",
url='http://github.com/praekelt/familyconnect-registration',
license='BSD',
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages(),
include_pac... | bsd-3-clause | Python |
4199895bacb97cd36257f710266343563cbed1f3 | bump version to v0.3 | closeio/freezefrog | setup.py | setup.py | from setuptools import setup
setup(
name='freezefrog',
version='0.3',
url='http://github.com/closeio/freezefrog',
license='MIT',
author='Thomas Steinacher',
author_email='engineering@close.io',
maintainer='Thomas Steinacher',
maintainer_email='engineering@close.io',
description='Eff... | from setuptools import setup
setup(
name='freezefrog',
version='0.2',
url='http://github.com/closeio/freezefrog',
license='MIT',
author='Thomas Steinacher',
author_email='engineering@close.io',
maintainer='Thomas Steinacher',
maintainer_email='engineering@close.io',
description='Eff... | mit | Python |
39205471e6697ec436c4d374248553ecb5411f98 | bump version | yahoo/TensorFlowOnSpark,yahoo/TensorFlowOnSpark | setup.py | setup.py | from setuptools import setup
setup(
name = 'tensorflowonspark',
packages = ['tensorflowonspark'],
version = '1.0.5',
description = 'Deep learning with TensorFlow on Apache Spark clusters',
author = 'Yahoo, Inc.',
url = 'https://github.com/yahoo/TensorFlowOnSpark',
keywords = ['tensorflowonspark', 'tensor... | from setuptools import setup
setup(
name = 'tensorflowonspark',
packages = ['tensorflowonspark'],
version = '1.0.4',
description = 'Deep learning with TensorFlow on Apache Spark clusters',
author = 'Yahoo, Inc.',
url = 'https://github.com/yahoo/TensorFlowOnSpark',
keywords = ['tensorflowonspark', 'tensor... | apache-2.0 | Python |
387060e7cf342972eb5745b468624ae5c4fc1ccb | Bump version to 0.11.3 | miLibris/flask-rest-jsonapi | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = '0.11.3'
setup(
name="Flask-REST-JSONAPI",
version=__version__,
description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \
and data provider of your choice (SQLAlchemy, Mo... | from setuptools import setup, find_packages
__version__ = '0.11.2'
setup(
name="Flask-REST-JSONAPI",
version=__version__,
description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \
and data provider of your choice (SQLAlchemy, Mo... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.