commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
72d01a13761afbdcdfeb4fabb9095fa786403b18 | Add tests requirements, fix console scripts definitions | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='ngx-task',
version='0.1',
description='Testimonial for candidates to show up their code-foo',
author='Dmitry Shulyak',
author_email='dmitri.shulyak@gmail.com',
url='https://github.com/shudmi/ngx-task',
classifiers=[
'License :... | Python | 0 | @@ -85,9 +85,9 @@
='0.
-1
+2
',%0A
@@ -558,16 +558,68 @@
res=%5B%5D,%0A
+ tests_require=%5B%0A %22pytest==3.0.7%22,%0A %5D,%0A
entr
@@ -690,17 +690,17 @@
task.cli
-.
+:
generate
@@ -737,17 +737,17 @@
task.cli
-.
+:
process_
|
6f6da808e98413c84b7a201944e8ea5292a5e980 | Prepare openprocurement.api 2.3.52. | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
requires = [
'barbecue',
'chaussette',
'cornice',
'couchdb-schematics',
'gevent',
'iso8601',
'jsonpatch',
'li... | Python | 0 | @@ -948,10 +948,10 @@
2.3.
-47
+52
',%0A
|
11195079cbf302b15f0b3091c96aba7d79f0050e | Bump to v0.3.0 | setup.py | setup.py | 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 ... | Python | 0.000001 | @@ -83,9 +83,9 @@
='0.
-2
+3
.0',
|
705030fcfde9320cbb2c39e9548c246e3cda5e87 | Update version and PyPi | setup.py | setup.py | 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... | Python | 0 | @@ -87,9 +87,9 @@
0.1.
-3
+4
%22,%0A
|
e540b571dac97dd416b8855eede6cd28e5f9d5e1 | Remove trailing directory-name slashes in setup.py | setup.py | setup.py | # Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | Python | 0 | @@ -1934,17 +1934,16 @@
n/grpcio
-/
'%0ACORE_I
@@ -1967,17 +1967,16 @@
ude', '.
-/
',)%0ABORI
|
e6f9e9fac32f2d68e597dbf6252ad4941cf3ed5a | Simplify setup.py | setup.py | setup.py | 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... | Python | 0.000004 | @@ -210,28 +210,8 @@
src%22
-, exclude=%5B%22tests*%22%5D
)%0AME
|
025e99ba8d0d6ecc183310d93ddacaef4474d95a | fix install_requires syntax | setup.py | setup.py | ο»Ώ# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
readme = """

PyThaiNLP is a Python library for Thai natural language processing.
It includes word tokenizers, transliterators, soundex converters, part-of-speech taggers... | Python | 0.000001 | @@ -760,16 +760,19 @@
dill
+
=%3E
+
0.3.0,
+
%3C1%22,
@@ -792,16 +792,19 @@
trie
+
=%3E
+
0.7.5,
+
%3C1%22,
@@ -817,16 +817,19 @@
nltk
+
=%3E
+
3.4.5,
+
%3C4%22,
@@ -846,17 +846,20 @@
ests
+
=%3E
+
2.22.0,
+
%3C3%22,
@@ -874,17 +874,20 @@
nydb
+
=%3E
+
3.13.0,
+
%3C4%22,
@@ -900,17 +9... |
bd61cc8d30726b3f8229e1801fcb83e2431a833b | Version bump | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import print_function
try:
from setuptools import setup, find_packages, Extension
except ImportError:
from distutils.core import setup, Extension
def find_packages():
return ['treeCl', 'treeCl.interfacing', 'treeCl.tasks', 'treeCl.utils']
from Cython.Distut... | Python | 0.000001 | @@ -1784,17 +1784,17 @@
= '0.1.3
-1
+2
'%0A%0Alogo
|
4c73e5df3c80dc8ecba4ab43412adbe63b610e29 | bump tqdm from 4.61.1 to 4.61.2 | setup.py | setup.py | # Copyright (C) 2020 FireEye, 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: [package root]/LICENSE.txt
# Unless required by applicable law or agreed to in writing,... | Python | 0.000001 | @@ -630,17 +630,17 @@
m==4.61.
-1
+2
%22,%0A %22
|
739d48856d1b8460520083e799776316653ab1b7 | Prepare openprocurement.tender.openua 2.3.27. | setup.py | setup.py | 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... | Python | 0 | @@ -68,9 +68,9 @@
.3.2
-6
+7
'%0A%0Ar
|
2d8eafef867bbfb434fcb4b8a6fc33a4db081441 | add missing podhub.meh dependency | 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... | Python | 0.000019 | @@ -1378,24 +1378,55 @@
g==0.10.4',%0A
+ 'podhub.meh==0.0.111',%0A
%5D,%0A s
|
f29bf0827723e3cddbed1cfbd5968ffb69dd7e6c | Update version number to 1.8.0 | 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 ... | Python | 0.000001 | @@ -1341,11 +1341,11 @@
=%221.
-7.1
+8.0
%22,%0A
|
bebe2be26d21289bb43936d3895c4b29126d508c | Change rtfd -> readthedocs in package description | 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... | Python | 0 | @@ -669,11 +669,18 @@
nx.r
-tfd
+eadthedocs
.io/
|
2abcfbf45fe72f4d3d3695f03f0a5c5c324a34fd | Set `zip_safe` to False. (#350) | setup.py | setup.py | # -*- coding: utf-8 -*-
"""Setup.py for PyBEL."""
import codecs # To use a consistent encoding
import os
import re
import sys
import setuptools
#################################################################
PACKAGES = setuptools.find_packages(where='src')
META_PATH = os.path.join('src', 'pybel', '__init__.py')... | Python | 0 | @@ -3909,14 +3909,38 @@
_LINKS,%0A
+ zip_safe=False,%0A
)%0A
|
c4aac06f299c99c3340726e0d283555df7cd4186 | Add BeautifulSoup to the setup.py. | 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... | Python | 0 | @@ -496,16 +496,49 @@
te%3E=2.5'
+,%0A 'BeautifulSoup==3.2.1',
%0A %5D,%0A
|
f51f44be401c4a837c0239128963c49f5ba7f81c | Version 0.0.8. | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='benchmarking',
version='0.0.7',
author='Alexey Palazhchenko',
author_email='alexey.palazhchenko@gmail.com',
packages=['benchmarking', 'benchmarking/reporters'],
url='https://github.com/AlekSi/benchmarking-py',
license='MIT... | Python | 0 | @@ -99,17 +99,17 @@
on='0.0.
-7
+8
',%0A a
|
9d19fb7ada5caaa2dc74736cd12635bed3d8516a | Put in some version requirements. | 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... | Python | 0 | @@ -406,16 +406,25 @@
venusian
+ %3E= 1.0a8
',%0A
@@ -450,16 +450,25 @@
werkzeug
+ %3E= 0.9.4
',%0A
|
0c5f05dff6c5a207b238caad2f48d37b0e0b20b5 | Version bump | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import print_function
try:
from setuptools import setup, find_packages, Extension
except ImportError:
from distutils.core import setup, Extension
def find_packages():
return ['treeCl', 'treeCl.interfacing', 'treeCl.tasks', 'treeCl.utils']
from Cython.Distut... | Python | 0.000001 | @@ -1787,9 +1787,10 @@
0.1.
-9
+10
'%0A%0Al
|
530ac80ee16f27d9e16160c27063ed3d321531d1 | Version 1.33.2 | setup.py | setup.py | """
The setup package to install SeleniumBase dependencies and plugins
(Uses selenium 3.x and is compatible with Python 2.7+ and Python 3.5+)
"""
from setuptools import setup, find_packages # noqa
import os
import sys
this_directory = os.path.abspath(os.path.dirname(__file__))
long_description = None
try:
with ... | Python | 0 | @@ -1841,17 +1841,17 @@
n='1.33.
-1
+2
',%0A d
|
1901f45c9153e345144b63d4c6fcd9881c0ecb98 | add raven as extra requirements. | 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>=3.0.5',
'tornado>=4.3',
'PyYAML>=3.11'... | Python | 0 | @@ -269,15 +269,8 @@
ures
-%3E=3.0.5
',%0A
@@ -284,13 +284,8 @@
nado
-%3E=4.3
',%0A
@@ -298,14 +298,8 @@
YAML
-%3E=3.11
',%0A
@@ -311,13 +311,47 @@
lick
-%3E=6.0
+',%0A%5D%0A%0Araven_requirements = %5B%0A 'raven
',%0A%5D
@@ -1412,24 +1412,89 @@
quirements,%0A
+ extras_require=%7B%0A 'raven': ra... |
13fdb27ff9584b848c512b9919a21dd3c0992816 | Increment the module version | 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.1',
packages=['eblog'],
inc... | Python | 0.000003 | @@ -282,9 +282,9 @@
='0.
-1
+2
',%0A
|
8b242acd4ad8410f307939a1b48c20c1a6d1fc55 | add coding: utf-8 | setup.py | setup.py |
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... | Python | 0.999998 | @@ -1,8 +1,32 @@
+# -*- coding: utf-8 -*-%0A
%0Along_de
|
d9e85fc770455a53070c29df023e5e79e3075bb1 | Update setup.py metadata | 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... | Python | 0.000001 | @@ -516,74 +516,8 @@
',%0A%0A
- # See https://pypi.python.org/pypi?%253Aaction=list_classifiers%0A
@@ -565,16 +565,15 @@
::
-3 - Alph
+4 - Bet
a',%0A
@@ -606,18 +606,25 @@
::
-Developers
+End Users/Desktop
',%0A
@@ -774,18 +774,25 @@
hon :: 3
+ :: Only
'
-,
%0A %5D,%0A
@@ -817,20 +817,8 @@
viz... |
f68613de29647ad147b3b140115b98af3ac9ef28 | Fix classifier | 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... | Python | 0.000089 | @@ -934,29 +934,8 @@
ment
- :: Development Tools
',%0A%0A
|
e87e2c2d8b6bfd3f02e7b470bd48e55063b580c7 | bump to 0.1.6 | 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',
version="0.1.5",
zip_safe=False,
packages=["m3u8"],
url="https://github.com/globocom/m3u8",
description="... | Python | 0.000015 | @@ -188,16 +188,59 @@
o.com',%0A
+ author_email='videos3@corp.globo.com',%0A
vers
@@ -252,9 +252,9 @@
0.1.
-5
+6
%22,%0A
|
eed19535253c34b4acc4f711d1ac3be422d4058b | Add ordereddict>=1.1 as a new dependency | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2012-2013, Itzik Kotler
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# notic... | Python | 0.000001 | @@ -3896,16 +3896,36 @@
cies + %5B
+'ordereddict%3E=1.1',
'argpars
|
a59aeb6309084837b83c8215284c9ca70a2fa2f1 | Bump to 0.8.2 | 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()
... | Python | 0.000074 | @@ -552,17 +552,17 @@
on='0.8.
-1
+2
',%0A d
|
38802d0b8aa93af2e299e54cb0e61a3aac5770fd | Bump version number | setup.py | setup.py | 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... | Python | 0.000002 | @@ -112,17 +112,17 @@
n='0.2.1
-3
+4
',%0A d
|
6273a10c50da0e1c743e0fc5082293f583650d44 | add scripts to setup | 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... | Python | 0 | @@ -1268,10 +1268,46 @@
False,%0A
+ scripts=%5B'scripts/ts-waveforms'%5D,%0A
)%0A
|
489dd98ca5959b55d801c04d22fd388b6efab1f3 | fix pandoc missing | 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')
readme = open('README.rst').read()
setup(
name='leicacam',
... | Python | 0.000002 | @@ -249,16 +249,25 @@
e rst')%0A
+try:%0A
readme =
@@ -292,16 +292,116 @@
).read()
+%0Aexcept FileNotFoundError:%0A print('pandoc not found, not making rst description')%0A readme = ''
%0A%0Asetup(
|
3dcd1cba2847725f9af07f4eea6abfb69680f829 | Version 0.5 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
version = '0.4'
setup(name='LetterCounter',
version=version,
description="Classes for iterating letters and representing numbers as letters.",
long_description="""\
""",
classifiers=[], # Get strings from http://www.python.org/pypi?%3A... | Python | 0.000001 | @@ -70,9 +70,9 @@
'0.
-4
+5
'%0A%0As
|
b4e25711127414766514091dab29e78cca9719da | Bump version | 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',
packages=['sgmanager', 'sgmanager.logger', 'sgmanager.securitygroups'],
entry_points = {
'console_scripts':... | Python | 0 | @@ -187,16 +187,18 @@
ion='1.2
+.1
',%0A p
|
155b2292d72227867d279848c38b38ce6675dff8 | bump version | setup.py | setup.py | # 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... | Python | 0 | @@ -80,17 +80,17 @@
on='1.1.
-3
+4
',%0A a
|
cbbcbb5707a90929da8d47f6b3322cebec983279 | Add jianfan to python package installation | 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... | Python | 0 | @@ -449,9 +449,10 @@
0.2.
-7
+10
',%0A
@@ -537,39 +537,127 @@
es=%5B
-'mafan', 'mafan.hanzidentifier'
+%0A 'mafan',%0A 'mafan.hanzidentifier',%0A 'mafan.third_party',%0A 'mafan.third_party.jianfan'%0A
%5D,%0A
|
fea3c14db1e69349587ccc0be1697ab10b1f5101 | update for release 0.11 | setup.py | setup.py | 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',... | Python | 0 | @@ -104,16 +104,17 @@
ion='0.1
+1
',%0A d
@@ -386,16 +386,17 @@
ball/0.1
+1
',%0A l
|
e26b392b3b1cfc04772839b546f73aa1f81bdb15 | Make setup recogonize hy files | 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... | Python | 0 | @@ -558,16 +558,106 @@
%5D),%0A
+package_data = %7B%0A 'hash' : %5B'*.hy'%5D,%0A %7D,%0A install_requires=%5B'hy %3E= 0.10.0' %5D,
%0A lic
|
9ca14d38581c94faff59b726448bf44d282f8be4 | Version bump for minor patches. | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.rst') as readme_file:
return readme_file.read()
configuration = {
'name' : 'umap-learn',
'version': '0.3.2',
'description' : 'Uniform Manifold Approximation and Projection',
'long_description' : readme(),
'classifiers' : [
... | Python | 0 | @@ -181,17 +181,17 @@
': '0.3.
-2
+3
',%0A '
|
8cbcf993d786250b735f62483ea62d97005deaf7 | fix requirements | setup.py | setup.py | #!/bin/env python
from distutils.core import setup
from distutils.command.install_data import install_data
from distutils.command.install import INSTALL_SCHEMES
import os
import sys
class osx_install_data(install_data):
def finalize_options(self):
self.set_undefined_options('install', ('install_lib', 'ins... | Python | 0.000001 | @@ -2864,32 +2864,73 @@
ango-bitfield%22,%0A
+ %22django-form-designer==0.8.1.5%22,%0A
%22django-
|
eeb00d12a93d87792af6f8cc4866ef08aa715e5b | add Python version check | 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 distutils.core
distutils.core.setup \
(
name = "DBussy",
version = ... | Python | 0 | @@ -228,16 +228,27 @@
z%3E.%0A#-%0A%0A
+import sys%0A
import d
@@ -260,16 +260,552 @@
ils.core
+%0Afrom distutils.command.build import %5C%0A build as std_build%0A%0Aclass my_build(std_build) :%0A %22customization of build to perform additional validation.%22%0A%0A def run(self) :%0A try :%0A ... |
6c110304a0a1e78a9e30397b80cb053a73a6dc66 | add url | 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... | Python | 0.000013 | @@ -402,20 +402,69 @@
t-runner'%5D,%0A
+ url='https://github.com/stilley2/filesdb',%0A
)%0A
|
5689eb765005306f26b86e22ab98685813288960 | update description | 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.... | Python | 0.000001 | @@ -476,29 +476,60 @@
on='
-D
+Set of tools th
at
-a
m
-odels for Mongo
+akes input data validation easier
',%0A
|
0f37ceeb5a2567a0fabbdc38cba5d93f072c8e33 | Version bump | setup.py | setup.py | from setuptools import setup
from codecs import open
from os import path, system
import sys
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
version = '0.0.1'
if sys.argv[-1] ==... | Python | 0.000001 | @@ -291,17 +291,17 @@
= '0.0.
-1
+2
'%0A%0Aif sy
|
aeee792e7c0215efc297667b4a75d5512425a2d5 | bump the version after the fat finger removal of set_environment on prior commit. | 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.7',
description = 'Deploys Django code to AWS based on tags',
author = 'Josh devops.center, Bob devops.center, Gregg devops.center',
author_email =... | Python | 0 | @@ -164,9 +164,9 @@
0.9.
-7
+8
',%0A
|
4565c185ed96cc31f78e132ea10a7c1d6daeb080 | include flickrapi requirement | 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... | Python | 0 | @@ -878,16 +878,27 @@
ires = %5B
+'flickrapi'
%5D,%0A
|
d1b454e7a08697695dff949250cfce25b367e30f | Fix setup.py | 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='1.0',
description='Toolbox for nifti data analysis',
author='Taicheng Huang',
author_email='taicheng_huang@sina.cn'... | Python | 0.000001 | @@ -184,11 +184,11 @@
on='
-1.0
+0.5
',%0A
@@ -222,12 +222,19 @@
or n
-ifti
+euroimaging
dat
@@ -316,12 +316,20 @@
ang@
-sina
+mail.bnu.edu
.cn'
@@ -391,16 +391,20 @@
kages=%5B'
+ATT.
algorith
@@ -412,17 +412,12 @@
', '
-graph', '
+ATT.
iofu
@@ -426,33 +426,16 @@
', '
-surface', 'util', 'volume
+ATT.util
... |
17ec4e6dd52eb73584ce556905a4d3aff6c46240 | Fix installation with pip3 | 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__
README = open('README.rst').read()
setup(
name='... | Python | 0 | @@ -263,34 +263,190 @@
n__%0A
-%0AREADME = open('README.rst
+import sys%0A%0APY_VERSION = sys.version_info%5B0%5D, sys.version_info%5B1%5D%0Aif PY_VERSION %3C (3, 0):%0A README = open('README.rst').read()%0Aelse:%0A README = open('README.rst', encoding='utf-8
').r
|
9b84157118337b8e360ff41ca4c72fe57c11f231 | Bump version | 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... | Python | 0 | @@ -725,17 +725,17 @@
on='0.2.
-1
+2
',%0A d
|
416843e88f9efa50a0c41105d1c1cf6f5d95db3f | update requirements. | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
MVC Web Application Framework with Tornado, Python 2 and 3
To install the package run:
pip install dp-tornado
Run
-----
$ pip install virtualenv
$ virtualenv ./venv
$ . ./venv/bin/activate
$ pip install dp-tornado
$ dp4p init --path app
"""
import sys
import o... | Python | 0 | @@ -1081,11 +1081,11 @@
ml==
-3.8
+4.0
.0',
@@ -1104,19 +1104,19 @@
llow==4.
-2.1
+3.0
',%0A
|
99102c0d2a4acbc2dd98eec20aed1d49885de343 | Update of ego.io | setup.py | setup.py | """This file is part of DING0, the DIstribution Network GeneratOr.
DING0 is a tool to generate synthetic medium and low voltage power
distribution grids based on open data.
It is developed in the project open_eGo: https://openegoproject.wordpress.com
DING0 lives at github: https://github.com/openego/ding0/
The docume... | Python | 0 | @@ -1555,23 +1555,23 @@
3.0+git.
-a1208ae
+9edc751
',%0A
@@ -3238,48 +3238,48 @@
ive/
-a1208aeffb57e16f49007f86b144ab6d576cbd0d
+9edc751580ecf1a8c4980314754d645dcb6d69cb
.zip
@@ -3303,15 +3303,15 @@
git.
-a1208ae
+9edc751
'%5D,%0A
|
86c5a41026f0ee3b72ff11d9e3c0fb5822ccd21e | Version 0.1.4 | setup.py | setup.py | from setuptools import setup
setup(name='DateJS',
description='Python Library that converts Javascript Date objects to Python Datetime objects',
version='0.1.3',
url='https://github.com/rithik/DateJS',
author='Rithik Yelisetty',
author_email='rithik@gmail.com',
license='MIT',
... | Python | 0.000001 | @@ -164,17 +164,17 @@
on='0.1.
-3
+4
',%0A
|
75113f3818c48ef72f00ebf8ac5c9491902a67b7 | Simplify long description | 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=open('README.md').read(),
author='Gabriel Magno',
author_email='gabrielmagno1... | Python | 0.999999 | @@ -232,33 +232,134 @@
ion=
-open('README.md').read(),
+'nano-dlna is a command line tool that allows you to play a local video file in your TV (or any other DLNA compatible device)'
%0A
|
6616832ff1aa17d09c19eecde593b21e80a97e36 | Fix setup.py homepage link. Closes #120. | 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... | Python | 0 | @@ -522,16 +522,23 @@
url='
+http://
journali
@@ -543,70 +543,25 @@
lism
- takes the horror out of basic data analysis and manipulation.
+.readthedocs.org/
',%0A
|
5e4a1544e0643ed6968c6936e8669a8c4a8554a3 | Remove useless dependency | 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... | Python | 0.000012 | @@ -676,49 +676,8 @@
2',%0A
- 'flask-restful',%0A 'flask'%0A
|
88fc8cb242b430163a14bc02647ea363c53e164e | Switch to ndt for volume-from-snapshot | 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 ... | Python | 0 | @@ -713,25 +713,25 @@
ersion='0.15
-1
+2
',%0A des
@@ -937,17 +937,17 @@
all/0.15
-1
+2
',%0A
|
6774db4c9ec2aa082512092f7aaf64cf291154e9 | Add ap2en module to the setup.py file so it gets installed too. | setup.py | setup.py | 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
''',
)
| Python | 0 | @@ -107,16 +107,25 @@
criptic'
+, 'ap2en'
%5D,%0A i
|
43effd41397e448c5c1f0fa74eae6c1fc9d55f0d | Bump version number | setup.py | setup.py | 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',
... | Python | 0.000002 | @@ -88,9 +88,9 @@
.0.4
-2
+3
',%0A
|
dc148a12d02035593b3a6f6d5415c6bb26e4817a | fix : setup file updated | 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:... | Python | 0.000001 | @@ -522,16 +522,360 @@
iers = %5B
+%0A 'Development Status :: 3 - Alpha',%0A 'Intended Audience :: End Users/Desktop',%0A 'License :: OSI Approved :: MIT',%0A 'Operating System :: OS Independent',%0A 'Programming Language :: Python :: 3.4',%0A 'Programming Language :: Python :: 3.5',%0A ... |
87f2ca2818d5a795ce138f13de8e343a8506ffbd | debug setup | setup.py | setup.py | from setuptools import setup
import os
import tridesclous
install_requires = [
'numpy',
'scipy',
'pandas',
'scikit-learn',
'matplotlib',
'seaborn',
'neo>=0.5.1',
... | Python | 0.000001 | @@ -259,24 +259,66 @@
'seaborn',%0A
+ 'quantities==0.10.1',%0A
@@ -333,9 +333,9 @@
'neo
-%3E
+=
=0.5
|
9798a4884d3960820730de73d4a04446c3a32678 | fix syntax | 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',
... | Python | 0.000023 | @@ -259,16 +259,17 @@
t group'
+,
%0A a
|
9020e5cf22ae95c6bae6badf6dce427c8e9f502c | Bump version to 0.0.9 | 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... | Python | 0.000001 | @@ -463,17 +463,17 @@
on='0.0.
-8
+9
',%0A
|
010fe2d0be30a98808eeaa6e6f4dd2b260df43c4 | Support running tests with setup.py | 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... | Python | 0.000121 | @@ -532,16 +532,49 @@
ages(),%0A
+ test_suite='nose.collector',%0A
clas
@@ -842,10 +842,71 @@
%0A %5D,%0A
+ tests_require=%5B%0A 'nose %3E= 1.3.0, %3C 1.4.0',%0A %5D,%0A
)%0A
|
b68c1edf352f560ff132c1c092b44134dfea9243 | Bump version | setup.py | setup.py | #!/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... | Python | 0 | @@ -120,17 +120,17 @@
'2.9.0.
-2
+3
'%0A%0A# Jen
|
cf7f0fe367ec367a1afc13e68ff1da84fa226b75 | Fix typo | setup.py | setup.py | #!/usr/bin/env python
"""Defines the setup instructions for domaintools"""
import glob
import os
import subprocess
import sys
from os import path
from setuptools import Extension, find_packages, setup
from setuptools.command.test import test as TestCommand
requires = ['requests']
packages = ['domaintools']
if sys.ver... | Python | 0.999999 | @@ -1982,10 +1982,10 @@
Tool
-'
s
+'
Off
|
ba2e263e40e1324f8fd6c3ee012a8d9ada46bdd1 | Disable strict C90 flag that appears to be accidentally being used by distutils | setup.py | setup.py | #!/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... | Python | 0 | @@ -64,16 +64,156 @@
ension%0A%0A
+# Workaround -Werror=statement-after-declaration%0A# http://bugs.python.org/issue18211%0Aimport os%0Aos.environ%5B'CFLAGS'%5D = '-Wno-unused-result'%0A%0A
setup(%0A
@@ -552,20 +552,16 @@
zer.h',%0A
-
|
45d88122aee0a0dc9fd3a88a3d2015d0c6240775 | Stop lying on Python2 support | 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... | Python | 0 | @@ -1990,46 +1990,8 @@
o',%0A
- 'Framework :: Django :: 1.8',%0A
@@ -2242,202 +2242,8 @@
::
-2',%0A 'Programming Language :: Python :: 2.7',%0A 'Programming Language :: Python :: 3',%0A 'Programming Language :: Python :: 3.2',%0A 'Programming Language :: Python :: 3.
3',%0A... |
da981b55674cd11dcebe9b6d7070e83f9b39dd1d | use join even for finding version | 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__ = ['\"]([^'\"]*... | Python | 0 | @@ -551,16 +551,21 @@
version(
+join(
%22pyelast
@@ -572,17 +572,20 @@
icsearch
-/
+%22, %22
__init__
@@ -589,16 +589,17 @@
t__.py%22)
+)
,%0A de
|
11774b2a17624a5de52a518094ac6fb9ec13a4f9 | Bump version to 0.2.1 | 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
... | Python | 0 | @@ -1260,16 +1260,18 @@
ion='0.2
+.1
',%0A d
|
4ff0dda83d592c7f8e29935b77edc9a09411d4d8 | Add classifiers and keywords to setup.py. | 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... | Python | 0 | @@ -1400,14 +1400,354 @@
e 2.0',%0A
+ classifiers=%5B%0A 'Development Status :: 5 - Production/Stable',%0A 'Programming Language :: Python',%0A 'Programming Language :: Python :: 2',%0A 'Programming Language :: Python :: 2.6',%0A 'Programming Language :: Python :: 2.7'... |
98b6a63e343f2a6a1888f8373845b0b1bd3c89d4 | Version bump | setup.py | setup.py | from setuptools import setup, find_packages
import os
import sys
def package_files(package_path, directory_name):
paths = []
directory_path = os.path.join(package_path, directory_name)
for (path, directories, filenames) in os.walk(directory_path):
relative_path = os.path.relpath(path, package_path... | Python | 0.000001 | @@ -787,11 +787,9 @@
'0.1
-2.1
+3
',%0A
|
ee1ed38fcff2c52bd2e02ba91f18103abe5adcf2 | bump version | 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... | Python | 0 | @@ -725,17 +725,17 @@
on='0.2.
-0
+1
',%0A d
|
2dbb78ec9ab614af6c39c5467285760c0a9229be | version number updated to 1.0.4 | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='tweet_parser',
packages=find_packages(),
scripts=["tools/parse_tweets.py"],
version='1.0.3',
license='MIT',
author='Fiona Pigott',
author_email='fpigott@twitter.com',
description="Tools for Tweet parsing",
url='http... | Python | 0.000006 | @@ -157,17 +157,17 @@
on='1.0.
-3
+4
',%0A
|
97d96ac08a1f4035ae48f9951f900a43a6bc4b0c | Bump version for v0.3.3 | 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... | Python | 0 | @@ -367,17 +367,17 @@
MICRO =
-2
+3
%0AVERSION
|
777f4bdb150442a2f52693b7347fdb9948326975 | Bump to v0.0.5 | setup.py | setup.py | 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='... | Python | 0.000001 | @@ -58,9 +58,9 @@
0.0.
-4
+5
'%0A%0A%0A
|
9093c16da872031320afdb30948bc7c5d343cd6f | enhance dummy plugin | taskforge/plugin.py | taskforge/plugin.py | 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):
"... | Python | 0 | @@ -52,16 +52,45 @@
rt six%0A%0A
+from persist import Warrior%0A%0A
%0A@six.ad
@@ -1124,20 +1124,16 @@
log.
-info(%22Hey, d
+debug(%22D
ummy
@@ -1209,16 +1209,177 @@
.opts))%0A
+ self.log.info(%22Task pro:%7B%7D tags:%7B%7D found%22.format(task%5B'project'%5D, task%5B'tags'%5D))%0A for a in task%5B'a... |
a6c5ecfbceb63fb8c4974902960acfe323303f04 | Add details to setup.py. | setup.py | setup.py | #!/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... | Python | 0 | @@ -90,24 +90,101 @@
on='0.0.1',%0A
+ url='https://github.com/alexhanson/intercom',%0A license='ISC License',%0A
install_
|
51ccea9761e8799bbd099878eafb2739f24af766 | Update metadata | 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... | Python | 0.000001 | @@ -774,262 +774,37 @@
ion=
-('This library works with any OpenPhoto server '%0A '(including the trovebox.com hosted service).%5Cn'%0A 'It provides full access to your photos and metadata, '%0A 'via a simple Pythonic API.'
+open(%22README.markdown%22... |
42bb00308ef0102a1b0dec874ad410a52b36e5b3 | fix search bug: TaxonFilter searches now taxonomic name | 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):
... | Python | 0 | @@ -478,16 +478,26 @@
lds = %5B'
+taxonomic_
name', '
|
7ddd3a5fdd57410a5135a012f37155103a4e129d | Raise requests dep version | 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... | Python | 0 | @@ -1072,16 +1072,18 @@
ests%3E=2.
+4.
1',%0A
|
ee85ed477b456164ca14d8d0652595fae4274bcf | rename local variables | tcconfig/_common.py | tcconfig/_common.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import, unicode_literals
import contextlib
import errno
import os
import re
import sys
import logbook
import logbook.more
import msgfy
import subprocrunner as spr
import typepy
from path import ... | Python | 0.00001 | @@ -1711,24 +1711,30 @@
%0A%0A debug_
+level_
format_str =
@@ -1905,32 +1905,38 @@
G:%0A info_
+level_
format_str = deb
@@ -1934,24 +1934,30 @@
str = debug_
+level_
format_str%0A
@@ -1974,24 +1974,30 @@
info_
+level_
format_str =
@@ -2147,16 +2147,22 @@
g=debug_
+level_
format_s
@@ -2277,16 ... |
bbcd67f9dc26930c197c04e318d74e36b2fc9ead | Add one more assertion. | 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... | Python | 0.000037 | @@ -737,16 +737,29 @@
empfile%0A
+import types%0A
import u
@@ -2373,24 +2373,90 @@
n_tmp.name)%0A
+ self.assertIsInstance(metadata, types.DictionaryType)%0A
|
26dda5e77861357f4639516222f1c26a12429608 | set logging level to INFO always, log when recieving a message | 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... | Python | 0 | @@ -1125,16 +1125,31 @@
nctools%0A
+import logging%0A
import t
@@ -1307,16 +1307,56 @@
ad(fp)%0A%0A
+logging.basicConfig(level=logging.INFO)%0A
wit = Wi
@@ -1625,55 +1625,8 @@
c()%0A
- print(exc_string, file=sys.stderr)%0A
@@ -1727,128 +1727,151 @@
-else:%0A update.message.rep... |
b33f622a0b5647dad58d29a4ee322d02615533e0 | Bump to 0.5.1 | setup.py | setup.py | # -*- 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... | Python | 0.000438 | @@ -98,16 +98,18 @@
ion='0.5
+.1
',%0A d
|
01f55200f29f59bf2125ed768daa2f9d0c508d95 | Update to v0.15.5 | telethon/version.py | telethon/version.py | # Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '0.15.4'
| Python | 0 | @@ -86,11 +86,11 @@
= '0.15.
-4
+5
'%0A
|
8aa641bd1895c1164abf24ad11d70417b3437163 | version bump | setup.py | setup.py | from __future__ import print_function
import os
from distutils.core import setup
from distutils.extension import Extension
from setuptools import find_packages
try:
from Cython.Build import cythonize
import Cython.Distutils
CYTHON=True
except ImportError:
CYTHON=False
print('CYTHON UNAVAILABLE')
tr... | Python | 0.000001 | @@ -595,9 +595,9 @@
.1.4
-5
+6
',%0A
|
e4b3348210e7b09e9a055fc470cc586e4bb865be | Version bump | setup.py | setup.py | from setuptools import setup
setup(
name="funsize",
version="0.56",
description="Funsize Scheduler",
author="Mozilla Release Engineering",
packages=["funsize"],
include_package_data=True,
# Not zip safe because we have data files in the package
zip_safe=False,
entry_points={
... | Python | 0.000001 | @@ -66,17 +66,17 @@
ion=%220.5
-6
+8
%22,%0A d
|
a8e88036f88adefd3f3206016e9b78f3b58d204b | Bump minimum version for google-api-core to 1.14.0. (#8709) | 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... | Python | 0 | @@ -978,17 +978,18 @@
c%5D %3E= 1.
-6
+14
.0, %3C 2.
|
b0c3ecf6fd0b25b6d512951e76cfd3e548737217 | include base config in packages | 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... | Python | 0.000001 | @@ -424,16 +424,61 @@
service'
+, 'premis_event_service.config.settings.base'
%5D,%0A i
|
1d2c57b6d5fb73fbc398fc98fdba5c9993b167a0 | update plenum version. | setup.py | setup.py | #!/usr/bin/env python
import sys
import os
from setuptools import setup, find_packages, __version__
v = sys.version_info
if sys.version_info < (3, 5):
msg = "FAIL: Requires Python 3.5 or later, " \
"but setup.py was run using {}.{}.{}"
v = sys.version_info
print(msg.format(v.major, v.minor, v.m... | Python | 0 | @@ -1861,9 +1861,9 @@
2.25
-8
+9
',%0A
|
0ac5bd820af112f068bc49043ff1159901255e22 | bump version | 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.17',
description='Pluggable django app for Q&A',
long_description=long_description,
author='arjunkomath... | Python | 0 | @@ -199,17 +199,17 @@
n='0.0.1
-7
+8
',%0A d
|
7aae60589595ec63e8f6b731b2d2d4b5fda191c8 | add proper classifiers in setup.py | 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... | Python | 0.000011 | @@ -845,16 +845,164 @@
Python'
+,%0A 'Programming Language :: Python :: 2.6',%0A 'Programming Language :: Python :: 2.7',%0A 'Programming Language :: Python :: 3.3',
%0A %5D,%0A
|
2465cab205a3fa6b90aa1cf54faaab11dc792af0 | bump version | 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.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... | Python | 0.000339 | @@ -139,17 +139,17 @@
= '0.2.1
-2
+3
'%0A%0A%0Adef
|
ec8044e8d88942cfe1c0a97b43fa4b3a3920dfbf | Add fix for running tox inside a vagrant/virtualbox setup | setup.py | setup.py | """
Authorize Sauce
===============
The secret sauce for accessing the Authorize.net API. The Authorize APIs for
transactions, recurring payments, and saved payments are all different and
awkward to use directly. Instead, you can use Authorize Sauce, which unifies
all three Authorize.net APIs into one coherent Pythoni... | Python | 0 | @@ -1732,16 +1732,26 @@
se%0A%22%22%22%0A%0A
+import os%0A
from set
@@ -1773,16 +1773,301 @@
setup%0A%0A%0A
+# Hard links don't work inside VirtualBox shared folders. In order to allow%0A# setup.py sdist to work in such an environment, this quick and dirty hack is%0A# used. See http://stackoverflow.com/a/22147112.%0... |
4015c22ad82018397a3ef398dd5f2b8cfe65faac | Change account which calls initialize_epoch | ethereum/hybrid_casper/consensus.py | ethereum/hybrid_casper/consensus.py | 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... | Python | 0.000004 | @@ -38,42 +38,8 @@
ons%0A
-from ethereum.tools import tester%0A
from
@@ -89,16 +89,16 @@
riables%0A
+
from eth
@@ -184,16 +184,71 @@
er_utils
+%0Afrom ethereum.utils import sha3, privtoaddr, to_string
%0A%0A# Bloc
@@ -658,16 +658,94 @@
r != 0:%0A
+ key, account = sha3(to_string(999)), privtoaddr(sha3(to_s... |
c261bf8a7bb6deca83b90dad70a2f090dc72b7c5 | Update Getting_Started_with_Pandas.py | 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... | Python | 0 | @@ -1340,24 +1340,50 @@
x.name %0D%0A%0D%0A
+%0D%0A#Indexing%0D%0A#--------%0D%0A%0D%0A
#we often ne
@@ -1989,24 +1989,75 @@
ndex))%0D%0A%0D%0A%0D%0A
+#arithmetic operations%0D%0A#----------------------%0D%0A%0D%0A
#Series and
@@ -2942,28 +2942,30 @@
----------------------------
+%0D%0A
|
f28e7f9ec1fa4c4cbe041e746c7d4ed15f579b9e | Fix bug in demo's call to close_recruitment() | 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)... | Python | 0 | @@ -1806,16 +1806,20 @@
uitment(
+self
)%0A
|
824296db625cdd94959c6d519f8b47a534d4917a | add parse full and icon_emoji | 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/[!_]... | Python | 0.000003 | @@ -1765,17 +1765,17 @@
%22icon
--
+_
emoji%22:
@@ -1780,16 +1780,41 @@
: icon,%0A
+ %22parse%22: %22full%22,%0A
%7D%0A
|
4ece44ee6b9a8ead757be603a76aa2f8d5f92e36 | enable fast C++ implementation of python protobuf (#1489) | 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... | Python | 0 | @@ -1169,16 +1169,27 @@
-at-top%0A
+import os%0A%0A
# Disabl
@@ -1443,26 +1443,16 @@
orflow.%0A
-import os%0A
os.envir
@@ -1486,16 +1486,302 @@
'%5D = '1'
+%0A%0A# Use fast C++ implementation of Python protocol buffers. See:%0A# https://github.com/protocolbuffers/protobuf/blob/v3.6.0/python/google/protobuf/pyext/R... |
6582552b4a07835613aca6c5879c59803e271670 | Implement subdir | subme.py | subme.py | from importlib import import_module
from shutil import move
from shutil import rmtree
from os import makedirs
from os.path import join
from os.path import splitext
from os.path import dirname
from os.path import basename
from os.path import isdir
from os.path import exists
from hashlib import md5
from zipfile import Zi... | Python | 0.998068 | @@ -103,16 +103,39 @@
akedirs%0A
+from os import listdir%0A
from os.
@@ -1368,20 +1368,138 @@
ory):%0A%09%09
-pass
+for f in listdir(directory):%0A%09%09%09if not f.endswith(self.VIDEO_EXTENSIONS):%0A%09%09%09%09continue%0A%09%09%09self.subfile(join(directory, f))
%0A%0A%09def s
@@ -3070,16 +3070,18 @@
Subme()%0A
... |
31a75c40ac35e9acd9da42b715d37f68419ffdfa | Fix unused import in tasks | tasks.py | tasks.py | import logging
import platform
from datetime import date, timedelta, datetime
import urllib
from invoke import run, task
from elasticsearch import helpers
import scrapi.harvesters # noqa
from dateutil.parser import parse
from scrapi import linter
from scrapi import registry
from scrapi import settings
from scrapi.p... | Python | 0.000003 | @@ -64,18 +64,8 @@
elta
-, datetime
%0A%0Aim
|
9a0511fb336b4cda2c2bab9f9040a7005b383a7b | create scoped session in the task | tasks.py | tasks.py | 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... | Python | 0.000002 | @@ -18,16 +18,58 @@
t Celery
+%0Afrom sqlalchemy.orm import scoped_session
%0A%0Afrom s
@@ -479,36 +479,33 @@
')%0A flight =
-db.S
+s
ession.query(Fli
@@ -799,16 +799,64 @@
u=True)%0A
+ session = scoped_session(db.session_factory)%0A%0A
flight
@@ -858,20 +858,17 @@
light =
-db.S
+s
ession.q
@@ -1036,12 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.