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
11195079cbf302b15f0b3091c96aba7d79f0050e
Bump to v0.3.0
gisce/esios
setup.py
setup.py
from setuptools import setup, find_packages setup( name='esios', version='0.3.0', packages=find_packages(), url='https://github.com/gisce/esios', license='MIT', install_requires=['libsaas'], author='GISCE-TI, S.L.', author_email='devel@gisce.net', description='Interact with e.sios ...
from setuptools import setup, find_packages setup( name='esios', version='0.2.0', packages=find_packages(), url='https://github.com/gisce/esios', license='MIT', install_requires=['libsaas'], author='GISCE-TI, S.L.', author_email='devel@gisce.net', description='Interact with e.sios ...
mit
Python
705030fcfde9320cbb2c39e9548c246e3cda5e87
Update version and PyPi
hllau/html_node
setup.py
setup.py
from setuptools import setup, find_packages setup( name="HtmlNode", version="0.1.4", packages=find_packages(), description="A simple Python HTML generator", author="Hing-Lung Lau", author_email="lung220@gmail.com", url="http://github.com/hllau/html_node", license="Apache v2", keywor...
from setuptools import setup, find_packages setup( name="HtmlNode", version="0.1.3", packages=find_packages(), description="A simple Python HTML generator", author="Hing-Lung Lau", author_email="lung220@gmail.com", url="http://github.com/hllau/html_node", license="Apache v2", keywor...
apache-2.0
Python
e6f9e9fac32f2d68e597dbf6252ad4941cf3ed5a
Simplify setup.py
python-attrs/attrs,hynek/attrs
setup.py
setup.py
import codecs import os import re from setuptools import setup, find_packages ############################################################################### NAME = "attrs" PACKAGES = find_packages(where="src") META_PATH = os.path.join("src", "attr", "__init__.py") KEYWORDS = ["class", "attribute", "boilerplate"] C...
import codecs import os import re from setuptools import setup, find_packages ############################################################################### NAME = "attrs" PACKAGES = find_packages(where="src", exclude=["tests*"]) META_PATH = os.path.join("src", "attr", "__init__.py") KEYWORDS = ["class", "attribut...
mit
Python
739d48856d1b8460520083e799776316653ab1b7
Prepare openprocurement.tender.openua 2.3.27.
openprocurement/openprocurement.tender.openua
setup.py
setup.py
from setuptools import setup, find_packages import os version = '2.3.27' requires = [ 'setuptools', 'openprocurement.api>=2.3', ] test_requires = requires + [ 'webtest', 'python-coveralls', ] docs_requires = requires + [ 'sphinxcontrib-httpdomain', ] entry_points = { 'openprocurement.api.plug...
from setuptools import setup, find_packages import os version = '2.3.26' requires = [ 'setuptools', 'openprocurement.api>=2.3', ] test_requires = requires + [ 'webtest', 'python-coveralls', ] docs_requires = requires + [ 'sphinxcontrib-httpdomain', ] entry_points = { 'openprocurement.api.plug...
apache-2.0
Python
2d8eafef867bbfb434fcb4b8a6fc33a4db081441
add missing podhub.meh dependency
podhub-io/website
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='p...
#!/usr/bin/env python import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='p...
apache-2.0
Python
f29bf0827723e3cddbed1cfbd5968ffb69dd7e6c
Update version number to 1.8.0
mentionllc/google-visualization-python,pib/chartfood
setup.py
setup.py
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
apache-2.0
Python
bebe2be26d21289bb43936d3895c4b29126d508c
Change rtfd -> readthedocs in package description
spatialaudio/nbsphinx,spatialaudio/nbsphinx,spatialaudio/nbsphinx
setup.py
setup.py
from setuptools import setup # "import" __version__ for line in open('nbsphinx.py'): if line.startswith('__version__'): exec(line) break setup( name='nbsphinx', version=__version__, py_modules=['nbsphinx'], install_requires=[ 'docutils', 'jinja2', 'nbconvert...
from setuptools import setup # "import" __version__ for line in open('nbsphinx.py'): if line.startswith('__version__'): exec(line) break setup( name='nbsphinx', version=__version__, py_modules=['nbsphinx'], install_requires=[ 'docutils', 'jinja2', 'nbconvert...
mit
Python
c4aac06f299c99c3340726e0d283555df7cd4186
Add BeautifulSoup to the setup.py.
Awingu/django-saml2-idp,Awingu/django-saml2-idp,Awingu/django-saml2-idp
setup.py
setup.py
from setuptools import setup, find_packages setup( name='saml2idp', version='0.0.3', description='SAML 2.0 Django Application', long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read(), author='Unomena', author_email='dev@unomena.com', license='BSD', url='http...
from setuptools import setup, find_packages setup( name='saml2idp', version='0.0.3', description='SAML 2.0 Django Application', long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read(), author='Unomena', author_email='dev@unomena.com', license='BSD', url='http...
bsd-3-clause
Python
9d19fb7ada5caaa2dc74736cd12635bed3d8516a
Put in some version requirements.
taschini/morepath,faassen/morepath,morepath/morepath
setup.py
setup.py
import os from setuptools import setup, find_packages setup(name='morepath', version = '0.1dev', description="A micro web-framework with superpowers", author="Martijn Faassen", author_email="faassen@startifact.com", license="BSD", packages=find_packages(), include_package_data...
import os from setuptools import setup, find_packages setup(name='morepath', version = '0.1dev', description="A micro web-framework with superpowers", author="Martijn Faassen", author_email="faassen@startifact.com", license="BSD", packages=find_packages(), include_package_data...
bsd-3-clause
Python
1901f45c9153e345144b63d4c6fcd9881c0ecb98
add raven as extra requirements.
soasme/blackgate
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'futures', 'tornado', 'PyYAML', 'click', ] ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'futures>=3.0.5', 'tornado>=4.3', 'PyYAML>=3.11'...
mit
Python
13fdb27ff9584b848c512b9919a21dd3c0992816
Increment the module version
pandamasta/django-eblog
setup.py
setup.py
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-eblog', version='0.2', packages=['eblog'], inc...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-eblog', version='0.1', packages=['eblog'], inc...
bsd-3-clause
Python
8b242acd4ad8410f307939a1b48c20c1a6d1fc55
add coding: utf-8
camptocamp/formalchemy,camptocamp/formalchemy,FormAlchemy/formalchemy,abourget/formalchemy-abourget,FormAlchemy/formalchemy,FormAlchemy/formalchemy,camptocamp/formalchemy,camptocamp/formalchemy,FormAlchemy/formalchemy
setup.py
setup.py
# -*- coding: utf-8 -*- long_description = open('README.txt').read().strip() +\ '\n\n' +\ 'Changes\n' +\ '=======\n\n' +\ open('CHANGELOG.txt').read().strip() args = dict(name='FormAlchemy', license='MIT License', version='1.0', ...
long_description = open('README.txt').read().strip() +\ '\n\n' +\ 'Changes\n' +\ '=======\n\n' +\ open('CHANGELOG.txt').read().strip() args = dict(name='FormAlchemy', license='MIT License', version='1.0', description='FormAl...
mit
Python
d9e85fc770455a53070c29df023e5e79e3075bb1
Update setup.py metadata
Previz-app/io_scene_dnb_previz,Previz-app/io_scene_dnb_previz,Previz-app/io_scene_previz,Previz-app/io_scene_previz
setup.py
setup.py
from setuptools import setup, find_packages from tools.distutils.command import bdist_blender_addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/lates...
from setuptools import setup, find_packages from tools.distutils.command import bdist_blender_addon setup( name='io_scene_previz', # Versions should comply with PEP440. For a discussion on single-sourcing # the version across setup.py and the project code, see # https://packaging.python.org/en/lates...
mit
Python
f68613de29647ad147b3b140115b98af3ac9ef28
Fix classifier
maxzheng/workspace-tools
setup.py
setup.py
#!/usr/bin/env python2.6 import os import setuptools def find_files(path): return [os.path.join(path, f) for f in os.listdir(path)] setuptools.setup( name='workspace-tools', version='0.7.6', author='Max Zheng', author_email='maxzheng.os @t gmail.com', description='Tools to simplify working with multi...
#!/usr/bin/env python2.6 import os import setuptools def find_files(path): return [os.path.join(path, f) for f in os.listdir(path)] setuptools.setup( name='workspace-tools', version='0.7.6', author='Max Zheng', author_email='maxzheng.os @t gmail.com', description='Tools to simplify working with multi...
mit
Python
e87e2c2d8b6bfd3f02e7b470bd48e55063b580c7
bump to 0.1.6
cristina0botez/m3u8,cristina0botez/m3u8,bertothunder/m3u8,gabrielfalcao/m3u8,cnry/m3u8,neon-lab/m3u8,pbs/m3u8,cnry/m3u8,feuvan/m3u8,gabrielfalcao/m3u8,feuvan/m3u8,pbs/m3u8,neon-lab/m3u8,bertothunder/m3u8
setup.py
setup.py
import os from setuptools import setup long_description = None if os.path.exists("README.rst"): long_description = open("README.rst").read() setup( name="m3u8", author='Globo.com', author_email='videos3@corp.globo.com', version="0.1.6", zip_safe=False, packages=["m3u8"], url="https://g...
import os from setuptools import setup long_description = None if os.path.exists("README.rst"): long_description = open("README.rst").read() setup( name="m3u8", author='Globo.com', version="0.1.5", zip_safe=False, packages=["m3u8"], url="https://github.com/globocom/m3u8", description="...
mit
Python
a59aeb6309084837b83c8215284c9ca70a2fa2f1
Bump to 0.8.2
iancmcc/ouimeaux,iancmcc/ouimeaux,iancmcc/ouimeaux
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys here = lambda *a: os.path.join(os.path.dirname(__file__), *a) 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() ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys here = lambda *a: os.path.join(os.path.dirname(__file__), *a) 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() ...
bsd-3-clause
Python
38802d0b8aa93af2e299e54cb0e61a3aac5770fd
Bump version number
wendbv/pluvo-python,wendbv/pluvo-python
setup.py
setup.py
from setuptools import setup setup( name='pluvo', packages=['pluvo'], package_data={}, version='0.2.14', description='Python library to access the Pluvo REST API.', author='Wend BV', author_email='info@wend.nl', license='MIT', url='https://github.com/wendbv/pluvo-python', keywo...
from setuptools import setup setup( name='pluvo', packages=['pluvo'], package_data={}, version='0.2.13', description='Python library to access the Pluvo REST API.', author='Wend BV', author_email='info@wend.nl', license='MIT', url='https://github.com/wendbv/pluvo-python', keywo...
mit
Python
6273a10c50da0e1c743e0fc5082293f583650d44
add scripts to setup
Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages CLASSIFIERS = [ 'Intended Audience :: Science/Research', 'Programming Language :: Python', 'Programming Language :: JavaScript', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Multimedia :: Soun...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages CLASSIFIERS = [ 'Intended Audience :: Science/Research', 'Programming Language :: Python', 'Programming Language :: JavaScript', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Multimedia :: Soun...
agpl-3.0
Python
489dd98ca5959b55d801c04d22fd388b6efab1f3
fix pandoc missing
arve0/leicacam
setup.py
setup.py
#!/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() os.system('make rst') try: readme = open('README.rst').read() except FileNotFoundE...
#!/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() os.system('make rst') readme = open('README.rst').read() setup( name='leicacam', ...
mit
Python
b4e25711127414766514091dab29e78cca9719da
Bump version
xorel/sgmanager,scenek/sgmanager
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2007-2013, GoodData(R) Corporation. All rights reserved from setuptools import setup setup( name='sgmanager', version='1.2.1', packages=['sgmanager', 'sgmanager.logger', 'sgmanager.securitygroups'], entry_points = { 'console_scripts...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2007-2013, GoodData(R) Corporation. All rights reserved from setuptools import setup setup( name='sgmanager', version='1.2', packages=['sgmanager', 'sgmanager.logger', 'sgmanager.securitygroups'], entry_points = { 'console_scripts':...
bsd-3-clause
Python
155b2292d72227867d279848c38b38ce6675dff8
bump version
cenkalti/darbe,cenk/darbe
setup.py
setup.py
# coding=utf8 from setuptools import setup setup( name='Darbe', version='1.1.4', author=u'Cenk Altı', author_email='cenkalti@gmail.com', keywords='mysql rds migration database replication slave', url='https://github.com/cenk/darbe', py_modules=['darbe'], install_requires=[ 'bot...
# coding=utf8 from setuptools import setup setup( name='Darbe', version='1.1.3', author=u'Cenk Altı', author_email='cenkalti@gmail.com', keywords='mysql rds migration database replication slave', url='https://github.com/cenk/darbe', py_modules=['darbe'], install_requires=[ 'bot...
mit
Python
cbbcbb5707a90929da8d47f6b3322cebec983279
Add jianfan to python package installation
hermanschaaf/mafan,cychiang/mafan
setup.py
setup.py
from setuptools import setup from distutils.core import Command import os import sys class TestCommand(Command): description = "Run tests" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import subprocess errno...
from setuptools import setup from distutils.core import Command import os import sys class TestCommand(Command): description = "Run tests" user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import subprocess errno...
mit
Python
fea3c14db1e69349587ccc0be1697ab10b1f5101
update for release 0.11
mukerjee/simpleplotlib
setup.py
setup.py
from setuptools import setup setup( name='simpleplotlib', packages=['simpleplotlib'], version='0.11', description='A matplotlib wrapper focused on beauty and simplicity', author='Matthew K. Mukerjee', author_email='Matthew.Mukerjee@gmail.com', url='https://github.com/mukerjee/simpleplotlib'...
from setuptools import setup setup( name='simpleplotlib', packages=['simpleplotlib'], version='0.1', description='A matplotlib wrapper focused on beauty and simplicity', author='Matthew K. Mukerjee', author_email='Matthew.Mukerjee@gmail.com', url='https://github.com/mukerjee/simpleplotlib',...
mit
Python
e26b392b3b1cfc04772839b546f73aa1f81bdb15
Make setup recogonize hy files
theanalyst/hash
setup.py
setup.py
# -*- coding: utf-8 -*- import os import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() setup( name='hash', versi...
# -*- coding: utf-8 -*- import os import sys try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() setup( name='hash', versi...
bsd-3-clause
Python
eeb00d12a93d87792af6f8cc4866ef08aa715e5b
add Python version check
ldo/dbussy
setup.py
setup.py
#+ # Distutils script to install DBussy. Invoke from the command line # in this directory as follows: # # python3 setup.py build # sudo python3 setup.py install # # Written by Lawrence D'Oliveiro <ldo@geek-central.gen.nz>. #- import sys import distutils.core from distutils.command.build import \ build as s...
#+ # Distutils script to install DBussy. Invoke from the command line # in this directory as follows: # # python3 setup.py build # sudo python3 setup.py install # # Written by Lawrence D'Oliveiro <ldo@geek-central.gen.nz>. #- import distutils.core distutils.core.setup \ ( name = "DBussy", version = ...
lgpl-2.1
Python
6c110304a0a1e78a9e30397b80cb053a73a6dc66
add url
stilley2/filesdb
setup.py
setup.py
from setuptools import setup setup(name='filesdb', version='0.2.0', description='A simple tool for tracking files', author='Steven Tilley', author_email='steventilleyii@gmail.com', packages=['filesdb'], entry_points={'console_scripts': ['filesdb = filesdb.__init__:main']}, py...
from setuptools import setup setup(name='filesdb', version='0.2.0', description='A simple tool for tracking files', author='Steven Tilley', author_email='steventilleyii@gmail.com', packages=['filesdb'], entry_points={'console_scripts': ['filesdb = filesdb.__init__:main']}, py...
mit
Python
5689eb765005306f26b86e22ab98685813288960
update description
mylokin/schematec
setup.py
setup.py
import re try: from setuptools import setup except ImportError: from distutils.core import setup version = '' with open('schematec/__init__.py', 'r') as fd: regex = re.compile(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]') for line in fd: m = regex.match(line) if m: version = m....
import re try: from setuptools import setup except ImportError: from distutils.core import setup version = '' with open('schematec/__init__.py', 'r') as fd: regex = re.compile(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]') for line in fd: m = regex.match(line) if m: version = m....
mit
Python
aeee792e7c0215efc297667b4a75d5512425a2d5
bump the version after the fat finger removal of set_environment on prior commit.
devopscenter/django-code-deploy,devopscenter/django-code-deploy
setup.py
setup.py
from distutils.core import setup setup( name = 'django-code-deploy', packages = ['django_code_deploy'], # this must be the same as the name above version = '0.9.8', description = 'Deploys Django code to AWS based on tags', author = 'Josh devops.center, Bob devops.center, Gregg devops.center', author_email =...
from distutils.core import setup setup( name = 'django-code-deploy', packages = ['django_code_deploy'], # this must be the same as the name above version = '0.9.7', description = 'Deploys Django code to AWS based on tags', author = 'Josh devops.center, Bob devops.center, Gregg devops.center', author_email =...
apache-2.0
Python
4565c185ed96cc31f78e132ea10a7c1d6daeb080
include flickrapi requirement
jordanjoz1/flickr-views-counter
setup.py
setup.py
import os import sys from setuptools import setup, find_packages version = '0.1.0' def read(f): return open(os.path.join(os.path.dirname(__file__), f)).read().strip() setup(name='flickr-views-counter', version=version, description=('Get view counts, favorites, and other data for each ' 'pict...
import os import sys from setuptools import setup, find_packages version = '0.1.0' def read(f): return open(os.path.join(os.path.dirname(__file__), f)).read().strip() setup(name='flickr-views-counter', version=version, description=('Get view counts, favorites, and other data for each ' 'pict...
mit
Python
d1b454e7a08697695dff949250cfce25b367e30f
Fix setup.py
helloTC/ATT,BNUCNL/ATT
setup.py
setup.py
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et; from distutils.core import setup setup(name='ATT', version='0.5', description='Toolbox for neuroimaging data analysis', author='Taicheng Huang', author_email='taicheng_huang@m...
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et; from distutils.core import setup setup(name='ATT', version='1.0', description='Toolbox for nifti data analysis', author='Taicheng Huang', author_email='taicheng_huang@sina.cn'...
mit
Python
17ec4e6dd52eb73584ce556905a4d3aff6c46240
Fix installation with pip3
Zowie/django-htmlmin,Zowie/django-htmlmin
setup.py
setup.py
# -*- coding: utf-8 -*- # Copyright 2013 django-htmlmin authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from setuptools import setup, find_packages from htmlmin import __version__ import sys PY_VERSION = sys.version_info[0], sys.vers...
# -*- coding: utf-8 -*- # Copyright 2013 django-htmlmin authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from setuptools import setup, find_packages from htmlmin import __version__ README = open('README.rst').read() setup( name='...
bsd-2-clause
Python
9b84157118337b8e360ff41ca4c72fe57c11f231
Bump version
appknox/vendor,appknox/vendor,appknox/vendor
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # vim: fenc=utf-8 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # """ File name: setup.py Version: 0.1 Author: dhilipsiva <dhilipsiva@gmail.com> Date created: 2015-11-24 """ from setuptools import setup, find_packages from codecs import open from os import pa...
#! /usr/bin/env python # -*- coding: utf-8 -*- # # vim: fenc=utf-8 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # """ File name: setup.py Version: 0.1 Author: dhilipsiva <dhilipsiva@gmail.com> Date created: 2015-11-24 """ from setuptools import setup, find_packages from codecs import open from os import pa...
mit
Python
75113f3818c48ef72f00ebf8ac5c9491902a67b7
Simplify long description
gabrielmagno/nano-dlna,gabrielmagno/nano-dlna,gabrielmagno/nano-dlna
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import setup install_requires = [ 'Twisted>=16.2.0', ] setup( name='nanodlna', version='0.1.0', description='A minimal UPnP/DLNA media streamer', long_description='nano-dlna is a command line tool that allows you to play a local video file in your ...
#!/usr/bin/env python import sys from setuptools import setup install_requires = [ 'Twisted>=16.2.0', ] setup( name='nanodlna', version='0.1.0', description='A minimal UPnP/DLNA media streamer', long_description=open('README.md').read(), author='Gabriel Magno', author_email='gabrielmagno1...
mit
Python
6616832ff1aa17d09c19eecde593b21e80a97e36
Fix setup.py homepage link. Closes #120.
captainsafia/agate,wireservice/agate,eads/journalism,flother/agate,onyxfish/journalism,TylerFisher/agate,onyxfish/agate,dwillis/agate,JoeGermuska/agate
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') if sys.version_info[0] == 2: install_requires.append('python-dateutil==1.5') else: install_requires.append('python-dateutil>=2...
#!/usr/bin/env python from setuptools import setup import sys install_requires = [ 'six==1.6.1' ] if sys.version_info == (2, 6): install_requires.append('ordereddict>=1.1') if sys.version_info[0] == 2: install_requires.append('python-dateutil==1.5') else: install_requires.append('python-dateutil>=2...
mit
Python
5e4a1544e0643ed6968c6936e8669a8c4a8554a3
Remove useless dependency
MichelJuillard/dlstats,MichelJuillard/dlstats,mmalter/dlstats,MichelJuillard/dlstats,Widukind/dlstats,mmalter/dlstats,mmalter/dlstats,Widukind/dlstats
setup.py
setup.py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- from distutils.core import setup import os setup(name='dlstats', version='0.1', description='A python module that provides an interface between statistics providers and pandas.', author='Widukind team', author_email='dev@michaelmalter.fr', url='https://g...
#! /usr/bin/env python3 # -*- coding: utf-8 -*- from distutils.core import setup import os setup(name='dlstats', version='0.1', description='A python module that provides an interface between statistics providers and pandas.', author='Widukind team', author_email='dev@michaelmalter.fr', url='https://g...
agpl-3.0
Python
88fc8cb242b430163a14bc02647ea363c53e164e
Switch to ndt for volume-from-snapshot
NitorCreations/nitor-deploy-tools,NitorCreations/nitor-deploy-tools,NitorCreations/nitor-deploy-tools
setup.py
setup.py
# Copyright 2016-2017 Nitor Creations Oy # # 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 ...
# Copyright 2016-2017 Nitor Creations Oy # # 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 ...
apache-2.0
Python
6774db4c9ec2aa082512092f7aaf64cf291154e9
Add ap2en module to the setup.py file so it gets installed too.
timovwb/runner,therzka/runner,transcriptic/runner
setup.py
setup.py
from setuptools import setup setup( name='transcriptic', version='1.3.13', py_modules=['transcriptic', 'ap2en'], install_requires=[ 'Click>=5.1', 'requests' ], entry_points=''' [console_scripts] transcriptic=transcriptic:cli ''', )
from setuptools import setup setup( name='transcriptic', version='1.3.13', py_modules=['transcriptic'], install_requires=[ 'Click>=5.1', 'requests' ], entry_points=''' [console_scripts] transcriptic=transcriptic:cli ''', )
bsd-3-clause
Python
43effd41397e448c5c1f0fa74eae6c1fc9d55f0d
Bump version number
sburnett/bismark-release-manager
setup.py
setup.py
from setuptools import setup setup( name='bismark-release-manager', version='1.0.43', description='Manage releases, packages, experiments and upgrades ' 'for the BISmark deployment.', license='MIT License', author='Sam Burnett', py_modules=[ 'common', 'deploy', ...
from setuptools import setup setup( name='bismark-release-manager', version='1.0.42', description='Manage releases, packages, experiments and upgrades ' 'for the BISmark deployment.', license='MIT License', author='Sam Burnett', py_modules=[ 'common', 'deploy', ...
mit
Python
dc148a12d02035593b3a6f6d5415c6bb26e4817a
fix : setup file updated
Moduland/instatag
setup.py
setup.py
from distutils.core import setup setup( name = 'instatag', packages = ['instatag'], version = '0.1', description = 'Extract users from tag in instagram', long_description="", author = 'Moduland Co', author_email = 'info@moduland.ir', url = 'https://github.com/Moduland/instatag', download_url = 'https:...
from distutils.core import setup setup( name = 'instatag', packages = ['instatag'], version = '0.1', description = 'Extract users from tag in instagram', long_description="", author = 'Moduland Co', author_email = 'info@moduland.ir', url = 'https://github.com/Moduland/instatag', download_url = 'https:...
mit
Python
87f2ca2818d5a795ce138f13de8e343a8506ffbd
debug setup
tridesclous/tridesclous
setup.py
setup.py
from setuptools import setup import os import tridesclous install_requires = [ 'numpy', 'scipy', 'pandas', 'scikit-learn', 'matplotlib', 'seaborn', 'quantities==0.10.1', ...
from setuptools import setup import os import tridesclous install_requires = [ 'numpy', 'scipy', 'pandas', 'scikit-learn', 'matplotlib', 'seaborn', 'neo>=0.5.1', ...
mit
Python
9798a4884d3960820730de73d4a04446c3a32678
fix syntax
pyreaclib/pyreaclib
setup.py
setup.py
from setuptools import setup, find_packages setup(name='pynucastro', version='1.5.0', description='Python Interfaces to the nuclear reaction rate databases', url='https://github.com/pynucastro/nucastro', author='pynucastro development group', author_email='michael.zingale@stonybrook.edu',...
from setuptools import setup, find_packages setup(name='pynucastro', version='1.5.0', description='Python Interfaces to the nuclear reaction rate databases', url='https://github.com/pynucastro/nucastro', author='pynucastro development group' author_email='michael.zingale@stonybrook.edu', ...
bsd-3-clause
Python
9020e5cf22ae95c6bae6badf6dce427c8e9f502c
Bump version to 0.0.9
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(sel...
#!/usr/bin/env python import sys from setuptools import find_packages, setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(sel...
apache-2.0
Python
010fe2d0be30a98808eeaa6e6f4dd2b260df43c4
Support running tests with setup.py
yola/yolapy
setup.py
setup.py
from setuptools import find_packages, setup import yolapy with open('README.rst') as readme_file: readme = readme_file.read() with open('CHANGELOG.rst') as changelog_file: changelog = changelog_file.read() setup( name='yolapy', version=yolapy.__version__, description='Python client for the Yola...
from setuptools import find_packages, setup import yolapy with open('README.rst') as readme_file: readme = readme_file.read() with open('CHANGELOG.rst') as changelog_file: changelog = changelog_file.read() setup( name='yolapy', version=yolapy.__version__, description='Python client for the Yola...
mit
Python
b68c1edf352f560ff132c1c092b44134dfea9243
Bump version
yossigo/mockredis,locationlabs/mockredis,matejkloska/mockredis,path/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.3' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredispy', version=__version__ + __build__, description='Mock for redis-py', url='http...
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.9.0.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredispy', version=__version__ + __build__, description='Mock for redis-py', url='http...
apache-2.0
Python
ba2e263e40e1324f8fd6c3ee012a8d9ada46bdd1
Disable strict C90 flag that appears to be accidentally being used by distutils
blake-sheridan/py,blake-sheridan/py
setup.py
setup.py
#!/usr/local/bin/python3 from distutils.core import setup, Extension # Workaround -Werror=statement-after-declaration # http://bugs.python.org/issue18211 import os os.environ['CFLAGS'] = '-Wno-unused-result' setup( name = 'lazy', version = '1.0', description = 'Lazy', ext_modules = [ Extensio...
#!/usr/local/bin/python3 from distutils.core import setup, Extension setup( name = 'lazy', version = '1.0', description = 'Lazy', ext_modules = [ Extension( name = 'b._collections', sources = [ 'src/collections.c', ], ), Exten...
apache-2.0
Python
45d88122aee0a0dc9fd3a88a3d2015d0c6240775
Stop lying on Python2 support
matiboy/django_safari_notifications,matiboy/django_safari_notifications
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from django_safari_notifications/__init__.py""" filename = os.path.join(os.path.d...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from django_safari_notifications/__init__.py""" filename = os.path.join(os.path.d...
mit
Python
da981b55674cd11dcebe9b6d7070e83f9b39dd1d
use join even for finding version
erikrose/pyelasticsearch
setup.py
setup.py
import codecs import re from os.path import join, dirname from setuptools import setup, find_packages def read(filename): return codecs.open(join(dirname(__file__), filename), 'r').read() def find_version(file_path): version_file = read(file_path) version_match = re.search(r"^__version__ = ['\"]([^'\"]*...
import codecs import re from os.path import join, dirname from setuptools import setup, find_packages def read(filename): return codecs.open(join(dirname(__file__), filename), 'r').read() def find_version(file_path): version_file = read(file_path) version_match = re.search(r"^__version__ = ['\"]([^'\"]*...
bsd-3-clause
Python
11774b2a17624a5de52a518094ac6fb9ec13a4f9
Bump version to 0.2.1
indygreg/python-zstandard,indygreg/python-zstandard,indygreg/python-zstandard,indygreg/python-zstandard,terrelln/python-zstandard,terrelln/python-zstandard,terrelln/python-zstandard,terrelln/python-zstandard
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) 2016-present, Gregory Szorc # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import os from setuptools import setup, Extension try: import cffi except ImportError: cffi = None ...
#!/usr/bin/env python # Copyright (c) 2016-present, Gregory Szorc # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import os from setuptools import setup, Extension try: import cffi except ImportError: cffi = None ...
bsd-3-clause
Python
4ff0dda83d592c7f8e29935b77edc9a09411d4d8
Add classifiers and keywords to setup.py.
BeifeiZhou/annoy,aimeida/annoy,LongbinChen/annoy2,pombredanne/annoy,pombredanne/annoy,codeaudit/annoy,LongbinChen/annoy,spotify/annoy,spotify/annoy,eddelbuettel/annoy,LongbinChen/annoy2,tjrileywisc/annoy,Houzz/annoy2,LongbinChen/annoy2,tjrileywisc/annoy,eddelbuettel/annoy,codeaudit/annoy,eddelbuettel/annoy,subu-cliqz/a...
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2013 Spotify AB # # 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 requi...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2013 Spotify AB # # 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 requi...
apache-2.0
Python
ee1ed38fcff2c52bd2e02ba91f18103abe5adcf2
bump version
appknox/vendor,appknox/vendor,appknox/vendor
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # vim: fenc=utf-8 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # """ File name: setup.py Version: 0.1 Author: dhilipsiva <dhilipsiva@gmail.com> Date created: 2015-11-24 """ from setuptools import setup, find_packages from codecs import open from os import pa...
#! /usr/bin/env python # -*- coding: utf-8 -*- # # vim: fenc=utf-8 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # """ File name: setup.py Version: 0.1 Author: dhilipsiva <dhilipsiva@gmail.com> Date created: 2015-11-24 """ from setuptools import setup, find_packages from codecs import open from os import pa...
mit
Python
97d96ac08a1f4035ae48f9951f900a43a6bc4b0c
Bump version for v0.3.3
tempbottle/pycapnp,SymbiFlow/pycapnp,jparyani/pycapnp,rcrowder/pycapnp,tempbottle/pycapnp,SymbiFlow/pycapnp,rcrowder/pycapnp,tempbottle/pycapnp,jparyani/pycapnp,rcrowder/pycapnp,jparyani/pycapnp,jparyani/pycapnp,rcrowder/pycapnp,SymbiFlow/pycapnp,SymbiFlow/pycapnp,tempbottle/pycapnp
setup.py
setup.py
#!/usr/bin/env python try: from Cython.Build import cythonize import Cython except ImportError: raise RuntimeError('No cython installed. Please run `pip install cython`') if Cython.__version__ < '0.19.1': raise RuntimeError('Old cython installed. Please run `pip install -U cython`') from distutils.cor...
#!/usr/bin/env python try: from Cython.Build import cythonize import Cython except ImportError: raise RuntimeError('No cython installed. Please run `pip install cython`') if Cython.__version__ < '0.19.1': raise RuntimeError('Old cython installed. Please run `pip install -U cython`') from distutils.cor...
bsd-2-clause
Python
777f4bdb150442a2f52693b7347fdb9948326975
Bump to v0.0.5
incuna/django-user-management,incuna/django-user-management
setup.py
setup.py
from setuptools import setup, find_packages version = '0.0.5' install_requires = ( 'djangorestframework>=2.3.12,<3', 'incuna_mail>=0.1.1', ) setup( name='django-user-management', packages=find_packages(), include_package_data=True, version=version, description='', long_description='...
from setuptools import setup, find_packages version = '0.0.4' install_requires = ( 'djangorestframework>=2.3.12,<3', 'incuna_mail>=0.1.1', ) setup( name='django-user-management', packages=find_packages(), include_package_data=True, version=version, description='', long_description='...
bsd-2-clause
Python
9093c16da872031320afdb30948bc7c5d343cd6f
enhance dummy plugin
ryansb/taskforge
taskforge/plugin.py
taskforge/plugin.py
import abc import logging import pkg_resources import six from persist import Warrior @six.add_metaclass(abc.ABCMeta) class PluginBase(object): log = logging.getLogger(__name__) def __init__(self, *args, **kwargs): # TODO: do something with option parameters pass @abc.abstractmethod ...
import abc import logging import pkg_resources import six @six.add_metaclass(abc.ABCMeta) class PluginBase(object): log = logging.getLogger(__name__) def __init__(self, *args, **kwargs): # TODO: do something with option parameters pass @abc.abstractmethod def pre_run(self): "...
agpl-3.0
Python
a6c5ecfbceb63fb8c4974902960acfe323303f04
Add details to setup.py.
alexhanson/intercom
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='intercom', version='0.0.1', url='https://github.com/alexhanson/intercom', license='ISC License', install_requires=[ 'click==6.6', 'CherryPy==7.1.0', 'Jinja2==2.8', 'pytz==2016.6.1', ], packages=[...
#!/usr/bin/env python from setuptools import setup setup( name='intercom', version='0.0.1', install_requires=[ 'click==6.6', 'CherryPy==7.1.0', 'Jinja2==2.8', 'pytz==2016.6.1', ], packages=[ 'intercom', ], package_data={ 'intercom': ['template...
isc
Python
51ccea9761e8799bbd099878eafb2739f24af766
Update metadata
photo/openphoto-python,photo/openphoto-python
setup.py
setup.py
#!/usr/bin/env python import sys import openphoto requires = ['requests', 'requests_oauthlib'] console_script = """[console_scripts] openphoto = openphoto.main:main """ # Check the Python version (major, minor) = sys.version_info[:2] if (major, minor) < (2, 6): raise SystemExit("Sorry, Python 2.6 or newer require...
#!/usr/bin/env python import sys import openphoto requires = ['requests', 'requests_oauthlib'] console_script = """[console_scripts] openphoto = openphoto.main:main """ # Check the Python version (major, minor) = sys.version_info[:2] if (major, minor) < (2, 6): raise SystemExit("Sorry, Python 2.6 or newer require...
apache-2.0
Python
42bb00308ef0102a1b0dec874ad410a52b36e5b3
fix search bug: TaxonFilter searches now taxonomic name
parksandwildlife/wastd,parksandwildlife/wastd,parksandwildlife/wastd,parksandwildlife/wastd
taxonomy/filters.py
taxonomy/filters.py
"""Taxonomy filters.""" # from django.contrib.auth.models import User import django_filters from django_filters.filters import BooleanFilter from django_filters.widgets import BooleanWidget from django.db import models # from django import forms from .models import Taxon class TaxonFilter(django_filters.FilterSet): ...
"""Taxonomy filters.""" # from django.contrib.auth.models import User import django_filters from django_filters.filters import BooleanFilter from django_filters.widgets import BooleanWidget from django.db import models # from django import forms from .models import Taxon class TaxonFilter(django_filters.FilterSet): ...
mit
Python
7ddd3a5fdd57410a5135a012f37155103a4e129d
Raise requests dep version
credativUK/vdirsyncer,untitaker/vdirsyncer,credativUK/vdirsyncer,untitaker/vdirsyncer,hobarrera/vdirsyncer,mathstuf/vdirsyncer,hobarrera/vdirsyncer,tribut/vdirsyncer,tribut/vdirsyncer,untitaker/vdirsyncer,mathstuf/vdirsyncer
setup.py
setup.py
# -*- coding: utf-8 -*- ''' vdirsyncer ~~~~~~~~~~ vdirsyncer is a synchronization tool for vdir. See the README for more details. :copyright: (c) 2014 Markus Unterwaditzer & contributors :license: MIT, see LICENSE for more details. ''' import ast import re from setuptools import find_packages...
# -*- coding: utf-8 -*- ''' vdirsyncer ~~~~~~~~~~ vdirsyncer is a synchronization tool for vdir. See the README for more details. :copyright: (c) 2014 Markus Unterwaditzer & contributors :license: MIT, see LICENSE for more details. ''' import ast import re from setuptools import find_packages...
mit
Python
bbcd67f9dc26930c197c04e318d74e36b2fc9ead
Add one more assertion.
joyxu/kernelci-backend,joyxu/kernelci-backend,kernelci/kernelci-backend,joyxu/kernelci-backend,kernelci/kernelci-backend
app/utils/tests/test_meta_parser.py
app/utils/tests/test_meta_parser.py
# Copyright (C) 2014 Linaro Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distribute...
# Copyright (C) 2014 Linaro Ltd. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distribute...
agpl-3.0
Python
26dda5e77861357f4639516222f1c26a12429608
set logging level to INFO always, log when recieving a message
OndragKlaus/janus
telegram_bot/bot.py
telegram_bot/bot.py
# Copyright (c) 2017 Janus Development Team # # 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, including without limitation the rights # to use, copy, modify, merge, publ...
# Copyright (c) 2017 Janus Development Team # # 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, including without limitation the rights # to use, copy, modify, merge, publ...
mit
Python
b33f622a0b5647dad58d29a4ee322d02615533e0
Bump to 0.5.1
ricobl/django-thumbor,ricobl/django-thumbor
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup setup( name='django-thumbor', version='0.5.1', description=( 'A django application to resize images using the thumbor service'), long_description=open('README.rst').read(), author=u'Enrico Batista da Luz', author_email='rico.bl@gmail...
# -*- coding: utf-8 -*- from setuptools import setup setup( name='django-thumbor', version='0.5', description=( 'A django application to resize images using the thumbor service'), long_description=open('README.rst').read(), author=u'Enrico Batista da Luz', author_email='rico.bl@gmail.c...
mit
Python
01f55200f29f59bf2125ed768daa2f9d0c508d95
Update to v0.15.5
LonamiWebs/Telethon,expectocode/Telethon,LonamiWebs/Telethon,LonamiWebs/Telethon,LonamiWebs/Telethon
telethon/version.py
telethon/version.py
# Versions should comply with PEP440. # This line is parsed in setup.py: __version__ = '0.15.5'
# Versions should comply with PEP440. # This line is parsed in setup.py: __version__ = '0.15.4'
mit
Python
a8e88036f88adefd3f3206016e9b78f3b58d204b
Bump minimum version for google-api-core to 1.14.0. (#8709)
googleapis/python-speech,googleapis/python-speech
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
b0c3ecf6fd0b25b6d512951e76cfd3e548737217
include base config in packages
unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service
setup.py
setup.py
#! /usr/bin/env python import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) install_requires = [ 'lxml >= 3.0.0', 'codalib>=1.0...
#! /usr/bin/env python import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) install_requires = [ 'lxml >= 3.0.0', 'codalib>=1.0...
bsd-3-clause
Python
0ac5bd820af112f068bc49043ff1159901255e22
bump version
swappsco/django-qa,swappsco/django-qa
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import find_packages, setup with open('README.md') as file: long_description = file.read() setup( name='django-qa', version='0.0.18', description='Pluggable django app for Q&A', long_description=long_description, author='arjunkomath...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import find_packages, setup with open('README.md') as file: long_description = file.read() setup( name='django-qa', version='0.0.17', description='Pluggable django app for Q&A', long_description=long_description, author='arjunkomath...
mit
Python
7aae60589595ec63e8f6b731b2d2d4b5fda191c8
add proper classifiers in setup.py
alfredodeza/pecan-mount
setup.py
setup.py
from setuptools import setup, find_packages import os import re readme = os.path.join(os.path.dirname(__file__), 'README.rst') LONG_DESCRIPTION = open(readme).read() module_file = open("pecan_mount/__init__.py").read() metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file)) setup( name='pecan-mo...
from setuptools import setup, find_packages import os import re readme = os.path.join(os.path.dirname(__file__), 'README.rst') LONG_DESCRIPTION = open(readme).read() module_file = open("pecan_mount/__init__.py").read() metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", module_file)) setup( name='pecan-mo...
bsd-3-clause
Python
2465cab205a3fa6b90aa1cf54faaab11dc792af0
bump version
KeepSafe/ks-email-parser,KeepSafe/ks-email-parser
setup.py
setup.py
import os from setuptools import setup, find_packages from pip.req import parse_requirements from pip.download import PipSession version = '0.2.13' def read(f): return open(os.path.join(os.path.dirname(__file__), f)).read().strip() install_reqs = parse_requirements('requirements.txt', session=PipSession()) req...
import os from setuptools import setup, find_packages from pip.req import parse_requirements from pip.download import PipSession version = '0.2.12' def read(f): return open(os.path.join(os.path.dirname(__file__), f)).read().strip() install_reqs = parse_requirements('requirements.txt', session=PipSession()) req...
apache-2.0
Python
4015c22ad82018397a3ef398dd5f2b8cfe65faac
Change account which calls initialize_epoch
karlfloersch/pyethereum,karlfloersch/pyethereum,ethereum/pyethereum,ethereum/pyethereum
ethereum/hybrid_casper/consensus.py
ethereum/hybrid_casper/consensus.py
from ethereum import utils, transactions from ethereum.common import update_block_env_variables from ethereum.messages import apply_transaction from ethereum.hybrid_casper import casper_utils from ethereum.utils import sha3, privtoaddr, to_string # Block initialization state transition def initialize(state, block=None...
from ethereum import utils, transactions from ethereum.tools import tester from ethereum.common import update_block_env_variables from ethereum.messages import apply_transaction from ethereum.hybrid_casper import casper_utils # Block initialization state transition def initialize(state, block=None): config = state...
mit
Python
c261bf8a7bb6deca83b90dad70a2f090dc72b7c5
Update Getting_Started_with_Pandas.py
LamaHamadeh/Harvard-PH526x
Week4-Case-Studies-Part2/Classifying-Whiskies/Getting_Started_with_Pandas.py
Week4-Case-Studies-Part2/Classifying-Whiskies/Getting_Started_with_Pandas.py
# -*- coding: utf-8 -*- """ Created on Tue Mar 28 10:17:25 2017 @author: ADB3HAMADL """ #In this case study we will classify scotch whiskies based on their flavor #characterisctics. #------------------------------------------------------------------------------ ##import pandas library which is a Python l...
# -*- coding: utf-8 -*- """ Created on Tue Mar 28 10:17:25 2017 @author: ADB3HAMADL """ #In this case study we will classify scotch whiskies based on their flavor #characterisctics. #------------------------------------------------------------------------------ ##import pandas library which is a Python l...
mit
Python
f28e7f9ec1fa4c4cbe041e746c7d4ed15f579b9e
Fix bug in demo's call to close_recruitment()
Dallinger/Dallinger,jcpeterson/Dallinger,berkeley-cocosci/Wallace,berkeley-cocosci/Wallace,jcpeterson/Dallinger,berkeley-cocosci/Wallace,suchow/Wallace,suchow/Wallace,suchow/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dalli...
examples/bartlett1932/experiment.py
examples/bartlett1932/experiment.py
from wallace.networks import Chain from wallace.processes import RandomWalkFromSource from wallace.recruiters import PsiTurkRecruiter from wallace.agents import ReplicatorAgent from wallace.experiments import Experiment from wallace.sources import Source class Bartlett1932(Experiment): def __init__(self, session)...
from wallace.networks import Chain from wallace.processes import RandomWalkFromSource from wallace.recruiters import PsiTurkRecruiter from wallace.agents import ReplicatorAgent from wallace.experiments import Experiment from wallace.sources import Source class Bartlett1932(Experiment): def __init__(self, session)...
mit
Python
824296db625cdd94959c6d519f8b47a534d4917a
add parse full and icon_emoji
kesre/slask,llimllib/limbo,NUKnightLab/slask,akatrevorjay/slask,TetraEtc/limbo,signalnine/alanabot,rizaon/limbo,wmv/slackbot-python,TetraEtc/limbo,Marclass/limbo,dorian1453/limbo,palachu/sdbot,uilab-github/slask,cmyr/debt-bot,joshshadowfax/slask,shawnsi/limbo,kylemsguy/limbo,uilab-github/slask,llimllib/limbo,UnILabKAIS...
slask.py
slask.py
from glob import glob import importlib import json import os import re import sys import traceback from flask import Flask, request app = Flask(__name__) curdir = os.path.dirname(os.path.abspath(__file__)) os.chdir(curdir) from config import config hooks = {} def init_plugins(): for plugin in glob('plugins/[!_]...
from glob import glob import importlib import json import os import re import sys import traceback from flask import Flask, request app = Flask(__name__) curdir = os.path.dirname(os.path.abspath(__file__)) os.chdir(curdir) from config import config hooks = {} def init_plugins(): for plugin in glob('plugins/[!_]...
mit
Python
4ece44ee6b9a8ead757be603a76aa2f8d5f92e36
enable fast C++ implementation of python protobuf (#1489)
tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard,tensorflow/tensorboard
tensorboard/main.py
tensorboard/main.py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
Python
9a0511fb336b4cda2c2bab9f9040a7005b383a7b
create scoped session in the task
softdevbeing/-southwest-checkin,nickaknudson/southwest-checkin,softdevbeing/-southwest-checkin,sguha00/southwest-checkin,cdorros/southwest-checkin,sguha00/southwest-checkin,echo0101/southwest-checkin,echo0101/southwest-checkin,nickaknudson/southwest-checkin,nickaknudson/southwest-checkin,echo0101/southwest-checkin,cdor...
tasks.py
tasks.py
from celery import Celery from sqlalchemy.orm import scoped_session from settings import Config config = Config() from models import Reservation, Flight, FlightLeg, FlightLegLocation from db import Database from sw_checkin_email import * celery = Celery('tasks') celery.config_from_object('celery_config') @celery.ta...
from celery import Celery from settings import Config config = Config() from models import Reservation, Flight, FlightLeg, FlightLegLocation from db import Database from sw_checkin_email import * celery = Celery('tasks') celery.config_from_object('celery_config') @celery.task(default_retry_delay=config["RETRY_INTER...
mit
Python
ce0f4a30cad570557ad67122333041806d411adc
Set changelog_file for invocations release task, which now dry-runs ok
bitprophet/lexicon
tasks.py
tasks.py
from invoke import Collection from invocations import docs from invocations.checks import blacken from invocations.packaging import release from invocations.pytest import test, coverage ns = Collection(test, coverage, release, blacken, docs) ns.configure( {"packaging": {"sign": True, "changelog_file": "docs/chang...
from invoke import Collection from invocations import docs from invocations.checks import blacken from invocations.packaging import release from invocations.pytest import test, coverage ns = Collection(test, coverage, release, blacken, docs) ns.configure({"packaging": {"sign": True}})
bsd-2-clause
Python
35fab0222543a2f32ef395bf6b622bad29533ceb
Create lazy launcher in setUp.
GoldenLine/gtlaunch
tests.py
tests.py
import unittest from gtlaunch import Launcher class MockOptions(object): def __init__(self): self.verbose = False self.config = '' self.project = '' class LauncherTestCase(unittest.TestCase): def setUp(self): self.options = MockOptions() self.launcher = Launcher(self...
import unittest from gtlaunch import Launcher class MockOptions(object): def __init__(self): self.verbose = False self.config = '' self.project = '' class LauncherTestCase(unittest.TestCase): def setUp(self): self.options = MockOptions() def test_lazy_init(self): ...
mit
Python
f1e1033e786d372641c2bdaa836547de2d714d8e
Add coverage omits
laslabs/Python-Carepoint
tests.py
tests.py
# -*- coding: utf-8 -*- ############################################################################## # # Author: Dave Lasley <dave@laslabs.com> # Copyright: 2015 LasLabs, Inc [https://laslabs.com] # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affe...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Dave Lasley <dave@laslabs.com> # Copyright: 2015 LasLabs, Inc [https://laslabs.com] # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affe...
mit
Python
a2745253170147514d863504f0848b0d16bec11a
Change output colors
kshvmdn/nowplaying
track.py
track.py
from termcolor import colored class Track: def __init__(self, track): self.track = track self.title = track.name.get() self.artist = track.artist.get() self.album = track.album.get() def __str__(self): return '{} - {}, {}'.format(colored(self.title, attrs=['bold']), ...
from termcolor import colored class Track: def __init__(self, track): self.track = track self.title = track.name.get() self.artist = track.artist.get() self.album = track.album.get() def __str__(self): return '{} - {}, {}'.format(colored(self.title, attrs=['bold']), ...
mit
Python
eb16ae52f604e80adb57508596394a682ab8e2c4
Update routes.py
dominodatalab/python-domino,dominodatalab/python-domino
domino/routes.py
domino/routes.py
class _Routes: def __init__(self, host, owner_username, project_name): self.host = host self._owner_username = owner_username self._project_name = project_name # Project URLs def _build_project_url(self): return self.host + '/v1/projects/' + \ self._owner_usernam...
class _Routes: def __init__(self, host, owner_username, project_name): self.host = host self._owner_username = owner_username self._project_name = project_name # Project URLs def _build_project_url(self): return self.host + '/v1/projects/' + \ self._owner_usernam...
apache-2.0
Python
3de4e648f218db5269cc9d90af4c163294faaab7
add sklearn.metrics.average_precision_score as apr in metrics
jeongyoonlee/Kaggler,jeongyoonlee/Kaggler,jeongyoonlee/Kaggler
kaggler/metrics/classification.py
kaggler/metrics/classification.py
import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, precision_recall_curve, log_loss from sklearn.metrics import roc_auc_score as auc # noqa from sklearn.metrics import average_precision_score as apr # noqa from ..const import EPS def logloss(y, p): """Bounded log loss error. ...
import matplotlib.pyplot as plt from sklearn.metrics import roc_curve, precision_recall_curve, log_loss from sklearn.metrics import roc_auc_score as auc # noqa from ..const import EPS def logloss(y, p): """Bounded log loss error. Args: y (numpy.array): target p (numpy.array): prediction ...
mit
Python
ce6284e3734358d7b70f2920b246af853bb48ccd
Update analogInOut.py
KrempelEv/krempelair,bittracker/krempelair,bittracker/krempelair,KrempelEv/krempelair,KrempelEv/krempelair,bittracker/krempelair
krempelair/lib/bus/analogInOut.py
krempelair/lib/bus/analogInOut.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import smbus import logging as log class analogInOut(): def __init__(self): self._bus = smbus.SMBus(1) LOG_FILENAME = 'krempelair.log' log.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) def getValue(self, address, chanel): ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import smbus import logging as log class analogInOut(): def __init__(self): self._bus = smbus.SMBus(1) LOG_FILENAME = 'krempelair.log' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) def getValue(self, address, chanel): ...
agpl-3.0
Python
d49bc9a42d9bdc9e44f6f656c0daf3245c31e853
Remove unnecessary takeoff command
scorelab/DroneSym,scorelab/DroneSym,scorelab/DroneSym,scorelab/DroneSym,scorelab/DroneSym
dronesym-python/flask-api/src/mavparser.py
dronesym-python/flask-api/src/mavparser.py
from dronekit import Vehicle, Command from pymavlink import mavutil def create_mission(drone, waypoints): cmds = drone.commands cmds.clear() for (i, wp) in enumerate(waypoints): cmds.add(Command(0, 0, 0, mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT, mavutil.mavlink.MAV_CMD_NAV_WAYPOINT, 0, 0, 0, 0, 0, 0, wp['la...
from dronekit import Vehicle, Command from pymavlink import mavutil def create_mission(drone, waypoints): cmds = drone.commands cmds.clear() cmds.add(Command(0, 0, 0, mavutil.mavlink.MAV_FRAME_GLOBAL_RELATIVE_ALT, mavutil.mavlink.MAV_CMD_NAV_TAKEOFF, 0, 0, 0, 0, 0, 0, waypoints[0]['lat'], waypoints[0]['lon'], 10))...
apache-2.0
Python
a5d2e8feff29f70dadc45ff026f3c42ef5332bdb
define a logger
adrn/SuperFreq
superfreq/__init__.py
superfreq/__init__.py
from .core import * from .naff import * import logging logger = logging.Logger()
from .core import * from .naff import *
mit
Python
f7852806c3198d58162b66e18bfd9998ef33b63c
Modify receiver to prevent using in future
WheatonCS/Lexos,WheatonCS/Lexos,WheatonCS/Lexos
lexos/receivers/stats_receiver.py
lexos/receivers/stats_receiver.py
from lexos.receivers.base_receiver import BaseReceiver class StatsReceiver(BaseReceiver): def __init__(self): """So far there is no frontend option for statistics analysis""" super().__init__() def options_from_front_end(self): """So far there is no frontend option for statistics anal...
from lexos.receivers.base_receiver import BaseReceiver class StatsReceiver(BaseReceiver): def __init__(self): """So far there is no frontend option for statistics analysis""" super().__init__() def options_from_front_end(self): """So far there is no frontend option for statistics anal...
mit
Python
17d34c49f07b4e71886c741a42edae6ad14919f3
simplify read_events
BoraDowon/Life3.0,BoraDowon/Life3.0,BoraDowon/Life3.0
life3/app/services.py
life3/app/services.py
from django.http import JsonResponse from .models import LifeLog from .data import LifeLogDto # TODO: do we need to consider class based? def create_event(data: LifeLogDto): # TODO: validation life_log = LifeLog() life_log.title = data.title life_log.status = data.status life_log.type = data.ty...
import json from .models import LifeLog from .data import LifeLogDto # TODO: do we need to consider class based? def create_event(data: LifeLogDto): # TODO: validation life_log = LifeLog() life_log.title = data.title life_log.status = data.status life_log.type = data.type life_log.save() ...
mit
Python
c76ec596f65fb984ee1484c1a19e5d24085c62f0
Remove unused import
tysonholub/twilio-python,Mobii/twilio-python,bcorwin/twilio-python,supermanheng21/twilio-python,Rosy-S/twilio-python,twilio/twilio-python,YeelerG/twilio-python,johannakate/twilio-python
tests/pricing/test_numbers.py
tests/pricing/test_numbers.py
import unittest from nose.tools import assert_equal from mock import patch from tests.tools import create_mock_json from twilio.rest.resources.pricing.phone_numbers import PhoneNumberCountries AUTH = ("AC123", "token") BASE_URI = "https://pricing.twilio.com/v1" class NumbersTest(unittest.TestCase): @patch('t...
import unittest from nose.tools import assert_equal from mock import patch, ANY from tests.tools import create_mock_json from twilio.rest.resources.pricing.phone_numbers import PhoneNumberCountries AUTH = ("AC123", "token") BASE_URI = "https://pricing.twilio.com/v1" class NumbersTest(unittest.TestCase): @pat...
mit
Python
012c827a643124c47c5cf93631021b5505d4aaf5
Test with a nonexistent save directory
p/webracer
tests/response_saving_test.py
tests/response_saving_test.py
import os import os.path import webracer import nose.plugins.attrib from . import utils from .apps import kitchen_sink_app utils.app_runner_setup(__name__, kitchen_sink_app.app, 8060) save_dir = os.path.join(os.path.dirname(__file__), 'tmp') nonexistent_save_dir = '/tmp/nonexistent.dee11123e367b4a7506f856cc55898fabd4...
import os import os.path import webracer import nose.plugins.attrib from . import utils from .apps import kitchen_sink_app utils.app_runner_setup(__name__, kitchen_sink_app.app, 8060) save_dir = os.path.join(os.path.dirname(__file__), 'tmp') def list_save_dir(): entries = os.listdir(save_dir) entries = [entr...
bsd-2-clause
Python
3ea22e0c7b1a1f4e026cb330a2de340245b17968
Convert to string once it's been validated as JSON
harej/reports_bot,harej/wikiproject_scripts
load_configuration.py
load_configuration.py
# -*- coding: utf-8 -*- """ Loads wikiproject.json, validates it, stores it Copyright (C) 2015 James Hare Licensed under MIT License: http://mitlicense.org """ import os import sys import configparser import json import mw import datetime from bs4 import BeautifulSoup from project_index import WikiProjectTools def m...
# -*- coding: utf-8 -*- """ Loads wikiproject.json, validates it, stores it Copyright (C) 2015 James Hare Licensed under MIT License: http://mitlicense.org """ import os import sys import configparser import json import mw import datetime from bs4 import BeautifulSoup from project_index import WikiProjectTools def m...
mit
Python
4f4841954c28a2e6c311b38796309a7ea8db81e7
Remove required fields in account_banking_ccorp
sysadminmatmoz/odoo-clearcorp,sysadminmatmoz/odoo-clearcorp,ClearCorp-dev/odoo-clearcorp,ClearCorp/odoo-clearcorp,ClearCorp-dev/odoo-clearcorp,ClearCorp/odoo-clearcorp,sysadminmatmoz/odoo-clearcorp,ClearCorp/odoo-clearcorp,sysadminmatmoz/odoo-clearcorp,ClearCorp/odoo-clearcorp,ClearCorp-dev/odoo-clearcorp,ClearCorp-dev...
account_banking_ccorp/account_banking_ccorp.py
account_banking_ccorp/account_banking_ccorp.py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Addons modules by CLEARCORP S.A. # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). # # This program is free software: you can redistribute...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Addons modules by CLEARCORP S.A. # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). # # This program is free software: you can redistribute...
agpl-3.0
Python
b9702a5ff1447225e95c86fa431cc66117bdc127
change host for postgis
akittas/geocoder,epyatopal/geocoder-1,ahlusar1989/geocoder,DenisCarriere/geocoder,minimedj/geocoder,miraculixx/geocoder
examples/example_postgis_connect.py
examples/example_postgis_connect.py
import psycopg2 import psycopg2.extras import geocoder import logging import time conn = psycopg2.connect("host=kingston.cbn8rngmikzu.us-west-2.rds.amazonaws.com port=5432 dbname=mydb user=addxy password=Denis44C") cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) sql_search = """ SELECT * FROM geocoder LI...
import psycopg2 import psycopg2.extras import geocoder import logging import time conn = psycopg2.connect("host=postgis.cbn8rngmikzu.us-west-2.rds.amazonaws.com port=5432 dbname=mydb user=addxy password=Denis44C") cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) sql_search = """ SELECT * FROM geocoder LIM...
mit
Python
b8aedd0e69e862a74cba896bb0dbb1d2748c4edf
join fft threads before getting values
rudimeier/numpy,BabeNovelty/numpy,pizzathief/numpy,MSeifert04/numpy,utke1/numpy,gfyoung/numpy,simongibbons/numpy,empeeu/numpy,mortada/numpy,numpy/numpy,jankoslavic/numpy,Srisai85/numpy,WillieMaddox/numpy,pdebuyl/numpy,behzadnouri/numpy,cowlicks/numpy,ESSS/numpy,gfyoung/numpy,rherault-insa/numpy,simongibbons/numpy,mingw...
numpy/fft/tests/test_fftpack.py
numpy/fft/tests/test_fftpack.py
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import TestCase, run_module_suite, assert_array_almost_equal from numpy.testing import assert_array_equal import threading import sys if sys.version_info[0] >= 3: import queue else: import Queue as queue de...
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import TestCase, run_module_suite, assert_array_almost_equal from numpy.testing import assert_array_equal import threading import sys if sys.version_info[0] >= 3: import queue else: import Queue as queue de...
bsd-3-clause
Python
b73bb0553368852b1656ff03e4e3bf2f66f8e2ec
Add debug output to failing test
stormrose-va/xobox
tests/t_utils/test_filters.py
tests/t_utils/test_filters.py
# -*- coding: utf-8 -*- """ tests.t_utils.test_filters ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2017 by The Stormrose Project team, see AUTHORS. :license: MIT License, see LICENSE for details. """ import os import importlib from unittest import TestCase from xobox.utils import filters class...
# -*- coding: utf-8 -*- """ tests.t_utils.test_filters ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2017 by The Stormrose Project team, see AUTHORS. :license: MIT License, see LICENSE for details. """ import os import importlib from unittest import TestCase from xobox.utils import filters class...
mit
Python
6435193a41a38d99bfb0c0f0ab4733464e12a7d6
allow to overwrite setting in the tests
mmohrhard/crash,mmohrhard/crash,mmohrhard/crash,Liongold/crash,Liongold/crash,Liongold/crash
django/crashreport/symbols/handler.py
django/crashreport/symbols/handler.py
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from zipfile import ZipFile from ...
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # from zipfile import ZipFile from ...
mpl-2.0
Python
bcc3df62656cc4197b17b40fa88f5bba1ee5ffa9
Update tree level.
weijia/obj_sys,weijia/obj_sys
obj_sys/ufs_obj_in_tree_view.py
obj_sys/ufs_obj_in_tree_view.py
from django.core.context_processors import csrf from django.views.generic import TemplateView from djangoautoconf.django_utils import retrieve_param from models_mptt import UfsObjInTree class ItemTreeView(TemplateView): item_class = UfsObjInTree default_level = 2 def get_context_data(self, **kwargs): ...
from django.core.context_processors import csrf from django.views.generic import TemplateView from djangoautoconf.django_utils import retrieve_param from models_mptt import UfsObjInTree class ItemTreeView(TemplateView): item_class = UfsObjInTree default_level = 2 def get_context_data(self, **kwargs): ...
bsd-3-clause
Python
2a7322608789b377a1315a1fcfbccb2617f73e4e
Update test_wrong_password.py
AlexBenyuh/python_training
test/test_wrong_password.py
test/test_wrong_password.py
# -*- coding: utf-8 -*- from model.credentials import Credentials def test_success_login_mk(app): app.cas.wrong_password(Credentials(login="380960000000", password="1"))
# -*- coding: utf-8 -*- from model.credentials import Credentials def test_success_login_mk(app): app.cas.wrong_password(Credentials(login="380961451058", password="MK2prod_20"))
apache-2.0
Python
addee67fbf46a795c9de4669c9951c84b6590d98
Add params in BaseContext abtract methods
CartoDB/cartoframes,CartoDB/cartoframes
cartoframes/context/base_context.py
cartoframes/context/base_context.py
from abc import ABCMeta, abstractmethod class BaseContext(): __metaclass__ = ABCMeta @abstractmethod def download(self, query, retry_times=0): pass @abstractmethod def upload(self, query, data): pass @abstractmethod def execute_query(self, query, parse_json=True, do_post...
from abc import ABCMeta, abstractmethod class BaseContext(): __metaclass__ = ABCMeta @abstractmethod def download(self): pass @abstractmethod def upload(self): pass @abstractmethod def execute_query(self): pass @abstractmethod def execute_long_running_qu...
bsd-3-clause
Python
df6fdf1a7a1f356ba06ef5641deb24861e2db77d
Clean up inplace ops in relu
spacy-io/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc,explosion/thinc
thinc/neural/_classes/relu.py
thinc/neural/_classes/relu.py
from .affine import Affine from ... import describe from ... import check from ...describe import Dimension, Synapses, Biases from ...check import has_shape class ReLu(Affine): @check.arg(1, has_shape(('nB', 'nI'))) def predict(self, input__BI): output__BO = Affine.predict(self, input__BI) out...
from .affine import Affine from ... import describe from ... import check from ...describe import Dimension, Synapses, Biases from ...check import has_shape class ReLu(Affine): @check.arg(1, has_shape(('nB', 'nI'))) def predict(self, input__BI): output__BO = Affine.predict(self, input__BI) out...
mit
Python
ad0c052c654f23162e05d848d89a8345b294d983
Make hyphen compile on Win64
patrickm/chromium.src,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,ondra-novak/chromium.src,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,markYoungH/chromium.src,hujiajie/pa-chromium,Chilledheart/chromium,hujiajie/pa-chromium,crosswa...
third_party/hyphen/hyphen.gyp
third_party/hyphen/hyphen.gyp
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'hyphen', 'type': 'static_library', 'include_dirs': [ '.', ], 'defines': [ ...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'hyphen', 'type': 'static_library', 'include_dirs': [ '.', ], 'defines': [ ...
bsd-3-clause
Python
0f98c41a7fcf7632903216f3fa29cfa13c769a7b
Clean up code in utils
globaleaks/Tor2web,globaleaks/Tor2web,globaleaks/Tor2web,globaleaks/Tor2web
utils.py
utils.py
import httplib import urllib2 import socks class Storage(dict): """ A Storage object is like a dictionary except `obj.foo` can be used in addition to `obj['foo']`. >>> o = Storage(a=1) >>> o.a 1 >>> o['a'] 1 >>> o.a = 2 >>> o['a'] 2 ...
import httplib import urllib2 class Storage(dict): """ A Storage object is like a dictionary except `obj.foo` can be used in addition to `obj['foo']`. >>> o = Storage(a=1) >>> o.a 1 >>> o['a'] 1 >>> o.a = 2 >>> o['a'] 2 >>> del o....
agpl-3.0
Python
bde130742db1805e4ae4e324334ca3160ae4cc71
make sure to import datetime
smn/ircarchive
utils.py
utils.py
from google.appengine.ext import db from datetime import datetime def key(*args): return db.Key.from_path(*args).id_or_name() def get_or_create(model, **kwargs): key_name = key(model.kind(), '/'.join(kwargs.values())) return model.get_or_insert(key_name, **kwargs) def parse_timestamp(timestamp): FORM...
from google.appengine.ext import db def key(*args): return db.Key.from_path(*args).id_or_name() def get_or_create(model, **kwargs): key_name = key(model.kind(), '/'.join(kwargs.values())) return model.get_or_insert(key_name, **kwargs) def parse_timestamp(timestamp): FORMAT = '%Y-%m-%dT%H:%M:%S' i...
bsd-3-clause
Python
b084e02dd2cf7b492c69090b6acd548066c7c34f
Check if quants are moved and pass moves to done to avoid duplication
rgbconsulting/rgb-addons,rgbconsulting/rgb-pos,rgbconsulting/rgb-pos,rgbconsulting/rgb-addons
pos_picking_state_fix/models/pos_picking.py
pos_picking_state_fix/models/pos_picking.py
# -*- coding: utf-8 -*- # See README file for full copyright and licensing details. import time from openerp import models, api from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT class PosPicking(models.Model): _inherit = 'pos.order' @api.multi def create_picking(self): try: su...
# -*- coding: utf-8 -*- # See README file for full copyright and licensing details. from openerp import models, api class PosPicking(models.Model): _inherit = 'pos.order' @api.multi def create_picking(self): try: super(PosPicking, self).create_picking() except: # ...
agpl-3.0
Python
8545528c07ed9eaf006a49cf1b875dcec70e89c7
Use `strip_html_tags`
avinassh/Laozi,avinassh/Laozi
utils.py
utils.py
import re import textwrap import html2text text_maker = html2text.HTML2Text() text_maker.body_width = 0 def strip_html_tags(text): return re.sub('<[^<]+?>', '', text) def html_to_md(string, strip_html=True): if strip_html is True: string = strip_html_tags(string) return text_maker.handle(strin...
import textwrap import html2text text_maker = html2text.HTML2Text() text_maker.body_width = 0 def html_to_md(string): string = string.replace('<br>', ' ') return text_maker.handle(string) def get_formatted_book_data(book_data): template = textwrap.dedent("""\ **Title:** {0} by {1} **R...
mit
Python