commit
stringlengths
40
40
subject
stringlengths
1
1.49k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
new_contents
stringlengths
1
29.8k
old_contents
stringlengths
0
9.9k
lang
stringclasses
3 values
proba
float64
0
1
fe46c864b625519f90f23502da520a7fcaada972
Bump version
setup.py
setup.py
from setuptools import setup, find_packages VERSION = '0.0.4' try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name='django-webh...
from setuptools import setup, find_packages VERSION = '0.0.3' try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("Warning: pypandoc module not found, could not convert Markdown to RST") read_md = lambda f: open(f, 'r').read() setup( name='django-webh...
Python
0
c7994b2e8b8dfdd5ad60850ed56afd7e1c69646a
fix typo in setup.py
setup.py
setup.py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="heartpy", version="1.2.3", author="Paul van Gent", author_email="P.vanGent@tudelft.nl", description="Heart Rate Analysis Toolkit", long_description=long_description, long_descripti...
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="heartpy", version="1.2.3", author="Paul van Gent", author_email="P.vanGent@tudelft.nl", description="Heart Rate Analysis Toolkit", long_description=long_description, long_descripti...
Python
0.000015
c1d111ab00cdc916412cc2985ef4bbc184166f20
Change contact field and author field for PyPI.
setup.py
setup.py
""" ``onecodex`` ------------ ``onecodex`` provides a command line client for interaction with the One Codex API. Links ````` * `One Codex: <https://www.onecodex.com/>` * `API Docs: <http://docs.onecodex.com/>` """ from setuptools import setup setup( name='onecodex', version='0.0.1', url='https://www...
""" ``onecodex`` ------------ ``onecodex`` provides a command line client for interaction with the One Codex API. Links ````` * `One Codex: <https://www.onecodex.com/>` * `API Docs: <http://docs.onecodex.com/>` """ from setuptools import setup setup( name='onecodex', version='0.0.1', url='https://www...
Python
0
c3fe1e939708dad0628cae57a4249b5ab2a44dd7
Bump to 0.7.0, beta. (#105)
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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
0
705999d9ca332c42d2c052f39ab44104be99b9c4
print stdout during nose tests
stagecraft/settings/common.py
stagecraft/settings/common.py
""" Django settings for stagecraft project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os import sys from os.path import abspath, dirname, join as pjoi...
""" Django settings for stagecraft project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os import sys from os.path import abspath, dirname, join as pjoi...
Python
0.003047
c3294f7ec5e1d91196d53ccc84c38511941ff7c7
update version
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import sys import os version = '1.2.3' long_description = open('README.md').read() if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( name='africastalking', version=version, packages=['africastalking'], ...
#!/usr/bin/env python from setuptools import setup import sys import os version = '1.2.2' long_description = open('README.md').read() if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() setup( name='africastalking', version=version, packages=['africastalking'], ...
Python
0
8243a52b7db8962ae381cc1b565c5c519f32bb9d
Bump version
setup.py
setup.py
#!/usr/bin/env python '''The setup and build script for the lightning-python library.''' __author__ = 'github@mathisonian.com' __version__ = '1.0.8' # The base package metadata to be used by both distutils and setuptools METADATA = dict( name = "lightning-python", version = __version__, packages = ['lightning'...
#!/usr/bin/env python '''The setup and build script for the lightning-python library.''' __author__ = 'github@mathisonian.com' __version__ = '1.0.7' # The base package metadata to be used by both distutils and setuptools METADATA = dict( name = "lightning-python", version = __version__, packages = ['lightning'...
Python
0
66a148f9240133ead3b74a50fb0b6d43f1903de7
Update to next dev version
setup.py
setup.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # OpenFisca -- A versatile microsimulation software # By: OpenFisca Team <contact@openfisca.fr> # # Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team # https://github.com/openfisca # # This file is part of OpenFisca. # # OpenFisca is free software; you can redist...
#! /usr/bin/env python # -*- coding: utf-8 -*- # OpenFisca -- A versatile microsimulation software # By: OpenFisca Team <contact@openfisca.fr> # # Copyright (C) 2011, 2012, 2013, 2014, 2015 OpenFisca Team # https://github.com/openfisca # # This file is part of OpenFisca. # # OpenFisca is free software; you can redist...
Python
0
afdbc1a8200e47be78f81947349372e1a846b1eb
update requirements
setup.py
setup.py
import os.path as op from setuptools import setup with open(op.join(op.dirname(__file__), './README.rst')) as fin: long_description = fin.read() setup( name='wcpan.worker', version='3.0.1', description='An asynchronous task queue with priority support.', long_description=long_des...
import os.path as op from setuptools import setup with open(op.join(op.dirname(__file__), './README.rst')) as fin: long_description = fin.read() setup( name='wcpan.worker', version='3.0.1', description='An asynchronous task queue with priority support.', long_description=long_des...
Python
0
493d73bea7d7a6b1b3c5be11fe47f3aa39fa4a49
Upgrade version to 1.0.0
setup.py
setup.py
#!/usr/bin/env python ''' Created on 2015/11/17 :author: hubo ''' try: import ez_setup ez_setup.use_setuptools() except: pass from setuptools import setup, find_packages VERSION = '1.0.0' setup(name='vlcp', version=VERSION, description='Full stack framework for SDN Controller, support Openflo...
#!/usr/bin/env python ''' Created on 2015/11/17 :author: hubo ''' try: import ez_setup ez_setup.use_setuptools() except: pass from setuptools import setup, find_packages VERSION = '0.11.1' setup(name='vlcp', version=VERSION, description='Full stack framework for SDN Controller, support Openfl...
Python
0.000001
99f82543bd97c54ee0850a154e1cb97957c33ea9
Swap pycrypto for pycryptodome
setup.py
setup.py
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() install_requires = [ 'setuptools', 'pycryptodome' ] try: from collections import OrderedDict except ImportError: install_requires.append('ordereddict') setup(...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() install_requires = [ 'setuptools', 'pycrypto' ] try: from collections import OrderedDict except ImportError: install_requires.append('ordereddict') setup( ...
Python
0.000193
197dca6e5c81dc1437f65af192e2b590a575bf53
Bump to next dev 0.1.1.dev1
setup.py
setup.py
#!/usr/bin/env python3 # encoding: utf-8 from setuptools import setup, find_packages setup( name='pyatv', version='0.1.1.dev1', license='MIT', url='https://github.com/postlund/pyatv', author='Pierre Ståhl', author_email='pierre.staahl@gmail.com', description='Library for controlling an App...
#!/usr/bin/env python3 # encoding: utf-8 from setuptools import setup, find_packages setup( name='pyatv', version='0.1.0', license='MIT', url='https://github.com/postlund/pyatv', author='Pierre Ståhl', author_email='pierre.staahl@gmail.com', description='Library for controlling an Apple TV...
Python
0
1c2881332fb12389b161b9bf7c79248f36dc9b07
Bump version
setup.py
setup.py
from __future__ import with_statement import sys import os.path import setuptools needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) pytest_runner = ['pytest-runner'] if needs_pytest else [] REQUIREMENT_DIR = "requirements" with open("README.rst") as fp: long_description = fp.read() with open...
from __future__ import with_statement import sys import os.path import setuptools needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) pytest_runner = ['pytest-runner'] if needs_pytest else [] REQUIREMENT_DIR = "requirements" with open("README.rst") as fp: long_description = fp.read() with open...
Python
0
79c4d0f19ffb569919b1d210674884a22fd80c0b
Fix up setup.py
setup.py
setup.py
from os import path import io try: from setuptools import setup except ImportError: from distutils.core import setup try: import unittest.mock has_mock = True except ImportError: has_mock = False __author__ = 'ping <lastmodified@gmail.com>' __version__ = '1.6.0' packages = [ 'instagram_privat...
try: from setuptools import setup except ImportError: from distutils.core import setup try: import unittest.mock has_mock = True except ImportError: has_mock = False __author__ = 'ping <lastmodified@gmail.com>' __version__ = '1.6.0' packages = [ 'instagram_private_api', 'instagram_private...
Python
0.000003
51e4a9eb5708b7f35784f4a4a704f72ac5e00e6f
remove package stuff
setup.py
setup.py
# coding: utf-8 from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os, sys from distutils.core import setup from distutils.extension import Extension # Third-party import numpy as np from Cython.Distutils import build_ext # Get numpy path numpy_b...
# coding: utf-8 from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os, sys from distutils.core import setup from distutils.extension import Extension # Third-party import numpy as np from Cython.Distutils import build_ext # Get numpy path numpy_b...
Python
0.000002
ccd45d35b05c4f3e2a134d285e485523c08298cf
Add misc package to setup.py
setup.py
setup.py
from setuptools import setup setup( name='autograd', version='1.1.11', description='Efficiently computes derivatives of numpy code.', author='Dougal Maclaurin and David Duvenaud and Matthew Johnson', author_email="maclaurin@physics.harvard.edu, duvenaud@cs.toronto.edu, mattjj@csail.mit.edu", pa...
from setuptools import setup setup( name='autograd', version='1.1.11', description='Efficiently computes derivatives of numpy code.', author='Dougal Maclaurin and David Duvenaud and Matthew Johnson', author_email="maclaurin@physics.harvard.edu, duvenaud@cs.toronto.edu, mattjj@csail.mit.edu", pa...
Python
0
7ea606d4e9cd27880ecbd730baeac488cfbca075
Fix setup.py with CYTHON==True
setup.py
setup.py
import os import sys import versioneer from distutils.core import setup from setuptools import find_packages from distutils.extension import Extension from distutils.command.sdist import sdist as _sdist from distutils.command.install import install as _install try: import numpy as np except: print("ERROR: Nu...
import os import sys import versioneer from distutils.core import setup from setuptools import find_packages from distutils.extension import Extension from distutils.command.sdist import sdist as _sdist from distutils.command.install import install as _install try: import numpy as np except: print("ERROR: Nu...
Python
0.001029
a30ed634f641c3c62dc0d4501ed4cb852c9930d0
Update TreeTime dep link now that the py3 branch is merged
setup.py
setup.py
import os from setuptools import setup setup( name = "augur", version = "0.1.0", author = "nextstrain developers", author_email = "trevor@bedford.io, richard.neher@unibas.ch", description = ("Pipelines for real-time phylogenetic analysis"), license = "MIT", keywo...
import os from setuptools import setup setup( name = "augur", version = "0.1.0", author = "nextstrain developers", author_email = "trevor@bedford.io, richard.neher@unibas.ch", description = ("Pipelines for real-time phylogenetic analysis"), license = "MIT", keywo...
Python
0
0ad4eadaeca3e442b85bb29d530b791e06c6c07f
Bump version number
setup.py
setup.py
from setuptools import setup setup( name = "aws-identity-manager", version = "0.0.2", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = ("Manage credentials for multiple AWS accounts"), url='https://github.com/nocarryr/AWS-Identity-Manager', license='MIT', ...
from setuptools import setup setup( name = "aws-identity-manager", version = "0.0.1", author = "Matthew Reid", author_email = "matt@nomadic-recording.com", description = ("Manage credentials for multiple AWS accounts"), url='https://github.com/nocarryr/AWS-Identity-Manager', license='MIT', ...
Python
0.000002
776663716437e3d6e255046a04bd301c697a020f
Drop declared support for Python 3.6 - breaks on upload to PyPI
setup.py
setup.py
#!/usr/bin/env python # Generated by jaraco.develop 2.27.1 # https://pypi.python.org/pypi/jaraco.develop import io import sys import setuptools with io.open('README.rst', encoding='utf-8') as readme: long_description = readme.read() needs_pytest = {'pytest', 'test'}.intersection(sys.argv) pytest_runner = ['pyte...
#!/usr/bin/env python # Generated by jaraco.develop 2.27.1 # https://pypi.python.org/pypi/jaraco.develop import io import sys import setuptools with io.open('README.rst', encoding='utf-8') as readme: long_description = readme.read() needs_pytest = {'pytest', 'test'}.intersection(sys.argv) pytest_runner = ['pyte...
Python
0
e47d69382863438b9506f2b153fec2c38a7707dd
fix setup.py
setup.py
setup.py
from setuptools import setup setup(name='netCDF4p', version='0.9', description='Addition to netCDF4 to select by dimension', url='', author='Mathias Hauser', author_email='mathias.hauser@env.ethz.ch', license='MIT', packages=['netCDF4p'], install_requires=['collections',...
from setuptools import setup setup(name='netCDF4p', version='0.9', description='Addition to netCDF4 to select by dimension', url='', author='Mathias Hauser', author_email='mathias.hauser@env.ethz.ch', license='MIT', packages=['netCDF4p'], install_requires=[ <<<<<<< HEAD ======= ...
Python
0.000001
eccf510e1148d375cfcea692b4a0b52663bbffc2
Remove circular dependency on importing package in setup.py
setup.py
setup.py
#!/usr/bin/env python import os, sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand from pip.req import parse_requirements try: from loginsightwebhookdemo import __version__ as loginsightwebhookdemoversion # TODO Replace with a static variant? except ImportErr...
#!/usr/bin/env python import os, sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand from pip.req import parse_requirements from loginsightwebhookdemo import __version__ as loginsightwebhookdemoversion # TODO Replace with a static variant? # Hack from https://sta...
Python
0.000001
fb762b21947c5c3116c6deac394e2e47fbfc880f
Bump version to 0.5.0
setup.py
setup.py
import os from setuptools import setup def read(path): with open(os.path.join(os.path.dirname(__file__), path)) as fileobj: return fileobj.read() setup( name='Funk', version='0.5.0', description='A mocking framework for Python', long_description=read("README.rst"), author='Michael Wi...
import os from setuptools import setup def read(path): with open(os.path.join(os.path.dirname(__file__), path)) as fileobj: return fileobj.read() setup( name='Funk', version='0.4.0', description='A mocking framework for Python', long_description=read("README.rst"), author='Michael Wi...
Python
0.000001
2842771b78f8452de5515dccf879eb63060ec620
comment README
setup.py
setup.py
# import os from setuptools import setup # here = os.path.abspath(os.path.dirname(__file__)) # README = open(os.path.join(here, 'README.md')).read() requires = [ 'itertools', ] setup( name='xor-string', packages=['xor-string',], version='0.1.2', url='https://github.com/Akagi201/xor-string', ...
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.md')).read() requires = [ 'itertools', ] setup( name='xor-string', packages=['xor-string',], version='0.1.2', url='https://github.com/Akagi201/xor-string', downl...
Python
0
fc245f061bc185d465218a9af36f926045a6ca3b
Bump version
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() version = '0.3.3b1' requires = [ 'pymongo >= 2.8,<3', # CI fails to build unless a version (sa...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() version = '0.3.3b0' requires = [ 'pymongo >= 2.8,<3', # CI fails to build unless a version (sa...
Python
0
8e3c0d3794a65e10000da68495ea84771f663016
Improve Python package information.
setup.py
setup.py
# -*- coding: utf-8 -*- from __future__ import print_function from os import sys try: from skbuild import setup except ImportError: print('scikit-build is required to build from source.', file=sys.stderr) print('Please run:', file=sys.stderr) print('', file=sys.stderr) print(' python -m pip instal...
# -*- coding: utf-8 -*- from __future__ import print_function from os import sys try: from skbuild import setup except ImportError: print('scikit-build is required to build from source.', file=sys.stderr) print('Please run:', file=sys.stderr) print('', file=sys.stderr) print(' python -m pip instal...
Python
0.00038
8246bf6a05c5c934351f6f4867eaa255f73f0eb2
add URL to GitHub for PyPi
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import setup install_requires = [ 'agate>=1.6.1', 'agate-excel>=0.2.2', 'agate-dbf>=0.2.0', 'agate-sql>=0.5.3', 'six>=1.6.1' ] if sys.version_info < (2, 7): install_requires.append('argparse>=1.2.1') install_requires.append('ordereddict>=1....
#!/usr/bin/env python import sys from setuptools import setup install_requires = [ 'agate>=1.6.1', 'agate-excel>=0.2.2', 'agate-dbf>=0.2.0', 'agate-sql>=0.5.3', 'six>=1.6.1' ] if sys.version_info < (2, 7): install_requires.append('argparse>=1.2.1') install_requires.append('ordereddict>=1....
Python
0
efadb71c0598f50d2f5966a0e0eeef33779d72fc
Bump version to 0.2.0-alpha5 (#36)
setup.py
setup.py
from setuptools import setup, find_packages setup(name='cartographer', version='0.2.0-alpha5', description='Python library for using JSON API, especially with Flask.', url='http://github.com/Patreon/cartographer', author='Patreon', author_email='david@patreon.com', license='Apache 2...
from setuptools import setup, find_packages setup(name='cartographer', version='0.2.0-alpha4', description='Python library for using JSON API, especially with Flask.', url='http://github.com/Patreon/cartographer', author='Patreon', author_email='david@patreon.com', license='Apache 2...
Python
0
5ba4c4b572d0ef569e536c1153dab4af40be8725
add conf to datafiles in setup
setup.py
setup.py
import os from setuptools import setup os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) exec(open('src/__init__.py').read()) setup( name='newrelicnfsmond', version=__version__, license='MIT License', description='NFS disk monitoring plugin for New Relic', author='Co...
import os from setuptools import setup os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) exec(open('src/__init__.py').read()) setup( name='newrelicnfsmond', version=__version__, license='MIT License', description='NFS disk monitoring plugin for New Relic', author='Co...
Python
0.000001
1ea0adf6afe6dcec83582de08d3d3aef200bdb99
Update deps
setup.py
setup.py
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
Python
0
5a4c9ec51061241ce091b1dd4759c0817b1db9ef
bump version to 0.1.10
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup from pip.req import parse_requirements from uuid import uuid1 # parse requirements reqs = parse_requirements("requirements/common.txt", session=uuid1()) # setup the project setup( name='cmsplugin-forms-builder', version='0.1.10', descript...
#!/usr/bin/env python from setuptools import find_packages, setup from pip.req import parse_requirements from uuid import uuid1 # parse requirements reqs = parse_requirements("requirements/common.txt", session=uuid1()) # setup the project setup( name='cmsplugin-forms-builder', version='0.1.9', descripti...
Python
0
2dd096cfab529f33d6d132795c7706d2bed92f68
bump version to v0.1.2
setup.py
setup.py
#!/usr/bin/python3 from codecs import open from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='gnpy', version='0.1.2', description='route ...
#!/usr/bin/python3 from codecs import open from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='gnpy', version='0.1.1', description='route ...
Python
0
1f793daf03f821f993b0920256652185f0445a78
Add more metadata info to the setup.py file.
setup.py
setup.py
from setuptools import setup setup( name="rotterdam", version="0.0.7", description=( "Simple distributed job queue via redis." ), author="William Glass", author_email="william.glass@gmail.com", url="http://github.com/wglass/rotterdam", packages=["rotterdam"], include_package...
from setuptools import setup setup( name="rotterdam", version="0.0.6", packages=["rotterdam"], include_package_data=True, package_data={ 'rotterdam': ['lua/*.lua'] }, scripts=[ "bin/rotterdam", "bin/rotterdamctl" ], install_requires=[ "cython==0.19.1"...
Python
0
1ebf0b470b3ef98954b774dd8a7190a4658d9833
Update setup.py to install poyo instead of ruamel.yaml and PyYAML
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup version = "1.3.0" if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') os.system('python setup.py bdist_wheel upload') sys.exit() if sys.argv[-1] == 'tag': os.system("git tag -a %s -m 'version %s'" % (version...
#!/usr/bin/env python import os import sys from setuptools import setup version = "1.3.0" if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') os.system('python setup.py bdist_wheel upload') sys.exit() if sys.argv[-1] == 'tag': os.system("git tag -a %s -m 'version %s'" % (version...
Python
0
47c347e8277c63d8e157d44084604408fb8cdcc7
Comment on git submodules
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- 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() requires = ['pyrax>=1.4.7', 'ipython==1.0.0a', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- 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() requires = ['pyrax>=1.4.7', 'ipython==1.0.0a', ...
Python
0
023c0f17652037c80c9513a8ab522373d7ccae9d
Add download_url to setup.py
setup.py
setup.py
#!/usr/bin/python from setuptools import setup, find_packages version = "0.3.1" with open('requirements.txt') as f: requirements = f.read().splitlines() setup( name = "docker-scripts", version = version, packages = find_packages(), url = 'https://github.com/goldmann/docker-scripts', download...
#!/usr/bin/python from setuptools import setup, find_packages with open('requirements.txt') as f: requirements = f.read().splitlines() setup( name = "docker-scripts", version = "0.3.1", packages = find_packages(), url='https://github.com/goldmann/docker-scripts', author='Marek Goldmann', ...
Python
0
b90ff6c5c1dcc36e9da1255c753e0ffbec73f15a
Update homepage.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 KenTyde # All rights reserved. # # This software is licensed as described in the file LICENSE, # which you should have received as part of this distribution. from setuptools import setup import os desc = open(os.path.join(os.path.dirname(__file__), ...
Python
0
6d84302e29ff9d77ff058567db3b82e0b00ebfa5
Remove unused arguments
setup.py
setup.py
# -*- coding:utf8 -*- import os import sys import codecs import re from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand dev_version = 1 here = os.path.abspath(os.path.dirname(__file__)) package_requires = [ 'venusian' ] test_requires = [ 'pytest', 'pytest-pep8...
# -*- coding:utf8 -*- import os import sys import codecs import re from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand dev_version = 1 here = os.path.abspath(os.path.dirname(__file__)) package_requires = [ 'venusian' ] test_requires = [ 'pytest', 'pytest-pep8...
Python
0.000003
cf9eaa922dfd0b853090d24a2a7571f0301925a1
bump version number
setup.py
setup.py
from setuptools import setup, find_packages version = '0.2.1' setup(name='Mako', version=version, description="A super-fast templating language that borrows the \ best ideas from the existing templating languages.", long_description="""\ Mako is a template library written in Python. It provides a f...
from setuptools import setup, find_packages version = '0.2.0' setup(name='Mako', version=version, description="A super-fast templating language that borrows the \ best ideas from the existing templating languages.", long_description="""\ Mako is a template library written in Python. It provides a f...
Python
0.000006
a013ab75809a630b88ee996486098b36977553f1
Bump version to 0.1.18.
setup.py
setup.py
from setuptools import setup with open('README.md') as f: long_description = f.read() short_description = "Simple tmux launcher that will take less than 2 minutes to learn." setup( name="smux.py", version='0.1.18', author="Henry Qin", author_email="root@hq6.me", description=short_description, long_d...
from setuptools import setup with open('README.md') as f: long_description = f.read() short_description = "Simple tmux launcher that will take less than 2 minutes to learn." setup( name="smux.py", version='0.1.17', author="Henry Qin", author_email="root@hq6.me", description=short_description, long_d...
Python
0
5d53bd04783edc49558262d24b3c0c5a5b5b8e76
Bump version to 1.5
setup.py
setup.py
from setuptools import setup __version__ = '1.5' __author__ = 'Eli Uriegas' retry_classifiers = [ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Topic :: Software Development :: Libraries',...
from setuptools import setup __version__ = '1.4' __author__ = 'Eli Uriegas' retry_classifiers = [ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Topic :: Software Development :: Libraries',...
Python
0
d61733eed29923ae1f7db6e38bba181e3581051f
Bump version number
setup.py
setup.py
#!/usr/bin/env python import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='whack', version='0.3.0', description='Utility for installing binaries from source with a single command', long_description=read("README...
#!/usr/bin/env python import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='whack', version='0.2.5', description='Utility for installing binaries from source with a single command', long_description=read("README...
Python
0.000002
0fdd77907ef09fbdae6647b177c9ba4cf8c3de9c
Bump version to 0.9.1
setup.py
setup.py
#!/usr/bin/env python # encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ import os.path import sys import setuptools REQUIREMENT_DIR = "requirements" needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv) pytest_runner = ["pytest-runner"] if needs_pytest else [] with...
#!/usr/bin/env python # encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ import os.path import sys import setuptools REQUIREMENT_DIR = "requirements" needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv) pytest_runner = ["pytest-runner"] if needs_pytest else [] with...
Python
0
0805b61f0d153ddf94a96297a52396bbb804522c
Bump version.
setup.py
setup.py
#!/usr/bin/env python # -*- coding: latin1 -*- def main(): from setuptools import setup import glob import os import os.path setup(name="synoptic", version="0.92.2", description="An AJAXy notes manager", long_description=""" Synoptic is "GMail for your notes...
#!/usr/bin/env python # -*- coding: latin1 -*- def main(): from setuptools import setup import glob import os import os.path setup(name="synoptic", version="0.92.1", description="An AJAXy notes manager", long_description=""" Synoptic is "GMail for your notes...
Python
0
39a42a6b013ecb57457559810e6a48c9e76fe474
update to setup.py
setup.py
setup.py
""" """ from setuptools import setup import trackopy with open('README.md') as r: readme = r.read() setup( name=trackopy.__title__, version=trackopy.__version__, url='https://github.com/ThaWeatherman/trackopy', license='MIT', author='Sean Beck', author_email='seanmckaybeck@gmail.com', ...
""" """ from setuptools import setup import trackopy with open('README.md') as r: readme = r.read() setup( name=trackopy.__title__, version=trackopy.__version__, url='https://github.com/ThaWeatherman/trackopy', license='MIT', author='Sean Beck', author_email='seanmckaybeck@gmail.com', ...
Python
0
b4b968af6bbd6c94e23ece02dbe33c1ee9475868
Fix setuptools v38.0+ compatbility
setup.py
setup.py
import re import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand INIT_FILE = 'bucketcache/__init__.py' init_data = open(INIT_FILE).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data)) AUTHOR_EMAIL = metadata['author'] VERSION = metadata['...
import re import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand INIT_FILE = 'bucketcache/__init__.py' init_data = open(INIT_FILE).read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data)) AUTHOR_EMAIL = metadata['author'] VERSION = metadata['...
Python
0
0f18b3ff63bf6183247e7bce25160547f8cfc21d
Change PyPI trove classifier for license terms.
setup.py
setup.py
import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT ...
import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT ...
Python
0
0b77331cba0b23b9d8498860dee5fdd3fe8baf93
Bump version
setup.py
setup.py
import sys import os.path import setuptools REQUIREMENT_DIR = "requirements" needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) pytest_runner = ['pytest-runner'] if needs_pytest else [] with open("README.rst") as fp: long_description = fp.read() with open(os.path.join("docs", "pages", "introdu...
import sys import os.path import setuptools REQUIREMENT_DIR = "requirements" needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv) pytest_runner = ['pytest-runner'] if needs_pytest else [] with open("README.rst") as fp: long_description = fp.read() with open(os.path.join("docs", "pages", "introdu...
Python
0
05a414230aad6bd6d7eefb82c5900228436ddd99
bump mpl version
setup.py
setup.py
#! /usr/bin/env python3 import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) def read(fname): with open(os.path.join(here, fname)) as f: return f.read() extra_files = { "WrightTools": [ "datasets", "datasets/*", "datasets/...
#! /usr/bin/env python3 import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) def read(fname): with open(os.path.join(here, fname)) as f: return f.read() extra_files = { "WrightTools": [ "datasets", "datasets/*", "datasets/...
Python
0
3c952110aef7f94766fe69e6ee2cb6ff3a0be15a
Bump version to 2.0.34
setup.py
setup.py
""" setup.py -- setup script for use of packages. """ from setuptools import setup, find_packages __version__ = '2.0.34' with open("README.md", "r") as fh: long_description = fh.read() # create entry points # see http://astropy.readthedocs.org/en/latest/development/scripts.html entry_points = { 'console_scri...
""" setup.py -- setup script for use of packages. """ from setuptools import setup, find_packages __version__ = '2.0.33' with open("README.md", "r") as fh: long_description = fh.read() # create entry points # see http://astropy.readthedocs.org/en/latest/development/scripts.html entry_points = { 'console_scri...
Python
0
6263930e5870c938b431967869e8b45f2c343d1b
bump version to 2.3.0 in setup
setup.py
setup.py
import os import os.path from setuptools import setup, find_packages def get_package_data(): package_data = [] for root, dirnames, filenames in os.walk('./eva_cttv_pipeline/evidence_string_generation/resources'): root = root.replace("./eva_cttv_pipeline/", "") for filename in filenames: ...
import os import os.path from setuptools import setup, find_packages def get_package_data(): package_data = [] for root, dirnames, filenames in os.walk('./eva_cttv_pipeline/evidence_string_generation/resources'): root = root.replace("./eva_cttv_pipeline/", "") for filename in filenames: ...
Python
0
782bfa8f716d60c402b944d381dd40fa23486544
Bump pypi version
setup.py
setup.py
from distutils.core import setup __version__ = '0.4' setup( name='etnawrapper', packages=['etnawrapper'], version=__version__, description='API wrapper for ETNA\' APIs', author='Theo Massard', author_email='massar_t@etna-alternance.net', url='https://github.com/massard-t/etnawrapper', ...
from distutils.core import setup __version__ = '0.3' setup( name='etnawrapper', packages=['etnawrapper'], version=__version__, description='API wrapper for ETNA\' APIs', author='Theo Massard', author_email='massar_t@etna-alternance.net', url='https://github.com/massard-t/etnawrapper', ...
Python
0
8fd65ff32118c453eb655bd88140f4a3fd81a4b0
fix py.typed path
setup.py
setup.py
""" ulid ~~~~ Universally Unique Lexicographically Sortable Identifier :copyright: (c) 2017 Andrew Hawker. :license: Apache 2.0, see LICENSE for more details. """ import ast import re try: from setuptools import setup except ImportError: from distutils.core import setup version_regex =...
""" ulid ~~~~ Universally Unique Lexicographically Sortable Identifier :copyright: (c) 2017 Andrew Hawker. :license: Apache 2.0, see LICENSE for more details. """ import ast import re try: from setuptools import setup except ImportError: from distutils.core import setup version_regex =...
Python
0.000006
10392ee8b764db2fbff114141992ec90a4efb8bc
Update django-ipware requirement
setup.py
setup.py
from setuptools import find_packages, setup NAME = "pinax-stripe" DESCRIPTION = "a payments Django app for Stripe" AUTHOR = "Pinax Team" AUTHOR_EMAIL = "team@pinaxproject.com" URL = "https://github.com/pinax/pinax-stripe" LONG_DESCRIPTION = """ ============ Pinax Stripe ============ .. image:: http://slack.pinaxproj...
from setuptools import find_packages, setup NAME = "pinax-stripe" DESCRIPTION = "a payments Django app for Stripe" AUTHOR = "Pinax Team" AUTHOR_EMAIL = "team@pinaxproject.com" URL = "https://github.com/pinax/pinax-stripe" LONG_DESCRIPTION = """ ============ Pinax Stripe ============ .. image:: http://slack.pinaxproj...
Python
0
c55c729daf3be4e5011f79c23a351a224bda7a5b
Fix gotcha in 'setup.py publish'
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import re from setuptools import setup import sys def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = open(os.path.join(package, '__init__.py')).read()...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import re from setuptools import setup import sys def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ init_py = open(os.path.join(package, '__init__.py')).read()...
Python
0
4b7e03e203148be8a2068c6474a08b847f26b670
Make setup.py use new README extension
setup.py
setup.py
# -*- coding: utf-8 -*- #$HeadURL$ #$LastChangedDate$ #$LastChangedRevision$ import os from setuptools import setup, find_packages version = '0.93' def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() long_description = ( read('LICENSE.txt') + '\n' + 'Detailed Docu...
# -*- coding: utf-8 -*- #$HeadURL$ #$LastChangedDate$ #$LastChangedRevision$ import os from setuptools import setup, find_packages version = '0.93' def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() long_description = ( read('LICENSE.txt') + '\n' + 'Detailed Docu...
Python
0.000001
853a3f689850f906871ecca0d5db72e51e93d367
Increment patch version number
setup.py
setup.py
import sys import subprocess import setuptools from setuptools.command.build_ext import build_ext from setuptools.command.test import test class TestCommand(test): description = 'run tests, linters and create a coverage report' user_options = [] def run(self): super().run() self._call(['...
import sys import subprocess import setuptools from setuptools.command.build_ext import build_ext from setuptools.command.test import test class TestCommand(test): description = 'run tests, linters and create a coverage report' user_options = [] def run(self): super().run() self._call(['...
Python
0.000002
288c01a3e653103f2fd1310aa9dd227afda2a7f4
Read version from infinity.py in setup.py
setup.py
setup.py
""" infinity -------- All-in-one infinity value for Python. Can be compared to any object. """ from setuptools import setup, find_packages import os import re import sys HERE = os.path.dirname(os.path.abspath(__file__)) PY3 = sys.version_info[0] == 3 def get_version(): filename = os.path.join(HERE, 'infinity.p...
""" infinity -------- All-in-one infinity value for Python. Can be compared to any object. """ from setuptools import setup, find_packages import sys PY3 = sys.version_info[0] == 3 extras_require = { 'test': [ 'pytest>=2.2.3', 'Pygments>=1.2', 'six>=1.4.1' ], } setup( name='in...
Python
0
44dedbe4152f0e6fd308783672f9e277929a7bae
bump version
setup.py
setup.py
from setuptools import setup, find_packages setup(name='webdiff', version='0.6.2', description='Two-column web-based git difftool', author='Dan Vanderkam', author_email='danvdk@gmail.com', url='https://github.com/danvk/webdiff/', entry_points={ 'console_scripts': [ ...
from setuptools import setup, find_packages setup(name='webdiff', version='0.6.1', description='Two-column web-based git difftool', author='Dan Vanderkam', author_email='danvdk@gmail.com', url='https://github.com/danvk/webdiff/', entry_points={ 'console_scripts': [ ...
Python
0
e9b3b2a067e31f73596cff0140ba27b6a5745b1e
fix setup
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 - # # Copyright (c) 2008 Benoit Chesneau <benoitc@e-engura.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies...
#!/usr/bin/env python # -*- coding: utf-8 - # # Copyright (c) 2008 Benoit Chesneau <benoitc@e-engura.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies...
Python
0.000001
d366be9d552209e1e5e9c7ac789d2dc832b9f39a
Update setup file.
setup.py
setup.py
from distutils.core import setup setup( name='pydarkstar', version='0.1', packages=['pydarkstar'], url='git@github.com:AdamGagorik/pydarkstar.git', license='MIT', author='Adam Gagorik', author_email='adam.gagorik@gmail.com', description='A python module for interacting with a darkstar s...
from distutils.core import setup setup( name='pydarkstar', version='0.1', packages=['tests', 'pydarkstar'], url='git@github.com:AdamGagorik/pydarkstar.git', license='MIT', author='Adam Gagorik', author_email='adam.gagorik@gmail.com', description='A python module for interacting with a d...
Python
0
6cdc906b3cb6d49eb5a1994c9e30549106f1ad78
fix minimal version
setup.py
setup.py
#!/usr/bin/python from setuptools import setup from setuptools.command.test import test as TestCommand import sys class Tox(TestCommand): user_options = [('tox-args=', 'a', "Arguments to pass to tox")] def initialize_options(self): TestCommand.initialize_options(self) self.tox_args = None ...
#!/usr/bin/python from setuptools import setup from setuptools.command.test import test as TestCommand import sys class Tox(TestCommand): user_options = [('tox-args=', 'a', "Arguments to pass to tox")] def initialize_options(self): TestCommand.initialize_options(self) self.tox_args = None ...
Python
0.000013
1641243682f080257b7f79b35503985d3d72aa44
Fix requirement for diff tool
setup.py
setup.py
from setuptools import setup setup(name='osm_hall_monitor', version='0.2', description='Passive changeset monitoring for OpenStreetMap.', url='http://github.com/ethan-nelson/osm_hall_monitor', author='Ethan Nelson', author_email='ethan-nelson@users.noreply.github.com', install_requi...
from setuptools import setup setup(name='osm_hall_monitor', version='0.2', description='Passive changeset monitoring for OpenStreetMap.', url='http://github.com/ethan-nelson/osm_hall_monitor', author='Ethan Nelson', author_email='ethan-nelson@users.noreply.github.com', install_requi...
Python
0
c0155f59f52696e178def437f712f22c610c333a
Add classifiers for Python 3.3 and PyPy
setup.py
setup.py
import io from setuptools import setup, find_packages long_description = '\n'.join(( io.open('README.rst', encoding='utf-8').read(), io.open('CHANGES.txt', encoding='utf-8').read() )) setup( name='morepath', version='0.15.dev0', description="A micro web-framework with superpowers", long_descri...
import io from setuptools import setup, find_packages long_description = '\n'.join(( io.open('README.rst', encoding='utf-8').read(), io.open('CHANGES.txt', encoding='utf-8').read() )) setup( name='morepath', version='0.15.dev0', description="A micro web-framework with superpowers", long_descri...
Python
0.999386
97f03ffd2a309340bf41d381b35703272be600cc
Bump version.
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'name': 'django-email-analytics', 'version': '0.4', 'author': 'Jess Johnson', 'author_email': 'jess@grokcode.com', 'packages': ['emailanalytics'], 'scripts': [], 'url': 'https://github....
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'name': 'django-email-analytics', 'version': '0.3', 'author': 'Jess Johnson', 'author_email': 'jess@grokcode.com', 'packages': ['emailanalytics'], 'scripts': [], 'url': 'https://github....
Python
0
024878fc913097364123d28a99ab7cb5501b0af5
Set permission mask to allow read/exec for all users
setup.py
setup.py
#!/usr/bin/env python import os import subprocess from distutils.core import setup requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()] description = 'Download videos from Udemy for personal offline use' try: subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o...
#!/usr/bin/env python import subprocess from distutils.core import setup requirements = [pkg.split('=')[0] for pkg in open('requirements.txt').readlines()] description = 'Download videos from Udemy for personal offline use' try: subprocess.call(["pandoc", "README.md", "-f", "markdown", "-t", "rst", "-o", "README...
Python
0
a1a0de9e1f290161d83165f2983335844a5c17f9
fix tests_require
setup.py
setup.py
#!/usr/bin/env python #-*-coding:utf-8-*- from setuptools import setup, find_packages #+BEGIN_DELETE import os.path # anditional to make a tar.gz file import tarfile with tarfile.open("skeleton.tar.gz", "w:gz") as tar: for name in ["setup.py", "LICENSE", "README.md", "requirements.txt", "pyskele...
#!/usr/bin/env python #-*-coding:utf-8-*- from setuptools import setup, find_packages #+BEGIN_DELETE import os.path # anditional to make a tar.gz file import tarfile with tarfile.open("skeleton.tar.gz", "w:gz") as tar: for name in ["setup.py", "LICENSE", "README.md", "requirements.txt", "pyskele...
Python
0.000001
a6d27ef03438133e7dd38f4a26208dc7d3904f6e
Fix url in setup.py file.
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup, find_packages try: from sphinx.setup_command import BuildDoc cmdclass = {'build_sphinx': BuildDoc} except ImportError: print "Sphinx not installed - needed to build documentation" cmdclass = {} # Figure out the version; this could be done b...
#!/usr/bin/env python import os from setuptools import setup, find_packages try: from sphinx.setup_command import BuildDoc cmdclass = {'build_sphinx': BuildDoc} except ImportError: print "Sphinx not installed - needed to build documentation" cmdclass = {} # Figure out the version; this could be done b...
Python
0
c18bbf109a19eb0a5ee65be61030a1c3dd54a6d4
Bump version
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name='python-bittrex', version='0.2.2', url="https://github.com/ericsomdahl/python-bittrex", packages=['bittrex'], modules=['bittrex'], install_requires=['requests'], description='Python bindings for bittrex API.', aut...
#!/usr/bin/env python from setuptools import setup setup(name='python-bittrex', version='0.2.1', url="https://github.com/ericsomdahl/python-bittrex", packages=['bittrex'], modules=['bittrex'], install_requires=['requests'], description='Python bindings for bittrex API.', aut...
Python
0
b3f4c5211d33d8242b863f812421b37b22cd91cc
update deps, setup.py
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys from subprocess import call from setuptools import setup, find_packages from setuptools.command.install import install as _install version = '0.3.1' def _post_install(dir): call([sys.executable, 'setup_post.py'], cwd=os.path.join(dir, 'metadoc...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys from subprocess import call from setuptools import setup, find_packages from setuptools.command.install import install as _install version = '0.2.21' def _post_install(dir): call([sys.executable, 'setup_post.py'], cwd=os.path.join(dir, 'metado...
Python
0
8b64aec8d6fe9b27e1b95bc61488eb03216f0077
fix scikit-image dependency
setup.py
setup.py
#!/usr/bin/env python #=============================================================================== # Copyright 2017 Geoscience Australia # # 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...
#!/usr/bin/env python #=============================================================================== # Copyright 2017 Geoscience Australia # # 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...
Python
0.000003
8978c1b49f43465bc3cd51b3ee51350d44ed9ae7
Bump tqdm from 4.38.0 to 4.39.0
setup.py
setup.py
#!/usr/bin/env python3 from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='ogn-python', versio...
#!/usr/bin/env python3 from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='ogn-python', versio...
Python
0.000001
05295bfa9edf99dfe66d21025088e00ae6152bfa
bump version to 0.3.5
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found," "could not convert markdown README to RST") read_md = lambda f...
try: from setuptools import setup except ImportError: from distutils.core import setup try: from pypandoc import convert read_md = lambda f: convert(f, 'rst') except ImportError: print("warning: pypandoc module not found," "could not convert markdown README to RST") read_md = lambda f...
Python
0.000001
57b17e6edcbe1e5400e3ede82292c1cd1c38f4e4
Bump version
setup.py
setup.py
from setuptools import setup, find_packages from pip.req import parse_requirements def reqs_from_requirements_file(): reqs = parse_requirements('requirements.txt', session='hack') return [str(r.req) for r in reqs] setup( name="demosys-py", version="0.1.2", description="Modern OpenGL 4.1+ Prototy...
from setuptools import setup, find_packages from pip.req import parse_requirements def reqs_from_requirements_file(): reqs = parse_requirements('requirements.txt', session='hack') return [str(r.req) for r in reqs] setup( name="demosys-py", version="0.1.1", description="Modern OpenGL 4.1+ Prototy...
Python
0
2cc2bf3665246f1876e9c25911baf6e418a356db
Add include_package_data=True to setup
setup.py
setup.py
import os import sys from pathlib import Path from shutil import rmtree from setuptools import setup, find_packages, Command from simple_model.__version__ import __version__ here = Path(__file__).absolute().parent with open(here / 'README.rst') as f: readme = '\n' + f.read() class UploadCommand(Command): ""...
import os import sys from pathlib import Path from shutil import rmtree from setuptools import setup, find_packages, Command from simple_model.__version__ import __version__ here = Path(__file__).absolute().parent with open(here / 'README.rst') as f: readme = '\n' + f.read() class UploadCommand(Command): ""...
Python
0.000006
e846fff0060a431187e607fa0852b00265aff709
fix bug #141
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """QTPyLib: Quantitative Trading Python Library (https://github.com/ranaroussi/qtpylib) Simple, event-driven algorithmic trading system written in Python 3, that supports backtesting and live trading using Interactive Brokers for market data and order execution. """ from ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """QTPyLib: Quantitative Trading Python Library (https://github.com/ranaroussi/qtpylib) Simple, event-driven algorithmic trading system written in Python 3, that supports backtesting and live trading using Interactive Brokers for market data and order execution. """ from ...
Python
0
990d1a364dcfd62e700daba9945c35f96fbdfa5b
Order the main extensions list by name.
sweettooth/extensions/urls.py
sweettooth/extensions/urls.py
from django.conf.urls.defaults import patterns, include, url from django.views.generic.simple import direct_to_template from django.views.generic.list_detail import object_list from extensions import views, models upload_patterns = patterns('', url(r'^$', views.upload_file, dict(pk=None), name='extensions-upload...
from django.conf.urls.defaults import patterns, include, url from django.views.generic.simple import direct_to_template from django.views.generic.list_detail import object_list from extensions import views, models upload_patterns = patterns('', url(r'^$', views.upload_file, dict(pk=None), name='extensions-upload...
Python
0
73d89e5a6f23fd3292b4057e56649d6c20fc0483
replace couch_db reference
corehq/apps/change_feed/pillow.py
corehq/apps/change_feed/pillow.py
import json from kafka import KeyedProducer from kafka.common import KafkaUnavailableError from casexml.apps.case.models import CommCareCase from corehq.apps.change_feed import data_sources from corehq.apps.change_feed.connection import get_kafka_client from corehq.apps.change_feed.models import ChangeMeta from corehq....
import json from kafka import KeyedProducer from kafka.common import KafkaUnavailableError from casexml.apps.case.models import CommCareCase from corehq.apps.change_feed import data_sources from corehq.apps.change_feed.connection import get_kafka_client from corehq.apps.change_feed.models import ChangeMeta from corehq....
Python
0.000001
b5a4708009e78c5727f2a54c54056df21983e958
Fix SlackOAuth
slack.py
slack.py
import os import sys import logging from werkzeug.contrib.fixers import ProxyFix from werkzeug.urls import url_encode, url_decode import flask from flask import Flask, redirect, url_for from flask_dance.consumer import OAuth2ConsumerBlueprint from raven.contrib.flask import Sentry from requests.auth import AuthBase fro...
import os import sys import logging from werkzeug.contrib.fixers import ProxyFix import flask from flask import Flask, redirect, url_for from flask_dance.consumer import OAuth2ConsumerBlueprint from raven.contrib.flask import Sentry from requests.auth import AuthBase log = logging.getLogger(__name__) log.setLevel(logg...
Python
0.999411
e145d8012efbfb373dfe566845f3957777a3da5a
Clean up an unnecessary variable.
sqltd.py
sqltd.py
#!/usr/bin/env python import sqlite3 import sys import re def runPage(db, html): def parseStrings(s, query=[False]): output = '' if s == '<sql>': query[0] = True elif s == '</sql>': query[0] = False ...
#!/usr/bin/env python import sqlite3 import sys import re def runPage(db, html): def parseStrings(s, query=[False]): output = '' if s == '<sql>': query[0] = True elif s == '</sql>': query[0] = False ...
Python
0.000031
9a68c2f1af56169215cf473b1f588df77fb1f9fe
Remove wait timeouts
MTGO-scry-bug-test.sikuli/MTGO-scry-bug-test.py
MTGO-scry-bug-test.sikuli/MTGO-scry-bug-test.py
import os import shutil import tempfile import time REGION_PLAY = Region(7,965,334,57) REGION_MULLIGAN_KEEP = Region(0,13,175,154) REGION_TEMPORARY_ZONE = Region(1150,195,130,37) REGION_PUT_ON_THE_BOTTOM_OF_YOUR_LIBRARY = Region(921,181,459,166) REGIO...
import os import shutil import tempfile import time REGION_PLAY = Region(7,965,334,57) REGION_MULLIGAN_KEEP = Region(0,13,175,154) REGION_TEMPORARY_ZONE = Region(1150,195,130,37) REGION_PUT_ON_THE_BOTTOM_OF_YOUR_LIBRARY = Region(921,181,459,166) REGIO...
Python
0.000023
49e9fbbd00a7732faa716e5e930ec63dbaa18983
fix gumbel unit test
test/lib/test_distribution.py
test/lib/test_distribution.py
from flaky import flaky from slm_lab.lib import distribution import pytest import torch @pytest.mark.parametrize('pdparam_type', [ 'probs', 'logits' ]) def test_argmax(pdparam_type): pdparam = torch.tensor([1.1, 10.0, 2.1]) # test both probs or logits pd = distribution.Argmax(**{pdparam_type: pdparam}...
from flaky import flaky from slm_lab.lib import distribution import pytest import torch @pytest.mark.parametrize('pdparam_type', [ 'probs', 'logits' ]) def test_argmax(pdparam_type): pdparam = torch.tensor([1.1, 10.0, 2.1]) # test both probs or logits pd = distribution.Argmax(**{pdparam_type: pdparam}...
Python
0
f27e08b0dcace5b9f49c5b2a211347a2f50f8254
Use tags or direct url
stats.py
stats.py
from bs4 import BeautifulSoup import requests def statsRoyale(tag): if not tag.find('/') == -1: tag = tag[::-1] pos = tag.find('/') tag = tag[:pos] tag = tag[::-1] link = 'http://statsroyale.com/profile/' + tag response = (requests.get(link)).text soup = BeautifulSoup(response, 'html.parser') descriptio...
from bs4 import BeautifulSoup import requests def statsRoyale(tag): link = 'http://statsroyale.com/profile/' + tag response = (requests.get(link)).text soup = BeautifulSoup(response, 'html.parser') stats = {} content = soup.find_all('div', {'class':'content'}) stats['clan'] = content[0].get_text() if stats['cl...
Python
0
7fae0ec95a5d5cacc36ecd650cb886d2d83ad1ea
Replace Unwrapped with Value on proto method names (#2283)
synth.py
synth.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...
Python
0
f8ae46f22a9b5b1fc8215ac26aed6dfddf25c224
set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#320)
synth.py
synth.py
import synthtool as s import synthtool.gcp as gcp import logging import subprocess logging.basicConfig(level=logging.DEBUG) AUTOSYNTH_MULTIPLE_COMMITS = True # Run the gapic generator gapic = gcp.GAPICMicrogenerator() version = 'v1' library = gapic.typescript_library( 'container', generator_args={ ...
import synthtool as s import synthtool.gcp as gcp import logging import subprocess logging.basicConfig(level=logging.DEBUG) # Run the gapic generator gapic = gcp.GAPICMicrogenerator() version = 'v1' library = gapic.typescript_library( 'container', generator_args={ "grpc-service-config": f"google/c...
Python
0
d54d202970610a59cb7fd60e51483c6e0db93d60
update synth scripts to document/utilize apiEndpoint instead of serviceAddress option (#2165)
synth.py
synth.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...
Python
0
30d108b3a206d938ef67c112bc6c953a12c606af
Allow specifying custom host and port when starting app
tasks.py
tasks.py
"""Task functions for use with Invoke.""" from invoke import task @task def clean(context): cmd = '$(npm bin)/gulp clean' context.run(cmd) @task def requirements(context): steps = [ 'pip install -r requirements.txt', 'npm install', '$(npm bin)/bower install', ] cmd = ' &...
"""Task functions for use with Invoke.""" from invoke import task @task def clean(context): cmd = '$(npm bin)/gulp clean' context.run(cmd) @task def requirements(context): steps = [ 'pip install -r requirements.txt', 'npm install', '$(npm bin)/bower install', ] cmd = ' &...
Python
0
c05b06577785bdf34f1fcd051ecf6d4398d2f77e
Add new release task w/ API doc prebuilding
tasks.py
tasks.py
from os.path import join from shutil import rmtree, move from invoke import Collection, ctask as task from invocations import docs as _docs from invocations.packaging import publish d = 'sites' # Usage doc/API site (published as docs.paramiko.org) docs_path = join(d, 'docs') docs_build = join(docs_path, '_build') d...
from os.path import join from invoke import Collection, ctask as task from invocations import docs as _docs d = 'sites' # Usage doc/API site (published as docs.paramiko.org) path = join(d, 'docs') docs = Collection.from_module(_docs, name='docs', config={ 'sphinx.source': path, 'sphinx.target': join(path, '...
Python
0.000002
b7e42d4a231cc1c34e193e2bd719c134f7f29b0a
Use a minimum of 1% completness to not ship empty translations.
tasks.py
tasks.py
import os import os.path import sys from invoke import run, task @task def clean(): run('git clean -Xfd') @task def test(country='all'): print('Python version: ' + sys.version) test_cmd = 'coverage run `which django-admin.py` test --settings=tests.settings' flake_cmd = 'flake8 --ignore=W801,E128,E50...
import os import os.path import sys from invoke import run, task @task def clean(): run('git clean -Xfd') @task def test(country='all'): print('Python version: ' + sys.version) test_cmd = 'coverage run `which django-admin.py` test --settings=tests.settings' flake_cmd = 'flake8 --ignore=W801,E128,E50...
Python
0
f62626799eddfea04ffad5005de09305a18f287d
Add linux dependencies task.
tasks.py
tasks.py
from invoke import Collection, task, run from okcupyd import tasks ns = Collection() ns.add_collection(tasks, name='okcupyd') @ns.add_task @task(default=True) def install(): run("python setup.py install") @ns.add_task @task def pypi(): run("python setup.py sdist upload -r pypi") @ns.add_task @task(alia...
from invoke import Collection, task, run from okcupyd import tasks ns = Collection() ns.add_collection(tasks, name='okcupyd') @ns.add_task @task(default=True) def install(): run("python setup.py install") @ns.add_task @task def pypi(): run("python setup.py sdist upload -r pypi") @ns.add_task @task(alia...
Python
0.000002
61deb461f2a36413cbb6108e7e0e86fc81f44891
Update to work with invoke >= 0.13
tasks.py
tasks.py
import sys from invoke import run, task @task def docs(ctx, watch=False, warn=False): if watch: return watcher(docs) run('make -C docs/ html', warn=warn) @task def test(ctx, path=None, coverage=False, watch=False, warn=False): if watch: return watcher(test, path=path, coverage=coverage)...
import sys from invoke import run, task @task def docs(watch=False, warn=False): if watch: return watcher(docs) run('make -C docs/ html', warn=warn) @task def test(path=None, coverage=False, watch=False, warn=False): if watch: return watcher(test, path=path, coverage=coverage) path ...
Python
0
45f098b3664a11ef51cd66a11773bab923b02c91
Make all exceptions inherit from ValueError
stdnum/exceptions.py
stdnum/exceptions.py
# exceptions.py - collection of stdnum exceptions # coding: utf-8 # # Copyright (C) 2013-2022 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the ...
# exceptions.py - collection of stdnum exceptions # coding: utf-8 # # Copyright (C) 2013 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the Licen...
Python
0
ad9f0c488bf761fe83714377fce06ed93d2ec5f3
Update navigation controller
controller/navigation.py
controller/navigation.py
import asyncio class DriveMotorControl: def __init__(self, left=0, right=1): self.loop = asyncio.get_event_loop() self._left = open("/var/run/motor{}".format(left),"w") self._right = open("/var/run/motor{}".format(right),"w") self.__left = 0 self.__right = 0 self.loo...
import asyncio class ControlProtocol: def connection_made(transport): pass def connection_lost(exc): pass class DriveMotorControl: def __init__(self, left=0, right=1): self.loop = asyncio.get_event_loop() left = open("/var/run/motor{}".format(left),"w") right = ope...
Python
0.000001
14b607e89a465693e88da4f936fc477a718d9a3e
Fix typo
metrology/stats/sample.py
metrology/stats/sample.py
import math import random import sys import heapq from time import time from atomic import Atomic from threading import RLock from metrology.stats.snapshot import Snapshot class UniformSample(object): def __init__(self, reservoir_size): self.counter = Atomic(0) self.values = [0] * reservoir_size...
import math import random import sys import heapq from time import time from atomic import Atomic from threading import RLock from metrology.stats.snapshot import Snapshot class UniformSample(object): def __init__(self, reservoir_size): self.counter = Atomic(0) self.values = [0] * reservoir_size...
Python
0.999999
055573c622d03d02077f49ee3146db300b92813c
Add guard for empty selection when changing images
microscopium/bokeh_app.py
microscopium/bokeh_app.py
import os import numpy as np import click from bokeh.server.server import Server from bokeh.application import Application from bokeh.application.handlers.function import FunctionHandler from bokeh.plotting import figure, ColumnDataSource from bokeh.layouts import row from bokeh.models.tools import TapTool, PanTool fro...
import os import numpy as np import click from bokeh.server.server import Server from bokeh.application import Application from bokeh.application.handlers.function import FunctionHandler from bokeh.plotting import figure, ColumnDataSource from bokeh.layouts import row from bokeh.models.tools import TapTool, PanTool fro...
Python
0
63a2deeb5602eb9834232a592bac16501bb8c8de
Fix program name when using __main__
cookiecutter/__main__.py
cookiecutter/__main__.py
"""Allow cookiecutter to be executable through `python -m cookiecutter`.""" from __future__ import absolute_import from .cli import main if __name__ == "__main__": # pragma: no cover main(prog_name="cookiecutter")
"""Allow cookiecutter to be executable through `python -m cookiecutter`.""" from __future__ import absolute_import from .cli import main if __name__ == "__main__": main()
Python
0.000026
f4ba2cba93222b4dd494caf487cdd6be4309e41a
Update labels for application form
studygroups/forms.py
studygroups/forms.py
from django import forms from studygroups.models import StudyGroupSignup, Application from localflavor.us.forms import USPhoneNumberField class ApplicationForm(forms.ModelForm): mobile = USPhoneNumberField(required=False) class Meta: model = Application labels = { 'name': 'Please t...
from django import forms from studygroups.models import StudyGroupSignup, Application from localflavor.us.forms import USPhoneNumberField class ApplicationForm(forms.ModelForm): mobile = USPhoneNumberField(required=False) class Meta: model = Application labels = { 'name': 'Please t...
Python
0
95686be0b45e350791c85c757acd450623b14d60
test OK
tests.py
tests.py
import pdb import logging import unittest from yahoo_oauth import OAuth2, OAuth1 from fantasy_sport import FantasySport from fantasy_sport.utils import pretty_json, pretty_xml logging.getLogger('yahoo_oauth').setLevel(logging.WARNING) class TestFantasySport(unittest.TestCase): def setUp(self,): oauth =...
import pdb import logging import unittest from yahoo_oauth import OAuth2, OAuth1 from fantasy_sport import FantasySport from fantasy_sport.utils import pretty_json, pretty_xml logging.getLogger('yahoo_oauth').setLevel(logging.WARNING) class TestFantasySport(unittest.TestCase): def setUp(self,): oauth =...
Python
0.999767
7d0cf5548fc8efcce8743ab6308425e5f97e8945
Add support for rollback() operation
sunburnt/sunburnt.py
sunburnt/sunburnt.py
from __future__ import absolute_import import cgi from itertools import islice import urllib import httplib2 from .schema import SolrSchema, SolrError from .search import SolrSearch h = httplib2.Http(".cache") class SolrConnection(object): def __init__(self, url, h=h): self.url = url.rstrip("/") + "/"...
from __future__ import absolute_import import cgi from itertools import islice import urllib import httplib2 from .schema import SolrSchema, SolrError from .search import SolrSearch h = httplib2.Http(".cache") class SolrConnection(object): def __init__(self, url, h=h): self.url = url.rstrip("/") + "/"...
Python
0.000001
90bbb6604fdbb16c5a9d4390a429f2ce1c31035c
Add more tests, pend all dysfunctional tests.
tests/acceptance/test_rate.py
tests/acceptance/test_rate.py
import re from pytest import fixture from pytest import mark from adhocracy_core.testing import annotator_login from .shared import wait from .shared import get_column_listing from .shared import get_list_element from .shared import get_listing_create_form from .shared import login_god from .test_comment import creat...
from pytest import fixture from pytest import mark from adhocracy_core.testing import annotator_login from .shared import wait from .shared import get_column_listing from .shared import get_list_element from .shared import get_listing_create_form from .shared import login_god from .test_comment import create_comment ...
Python
0