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 |
|---|---|---|---|---|---|---|---|---|
9f6ee32f154f4bc1bdd284e605a577fc1f1d2dc4 | allow development version of dependency | johnyf/gr1experiments | setup.py | setup.py | from setuptools import setup
# inline
# import git
name = 'tugs'
description = (
'GR(1) synthesizer using Cython.')
url = 'https://github.com/johnyf/{name}'.format(name=name)
README = 'README.md'
VERSION_FILE = '{name}/_version.py'.format(name=name)
MAJOR = 0
MINOR = 1
MICRO = 1
VERSION = '{major}.{minor}.{micro}... | from setuptools import setup
# inline
# import git
name = 'tugs'
description = (
'GR(1) synthesizer using Cython.')
url = 'https://github.com/johnyf/{name}'.format(name=name)
README = 'README.md'
VERSION_FILE = '{name}/_version.py'.format(name=name)
MAJOR = 0
MINOR = 1
MICRO = 1
VERSION = '{major}.{minor}.{micro}... | bsd-3-clause | Python |
61a2e367b224ab851c1569ae88d38d91e42be6e0 | Fix version number | pjwerneck/pyrql | setup.py | setup.py | # -*- coding: utf-8 -*-
import os.path
from setuptools import setup, find_packages
version = '0.3.3'
requirements = []
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fp:
requirements = [req.strip() for req in fp.readlines()]
setup(name='pyrql',
version=version,
description... | # -*- coding: utf-8 -*-
import os.path
from setuptools import setup, find_packages
version = '0.1.10'
requirements = []
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fp:
requirements = [req.strip() for req in fp.readlines()]
setup(name='pyrql',
version=version,
descriptio... | mit | Python |
18914da10acf1d5c118e6ae018d3a8e9ce51c75e | Add OPenSSL to dependencies | genestack/python-client | setup.py | setup.py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
from distutils.core import setup
exec(open('genestack_client/version.py').read())
setup(
name='genestack_client',
version=__version__,
packages=['genestack_client', 'genestack_client.settings', 'genestack_client.scripts'],
url='',
license='MIT',
... | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
from distutils.core import setup
exec(open('genestack_client/version.py').read())
setup(
name='genestack_client',
version=__version__,
packages=['genestack_client', 'genestack_client.settings', 'genestack_client.scripts'],
url='',
license='MIT',
... | mit | Python |
7bb7c88dd22ac01ac8c59b4b3849321e69b214df | bump version | veltzer/pytsv,veltzer/pytsv | setup.py | setup.py | import setuptools
setuptools.setup(
name='pytsv',
version='0.1.15',
description='pytsv is a module to help with all things TSV',
long_description='pytsv is a module to help with all things TSV',
url='https://github.com/veltzer/pytsv',
download_url='https://github.com/veltzer/pytsv',
author=... | import setuptools
setuptools.setup(
name='pytsv',
version='0.1.14',
description='pytsv is a module to help with all things TSV',
long_description='pytsv is a module to help with all things TSV',
url='https://github.com/veltzer/pytsv',
download_url='https://github.com/veltzer/pytsv',
author=... | mit | Python |
44435c5dde7ab564219cae5a7ce6b7b9efeb4863 | update Feed.entries() | podhub-io/follower | follower/feed.py | follower/feed.py | import feedparser
class Feed(object):
_PARAMS = frozenset([
'author', 'author_detail', 'authors', 'generator', 'generator_detail',
'image', 'itunes_explicit', 'language', 'link', 'links', 'publisher',
'publisher_detail', 'rawvoice_frequency', 'rawvoice_rating', 'rights',
'rights_d... | import feedparser
class Feed(object):
_PARAMS = frozenset([
'author', 'author_detail', 'authors', 'generator', 'generator_detail',
'image', 'itunes_explicit', 'language', 'link', 'links', 'publisher',
'publisher_detail', 'rawvoice_frequency', 'rawvoice_rating', 'rights',
'rights_d... | bsd-3-clause | Python |
c684e889f94b9862bb57f35b9652b8b17bc07f90 | Fix pbr>=2.0.0 for setup.py | openstack/puppet-trove,openstack/puppet-trove,openstack/puppet-trove | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | apache-2.0 | Python |
346e2a93b91f56a41a782bd314fbcefff26ad0b9 | Bump version to 0.2.1 | superquadratic/rtmidi-python,superquadratic/rtmidi-python | setup.py | setup.py | import distutils
import sys
if '--from-cython' in sys.argv:
from Cython.Distutils import build_ext
sys.argv.remove('--from-cython')
module_source = 'rtmidi_python.pyx'
else:
from distutils.command.build_ext import build_ext
module_source = 'rtmidi_python.cpp'
extension_args = {}
if sys.platform.s... | import distutils
import sys
if '--from-cython' in sys.argv:
from Cython.Distutils import build_ext
sys.argv.remove('--from-cython')
module_source = 'rtmidi_python.pyx'
else:
from distutils.command.build_ext import build_ext
module_source = 'rtmidi_python.cpp'
extension_args = {}
if sys.platform.s... | mit | Python |
46c99afa8b34b832b3b91cda93eec0ffa0372478 | Change version # for a release | choderalab/openmoltools,choderalab/openmoltools | setup.py | setup.py | """openmoltools: Tools for Small Molecules, Antechamber, OpenMM, and More.
"""
from __future__ import print_function
DOCLINES = __doc__.split("\n")
import os
import sys
import shutil
import tempfile
import subprocess
from distutils.ccompiler import new_compiler
from setuptools import setup, Extension
import numpy
tr... | """openmoltools: Tools for Small Molecules, Antechamber, OpenMM, and More.
"""
from __future__ import print_function
DOCLINES = __doc__.split("\n")
import os
import sys
import shutil
import tempfile
import subprocess
from distutils.ccompiler import new_compiler
from setuptools import setup, Extension
import numpy
tr... | mit | Python |
237abb4204821e6e90f17a438b8945d7b47b3406 | Remove six from dependency list. | al45tair/dmgbuild | setup.py | setup.py | # -*- coding: utf-8 -*-
import sys
from setuptools import setup
with open('README.rst', 'rb') as f:
long_desc = f.read().decode('utf-8')
# We have to be able to install on Linux to build the docs, even though
# dmgbuild presently won't work there because there's no SetFile
requires=['ds_store >= 1.1.0',
... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup
with open('README.rst', 'rb') as f:
long_desc = f.read().decode('utf-8')
# We have to be able to install on Linux to build the docs, even though
# dmgbuild presently won't work there because there's no SetFile
requires=['ds_store >= 1.1.0',
... | mit | Python |
08523cc07ec616770f6dd20271591ecbeb12cf2c | fix up setup.py | googleapis/python-bigquery-pandas,RTBHOUSE/pandas-gbq,googleapis/python-bigquery-pandas,xcompass/pandas-gbq,pydata/pandas-gbq,xcompass/pandas-gbq,pydata/pandas-gbq,tactileentertainment/pandas-bigquery,RTBHOUSE/pandas-gbq,pydata/pydata-google-auth | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ast import parse
import os
from setuptools import setup, find_packages
NAME = 'pandas-gbq'
# versioning
import versioneer
cmdclass = versioneer.get_cmdclass()
def readme():
with open('README.rst') as f:
return f.read()
INSTALL_REQUIRES = (
['pand... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ast import parse
import os
from setuptools import setup, find_packages
NAME = 'pandas-gbq'
# versioning
import versioneer
cmdclass = versioneer.get_cmdclass()
def readme():
with open('README.rst') as f:
return f.read()
INSTALL_REQUIRES = (
['pand... | bsd-3-clause | Python |
7dd9ce5bcfe7fb22d0e925c767c0aa488b37f1be | increment build | buildtimetrend/python-lib | setup.py | setup.py | #!/usr/bin/env python
# vim: set expandtab sw=4 ts=4:
"""
Setup file, specifying dependencies, package name and version,
and other meta data.
This file is part of buildtimetrend/python-lib
<https://github.com/buildtimetrend/python-lib>
"""
from setuptools import setup, find_packages
setup(
name="buildtimetrend",... | #!/usr/bin/env python
# vim: set expandtab sw=4 ts=4:
"""
Setup file, specifying dependencies, package name and version,
and other meta data.
This file is part of buildtimetrend/python-lib
<https://github.com/buildtimetrend/python-lib>
"""
from setuptools import setup, find_packages
setup(
name="buildtimetrend",... | agpl-3.0 | Python |
a7496688aefd46efc9d17374b4d1b8d3b9adcc79 | increment build | buildtimetrend/python-lib | setup.py | setup.py | #!/usr/bin/env python
# vim: set expandtab sw=4 ts=4:
'''
Setup file, specifying dependencies, package name and version,
and other meta data.
This file is part of buildtimetrend/python-lib
<https://github.com/buildtimetrend/python-lib>
'''
from setuptools import setup, find_packages
setup(
name="buildtimetrend",... | #!/usr/bin/env python
# vim: set expandtab sw=4 ts=4:
'''
Setup file, specifying dependencies, package name and version,
and other meta data.
This file is part of buildtimetrend/python-lib
<https://github.com/buildtimetrend/python-lib>
'''
from setuptools import setup, find_packages
setup(
name="buildtimetrend",... | agpl-3.0 | Python |
04b4f1ebbb28656338afc811d898c2c392adde12 | fix spelling in description | monkut/tmstiler | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='tmstiler',
packages=['tmstiler', ],
version='0.5',
license='MIT',
description='Utilities for creating and calculating coordinates for Web Map Image tiles',
author='Shane C0usins',
author_email='shane.cousins@gmail.com',
... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='tmstiler',
packages=['tmstiler', ],
version='0.5',
license='MIT',
description='Utilities for creating and calulating coordinates for Web Map Image tiles',
author='Shane C0usins',
author_email='shane.cousins@gmail.com',
... | mit | Python |
b9d71d078a239ba97c09f15747af9a6b9c16fd61 | remove 'provides'. according to stackoverflow no one uses it. http://bit.ly/1EkURrE | CumulusNetworks/NetworkDocopt | setup.py | setup.py | # pylint: disable=c0111
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup
setup(
name='network-docopt',
version='1.0',
description="Network Docopt",
url="https://github.com/dwalton76/NetworkDocopt",
author='Daniel Walton',
author_email='dwalton@cumulusnetworks.com',
py_m... | # pylint: disable=c0111
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup
setup(
name='network-docopt',
version='1.0',
description="Network Docopt",
url="https://github.com/dwalton76/NetworkDocopt",
author='Daniel Walton',
author_email='dwalton@cumulusnetworks.com',
py_m... | mit | Python |
0d4739878881f2825e609296b3dd97fcc6ab06d0 | Add missing requirements | Perlence/redmine-charts-images,Perlence/redmine-charts-images,Perlence/redmine-charts-images | setup.py | setup.py | from setuptools import setup
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
'arrow',
'CairoSVG',
'cssselect',
'flask',
'lxml',
'pygal',
'python-redmine',
'tinycss',
]
setup(
name='redmine-charts-images',
version='0.1.0',
description... | from setuptools import setup
with open('README.md') as readme_file:
readme = readme_file.read()
requirements = [
'CairoSVG',
'cssselect',
'flask',
'lxml',
'pygal',
'tinycss',
]
setup(
name='redmine-charts-images',
version='0.1.0',
description='Display meaningful Redmine charts... | bsd-3-clause | Python |
51e5b8c26f7d78eebf1d8f7ed36575216aa20f55 | bump library version | Stanford-Online/edx-submissions,Stanford-Online/edx-submissions,edx/edx-submissions,edx/edx-submissions | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
def is_requirement(line):
"""
Return True if the requirement line is a package requirement;
that is, it is not blank, a comment, or editable.
"""
# Remove whitespace at the start/end of the line
line = line.strip()
# Skip blank lines, comm... | #!/usr/bin/env python
from setuptools import setup
def is_requirement(line):
"""
Return True if the requirement line is a package requirement;
that is, it is not blank, a comment, or editable.
"""
# Remove whitespace at the start/end of the line
line = line.strip()
# Skip blank lines, comm... | agpl-3.0 | Python |
c2e7a0c618bd26f599ea3b5d19ef37279c4a163f | Fix z.c.article dependecy | ZeitOnline/zeit.content.cp,ZeitOnline/zeit.content.cp | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.content.cp',
version='3.13.9.dev0',
author='gocept, Zeit Online',
author_email='zon-backend@zeit.de',
url='http://www.zeit.de/',
description="vivi Content-Type Centerpage",
packages=find_packages('src'),
package_dir={'': 'sr... | from setuptools import setup, find_packages
setup(
name='zeit.content.cp',
version='3.13.9.dev0',
author='gocept, Zeit Online',
author_email='zon-backend@zeit.de',
url='http://www.zeit.de/',
description="vivi Content-Type Centerpage",
packages=find_packages('src'),
package_dir={'': 'sr... | bsd-3-clause | Python |
ba6c9e9098c36ea64ca1cce1fd1921046c48ecd7 | Add Flask dep | 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 |
5debb2e1699939b1a49e92b176f1c5c14687f12a | Use sub-2.7 semantic-version as it breaks semantics (...) in 2.7 | pyinvoke/invocations | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
# Version info -- read without importing
_locals = {}
with open("invocations/_version.py") as fp:
exec(fp.read(), None, _locals)
version = _locals["__version__"]
requirements = [
# Core dependency
"invoke>=1.0,<2.0",
# Dependencies for... | #!/usr/bin/env python
from setuptools import setup, find_packages
# Version info -- read without importing
_locals = {}
with open("invocations/_version.py") as fp:
exec(fp.read(), None, _locals)
version = _locals["__version__"]
requirements = [
# Core dependency
"invoke>=1.0,<2.0",
# Dependencies for... | bsd-2-clause | Python |
a60d4f41eae22af55a9a86b9ecbee8f6b49218e3 | Drop 'distribute' dependency | langdev/log.langdev.org,langdev/log.langdev.org,langdev/log.langdev.org | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
i... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages # NOQA
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finaliz... | mit | Python |
1c87f96d87850a849f0d8990dcb0b97b82b3dcb7 | move requirements outside setup() | semio/ddf_utils | setup.py | setup.py | # -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup, find_packages
version = "0.1.2-dev"
if sys.argv[-1] == 'tag':
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
requirements = [
'pandas',
'unidecode',
'pyyaml',
... | # -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup, find_packages
version = "0.1.2-dev"
if sys.argv[-1] == 'tag':
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
setup(
name='ddf_utils',
version=version,
descripti... | mit | Python |
48fe33f2e2182b296c39b800454744312aee6e6b | prepare release | PRIArobotics/HedgehogUtils | setup.py | setup.py | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.absp... | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.absp... | agpl-3.0 | Python |
4c0421fd87ff0e47169b820e3132c33014225856 | fix url | askomics/askocli | setup.py | setup.py | from os import listdir
from setuptools import setup, find_packages
setup(
name='askocli',
version='0.3.3',
description='Command line interface for a distant AskOmics',
author='Xavier Garnier',
author_email='xavier.garnier@irisa.fr',
url='https://github.com/askomics/askocli',
download_url='h... | from os import listdir
from setuptools import setup, find_packages
setup(
name='askocli',
version='0.3.3',
description='Command line interface for a distant AskOmics',
author='Xavier Garnier',
author_email='xavier.garnier@irisa.fr',
url='https://github.com/xgaia/asko-cli',
download_url='htt... | agpl-3.0 | Python |
e9046cd97c1deba9ba70bf60cfdba81eba6e0210 | Add dep on toolz 0.7.2 for imperative extra | dask/dask,jcrist/dask,cowlicks/dask,dask/dask,ContinuumIO/dask,blaze/dask,mraspaud/dask,gameduell/dask,cpcloud/dask,mikegraham/dask,chrisbarber/dask,jakirkham/dask,blaze/dask,mraspaud/dask,jcrist/dask,ContinuumIO/dask,mrocklin/dask,jakirkham/dask,mrocklin/dask | setup.py | setup.py | #!/usr/bin/env python
from os.path import exists
from setuptools import setup
import dask
extras_require = {
'array': ['numpy', 'toolz >= 0.7.2'],
'bag': ['cloudpickle', 'toolz >= 0.7.2', 'partd >= 0.3.2'],
'dataframe': ['numpy', 'pandas >= 0.16.0', 'toolz >= 0.7.2', 'partd >= 0.3.2'],
'imperative': ['toolz >... | #!/usr/bin/env python
from os.path import exists
from setuptools import setup
import dask
extras_require = {
'array': ['numpy', 'toolz >= 0.7.2'],
'bag': ['cloudpickle', 'toolz >= 0.7.2', 'partd >= 0.3.2'],
'dataframe': ['numpy', 'pandas >= 0.16.0', 'toolz >= 0.7.2', 'partd >= 0.3.2'],
}
extras_require['complet... | bsd-3-clause | Python |
d7e7b6d3d359fcd5a84f4bad3881e98e3785b5b7 | Set finished setup file | django-stars/telega-mega-import | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='telega_megaimport',
version='0.5',
description='Django app for creating parsers',
long_description=readme(),
classifiers=[
'Development Status :: 4 - Beta',
'Licens... | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='telega_megaimport',
version='0.5',
description='Django app for creating parsers',
long_description=readme(),
classifiers=[
'Development Status :: 4 - Beta',
'Licens... | mit | Python |
e27f63c1a572f1df046e0cb01060f2bd439dffa7 | fix setup.py | eawag-rdm/resup | setup.py | setup.py | from setuptools import setup
setup(name='resup',
version='1.1',
description='Batch up- and download of CKAN resources',
url='https://github.com/eawag-rdm/resup',
author='Harald von Waldow',
author_email='harald.vonwaldow@eawag.ch',
license='GNU Affero General Public License',
... | from setuptools import setup
setup(name='resup',
version='1.1',
description='Batch up- and download of CKAN resources',
url='https://github.com/eawag-rdm/resup',
author='Harald von Waldow',
author_email='harald.vonwaldow@eawag.ch',
license='GNU Affero General Public License',
... | agpl-3.0 | Python |
d0c92ae387b62e4c96112e6cdcbb99daefd69e06 | Bump version | andreroggeri/pynubank | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='pynubank',
version='2.19.1',
url='https://github.com/andreroggeri/pynubank',
author='André Roggeri Campos',
author_emai... | import os
from setuptools import setup, find_packages
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name='pynubank',
version='2.19.0',
url='https://github.com/andreroggeri/pynubank',
author='André Roggeri Campos',
author_emai... | mit | Python |
8e9074f6c963657040a286de681d4c8a3dfa1394 | Fix sentry version requirement | getsentry/raven-python,recht/raven-python,Goldmund-Wyldebeast-Wunderliebe/raven-python,johansteffner/raven-python,inspirehep/raven-python,Goldmund-Wyldebeast-Wunderliebe/raven-python,icereval/raven-python,beniwohli/apm-agent-python,recht/raven-python,percipient/raven-python,getsentry/raven-python,inspirehep/raven-pytho... | setup.py | setup.py | #!/usr/bin/env python
"""
Raven
======
Raven is a Python client for `Sentry <http://aboutsentry.com/>`_. It provides
full out-of-the-box support for many of the popular frameworks, including
Django, and Flask. Raven also includes drop-in support for any WSGI-compatible
web application.
"""
from setuptools import setu... | #!/usr/bin/env python
"""
Raven
======
Raven is a Python client for `Sentry <http://aboutsentry.com/>`_. It provides
full out-of-the-box support for many of the popular frameworks, including
Django, and Flask. Raven also includes drop-in support for any WSGI-compatible
web application.
"""
from setuptools import setu... | bsd-3-clause | Python |
7845584b70568c178cfce3f4a0821e5afef01baf | Bump version to v5.0.1 | yunojuno/elasticsearch-django | setup.py | setup.py | # -*- coding: utf-8 -*-
from os import path, chdir, pardir
from setuptools import setup, find_packages
README = open(path.join(path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
chdir(path.normpath(path.join(path.abspath(__file__), pardir)))
setup(
name="elasticsearch-django",... | # -*- coding: utf-8 -*-
from os import path, chdir, pardir
from setuptools import setup, find_packages
README = open(path.join(path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
chdir(path.normpath(path.join(path.abspath(__file__), pardir)))
setup(
name="elasticsearch-django",... | mit | Python |
2045cacaaafb67f82647066679ab0178f4124248 | disable argv_emulation | lowerquality/gentle,lowerquality/gentle,lowerquality/gentle,lowerquality/gentle | setup.py | setup.py | from setuptools import setup
setup(
app=['gentle.py'],
data_files=[],
options={'py2app': {
'argv_emulation': False,
'resources': 'standard_kaldi,mkgraph,ffmpeg,www,data,PROTO_LANGDIR'
}},
name='gentle',
version='0.1',
description='Robust yet lenient forced-aligner built on K... | from setuptools import setup
setup(
app=['gentle.py'],
data_files=[],
options={'py2app': {
'argv_emulation': True,
'resources': 'standard_kaldi,mkgraph,ffmpeg,www,data,PROTO_LANGDIR'
}},
name='gentle',
version='0.1',
description='Robust yet lenient forced-aligner built on Ka... | mit | Python |
1dbaae42645a4b5873a603f3ed9ce8c08a1467ec | Add back download url :/ | VonStruddle/PyHunter | setup.py | setup.py | from setuptools import setup
setup(
name='pyhunter',
packages=['pyhunter'],
version='0.1',
description='An (unofficial) Python wrapper for the Hunter.io API',
author='Quentin Durantay',
author_email='quentin.durantay@gmail.com',
url='https://github.com/VonStruddle/PyHunter',
download_u... | from setuptools import setup
setup(
name='pyhunter',
packages=['pyhunter'],
version='0.1',
description='An (unofficial) Python wrapper for the Hunter.io API',
author='Quentin Durantay',
author_email='quentin.durantay@gmail.com',
url='https://github.com/VonStruddle/PyHunter',
install_re... | mit | Python |
c43a4b95ce793265c038ac73cec75f686b94ae57 | send markdown to pypi | edsu/wikilinks | setup.py | setup.py | from setuptools import setup
with open("README.md") as f:
long_description = f.read()
setup(
version = '0.0.4',
name = 'wikilinks',
url = 'http://github.com/edsu/wikilinks',
author = 'Ed Summers',
author_email = 'ehs@pobox.com',
license = 'http://www.opensource.org/licenses/mit-license.php... | from setuptools import setup
setup(
version = '0.0.4',
name = 'wikilinks',
url = 'http://github.com/edsu/wikilinks',
author = 'Ed Summers',
author_email = 'ehs@pobox.com',
license = 'http://www.opensource.org/licenses/mit-license.php',
py_modules = ['wikilinks'],
install_requires = ['si... | mit | Python |
af5822db88e20e1bf8bf2bb24f6c6d0a631460e3 | Change setup a bit | saibot94/django-oauth2-sso | setup.py | setup.py | """The setup module for django_saml2_auth.
See:
https://github.com/fangli/django_saml2_auth
"""
from os import path
from setuptools import (setup, find_packages)
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
# with open(path.join(here, 'README.rst'), encoding='utf-8') a... | """The setup module for django_saml2_auth.
See:
https://github.com/fangli/django_saml2_auth
"""
from os import path
from setuptools import (setup, find_packages)
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
# with open(path.join(here, 'README.rst'), encoding='utf-8') a... | mit | Python |
9479bbacc388f8ef0a2b1d57a4aa6b7999c6f7d9 | bump version | happyleavesaoc/python-limitlessled | setup.py | setup.py | from setuptools import setup
setup(
name='limitlessled',
version='1.0.7',
description='Control LimitlessLED products.',
url='https://github.com/happyleavesaoc/python-limitlessled/',
license='MIT',
author='happyleaves',
author_email='happyleaves.tfr@gmail.com',
packages=['limitlessled', ... | from setuptools import setup
setup(
name='limitlessled',
version='1.0.6',
description='Control LimitlessLED products.',
url='https://github.com/happyleavesaoc/python-limitlessled/',
license='MIT',
author='happyleaves',
author_email='happyleaves.tfr@gmail.com',
packages=['limitlessled', ... | mit | Python |
1907af1766a6f0ef86bf5605bea93526c0ec6907 | use setuptools instead of distutil | jantman/pydnstest | setup.py | setup.py | from setuptools import setup
from sys import version_info
from pydnstest.version import VERSION
# different requirements for py2x and py3x
# will this work right? I have no idea...
if version_info.major == 3:
pyver_requires = [
"py3dns==3.0.4",
"pyparsing==2.0.1",
]
else:
pyver_requires = [... | from distutils.core import setup
from sys import version_info
from pydnstest.version import VERSION
# different requirements for py2x and py3x
# will this work right? I have no idea...
if version_info.major == 3:
pyver_requires = [
"py3dns==3.0.4",
"pyparsing==2.0.1",
]
else:
pyver_requires... | agpl-3.0 | Python |
187323a5ec5aa6bbbb5aad8af440c2bbd19fd052 | Set long_description to README.rst | kennethreitz/dj-database-url | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_rst:
readme = readme_rst.read()
setup(
name='dj-database-url',
version='0.5.0',
url='https://github.com/kennethreitz/dj-database-url',
license='BSD',
author='Kenneth Reitz',
author_email='me@kennethreitz... | # -*- coding: utf-8 -*-
"""
dj-database-url
~~~~~~~~~~~~~~~
.. image:: https://secure.travis-ci.org/kennethreitz/dj-database-url.png?branch=master
:target: http://travis-ci.org/kennethreitz/dj-database-url
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ i... | bsd-2-clause | Python |
fd10b8d93b361e80bb1fc5b19f19465fc51d9b77 | Bump version to 1.4.12 | mwilliamson/python-mammoth | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mammoth',
version='1.4.12',
description='Convert Word documents from docx to simple and clean HTML and Markdown',
long_descript... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mammoth',
version='1.4.11',
description='Convert Word documents from docx to simple and clean HTML and Markdown',
long_descript... | bsd-2-clause | Python |
189589fd395b5284ca7ed27f06e9859884be7522 | Bump version to 0.6.1 | henriquechehad/django-image-cropping,winzard/django-image-cropping,henriquechehad/django-image-cropping,winzard/django-image-cropping,winzard/django-image-cropping,henriquechehad/django-image-cropping | setup.py | setup.py | from distutils.core import setup
from setuptools import setup, find_packages
setup(name = "django-image-cropping",
version = "0.6.1",
description = "A reusable app for cropping images easily and non-destructively in Django",
long_description=open('README.rst').read(),
author = "jonasvp",
author_ema... | from distutils.core import setup
from setuptools import setup, find_packages
setup(name = "django-image-cropping",
version = "0.6",
description = "A reusable app for cropping images easily and non-destructively in Django",
long_description=open('README.rst').read(),
author = "jonasvp",
author_email... | bsd-3-clause | Python |
2433f8f3249b46e39a3dc9f036720eb80702df6e | Increase version 3.1.1 -> 3.1.2 | SiLab-Bonn/pixel_clusterizer | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.2'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.1'
author = 'David-Leon Pohl, Jens Janssen'
author_email = 'pohl@physik.uni-bonn.de, janssen@physik.uni-bonn.de'
# requirements for core functionali... | mit | Python |
5e403350124e0e07254b48f1d00f5c6bd5d17abd | bump version to v1.0.0-alpha.5 | mikoim/email2slack | setup.py | setup.py | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = 'MIME E-mail forwarding script for Slack written in Python'
setup(
name='email2slack',
version='1.0.0a5',
description='MIME E-mail forwarding script for Slack w... | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = 'MIME E-mail forwarding script for Slack written in Python'
setup(
name='email2slack',
version='1.0.0a4',
description='MIME E-mail forwarding script for Slack w... | mit | Python |
c9cf57c40fd314f91a703c7740a4a4c450041ae5 | Update setup.py | ymyzk/python-gyazo | setup.py | setup.py | #!/usr/bin/env python
from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
install_requires = [
'python-dateutil>=2.4.2',
'requests>=2.7.0',
's... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__author__ = 'Yusuke Miyazaki <miyazaki.dev@gmail.com>'
__version__ = '0.11.0'
install_requires = [
'python-dateutil>=2.4.2',
'requests>=2.7.0',
'six>=1.9.0'
]
extras_require = {
'doc... | mit | Python |
578a25ff2a27997ebf9a21b84a7040949bd8787f | Switch to 0.0.2 | Gr1N/rpihelper,Gr1N/rpihelper | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('.meta/packages') as reqs:
install_requires = reqs.read().split('\n')
with open('.meta/links') as deps:
dependency_links = deps.read().split('\n')
setup(
name='rpihelper',
version='0.0.2',
... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
with open('.meta/packages') as reqs:
install_requires = reqs.read().split('\n')
with open('.meta/links') as deps:
dependency_links = deps.read().split('\n')
setup(
name='rpihelper',
version='0.0.2e',
... | mit | Python |
f1254e6116b22923ab6f988c6cf5dca91623c678 | Allow users to run Step Stool as either `step-stool` or `stepstool`. | chriskrycho/step-stool,chriskrycho/step-stool | setup.py | setup.py | from setuptools import setup
requires = ['Markdown', 'PyRSS2Gen', 'Pygments', 'PyYAML >= 3.10', 'typogrify']
packages = ['step_stool']
entry_points = {
'console_scripts': [
'stepstool = step_stool:main',
'step-stool = step_stool:main'
]
}
classifiers = [
'Environment :: Console',
'Deve... | from setuptools import setup
requires = ['Markdown', 'PyRSS2Gen', 'Pygments', 'PyYAML >= 3.10', 'typogrify']
packages = ['step_stool']
entry_points = {
'console_scripts': [
'step-stool = step_stool:main'
]
}
classifiers = [
'Environment :: Console',
'Development Status :: 1 - Planning',
'I... | mit | Python |
0e07bd3f66628e182a0c7f913615d993cc29412f | update setup.py to 0.1.3 | yuhangwang/ninjag-python | setup.py | setup.py | from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(name='ninjag',
version='0.1.3',
description=u"Ninja config file generator",
... | from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
with codecs_open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(name='ninjag',
version='0.1.2',
description=u"Ninja config file generator",
... | mit | Python |
7e857320ff9f125eeb862d17995701255f72c5fa | Update setup.py. | StackStorm/st2sdk,StackStorm/st2sdk | setup.py | setup.py | #!/usr/bin/env python
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License... | #!/usr/bin/env python
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License... | apache-2.0 | Python |
e1c4c736c496bbf03b69dc1c2e1de69d4964fc3b | raise the tiddlywebplugins.atom requirement | FND/tiddlyspace,TiddlySpace/tiddlyspace,TiddlySpace/tiddlyspace,FND/tiddlyspace,TiddlySpace/tiddlyspace,FND/tiddlyspace | setup.py | setup.py | AUTHOR = 'Osmosoft'
AUTHOR_EMAIL = 'tiddlyspace@osmosoft.com'
NAME = 'tiddlywebplugins.tiddlyspace'
DESCRIPTION = 'A discoursive social model for TiddlyWiki'
VERSION = '0.9.8' # N.B.: duplicate of tiddlywebplugins.tiddlyspace.__init__
import os
from setuptools import setup, find_packages
setup(
namespace_packa... | AUTHOR = 'Osmosoft'
AUTHOR_EMAIL = 'tiddlyspace@osmosoft.com'
NAME = 'tiddlywebplugins.tiddlyspace'
DESCRIPTION = 'A discoursive social model for TiddlyWiki'
VERSION = '0.9.8' # N.B.: duplicate of tiddlywebplugins.tiddlyspace.__init__
import os
from setuptools import setup, find_packages
setup(
namespace_packa... | bsd-3-clause | Python |
ae97d45456854c2e584840bcefe598f889dcb737 | Add spaces around equal signs. | rqelibari/sirup | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup.py
Part of sirup project
(c) 2017 Copyright Rezart Qelibari <rqelibari@users.noreply.github.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
setup.py
Part of sirup project
(c) 2017 Copyright Rezart Qelibari <rqelibari@users.noreply.github.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obta... | apache-2.0 | Python |
8edbc052eec58913bd448f6741564238bc44a350 | Update setup.py since the tests don’t pass under Django 1.8 | lamby/django-cache-toolbox | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-cache-toolbox',
description="Non-magical object caching for Django.",
version='0.3.1',
url='https://chris-lamb.co.uk/projects/django-cache-toolbox',
author='Chris Lamb',
author_email='chris@chris-lamb.co.uk'... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='django-cache-toolbox',
description="Non-magical object caching for Django.",
version='0.3.1',
url='https://chris-lamb.co.uk/projects/django-cache-toolbox',
author='Chris Lamb',
author_email='chris@chris-lamb.co.uk'... | bsd-3-clause | Python |
15c5860df8735eff61251dd88e3c42be46fa84c4 | update setup.py in preparation for a new release | dgladkov/django-turbolinks | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import Command, setup
import turbolinks
class test(Command):
description = 'Custom test runner'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
from run_tests ... | #!/usr/bin/env python
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
setup(
name='django-turbolinks',
version='0.0.2',
description='Drop-in turb... | mit | Python |
99e70124dd1a7ca5e7943723fb13a6ed220c3c8a | Update fpsd/__init__.py | freedomofpress/FingerprintSecureDrop,freedomofpress/fingerprint-securedrop,freedomofpress/fingerprint-securedrop,freedomofpress/fingerprint-securedrop,freedomofpress/FingerprintSecureDrop | fpsd/__init__.py | fpsd/__init__.py | __all__ = ["crawler", "database", "features", "sorter", "utils"]
| __all__ = ["sorter", "crawler", "database", "features"]
| agpl-3.0 | Python |
a8b17c246f3824b121f7c960ee13b31f740c320f | Upgrade cryptography dependency | GehirnInc/python-jwt | setup.py | setup.py | # -*- coding: utf-8 -*-
#
# Copyright 2017 Gehirn 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... | # -*- coding: utf-8 -*-
#
# Copyright 2017 Gehirn 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... | apache-2.0 | Python |
e90287d2f322acd0084e6e18925ebd5a9b6782bb | Bump minimum 'api_core' version for all GAPIC libs to 1.4.1. (#6391) | googleapis/python-trace,googleapis/python-trace | setup.py | setup.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 | Python |
1f7b4b7588a1a8d1e4063ee86df71dfad531e1ea | Bump version | winzard/django-image-cropping,henriquechehad/django-image-cropping,winzard/django-image-cropping,henriquechehad/django-image-cropping,winzard/django-image-cropping,henriquechehad/django-image-cropping | setup.py | setup.py | from distutils.core import setup
from setuptools import setup, find_packages
setup(name = "django-image-cropping",
version = "0.2.1",
description = "A reusable app for cropping images easily and non-destructively in Django",
long_description=open('README.rst').read(),
author = "jonasvp",
author_ema... | from distutils.core import setup
from setuptools import setup, find_packages
setup(name = "django-image-cropping",
version = "0.2",
description = "A reusable app for cropping images easily and non-destructively in Django",
long_description=open('README.rst').read(),
author = "jonasvp",
author_email... | bsd-3-clause | Python |
6505f7785c1c2083866c232b61e860ecd82da818 | add compoda dependency | ofgulban/segmentator | setup.py | setup.py | """Segmentator setup.
To install for development, using the commandline do:
pip install -e /path/to/segmentator
"""
from setuptools import setup
from setuptools.extension import Extension
from os.path import join
import numpy
ext_modules = [Extension(
"segmentator.deriche_3D", [join('segmentator', 'cython',... | """Segmentator setup.
To install for development, using the commandline do:
pip install -e /path/to/segmentator
"""
from setuptools import setup
from setuptools.extension import Extension
from os.path import join
import numpy
ext_modules = [Extension(
"segmentator.deriche_3D", [join('segmentator', 'cython',... | bsd-3-clause | Python |
8ee7134003af92ce36fb60d37cb87d6ebabc31be | add virtualenv as dependency, this fixes #11 but needs future work | habnabit/pipsi,RaviTezu/pipsi,blueyed/pipsi | setup.py | setup.py | from setuptools import setup
with open('README', 'rb') as f:
readme = f.read().decode('utf-8')
setup(
name='pipsi',
version='0.9.dev',
description='Wraps pip and virtualenv to install scripts',
long_description=readme,
license='BSD',
author='Armin Ronacher',
author_email='armin.ronache... | from setuptools import setup
with open('README', 'rb') as f:
readme = f.read().decode('utf-8')
setup(
name='pipsi',
version='0.9.dev',
description='Wraps pip and virtualenv to install scripts',
long_description=readme,
license='BSD',
author='Armin Ronacher',
author_email='armin.ronache... | bsd-3-clause | Python |
991eb9c04f918cb1cce30776cef3cf3eaa5ed925 | Update bazel target in synth.py | googleapis/python-appengine-admin,googleapis/python-appengine-admin | synth.py | synth.py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | apache-2.0 | Python |
715e6d557aa0e5c28c0d1669853389bff6e6dcde | add write to amber init | dgasmith/EEX_scratch | eex/translators/amber/__init__.py | eex/translators/amber/__init__.py |
from .amber_read import read_amber_file
from .amber_read import write_amber_file
|
from .amber_read import read_amber_file
| bsd-3-clause | Python |
99c4bfb03a156168a552a5856bdc6b83546afcc9 | make lat/lon lines more visible. | jswhit/pygrib,jswhit/pygrib | test/test_tpcprblty.py | test/test_tpcprblty.py | import pygrib
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap,cm
import numpy as np
grbs = pygrib.open('../sampledata/tpcprblty.grib2')
grb=grbs.select(name='Wind speed',scaledValueOfUpperLimit=17491,stepRange='0-120')[0]
lats, lons = grb.latlons()
data = grb.values
map =\
Basemap(projection='l... | import pygrib
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap,cm
import numpy as np
grbs = pygrib.open('../sampledata/tpcprblty.grib2')
grb=grbs.select(name='Wind speed',scaledValueOfUpperLimit=17491,stepRange='0-120')[0]
lats, lons = grb.latlons()
data = grb.values
map =\
Basemap(projection='l... | mit | Python |
395db381f6ad38465666efd2c56a261bcfdf38b9 | Raise UnicodeDecodeError exception after logging the exception | wwj718/edx-platform,appsembler/edx-platform,zhenzhai/edx-platform,lduarte1991/edx-platform,raccoongang/edx-platform,kmoocdev2/edx-platform,edx/edx-platform,msegado/edx-platform,alu042/edx-platform,amir-qayyum-khan/edx-platform,Stanford-Online/edx-platform,tanmaykm/edx-platform,defance/edx-platform,kmoocdev2/edx-platfor... | common/djangoapps/track/backends/logger.py | common/djangoapps/track/backends/logger.py | """Event tracker backend that saves events to a python logger."""
from __future__ import absolute_import
import logging
import json
from django.conf import settings
from track.backends import BaseBackend
from track.utils import DateTimeJSONEncoder
log = logging.getLogger('track.backends.logger')
application_log = ... | """Event tracker backend that saves events to a python logger."""
from __future__ import absolute_import
import logging
import json
from django.conf import settings
from track.backends import BaseBackend
from track.utils import DateTimeJSONEncoder
log = logging.getLogger('track.backends.logger')
application_log = ... | agpl-3.0 | Python |
2ea249ee8af062684e230c90a50bd48244ef892d | Update test_automated_game.py | Prosserc/python_chess,Prosserc/python_chess | test_automated_game.py | test_automated_game.py | #!/usr/bin/python
"""Unit test for chess.py - an automated game. As AI is not yet built
these will be purely random moves with no intellegence, but will serve
as a good test it will cover a broad array of pieces / moves."""
from chess import *
from random import random as rnd
from time import sleep
import traceback
... | #!/usr/bin/python
"""Unit test for chess.py - an automated game. As AI is not yet built
these will be purely random moves with no intellegence, but will serve
as a good test it will cover a broad array of pieces / moves."""
from chess import *
from random import random as rnd
from time import sleep
SLEEP_SECS = 3 # ... | mit | Python |
dc23e95b54a96a9467c2350e9d777456fb7f57ff | add length method in Chromosome | elic-eon/autoprover,nclab/autoprover | gp/chromosome.py | gp/chromosome.py | from random import random, randint
class Chromosome:
def __init__(self, tactics):
self.chromosome = []
chromosomeLength = randint(4, 15)
for fragNum in range(chromosomeLength):
tactic = tactics[randint(0, len(tactics)-1)]
if len(self.chromosome) == 0:
... | from random import random, randint
class Chromosome:
def __init__(self, tactics):
self.chromosome = []
chromosomeLength = randint(4, 15)
for fragNum in range(chromosomeLength):
tactic = tactics[randint(0, len(tactics)-1)]
if len(self.chromosome) == 0:
... | mit | Python |
5914c35885d45aceb3199ee185229ae514924ece | Fix static db var err | galileo-project/Galileo-gpm | gpm/utils/sdb.py | gpm/utils/sdb.py | from gpm.utils.operation import LocalOperation
from gpm.const import GPM_DB, DB_SF
import os
try:
import cPickle as pickle
except:
import pickle
class StaticDB(object):
def __init__(self):
self.__path = os.path.join(GPM_DB, "%s.%s" % (self.__class__.__name__, DB_SF))
self.__data = {}
... | from gpm.utils.operation import LocalOperation
from gpm.const import GPM_DB, DB_SF
import os
try:
import cPickle as pickle
except:
import pickle
class StaticDB(object):
def __init__(self):
self.__path = os.path.join(GPM_DB, "%s.%s" % (self.__class__.__name__, DB_SF))
self.__data = {}
... | mit | Python |
e87cf17ce040b63ae015de50a98afaba13526a1f | Improve error handling in wait script (#149) | ubuntu/conjure-up,battlemidget/conjure-up,Ubuntu-Solutions-Engineering/conjure,conjure-up/conjure-up,battlemidget/conjure-up,conjure-up/conjure-up,ubuntu/conjure-up,Ubuntu-Solutions-Engineering/conjure | conjure/controllers/deploystatus/common.py | conjure/controllers/deploystatus/common.py | from conjure.app_config import app
from conjure import utils
from subprocess import CalledProcessError
import json
import os
import time
def wait_for_applications(script, msg_cb):
""" Processes a 00_deploy-done.sh to verify if applications are available
Arguments:
script: script to run (00_deploy-done.sh... | from conjure.app_config import app
from conjure import utils
from subprocess import CalledProcessError
import json
import os
import time
def wait_for_applications(script, msg_cb):
""" Processes a 00_deploy-done.sh to verify if applications are available
Arguments:
script: script to run (00_deploy-done.sh... | mit | Python |
e01452d1eb5c58cafabc4eeea817cfcb70f4b1dd | Fix Date test cases | spaceone/httoop,spaceone/httoop,spaceone/httoop | tests/api/test_date.py | tests/api/test_date.py | from __future__ import unicode_literals
from httoop import Date
import pytest
import datetime
dates = [{
'datetime': datetime.datetime(1994, 11, 6, 8, 49, 37),
'timestamp': 784111777.0,
'gmtime': (1994, 11, 6, 8, 49, 37, 6, 310, 0),
'formats': {
'Sun, 06 Nov 1994 08:49:37 GMT', # RFC 822 / RFC 1123 / RFC 2822
... | from __future__ import unicode_literals
from httoop import Date
import pytest
import datetime
dates = [{
'datetime': datetime.datetime(1994, 11, 6, 8, 49, 37),
'timestamp': 784111777.0,
'gmtime': (1994, 11, 6, 8, 49, 37, 6, 310, 0),
'formats': {
'Sun, 06 Nov 1994 08:49:37 GMT', # RFC 822 / RFC 1123 / RFC 2822
... | mit | Python |
c6917a2f439b99078e67310230f1d0cfa0de8a7b | Add test helper for creating users | numberoverzero/jsonquery | tests/builder_tests.py | tests/builder_tests.py | import ujson
import unittest
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from interrogate import Builder
class InterrogateTestCase(unittest.TestCase):
def valid_builder_args(self):
model = se... | import ujson
import unittest
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.pool import NullPool
from interrogate import Builder
class InterrogateTestCase(unittest.TestCase):
def valid_b... | mit | Python |
0b741c89ea19759f25526256ee039707cb423cef | Fix tests to now include the questions, which are now in the menu | czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq,czpython/aldryn-faq | aldryn_faq/tests/test_menu.py | aldryn_faq/tests/test_menu.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from aldryn_faq.menu import FaqCategoryMenu
from .test_base import AldrynFaqTest, CMSRequestBasedTest
class TestMenu(AldrynFaqTest, CMSRequestBasedTest):
def test_get_nodes(self):
# Test that the EN version of the menu has only category1 ... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from aldryn_faq.menu import FaqCategoryMenu
from django.utils.translation import (
get_language_from_request,
)
from .test_base import AldrynFaqTest, CMSRequestBasedTest
class TestMenu(AldrynFaqTest, CMSRequestBasedTest):
def test_get_nodes(se... | bsd-3-clause | Python |
d04e9fd2726a6617ab76bcdbdf52330a1849a630 | add version 8.29 | matthiasdiener/spack,iulian787/spack,iulian787/spack,LLNL/spack,iulian787/spack,krafczyk/spack,mfherbst/spack,LLNL/spack,mfherbst/spack,iulian787/spack,LLNL/spack,LLNL/spack,matthiasdiener/spack,iulian787/spack,krafczyk/spack,mfherbst/spack,matthiasdiener/spack,krafczyk/spack,mfherbst/spack,mfherbst/spack,krafczyk/spac... | var/spack/repos/builtin/packages/coreutils/package.py | var/spack/repos/builtin/packages/coreutils/package.py | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | ##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | lgpl-2.1 | Python |
06f291a3cd95b448e23ab3f22c005c9c9e8f7460 | Change precision for fftw dependency depending on libsakura version (#22924) | LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/libsakura/package.py | var/spack/repos/builtin/packages/libsakura/package.py | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libsakura(CMakePackage):
"""High-performance, thread-safe library compatible with C and C++... | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Libsakura(CMakePackage):
"""High-performance, thread-safe library compatible with C and C++... | lgpl-2.1 | Python |
850cac5ea3f041e9feab79f6848f98f960fc4a32 | add new version (#23916) | LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack | var/spack/repos/builtin/packages/py-cfgrib/package.py | var/spack/repos/builtin/packages/py-cfgrib/package.py | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyCfgrib(PythonPackage):
"""Python interface to map GRIB files to the NetCDF Common Data M... | # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyCfgrib(PythonPackage):
"""Python interface to map GRIB files to the NetCDF Common Data M... | lgpl-2.1 | Python |
57dfe42d957214d23e1ad28595db5af5adf1a5d6 | Include simple tree in regression package | qPCR4vir/orange3,marinkaz/orange3,qPCR4vir/orange3,kwikadi/orange3,cheral/orange3,marinkaz/orange3,cheral/orange3,qPCR4vir/orange3,kwikadi/orange3,cheral/orange3,kwikadi/orange3,kwikadi/orange3,marinkaz/orange3,cheral/orange3,cheral/orange3,kwikadi/orange3,qPCR4vir/orange3,qPCR4vir/orange3,qPCR4vir/orange3,kwikadi/oran... | Orange/regression/__init__.py | Orange/regression/__init__.py | from .base_regression import (ModelRegression as Model,
LearnerRegression as Learner,
SklModelRegression as SklModel,
SklLearnerRegression as SklLearner)
from .linear import *
from .mean import *
from .knn import *
from .simple_ra... | from .base_regression import (ModelRegression as Model,
LearnerRegression as Learner,
SklModelRegression as SklModel,
SklLearnerRegression as SklLearner)
from .linear import *
from .mean import *
from .knn import *
from .simple_ra... | bsd-2-clause | Python |
331712d7c8c055c9d3b372c78c96fa517ae5c470 | update __version__ | Y-oHr-N/kenchi,Y-oHr-N/kenchi | kenchi/__init__.py | kenchi/__init__.py | from .base import BaseDetector, DetectorMixin
from .gaussian_distribution import GaussianDetector, GGMDetector
from .empirical_distribution import EmpiricalDetector
from .mixture_distribution import GaussianMixtureDetector
from .vmf_distribution import VMFDetector
__version__ = '0.2.0'
| from .base import BaseDetector, DetectorMixin
from .gaussian_distribution import GaussianDetector, GGMDetector
from .empirical_distribution import EmpiricalDetector
from .mixture_distribution import GaussianMixtureDetector
from .vmf_distribution import VMFDetector
__version__ = '0.1.1'
| bsd-3-clause | Python |
c87291508cc342cc4da315e38bc1d35579116e4a | Update SITEURL | edwinksl/edwinksl.github.io,edwinksl/edwinksl.github.io,edwinksl/edwinksl.github.io,edwinksl/edwinksl.github.io | publishconf.py | publishconf.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://www.edwinksl.com'
RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CA... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://edwinksl.com'
RELATIVE_URLS = False
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGO... | mit | Python |
947193b19ceacfe441d2d325f7cd7efbca3d2b1e | add ring resonances data files to data section and meta module | jamesHuffman/pyciss,michaelaye/pyciss | pyciss/meta.py | pyciss/meta.py | import pandas as pd
import pkg_resources as pr
from . import io
def read_metadata(f):
df = pd.read_csv(f, header=None, delim_whitespace=True)
return df.rename(columns={0: 'id', 1: 'pixres', 14: 'lit_status'})
with pr.resource_stream('pyciss', 'data/metadata.txt') as f:
meta_df = read_metadata(f)
with ... | import pandas as pd
import pkg_resources as pr
from . import io
def read_metadata(f):
df = pd.read_csv(f, header=None, delim_whitespace=True)
return df.rename(columns={0: 'id', 1: 'pixres', 14: 'lit_status'})
with pr.resource_stream('pyciss', 'data/metadata.txt') as f:
meta_df = read_metadata(f)
with ... | isc | Python |
9603222cee270a48464d357d610e61b6d134913e | add nullhandler to pika logger | cenkalti/kuyruk,cenkalti/kuyruk | kuyruk/__init__.py | kuyruk/__init__.py | import logging
try:
# not available in python 2.6
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
from .kuyruk import Kuyruk
from .task import Task
from .worker import Worker
from .queue import Queue
from .exceptions i... | import logging
try:
# not available in python 2.6
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
pass
from .kuyruk import Kuyruk
from .task import Task
from .worker import Worker
from .queue import Queue
from .exceptions i... | mit | Python |
518df76dcc14895f4555451194f64a98ccc814ef | Use importlib.import_module instead of __import__ | rafaduran/python-mcollective,rafaduran/python-mcollective,rafaduran/python-mcollective,rafaduran/python-mcollective | pymco/utils.py | pymco/utils.py | """
:py:mod:`pymco.utils`
---------------------
python-mcollective utils.
"""
import importlib
def import_class(import_path):
"""Import a class based on given dotted import path string.
It just splits the import path in order to geth the module and class names,
then it just calls to :py:func:`__import__`... | """
:py:mod:`pymco.utils`
---------------------
python-mcollective utils.
"""
def import_class(import_path):
"""Import a class based on given dotted import path string.
It just splits the import path in order to geth the module and class names,
then it just calls to :py:func:`__import__` with the module ... | bsd-3-clause | Python |
403bb86fae9dceb7fb18421bf91b8e5b51642ddc | fix ZeroDivisionError | cardoso010/owasp-pysec,blabla1337/owasp-pysec,cardoso010/owasp-pysec,ebranca/owasp-pysec,ebranca/owasp-pysec,cardoso010/owasp-pysec,nvoron23/owasp-pysec,nvoron23/owasp-pysec,nvoron23/owasp-pysec,blabla1337/owasp-pysec,ebranca/owasp-pysec,blabla1337/owasp-pysec | pysec/stats.py | pysec/stats.py | # Python Security Project (PySec) and its related class files.
#
# PySec is a set of tools for secure application development under Linux
#
# Copyright 2014 PySec development team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | # Python Security Project (PySec) and its related class files.
#
# PySec is a set of tools for secure application development under Linux
#
# Copyright 2014 PySec development team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | apache-2.0 | Python |
d3b493bb4b9ad1af64981b66a79041664c2d2349 | add post model | qiulin/leonardo,qiulin/leonardo,qiulin/leonardo | leonardo/models.py | leonardo/models.py | from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import UserMixin, AnonymousUserMixin
from werkzeug.security import generate_password_hash, check_password_hash
db = SQLAlchemy()
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String)
p... | from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.login import UserMixin, AnonymousUserMixin
from werkzeug.security import generate_password_hash, check_password_hash
db = SQLAlchemy()
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String)
p... | mit | Python |
2ca6cb7cc376b6ffff1a20cf9f06046a2285e35b | Set problem size from command line in python test | ddemidov/amgcl,ddemidov/amgcl,huahbo/amgcl,dondieselkopf/amgcl,huahbo/amgcl,dondieselkopf/amgcl,ddemidov/amgcl,huahbo/amgcl,ddemidov/amgcl,dondieselkopf/amgcl | python/test.py | python/test.py | #!/usr/bin/python
from sys import argv
import numpy as np
import pyamgcl as amg
from scipy.sparse import *
from pylab import *
# Assemble problem
if len(argv[1:]) > 0:
n = int(argv[1])
else:
n = 256
n2 = n * n
A = dok_matrix((n2, n2), dtype = np.float64)
boundaries = [0, n-1]
idx = 0
for i in xrange(0, ... | #!/usr/bin/python
import numpy as np
import pyamgcl as amg
from scipy.sparse import *
from pylab import *
# Assemble problem
n = 256
n2 = n * n
A = dok_matrix((n2, n2), dtype = np.float64)
boundaries = [0, n-1]
idx = 0
for i in xrange(0, n):
for j in xrange(0, n):
if i in boundaries or j in boundarie... | mit | Python |
221ccb542226ece1e49baa86291fb3e8bdf27a81 | Rename object to obj | invzhi/invzhi.me,invzhi/invzhi.me | mysite/article/views.py | mysite/article/views.py | from django.views.generic import ListView, DetailView, TemplateView
from django.shortcuts import get_object_or_404
from .models import Article, Tag
class ArticleListView(ListView):
model = Article
ordering = ['-first_commit']
paginate_by = 10
def get_context_data(self, **kwargs):
context = s... | from django.views.generic import ListView, DetailView, TemplateView
from django.shortcuts import get_object_or_404
from .models import Article, Tag
class ArticleListView(ListView):
model = Article
ordering = ['-first_commit']
paginate_by = 10
def get_context_data(self, **kwargs):
context = s... | bsd-3-clause | Python |
ac4ac024dab55efe6f844c1d5d7643a5f3dc41e5 | improve cmake support | vmrob/needy,bittorrent/needy,ccbrown/needy,bittorrent/needy,ccbrown/needy,vmrob/needy | needy/projects/cmake.py | needy/projects/cmake.py | import os
from .. import project
from ..cd import cd
class CMakeProject(project.Project):
@staticmethod
def identifier():
return 'cmake'
@staticmethod
def configuration_keys():
return ['cmake-options']
@staticmethod
def is_valid_project(definition, needy):
return de... | import os
from .. import project
from ..cd import cd
class CMakeProject(project.Project):
@staticmethod
def identifier():
return 'cmake'
@staticmethod
def is_valid_project(definition, needy):
return definition.target.platform.is_host() and os.path.isfile('CMakeLists.txt')
def c... | mit | Python |
4fe72ff427290e845c0259cd1aadf21dd29b9872 | Fix path and avi -> mpg. | el-ethan/kivy,angryrancor/kivy,janssen/kivy,rafalo1333/kivy,cbenhagen/kivy,inclement/kivy,Farkal/kivy,jffernandez/kivy,manthansharma/kivy,youprofit/kivy,darkopevec/kivy,jegger/kivy,xiaoyanit/kivy,bob-the-hamster/kivy,Cheaterman/kivy,manthansharma/kivy,LogicalDash/kivy,aron-bordin/kivy,vipulroxx/kivy,andnovar/kivy,iamut... | kivy/tests/test_video.py | kivy/tests/test_video.py |
import unittest
class AnimationTestCase(unittest.TestCase):
def test_video_unload(self):
# fix issue https://github.com/kivy/kivy/issues/2275
# AttributeError: 'NoneType' object has no attribute 'texture'
from kivy.uix.video import Video
from kivy.clock import Clock
from ... |
import unittest
class AnimationTestCase(unittest.TestCase):
def test_video_unload(self):
# fix issue https://github.com/kivy/kivy/issues/2275
# AttributeError: 'NoneType' object has no attribute 'texture'
from kivy.uix.video import Video
from kivy.clock import Clock
from ... | mit | Python |
9b3768f9a0d17443d55d604cf028d23c3d90a289 | Update testing settings | kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi | kobo/settings/testing.py | kobo/settings/testing.py | # coding: utf-8
from mongomock import MongoClient as MockMongoClient
from .base import *
# For tests, don't use KoBoCAT's DB
DATABASES = {
'default': env.db(default="sqlite:///%s/db.sqlite3" % BASE_DIR),
}
DATABASE_ROUTERS = ['kpi.db_routers.TestingDatabaseRouter']
TESTING = True
# Decrease prod value to speed... | # coding: utf-8
from mongomock import MongoClient as MockMongoClient
from .base import *
# For tests, don't use KoBoCAT's DB
DATABASES = {
'default': dj_database_url.config(default='sqlite:///%s/db.sqlite3' % BASE_DIR),
}
DATABASE_ROUTERS = ['kpi.db_routers.TestingDatabaseRouter']
TESTING = True
# Decrease pro... | agpl-3.0 | Python |
2bf8caf7736772920bafd181d8b844269d95be17 | Set version number to 0.14+ | dajobe/SoCo,petteraas/SoCo,dajobe/SoCo,petteraas/SoCo,KennethNielsen/SoCo,SoCo/SoCo,petteraas/SoCo,KennethNielsen/SoCo,SoCo/SoCo | soco/__init__.py | soco/__init__.py | # -*- coding: utf-8 -*-
"""SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import log... | # -*- coding: utf-8 -*-
"""SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import log... | mit | Python |
0a08d986358ece47b4624f333b6f096b8b62c701 | Tag incode version number as yet again being in development | petteraas/SoCo,petteraas/SoCo,SoCo/SoCo,KennethNielsen/SoCo,KennethNielsen/SoCo,SoCo/SoCo,petteraas/SoCo | soco/__init__.py | soco/__init__.py | # -*- coding: utf-8 -*-
"""SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import log... | # -*- coding: utf-8 -*-
"""SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import log... | mit | Python |
0728a5b64ec9a871267d3b0b6ea6c3390b7a8e1f | Add `clowder status` logic to Cement controller | JrGoodle/clowder,JrGoodle/clowder,JrGoodle/clowder | clowder/clowder/cli/status_controller.py | clowder/clowder/cli/status_controller.py | from cement.ext.ext_argparse import expose
import clowder.util.formatting as fmt
from clowder.cli.abstract_base_controller import AbstractBaseController
from clowder.commands.util import run_group_command
from clowder.util.decorators import network_connection_required
class StatusController(AbstractBaseController):
... | from cement.ext.ext_argparse import expose
from clowder.cli.abstract_base_controller import AbstractBaseController
class StatusController(AbstractBaseController):
class Meta:
label = 'status'
stacked_on = 'base'
stacked_type = 'nested'
description = 'Print project status'
... | mit | Python |
87633660134621a540be809f10139d084833e51b | Update example.py | anvanza/invenavi,anvanza/invenavi,anvanza/invenavi | external/Adafruit_PWM_Servo_Driver/example.py | external/Adafruit_PWM_Servo_Driver/example.py | #!/usr/bin/python
from Adafruit_PWM_Servo_Driver import PWM
import time
# ===========================================================================
# Example Code
# ===========================================================================
# Initialise the PWM device using the default address
# bmp = PWM(0x40, de... | #!/usr/bin/python
from Adafruit_PWM_Servo_Driver import PWM
import time
# ===========================================================================
# Example Code
# ===========================================================================
# Initialise the PWM device using the default address
# bmp = PWM(0x40, de... | mit | Python |
f716e868e5544ae7dc02232f6e89bb850f1413a2 | print RC on client close | iwanbk/nyamuk | nyamuk/gevmosquittod.py | nyamuk/gevmosquittod.py | #!/usr/bin/env python
'''
MQTT Server Based on Mosquitto
Use gevent
'''
import sys
import socket
import logging
import gevent
from gevent import monkey; monkey.patch_socket()
from gevent.server import StreamServer
import subs_mgr
import conn_mgr
import bee
from MV import MV
from bee_logger import BeeLogger
SubsMgr =... | #!/usr/bin/env python
'''
MQTT Server Based on Mosquitto
Use gevent
'''
import sys
import socket
import logging
import gevent
from gevent import monkey; monkey.patch_socket()
from gevent.server import StreamServer
import subs_mgr
import conn_mgr
import bee
from MV import MV
from bee_logger import BeeLogger
SubsMgr =... | bsd-2-clause | Python |
b3d38b85e9481989183a1bdfbfeedc731f0bfbb4 | comment funtimes | mikedory/differ | offline/celeryconfig.py | offline/celeryconfig.py | # import the usual stuff
from datetime import timedelta
# import our local stuffs
import local_settings
"""
set up the backend defaults for the results and broker
based heavily on: https://gist.github.com/vivekn/1062526
TODO: move this stuff into local_settings
"""
BROKER_URL = '%s://%s:%d/%d' % (
local_s... | from datetime import timedelta
import local_settings
"""
set up the backend defaults for the results and broker
based heavily on: https://gist.github.com/vivekn/1062526
TODO: move this stuff into local_settings
"""
BROKER_URL = '%s://%s:%d/%d' % (
local_settings.BROKER_BACKEND,
local_settings.BROKER_H... | mit | Python |
227dafd8dade6bbd6c7c88cfac4cc20d0aee3d65 | Implement register user endpoint | building4theweb/soundem-api | soundem/views.py | soundem/views.py | from flask import jsonify, request
from soundem import app, db
from .models import Artist, Album, Song, Favorite, user_datastore
@app.route('/api/v1/register', methods=['POST'])
def register():
data = request.get_json()
email = data.get('email')
password = data.get('password')
errors = {}
if not... | from flask import jsonify
from soundem import app
from .models import Artist, Album, Song, Favorite
@app.route('/api/v1/artists', methods=['GET'])
def get_artists():
artists = []
for artist in Artist.query.all():
artists.append({
'id': artist.id,
'name': artist.name,
... | mit | Python |
e00e821c9984038c15d9cb9a6db3d4e13a770cb6 | Convert atomno to int in case it is a different numpy dtype. | gaursagar/cclib,andersx/cclib,ghutchis/cclib,cclib/cclib,Clyde-fare/cclib,berquist/cclib,jchodera/cclib,Schamnad/cclib,ATenderholt/cclib,langner/cclib,jchodera/cclib,ghutchis/cclib,langner/cclib,cclib/cclib,berquist/cclib,Clyde-fare/cclib,ben-albrecht/cclib,andersx/cclib,gaursagar/cclib,ATenderholt/cclib,ben-albrecht/c... | src/cclib/bridge/cclib2openbabel.py | src/cclib/bridge/cclib2openbabel.py | """
cclib (http://cclib.sf.net) is (c) 2006, the cclib development team
and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html).
"""
__revision__ = "$Revision$"
import openbabel as ob
def makeopenbabel(atomcoords, atomnos, charge=0, mult=1):
"""Create an Open Babel molecule.
>>> import numpy, op... | """
cclib (http://cclib.sf.net) is (c) 2006, the cclib development team
and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html).
"""
__revision__ = "$Revision$"
import openbabel as ob
def makeopenbabel(atomcoords, atomnos, charge=0, mult=1):
"""Create an Open Babel molecule.
>>> import numpy, op... | bsd-3-clause | Python |
d07c1820c879e601dfeaf7697f21dc21f7be38f4 | remove line | globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service | dbaas/physical/admin/disk_offering_type.py | dbaas/physical/admin/disk_offering_type.py | # -*- coding: utf-8 -*-
#from django.contrib import admin
from django_services import admin as services_admin
from ..service.diskofferingtype import DiskOfferingTypeService
#class DiskOfferingTypeAdmin(admin.ModelAdmin):
class DiskOfferingTypeAdmin(services_admin.DjangoServicesAdmin):
service_class = DiskOffering... | # -*- coding: utf-8 -*-
#from django.contrib import admin
from django_services import admin as services_admin
from ..service.diskofferingtype import DiskOfferingTypeService
#class DiskOfferingTypeAdmin(admin.ModelAdmin):
class DiskOfferingTypeAdmin(services_admin.DjangoServicesAdmin):
service_class = DiskOffering... | bsd-3-clause | Python |
4f10b1dbdb403090288ccb40a68eb12761a18106 | bump version to 0.10.3 | KaiSforza/pywer | libaur/__init__.py | libaur/__init__.py | # -*- coding: utf-8 -*-
__full_license__ = '''
MIT/X Consortium License
© 2013-13 William Giokas <1007380@gmail.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, includin... | # -*- coding: utf-8 -*-
__full_license__ = '''
MIT/X Consortium License
© 2013-13 William Giokas <1007380@gmail.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, includin... | mit | Python |
95f6598c69568bb4530052b129e4b32645eeb353 | Extend tests | funkybob/django-mangle,funkybob/django-mangle | tests/test_combined.py | tests/test_combined.py | import os
from django.test import override_settings
from . import StaticTestCase
BASE_DIR = os.path.dirname(__file__)
@override_settings(
MANGLERS=[
('mangle.css.CssMangler', {}),
('mangle.js.JsMangler', {}),
('mangle.gzip.GzipMangler', {'extensions': ['.js', '.css', '.txt']}),
]
)... | import os
from django.test import override_settings
from . import StaticTestCase
BASE_DIR = os.path.dirname(__file__)
@override_settings(
MANGLERS=[
('mangle.css.CssMangler', {}),
('mangle.js.JsMangler', {}),
('mangle.gzip.GzipMangler', {}),
]
)
class MidedMixinTestCase(StaticTestC... | mit | Python |
b60477a95acf5feb4f95579e7c96571ae19aa1b2 | Delete zone after tests | Collaborne/cli53,ftahmed/cli53,jefflaplante/cli53,branall1/cli53,branall1/cli53,Collaborne/cli53,ftahmed/cli53,jefflaplante/cli53,branall1/cli53 | tests/test_commands.py | tests/test_commands.py | import unittest
import subprocess
import sys
import os
import re
class NonZeroExit(Exception):
pass
class RegexEqual(object):
def __init__(self, r):
self.re = re.compile(r)
def __eq__(self, x):
return bool(self.re.search(x))
class CommandsTest(unittest.TestCase):
def setUp(self):... | import unittest
import subprocess
import sys
import os
import re
class NonZeroExit(Exception):
pass
class RegexEqual(object):
def __init__(self, r):
self.re = re.compile(r)
def __eq__(self, x):
return bool(self.re.search(x))
class CommandsTest(unittest.TestCase):
def setUp(self):... | mit | Python |
e2c2e2abf1ada8cfe88ab3fbfa80b6bcf37cd1c5 | Fix vision samples | GoogleCloudPlatform/python-docs-samples,BrandonY/python-docs-samples,JavaRabbit/CS496_capstone,BrandonY/python-docs-samples,JavaRabbit/CS496_capstone,JavaRabbit/CS496_capstone,sharbison3/python-docs-samples,canglade/NLP,canglade/NLP,GoogleCloudPlatform/python-docs-samples,canglade/NLP,sharbison3/python-docs-samples,Goo... | vision/api/label/snippets.py | vision/api/label/snippets.py | #!/usr/bin/env python
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | #!/usr/bin/env python
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | apache-2.0 | Python |
3e93dc16813c6a03eb6a3cab893849af1b934e1c | Update cookielaw_tags.py | douwevandermeij/django-cookie-law,barseghyanartur/django-cookie-law,Maplecroft/django-cookie-law,TyMaszWeb/django-cookie-law,douwevandermeij/django-cookie-law,Maplecroft/django-cookie-law,TyMaszWeb/django-cookie-law,douwevandermeij/django-cookie-law,Maplecroft/django-cookie-law,barseghyanartur/django-cookie-law,barsegh... | cookielaw/templatetags/cookielaw_tags.py | cookielaw/templatetags/cookielaw_tags.py | from classytags.helpers import InclusionTag
from django import template
from django.template.loader import render_to_string
register = template.Library()
class CookielawBanner(InclusionTag):
"""
Displays cookie law banner only if user has not dismissed it yet.
"""
template = 'cookielaw/banner.html'... | from classytags.helpers import InclusionTag
from django import template
from django.template.loader import render_to_string
register = template.Library()
class CookielawBanner(InclusionTag):
"""
Displays cookie law banner only if user has not dismissed it yet.
"""
template = 'cookielaw/banner.html'... | bsd-2-clause | Python |
a1229a5de24e7ce00d50b9ceafe62220822f5238 | Add spark-related settings to defaultconfig | TissueMAPS/TmServer | tmaps/defaultconfig.py | tmaps/defaultconfig.py | import logging
import datetime
DEBUG = True
# Override this key with a secret one
SECRET_KEY = 'default_secret_key'
HASHIDS_SALT = 'default_secret_salt'
## Authentication
JWT_EXPIRATION_DELTA = datetime.timedelta(days=2)
JWT_NOT_BEFORE_DELTA = datetime.timedelta(seconds=0)
## Database
SQLALCHEMY_DATABASE_URI = None... | import logging
import datetime
DEBUG = True
# Override this key with a secret one
SECRET_KEY = 'default_secret_key'
HASHIDS_SALT = 'default_secret_salt'
## Authentication
JWT_EXPIRATION_DELTA = datetime.timedelta(days=2)
JWT_NOT_BEFORE_DELTA = datetime.timedelta(seconds=0)
## Database
SQLALCHEMY_DATABASE_URI = None... | agpl-3.0 | Python |
3eb4f339bc297c61f0743ee68891ba88546a5041 | Update KC CTS reference | googlestadia/VK-GL-CTS,KhronosGroup/VK-GL-CTS,googlestadia/VK-GL-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/Vulkan-CTS,KhronosGroup/VK-GL-CTS,googlestadia/VK-GL-CTS,KhronosGroup/VK-GL-CTS,googlestadia/VK-GL-CTS,googlestadia/VK-GL-CTS,KhronosGroup/VK-GL-CTS,KhronosGroup/Vulkan-CTS,googlestadia/VK-G... | external/fetch_kc_cts.py | external/fetch_kc_cts.py | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# Khronos OpenGL CTS
# ------------------
#
# Copyright (c) 2016 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# Khronos OpenGL CTS
# ------------------
#
# Copyright (c) 2016 The Khronos Group Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | apache-2.0 | Python |
b8aea3ae5dcb378a4b1e8be79c646eedfc4a6ab7 | Disable this for now | markolson/graphite-web,bpaquet/graphite-web,jssjr/graphite-web,Squarespace/graphite-web,DanCech/graphite-web,obfuscurity/graphite-web,disqus/graphite-web,esnet/graphite-web,Squarespace/graphite-web,Invoca/graphite-web,AICIDNN/graphite-web,Invoca/graphite-web,gwaldo/graphite-web,bruce-lyft/graphite-web,disqus/graphite-w... | webapp/tests/test_browser.py | webapp/tests/test_browser.py | import os
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from . import DATA_DIR
class BrowserTest(TestCase):
def test_browser(self):
url = reverse('browser')
response = self... | import os
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from . import DATA_DIR
class BrowserTest(TestCase):
def test_browser(self):
url = reverse('browser')
response = self... | apache-2.0 | Python |
56c5ba27ecb4324e4c137e9e1595f95ffd58b73a | Add post process stage for stray mixin calls | joequery/lesscpy,lesscpy/lesscpy,robotis/lesscpy,fivethreeo/lesscpy | lesscpy/plib/deferred.py | lesscpy/plib/deferred.py | # -*- coding: utf8 -*-
"""
.. module:: lesscpy.plib.deferred
:synopsis: Deferred mixin call.
Copyright (c)
See LICENSE for details.
.. moduleauthor:: Jóhann T. Maríusson <jtm@robot.is>
"""
from .node import Node
class Deferred(Node):
def __init__(self, mixin, args):
"""This node represents... | # -*- coding: utf8 -*-
"""
.. module:: lesscpy.plib.deferred
:synopsis: Deferred mixin call.
Copyright (c)
See LICENSE for details.
.. moduleauthor:: Jóhann T. Maríusson <jtm@robot.is>
"""
from .node import Node
class Deferred(Node):
def __init__(self, mixin, args):
"""This node represents... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.