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 |
|---|---|---|---|---|---|---|---|
448d1fc24dd92e6d9f063a1b679db2d5be2f7106 | Simplify n - 1 | lc0293_flip_game.py | lc0293_flip_game.py | """Leetcode 293. Flip Game (Premium)
Easy
URL: https://leetcode.com/problems/flip-game
You are playing the following Flip Game with your friend: Given a string that
contains only these two characters: + and -, you and your friend take turns to
flip two consecutive "++" into "--". The game ends when a person can no lo... | """Leetcode 293. Flip Game (Premium)
Easy
URL: https://leetcode.com/problems/flip-game
You are playing the following Flip Game with your friend: Given a string that
contains only these two characters: + and -, you and your friend take turns to
flip two consecutive "++" into "--". The game ends when a person can no lo... | Python | 0.999999 |
4e9444f76ba36ed58b13843017cb2d67a6ebd2a7 | create version 2.4.8 | setup.py | setup.py | from setuptools import setup
setup(name='DukeDSClient',
version='2.4.8',
description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.',
url='https://github.com/Duke-GCB/DukeDSClient',
keywords='duke dds dukedataservice',
author='John Bradley',
... | from setuptools import setup
setup(name='DukeDSClient',
version='2.4.7',
description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.',
url='https://github.com/Duke-GCB/DukeDSClient',
keywords='duke dds dukedataservice',
author='John Bradley',
... | Python | 0.000001 |
ac85d822f1c2656ee2c83550e613b52d97b8f2da | update message for image check gate when base id is out of date Fixes #50 | anchore/anchore-modules/gates/11_check_image.py | anchore/anchore-modules/gates/11_check_image.py | #!/usr/bin/env python
import sys
import os
import json
import re
import anchore
from anchore import anchore_utils
gate_name = "IMAGECHECK"
triggers = {
'BASEOUTOFDATE':
{
'description':'triggers if the image\'s base image has been updated since the image was built/analyzed',
'params':'None'
... | #!/usr/bin/env python
import sys
import os
import json
import re
import anchore
from anchore import anchore_utils
gate_name = "IMAGECHECK"
triggers = {
'BASEOUTOFDATE':
{
'description':'triggers if the image\'s base image has been updated since the image was built/analyzed',
'params':'None'
... | Python | 0 |
7f03e3ee668f272a68fd326d642966eb876609d7 | Fix a debug email error. | satchmo/apps/satchmo_store/mail.py | satchmo/apps/satchmo_store/mail.py | from django.conf import settings
from django.template import loader, Context
from satchmo_store.shop.models import Config
from socket import error as SocketError
import logging
log = logging.getLogger('satchmo_store.mail')
if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
else:
from django.... | from django.conf import settings
from django.template import loader, Context
from satchmo_store.shop.models import Config
from socket import error as SocketError
import logging
log = logging.getLogger('satchmo_store.mail')
if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
else:
from django.... | Python | 0.000085 |
602fb71ac76ad921e780490ec806915cd5206d0a | handle exceptions better and fix Turkey URL | leaguewinners/dl.py | leaguewinners/dl.py | import csv
import re
import sys
import time
import traceback
import requests
from bs4 import BeautifulSoup
teams = []
for country, urlpart in [('Germany', 'germany/bundesliga/german-bundesliga'),
('Spain', 'spain/la-liga-primera/spanish-la-liga-primera'),
('England', ... | import re, requests, csv, time
from bs4 import BeautifulSoup
teams = []
for country, urlpart in [('Germany', 'germany/bundesliga/german-bundesliga'),
('Spain', 'spain/la-liga-primera/spanish-la-liga-primera'),
('England', 'english/premier-league'),
... | Python | 0 |
d146e397b0240d1a22e2f53d3c538a90180a122d | remove wxPython from install_requires, as setuptools can't find/install it | setup.py | setup.py | from setuptools import setup, find_packages
import os
kws = {}
if not int(os.getenv( 'DISABLE_INSTALL_REQUIRES','0' )):
kws['install_requires'] = [
'numpy>=1.0.4',
'PIL>=1.1.6',
'motmot.imops',
]
setup(name='motmot.wxvideo',
description='wx viewer of image sequences',
l... | from setuptools import setup, find_packages
import os
kws = {}
if not int(os.getenv( 'DISABLE_INSTALL_REQUIRES','0' )):
kws['install_requires'] = [
'numpy>=1.0.4',
'PIL>=1.1.6',
'motmot.imops',
'wxPython>=2.8'
]
setup(name='motmot.wxvideo',
description='wx viewer of i... | Python | 0 |
51de92a1402739e4a6a703ce1fc7e2f2ade308f3 | add information to pypi page (#21) | setup.py | setup.py | """Setup for vt_graph_api module."""
import re
import sys
import setuptools
with open("./vt_graph_api/version.py") as f:
version = (
re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'",
f.read()).groups()[0])
# check python version >2.7.x and >=3.2.x
installable = True
if sys.ver... | """Setup for vt_graph_api module."""
import re
import sys
import setuptools
with open("./vt_graph_api/version.py") as f:
version = (
re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'",
f.read()).groups()[0])
# check python version >2.7.x and >=3.2.x
installable = True
if sys.ver... | Python | 0 |
d36e17e3823af74b5a6f75191f141ec98fdf281f | Fix failing reconnects; add quit IRC command | plugins/irc/irc.py | plugins/irc/irc.py | from p1tr.helpers import clean_string
from p1tr.plugin import *
@meta_plugin
class Irc(Plugin):
"""Provides commands for basic IRC operations."""
@command
@require_master
def nick(self, server, channel, nick, params):
"""Usage: nick NEW_NICKNAME - changes the bot's nickname."""
if len(... | from p1tr.helpers import clean_string
from p1tr.plugin import *
@meta_plugin
class Irc(Plugin):
"""Provides commands for basic IRC operations."""
@command
@require_master
def nick(self, server, channel, nick, params):
"""Usage: nick NEW_NICKNAME - changes the bot's nickname."""
if len(... | Python | 0.000001 |
65aa46e11fc815490d5c76b803645e3d8f6c49c4 | bump version to 0.1.0 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import io
import sys
from shutil import rmtree
from setuptools import setup, Command
readme_file = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
with io.open(readme_file, encoding='utf-8') as f:
long_descri... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import io
import sys
from shutil import rmtree
from setuptools import setup, Command
readme_file = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
with io.open(readme_file, encoding='utf-8') as f:
long_descri... | Python | 0.000001 |
c831f6bee344b67171900ca7e50bf6fc85ea9345 | Remove outdated qualifier in setup.py | setup.py | setup.py | import os
from setuptools import setup
from explorer import __version__
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | import os
from setuptools import setup
from explorer import __version__
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
... | Python | 0.000002 |
d8e0109e4c697f4a920ff4993c491eb5b0d38d55 | Update pylint dependency to 1.9.1 | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2018 OneLogin, Inc.
# MIT License
from setuptools import setup
setup(
name='python-saml',
version='2.4.1',
description='Onelogin Python Toolkit. Add SAML support to your Python software using this library',
classifiers=[
'De... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2018 OneLogin, Inc.
# MIT License
from setuptools import setup
setup(
name='python-saml',
version='2.4.1',
description='Onelogin Python Toolkit. Add SAML support to your Python software using this library',
classifiers=[
'De... | Python | 0 |
c0566fabd434b2f9722ac37538fd74b4959fedbc | Add click as dependency | setup.py | setup.py | from setuptools import setup, find_packages
from jarvis_cli import __version__
setup(
name = "jarvis-cli",
version = __version__,
packages = find_packages(),
author = "Michael Hwang",
author_email = "hirehwang@gmail.com",
description = ("Jarvis command-line tool"),
... | from setuptools import setup, find_packages
from jarvis_cli import __version__
setup(
name = "jarvis-cli",
version = __version__,
packages = find_packages(),
author = "Michael Hwang",
author_email = "hirehwang@gmail.com",
description = ("Jarvis command-line tool"),
... | Python | 0.000001 |
cf16c64e378f64d2267f75444c568aed895f940c | Add csblog to installed scripts. | setup.py | setup.py | import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd",
autho... | import platform, sys
from distutils.core import setup
from distextend import *
packages, package_data = findPackages("countershape")
setup(
name = "countershape",
version = "0.1",
description = "A framework for rendering static documentation.",
author = "Nullcube Pty Ltd",
autho... | Python | 0 |
496abc7854985c6f1bfd8463330f2f07a0f3048c | remove unused dependency libcst (#39) | setup.py | setup.py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | Python | 0 |
a339b96b33fd7f2ef8e2d18c64e997173309a459 | Prepare for more development. | setup.py | setup.py | from distutils.core import setup
setup(
name='udiskie',
version='0.2.1',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
packages=[
'udiskie',
],
scripts=[
... | from distutils.core import setup
setup(
name='udiskie',
version='0.2.0',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
packages=[
'udiskie',
],
scripts=[
... | Python | 0 |
118c079b2065f1b624f2ed54722483f1dca46eac | fix typo in setup.py | setup.py | setup.py | from distutils.core import setup
setup(
name='htmlr',
version='0.1.0',
author='Scott Hamilton',
author_email='mcleopold@gmail.com',
packages=['htmlr',
'htmlr.testsuite'
],
url='http://github.com/McLeopold/PythonHtmlr/',
license="BSD",
description='DSL to generate HTML ... | from distutils.core import setup
setup(
name='htmlr',
version='0.1.0',
author='Scott Hamilton',
author_email='mcleopold@gmail.com',
packages=['htmlr',
'skills.testsuite'
],
url='http://github.com/McLeopold/PythonHtmlr/',
license="BSD",
description='DSL to generate HTML... | Python | 0.000015 |
6bd7a61272ca5fe3d916488e24a1dab5e022f61b | Fix installing PIP issues | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
def read_file(name):
"""
Read file content
"""
f = open(name)
try:
return f.read()
except IOError:
print("could not read %r" % name)
f.close()
setup(name='hypchat',
version='0.4',
description="Package f... | #!/usr/bin/env python
from distutils.core import setup
setup(name='hypchat',
version='0.4',
description="Package for HipChat's v2 API",
long_description=open('README.rst').read(),
author='James Bliss',
author_email='james@ridersdiscount.com',
url='https://github.com/RidersDiscountC... | Python | 0 |
91746b5a3352ffc56baf770d6b35f0130b2e4128 | update version | setup.py | setup.py | import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
version = '0.0.3'
setuptools.setup(
name="rt-utils",
version=version,
author="Asim Shrestha",
author_email="asim.shrestha@ho... | import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
version = '0.0.2'
setuptools.setup(
name="rt-utils",
version=version,
author="Asim Shrestha",
author_email="asim.shrestha@ho... | Python | 0 |
c754e7fd020ff3bdada2e724087c82ce72ee061b | Bump version to 0.2.19 | setup.py | setup.py | """sfdclib package setup"""
import textwrap
from setuptools import setup
setup(
name='sfdclib',
version='0.2.19',
author='Andrey Shevtsov',
author_email='ashevtsov@rbauction.com',
packages=['sfdclib'],
url='https://github.com/rbauction/sfdclib',
license='MIT',
description=("SFDClib is ... | """sfdclib package setup"""
import textwrap
from setuptools import setup
setup(
name='sfdclib',
version='0.2.18',
author='Andrey Shevtsov',
author_email='ashevtsov@rbauction.com',
packages=['sfdclib'],
url='https://github.com/rbauction/sfdclib',
license='MIT',
description=("SFDClib is ... | Python | 0 |
ec070a097ead0370cf7b1ac9c21e6c4a68f9477c | Send file before changes | bin/py/watch.py | bin/py/watch.py | #!/usr/bin/env python
from __future__ import print_function
import os
from sys import argv
from time import sleep
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import liblo
logger = logging.getLogger("watcher.py")
logger.setLevel(logging.INFO)
logger.addHandl... | #!/usr/bin/env python
from __future__ import print_function
import os
from sys import argv
from time import sleep
import logging
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import liblo
logger = logging.getLogger("watcher.py")
logger.setLevel(logging.INFO)
logger.addHandl... | Python | 0 |
633110a0967f75f590bc24dd9d5d3400cb9efb0a | Remove unused classmethod from setup.py | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
# long option, short option, description
user_options = [
('flakes', None, 'Use pyflakes'),
('coverage', 'C',... | #!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
class PyTest(TestCommand):
# long option, short option, description
user_options = [
('flakes', None, 'Use pyflakes'),
('coverage', 'C',... | Python | 0.000001 |
effe6edab431c133aed40c72698f6a1b976b6a67 | add dependencies to setup.py | setup.py | setup.py | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description="Quality Assurance plugin for CKAN",
long_description="""
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
... | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description="Quality Assurance plugin for CKAN",
long_description="""
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
... | Python | 0.000001 |
6076ceb869a604eb460a19b11b8c17043f21362f | bump version to 0.11.2 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
README = open('README.rst', 'rt').read()
setup(
name='vncdotool',
version='0.11.2',
description='Command line VNC client',
install_requires=[
'Twisted',
"Pillow",
],
tests_require=[
'nose',
'pexpect',
],
... | #!/usr/bin/env python
from setuptools import setup
README = open('README.rst', 'rt').read()
setup(
name='vncdotool',
version='0.11.1',
description='Command line VNC client',
install_requires=[
'Twisted',
"Pillow",
],
tests_require=[
'nose',
'pexpect',
],
... | Python | 0 |
875b7111a273cacb9b768d2cc6f9fa72fdd73180 | Let it be 1.0.0 | setup.py | setup.py | #!/usr/bin/env python2.7
from setuptools import setup
import sys, os
__version__ = '1.0.0'
setup(name='gglsbl',
version=__version__,
description="Client library for Google Safe Browsing API",
classifiers=[
"Operating System :: POSIX",
"Environment :: Console",
"Programming Langua... | #!/usr/bin/env python2.7
from setuptools import setup
import sys, os
__version__ = '0.6'
setup(name='gglsbl',
version=__version__,
description="Client library for Google Safe Browsing API",
classifiers=[
"Operating System :: POSIX",
"Environment :: Console",
"Programming Language... | Python | 0.99994 |
67677c102fad318a9d64b1e65b125570ac1f1700 | bump versions. | setup.py | setup.py | import os
from setuptools import setup, find_packages
from openspending.version import __version__
PKG_ROOT = '.'
def files_in_pkgdir(pkg, dirname):
pkgdir = os.path.join(PKG_ROOT, *pkg.split('.'))
walkdir = os.path.join(pkgdir, dirname)
walkfiles = []
for dirpath, _, files in os.walk(walkdir):
... | import os
from setuptools import setup, find_packages
from openspending.version import __version__
PKG_ROOT = '.'
def files_in_pkgdir(pkg, dirname):
pkgdir = os.path.join(PKG_ROOT, *pkg.split('.'))
walkdir = os.path.join(pkgdir, dirname)
walkfiles = []
for dirpath, _, files in os.walk(walkdir):
... | Python | 0 |
921ef5f43e8f6f0c3274ca3ed48b856c50b0ead9 | Fix build with Python 3 | setup.py | setup.py | # -*- coding: utf-8 -*-
#
from setuptools import setup, find_packages
import os
import codecs
# https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(base_dir, 'voropy', '__about__.py'), 'rb') as f:
exec(f.read(), about)
def re... | # -*- coding: utf-8 -*-
#
from setuptools import setup, find_packages
import os
import codecs
# https://packaging.python.org/single_source_version/
base_dir = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(base_dir, 'voropy', '__about__.py')) as f:
exec(f.read(), about)
def read(fna... | Python | 0.000001 |
1de80ec1d74c2cf074d8f90a9c7da3c6e0380b05 | Fix setup.py (really) | setup.py | setup.py | import os
from setuptools import setup
ROOT = os.path.dirname(os.path.realpath(__file__))
with open("README.md", encoding="utf-8") as inp:
README_CONTENT = inp.read()
setup(
# Meta data
name="grab",
version="0.6.41",
author="Gregory Petukhov",
author_email="lorien@lorien.name",
maintaine... | import os
from setuptools import setup
ROOT = os.path.dirname(os.path.realpath(__file__))
with open("README.md", encoding="utf-8") as inp:
README_CONTENT = inp.read()
setup(
# Meta data
name="grab",
version="0.6.41",
author="Gregory Petukhov",
author_email="lorien@lorien.name",
maintaine... | Python | 0 |
c9a21b84a4fd719fc0cf50cf96e642d7c494ea5d | use setup from distribution.py | setup.py | setup.py | # -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# setup.py - Setup script for kaa.base
# -----------------------------------------------------------------------------
# $Id$
#
# -----------------------------------------------------------------------------
# C... | # -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# setup.py - Setup script for kaa.base
# -----------------------------------------------------------------------------
# $Id$
#
# -----------------------------------------------------------------------------
# C... | Python | 0.000001 |
07bb5d08e639e634df30c0b0feaf13423945d2bd | Update version | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
#
# This file is part of ckanext-nhm
# Created by the Natural History Museum in London, UK
from collections import OrderedDict
from setuptools import find_packages, setup
__version__ = '3.6.1.1'
with open('README.md', 'r') as f:
__long_description__ = f.read()
def github... | #!/usr/bin/env python
# encoding: utf-8
#
# This file is part of ckanext-nhm
# Created by the Natural History Museum in London, UK
from collections import OrderedDict
from setuptools import find_packages, setup
__version__ = '3.6.1'
with open('README.md', 'r') as f:
__long_description__ = f.read()
def github(n... | Python | 0 |
b1742f04c0d3c39e5fa7faa2606f46561a82fad7 | Add requirements to setup.py | setup.py | setup.py | #!/usr/bin/env python2
from distutils.core import setup
setup(name='visram',
version='0.1.0',
description='Graphical RAM/CPU Visualizer',
license='MIT',
author='Matthew Pfeiffer',
author_email='spferical@gmail.com',
url='http://github.com/Spferical/visram',
packages=['visram'... | #!/usr/bin/env python2
from distutils.core import setup
setup(name='visram',
version='0.1.0',
description='Graphical RAM/CPU Visualizer',
license='MIT',
author='Matthew Pfeiffer',
author_email='spferical@gmail.com',
url='http://github.com/Spferical/visram',
packages=['visram'... | Python | 0 |
9c5b61c7ac246db59436e0faf667e20d945244e9 | Update Development Status | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
setup(
name='singleurlcrud',
description='Django CRUD, implemented using a single view and consequently a single URL.',
long_description=readme,
version='0.13',
author='Hari Mahadevan... | from setuptools import setup, find_packages
with open('README.md') as readme_file:
readme = readme_file.read()
setup(
name='singleurlcrud',
description='Django CRUD, implemented using a single view and consequently a single URL.',
long_description=readme,
version='0.13',
author='Hari Mahadevan... | Python | 0 |
8ddea9ae48467c830693e3b47b4faa1022c10b5f | fix csv write unicode bug (#199) | Lagerregal/utils.py | Lagerregal/utils.py | from __future__ import unicode_literals
import csv, codecs, cStringIO
import uuid
from datetime import date, timedelta
from django.conf import settings
from django.test.runner import DiscoverRunner
class PaginationMixin():
def get_paginate_by(self, queryset):
if self.request.user.pagelength == None:
... | from __future__ import unicode_literals
import csv, codecs, cStringIO
import uuid
from datetime import date, timedelta
from django.conf import settings
from django.test.runner import DiscoverRunner
class PaginationMixin():
def get_paginate_by(self, queryset):
if self.request.user.pagelength == None:
... | Python | 0 |
b96a5f4bb4c61a272dfd9d7a090b10245535ebbe | Fix find_packages() for python3 | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name = 'garage',
description = 'My personal python modules',
license = 'MIT',
packages = find_packages(),
install_requires = [
'lxml',
'requests',
'startup',
],
)
| from setuptools import find_packages, setup
setup(
name = 'garage',
description = 'My personal python modules',
license = 'MIT',
packages = find_packages(include=['garage', 'garage.*']),
install_requires = [
'lxml',
'requests',
'startup',
],
)
| Python | 0.998001 |
646adedf91ed4b939f95418e5d362f6ad0906d7d | Add setup_requires | setup.py | setup.py | import ast
import sys
from setuptools import find_packages, setup
def readme():
try:
with open('README.rst') as f:
return f.read()
except (IOError, OSError):
return
def get_version():
filename = 'nirum/__init__.py'
version = None
with open(filename, 'r') as f:
... | import ast
import sys
from setuptools import find_packages, setup
def readme():
try:
with open('README.rst') as f:
return f.read()
except (IOError, OSError):
return
def get_version():
filename = 'nirum/__init__.py'
version = None
with open(filename, 'r') as f:
... | Python | 0.000001 |
d5a559c0771b21cea96ecabd6db2bcd8d3936a98 | Bump pytest from 6.2.3 to 6.2.4 | setup.py | setup.py | import re
from setuptools import setup, find_packages
# take the version
with open("indexdigest/__init__.py", "r") as fh:
# e.g. VERSION = '1.5.0'
last_line = fh.readlines()[-1]
VERSION = re.search(r'[\d.]+', last_line).group(0)
# @see https://packaging.python.org/tutorials/packaging-projects/#creating-se... | import re
from setuptools import setup, find_packages
# take the version
with open("indexdigest/__init__.py", "r") as fh:
# e.g. VERSION = '1.5.0'
last_line = fh.readlines()[-1]
VERSION = re.search(r'[\d.]+', last_line).group(0)
# @see https://packaging.python.org/tutorials/packaging-projects/#creating-se... | Python | 0.000011 |
c7a90821c186c28e808cc38bfaa9bee908dd20f2 | Set version 0.1.2 to push latest updates to PYPI | setup.py | setup.py | # Copyright (c) 2015. Librato, 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 a... | # Copyright (c) 2015. Librato, 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 a... | Python | 0 |
12695de726b1d1c81257a50ec8e3896ee4c9a737 | bump version; bump requests | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="xcloud",
version="0.0.4",
install_requires=[
'PyYaml',
'jinja2',
'glob2',
'python-keystoneclient==3.10.0',
'python-neutronclient==6.2.0',
'python-novaclient==7.1.0',
'requests>=2.19.1',
... | from setuptools import setup, find_packages
setup(
name="xcloud",
version="0.0.3",
install_requires=[
'PyYaml',
'jinja2',
'glob2',
'python-keystoneclient==3.10.0',
'python-neutronclient==6.2.0',
'python-novaclient==7.1.0',
'requests==2.14.2',
... | Python | 0.000001 |
e165a146805e01fbe4a9f91686c27939bb6abdf0 | update dependency | setup.py | setup.py | from setuptools import setup
install_requires = [
'jsonschema>=3.0.1',
'networkx>=2.3',
'jsonpath-rw>=1.4.0',
'requests>=2.21.0',
'graphviz>=0.11.1',
'aiohttp>=3.5.4'
]
setup(
name="biothings_explorer",
version="0.0.1",
author="Jiwen Xin, Chunlei Wu",
author_email="cwu@scripp... | from setuptools import setup
install_requires = [
'jsonschema>=3.0.1',
'networkx>=2.3',
'jsonpath-rw>=1.4.0',
'requests>=2.21.0',
'grequests>=0.4.0',
'graphviz>=0.11.1'
]
setup(
name="biothings_explorer",
version="0.0.1",
author="Jiwen Xin, Chunlei Wu",
author_email="cwu@scri... | Python | 0.000001 |
c8ea59db22758eca775756810c0a39bc690d67a1 | Bump version | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
# ----------------------------------------------------------------------------
# Building
#
# Create source distribution:
# ./setup.py sdist
#
#
# Create binary distribution (non-univeral, python 3 only):
# ./setup.py bdist_wheel --python-tag=... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
# ----------------------------------------------------------------------------
# Building
#
# Create source distribution:
# ./setup.py sdist
#
#
# Create binary distribution (non-univeral, python 3 only):
# ./setup.py bdist_wheel --python-tag=... | Python | 0 |
bc88bbd68d531b89bf692c5e7736c0022a7158c5 | use regex to extract package name | setup.py | setup.py | import os
import re
import runpy
from itertools import chain
from setuptools import find_packages, setup
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
OPTIONAL_DEPENDENCIES = ("autograd", "tensorflow", "theano")
def parse_requirements_file(filename):
with open(filename) as f:
return [line.strip... | import os
import runpy
from itertools import chain
from setuptools import find_packages, setup
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
OPTIONAL_DEPENDENCIES = ("autograd", "tensorflow", "theano")
def parse_requirements_file(filename):
with open(filename) as f:
return f.read().splitlines()... | Python | 0 |
7a840f58ee083aa5e23ac324beace4b4ad2335ca | bump to v30.0.1 so we can use semver on pypi | setup.py | setup.py | import os
from setuptools import setup
files = ["*.css",
os.path.join("templates", "*.html")]
setup(
name="junit2html",
version="30.0.1",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/ju... | import os
from setuptools import setup
files = ["*.css",
os.path.join("templates", "*.html")]
setup(
name="junit2html",
version="2.0.1",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.com",
url="https://gitlab.com/inorton/jun... | Python | 0 |
6a16baa99d7a23271367b233b514e02721e63e1c | Add requests to dependencies | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='rnaseq-lib',
version='1.0a6',
description='',
url='http://github.com/jvivian/rnaseq-lib',
author='John Vivian',
author_email='jtvivian@gmail.com',
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'... | from setuptools import setup, find_packages
setup(name='rnaseq-lib',
version='1.0a6',
description='',
url='http://github.com/jvivian/rnaseq-lib',
author='John Vivian',
author_email='jtvivian@gmail.com',
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'... | Python | 0.000001 |
5cac38046b708ce83f8dfe7081941c47afed453d | Add gmuffin entry point | setup.py | setup.py | #!/usr/bin/env python
import re
from os import path as op
from setuptools import setup, find_packages
def _read(fname):
try:
return open(op.join(op.dirname(__file__), fname)).read()
except IOError:
return ''
_meta = _read('muffin/__init__.py')
_license = re.search(r'^__license__\s*=\s*"(.*)... | #!/usr/bin/env python
import re
from os import path as op
from setuptools import setup, find_packages
def _read(fname):
try:
return open(op.join(op.dirname(__file__), fname)).read()
except IOError:
return ''
_meta = _read('muffin/__init__.py')
_license = re.search(r'^__license__\s*=\s*"(.*)... | Python | 0 |
023501d5b6c3355672d7227a7dc30e7decd5688f | Bump version | setup.py | setup.py | from distutils.core import setup
setup(name='adyen',
version='0.1.1',
description='Python library for the Adyen payment provider',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['adyen', 'django... | from distutils.core import setup
setup(name='adyen',
version='0.1',
description='Python library for the Adyen payment provider',
license="MIT",
author='Markus Bertheau',
author_email='mbertheau@gmail.com',
long_description=open('README.md').read(),
packages=['adyen', 'django_a... | Python | 0 |
73114498b9c54739812827c89f639828333ad723 | Fix cross-platform install bug. | setup.py | setup.py | import os
from setuptools import setup, find_packages
def file_read(filename):
filepath = os.path.join(os.path.dirname(__file__), filename)
with open(filepath) as flo:
return flo.read()
__version__ = file_read(os.path.join('staticmodel', 'VERSION.txt')).strip()
setup(
name="staticmodel",
... | import os
from setuptools import setup, find_packages
def file_read(filename):
filepath = os.path.join(os.path.dirname(__file__), filename)
with open(filepath) as flo:
return flo.read()
__version__ = file_read('staticmodel/VERSION.txt').strip()
setup(
name="staticmodel",
version=__version... | Python | 0 |
b1ee098ed3f205923efcae2189ebfb53d3f7b3e0 | check status codes instead of error message | plugins/weather.py | plugins/weather.py | import logging
log = logging.getLogger(__name__)
import urllib
import json
import ircbot.plugin
import socket
def make_http_request(url):
return urllib.request.urlopen(url, timeout=2).read().decode('utf-8')
class WeatherPlugin(ircbot.plugin.Plugin):
@ircbot.plugin.command('weather')
def weather(self, cmd):
if... | import logging
log = logging.getLogger(__name__)
import urllib
import json
import ircbot.plugin
import socket
def make_http_request(url):
return urllib.request.urlopen(url, timeout=2).read().decode('utf-8')
class WeatherPlugin(ircbot.plugin.Plugin):
@ircbot.plugin.command('weather')
def weather(self, cmd):
if... | Python | 0 |
8c8e3553008e864c6587098a0007064aba00ffab | Update version | 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... | """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 |
a6dc2ce5dea3d216dab1c94138904762290495d9 | Remove extraneous entry points | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLU... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
import sys
# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
os.environ['C_INCLU... | Python | 0.000016 |
d34b28c3d5067f26c86d588a3a80304e7fcb8992 | Remove the lib/index.js js target for now | setup.py | setup.py | import os
import setuptools
from jupyter_packaging import combine_commands
from jupyter_packaging import create_cmdclass
from jupyter_packaging import ensure_targets
from jupyter_packaging import install_npm
from jupyter_packaging import skip_if_exists
# The directory containing this file
HERE = os.path.abspath(os.pa... | import os
import setuptools
from jupyter_packaging import combine_commands
from jupyter_packaging import create_cmdclass
from jupyter_packaging import ensure_targets
from jupyter_packaging import install_npm
from jupyter_packaging import skip_if_exists
# The directory containing this file
HERE = os.path.abspath(os.pa... | Python | 0 |
230162033388f64e7b2c27b7df8ade4f72b743c4 | Bump version | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# ref: https://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def ini... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# ref: https://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def ini... | Python | 0 |
0891664b3d23b31e855eb48d4fea1ac436190e82 | Read long description from README.rst | setup.py | setup.py | #!/usr/bin/env python3
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
from markups import __version__ as version
from os.path import dirname, join
with open(join(dirname(__file__), 'README.rst')) as readme_file:
long_description = '\n' + readme_f... | #!/usr/bin/env python3
import sys
try:
from setuptools import setup, Command
except ImportError:
from distutils.core import setup, Command
from markups import __version__ as version
long_description = \
"""This module provides a wrapper around the various text markup languages,
such as Markdown_ and reStructuredTex... | Python | 0 |
5a70307744d6f33384d4184ebb08f928766247e7 | Increment version to 3.1 | setup.py | setup.py | from setuptools import setup
description = """
Full featured redis cache backend for Django.
"""
setup(
name = "django-redis",
url = "https://github.com/niwibe/django-redis",
author = "Andrei Antoukh",
author_email = "niwi@niwi.be",
version='3.1',
packages = [
"redis_cache",
"r... | from setuptools import setup
description = """
Full featured redis cache backend for Django.
"""
setup(
name = "django-redis",
url = "https://github.com/niwibe/django-redis",
author = "Andrei Antoukh",
author_email = "niwi@niwi.be",
version='3.0',
packages = [
"redis_cache",
"r... | Python | 0.999974 |
357a54f6358dc440ad61ff5c507981d9a79f953c | Add hook for installing image package. | setup.py | setup.py | import sys
import os
from setuptools import setup
long_description = open('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Pytho... | import sys
import os
from setuptools import setup
long_description = open('README.rst').read()
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Pytho... | Python | 0 |
8cdafd66bb59895d24681a79765d7d60006bc4b4 | remove pip session from setup (#493) | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | Python | 0 |
6f7003f39acb80d375010acebeb2840e1d83a7d7 | bump to version 0.7.3 | setup.py | setup.py | from setuptools import setup
setup(
name='slothauth',
packages=['slothauth'],
install_requires=['djangorestframework>=3.3.3', ],
version='0.7.3',
description='A Python Django package for user accounts and authentication.',
author='Chris Del Guercio',
author_email='cdelguercio@gmail.com',
url='https://gi... | from setuptools import setup
setup(
name='slothauth',
packages=['slothauth'],
install_requires=['djangorestframework>=3.3.3', ],
version='0.7.2',
description='A Python Django package for user accounts and authentication.',
author='Chris Del Guercio',
author_email='cdelguercio@gmail.com',
url='https://gi... | Python | 0 |
79c1f49f5451141192b366aaf62a27c62c9f17b9 | bump setup.py | setup.py | setup.py | from setuptools import setup
setup(name='peercoin_rpc',
version='0.55',
description='Library to communicate with peercoin daemon via JSON-RPC protocol.',
url='https://github.com/peerchemist/peercoin_rpc',
author='Peerchemist',
author_email='peerchemist@protonmail.ch',
license='MIT',... | from setuptools import setup
setup(name='peercoin_rpc',
version='0.50',
description='Library to communicate with peercoin daemon via JSON-RPC protocol.',
url='https://github.com/peerchemist/peercoin_rpc',
author='Peerchemist',
author_email='peerchemist@protonmail.ch',
license='MIT',... | Python | 0.000001 |
c021ca2b2faec465c70b89f774c29c58b6312112 | bump version to 0.6.1 | setup.py | setup.py | #!/usr/bin/evn python2
from setuptools import setup, find_packages
setup(name='pprof',
version='0.6.1',
packages= find_packages(),
author = "Andreas Simbuerger",
author_email = "simbuerg@fim.uni-passau.de",
description = "This is the experiment driver for the pprof study",
license =... | #!/usr/bin/evn python2
from setuptools import setup, find_packages
setup(name='pprof',
version='0.6',
packages= find_packages(),
author = "Andreas Simbuerger",
author_email = "simbuerg@fim.uni-passau.de",
description = "This is the experiment driver for the pprof study",
license = "... | Python | 0.000004 |
c967bea5399c87b006ae5f057f8b78175e574de5 | Add 'install_requires' | setup.py | setup.py | from setuptools import setup
# Package metadata
metadata = {}
with open('plasmapy/_metadata.py', 'r') as metadata_file:
exec(metadata_file.read(), metadata)
# Requirements
with open('requirements/base.txt', 'r') as req_file:
requirements = req_file.read().splitlines()
setup(name=metadata['name'],
vers... | from setuptools import setup
# Package metadata
metadata = {}
with open('plasmapy/_metadata.py', 'r') as metadata_file:
exec(metadata_file.read(), metadata)
# Requirements
with open('requirements/base.txt', 'r') as req_file:
requirements = req_file.read().splitlines()
setup(name=metadata['name'],
vers... | Python | 0.000004 |
19752f793b82ce4af07d798cdbd781629fa7d887 | fix development status value | setup.py | setup.py | from setuptools import setup
setup(
zip_safe=True,
name='desafe',
version='0.0.4',
author='pjon',
py_modules=['desafe'],
description='An utility to decrypt Safe in Cloud password files',
license='LICENSE',
install_requires=[
"pycrypto",
"xmltodict",
"passlib",
... | from setuptools import setup
setup(
zip_safe=True,
name='desafe',
version='0.0.4',
author='pjon',
py_modules=['desafe'],
description='An utility to decrypt Safe in Cloud password files',
license='LICENSE',
install_requires=[
"pycrypto",
"xmltodict",
"passlib",
... | Python | 0 |
31aa81628e8161f41fe487f43ea45aa5364b7fd9 | fix spelling error in setup.py | setup.py | setup.py | #
# to build the distribution in dist/cloudfeaster-*.*.*.tar.gz
# and cloudfeaster-*.*.*-py2-none-any.whl
#
# >git clone https://github.com/simonsdave/cloudfeaster.git
# >cd cloudfeaster
# >source cfg4dev
# >python setup.py bdist_wheel sdist --formats=gztar
#
# update pypitest with both meta data and source dis... | #
# to build the distrubution in dist/cloudfeaster-*.*.*.tar.gz
# and cloudfeaster-*.*.*-py2-none-any.whl
#
# >git clone https://github.com/simonsdave/cloudfeaster.git
# >cd cloudfeaster
# >source cfg4dev
# >python setup.py bdist_wheel sdist --formats=gztar
#
# update pypitest with both meta data and source dis... | Python | 0.000034 |
075488b6f2b33c211b734dc08414d45cb35c4e68 | Bump version to prepare for next release. | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.9.0.12'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredispy',
version=__version__ + __build__,
description='Mock for redis-py',
url='htt... | #!/usr/bin/env python
from setuptools import setup, find_packages
# Match releases to redis-py versions
__version__ = '2.9.0.11'
# Jenkins will replace __build__ with a unique value.
__build__ = ''
setup(name='mockredispy',
version=__version__ + __build__,
description='Mock for redis-py',
url='htt... | Python | 0 |
cea141e94259e6ffdff63570b77541c5d7623056 | bump minor version | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='paddingoracle',
author='Marcin Wielgoszewski',
author_email='marcin.wielgoszewski@gmail.com',
version='0.2.1',
url='https://github.com/mwielgoszewski/python-paddingoracle',
py_modules=['... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='paddingoracle',
author='Marcin Wielgoszewski',
author_email='marcin.wielgoszewski@gmail.com',
version='0.2',
url='https://github.com/mwielgoszewski/python-paddingoracle',
py_modules=['pa... | Python | 0 |
6452a600b29dd191695b91d5402fdffbcc3c755e | Bump version to 0.1.0b7 | setup.py | setup.py | from distutils.core import setup
setup(
name='schemavalidator',
packages=['schemavalidator'],
version='0.1.0b7',
description='A local JSON schema validator based on jsonschema',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
license='MIT',
url='https://github.com/wendbv/schem... | from distutils.core import setup
setup(
name='schemavalidator',
packages=['schemavalidator'],
version='0.1.0b6',
description='A local JSON schema validator based on jsonschema',
author='Daan Porru (Wend)',
author_email='daan@wend.nl',
license='MIT',
url='https://github.com/wendbv/schem... | Python | 0.000001 |
76f254582243dc927ca25eebf2b47702ef43167b | Fix install-time dependency on pymongo. | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
VERSION = (0, 6, 5)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
version = '.'.join(map(str, VERSION))
if __name__ == '__main__':
setup(
name='mongorm',
version=versi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
from mongorm import VERSION
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
version = '.'.join(map(str, VERSION))
if __name__ == '__main__':
setup(
name='mongorm',
versi... | Python | 0 |
e7ad292b2d38e33dc466fa2114018a2e04076965 | Bump version to 0.7.3 | setup.py | setup.py | #!/usr/bin/env python
# -*- test-case-name: twistedchecker -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from setuptools import find_packages, setup
with open('README.rst') as f:
longDescription = f.read()
setup(
name='twistedchecker',
description='A Twisted coding standard ... | #!/usr/bin/env python
# -*- test-case-name: twistedchecker -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
from setuptools import find_packages, setup
with open('README.rst') as f:
longDescription = f.read()
setup(
name='twistedchecker',
description='A Twisted coding standard ... | Python | 0 |
98f60aeb3cbcf1ae241620ecfca5884483717347 | Update setup.py classifiers | setup.py | setup.py | '''
explicit setup
'''
import versioneer
from setuptools import setup, find_packages
install_requires = ['versioneer', ]
setup(
name='explicit',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='Levi Noecker',
author_email='levi.noecker@gmail.com',
url='https://gith... | '''
explicit setup
'''
import versioneer
from setuptools import setup, find_packages
install_requires = ['versioneer', ]
setup(
name='explicit',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author='Levi Noecker',
author_email='levi.noecker@gmail.com',
url='https://gith... | Python | 0.000001 |
b7ec7f787a052c07af18d59990e44ed9fd3a58dd | add flask_featureflags.contrib sub package in install script | setup.py | setup.py | import os
from setuptools import setup
from sys import argv
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except:
README = ''
CHANGES = ''
install_requires = ["Flask"]
if "develop" in argv... | import os
from setuptools import setup
from sys import argv
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
except:
README = ''
CHANGES = ''
install_requires = ["Flask"]
if "develop" in argv... | Python | 0.000001 |
b7d082b9b8efc441eb849fd6584ecb5e72d9c8fc | remove dependency on pyqt5 | setup.py | setup.py | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='William H.P. Niels... | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1',
'PyQt5'],
... | Python | 0 |
345fc7fcfea208d36c7e0647b6dccb6fe4fd160d | Bump Core dependency to v32 | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Tunisia specific model for OpenFisca -- a versatile microsimulation free software"""
from setuptools import setup, find_packages
classifiers = """\
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: GNU Affero General Public License v3
Operating System... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Tunisia specific model for OpenFisca -- a versatile microsimulation free software"""
from setuptools import setup, find_packages
classifiers = """\
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: GNU Affero General Public License v3
Operating System... | Python | 0 |
b1a3831de9c4d52f674cf1b1d4aed7cf74e8d4ba | Update setup.py | setup.py | setup.py | #! /usr/bin/env python
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
setup(
name='hmm',
version='1.0.0',
description='Implementation of the Linear Sparse Version Algorithms to Hidden Markov Model',
long_description= ... | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
setup(
name='hmm',
version='1.0.0',
description='Implementation of the Linear Sparse Version Algorithms to Hidden Markov Model',
long_description= This is an implementatio... | Python | 0 |
142ef9b0c2a1d7307132a32cb0803fd047af3b14 | Fix invalid variable name | pokediadb/utils.py | pokediadb/utils.py | import sqlite3
def max_sql_variables():
"""Get the maximum number of arguments allowed in a query by the current
sqlite3 implementation.
Returns:
int: SQLITE_MAX_VARIABLE_NUMBER
"""
db = sqlite3.connect(':memory:')
cur = db.cursor()
cur.execute('CREATE TABLE t (test)')
low, h... | import sqlite3
def max_sql_variables():
"""Get the maximum number of arguments allowed in a query by the current
sqlite3 implementation.
Returns:
int: SQLITE_MAX_VARIABLE_NUMBER
"""
db = sqlite3.connect(':memory:')
cur = db.cursor()
cur.execute('CREATE TABLE t (test)')
low, h... | Python | 0.999623 |
a33df7cb106e0eaf8498b60d3477269f85be891b | fix setup | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='family',
version=version,
description="Easy to create your microservice based on Falcon.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers... | from setuptools import setup, find_packages
import sys, os
version = '0.1'
setup(name='family',
version=version,
description="Easy to create your microservice based on Falcon.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers... | Python | 0.000001 |
8199edb90c9de9a70c1c4acb69b0e51a3b470a33 | Update __init__.py | pokepy/__init__.py | pokepy/__init__.py | #!/usr/bin/env python
# coding: utf-8
"""
Pokepy
A Python wrapper for PokeAPI (https://pokeapi.co)
Usage:
>>> import pokepy
>>> clientV2 = pokepy.V2Client()
>>> clientV2.get_pokemon('bulbasaur')[0]
<Pokemon - Bulbasaur>
"""
__author__ = 'Paul Hallett'
__email__ = 'hello@phalt.co'
__credits__ = ["Paul Hallett", "Owe... | #!/usr/bin/env python
# coding: utf-8
"""
Pokepy
A Python wrapper for PokeAPI (https://pokeapi.co)
Usage:
>>> import pokepy
>>> clientV2 = pokepy.V2Client()
>>> clientV2.get_pokemon('bulbasaur')[0]
<Pokemon - Bulbasaur>
"""
__author__ = 'Paul Hallett'
__email__ = 'hello@phalt.co'
__credits__ = ["Paul Hallett", "Owe... | Python | 0.000072 |
cc70b8b3b263428c9a0cdffe50077ca1828cb82d | Remove Gunicorn from requirements | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="familyconnect-registration",
version="0.1",
url='http://github.com/praekelt/familyconnect-registration',
license='BSD',
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages(),
include_pac... | from setuptools import setup, find_packages
setup(
name="familyconnect-registration",
version="0.1",
url='http://github.com/praekelt/familyconnect-registration',
license='BSD',
author='Praekelt Foundation',
author_email='dev@praekeltfoundation.org',
packages=find_packages(),
include_pac... | Python | 0 |
4199895bacb97cd36257f710266343563cbed1f3 | bump version to v0.3 | setup.py | setup.py | from setuptools import setup
setup(
name='freezefrog',
version='0.3',
url='http://github.com/closeio/freezefrog',
license='MIT',
author='Thomas Steinacher',
author_email='engineering@close.io',
maintainer='Thomas Steinacher',
maintainer_email='engineering@close.io',
description='Eff... | from setuptools import setup
setup(
name='freezefrog',
version='0.2',
url='http://github.com/closeio/freezefrog',
license='MIT',
author='Thomas Steinacher',
author_email='engineering@close.io',
maintainer='Thomas Steinacher',
maintainer_email='engineering@close.io',
description='Eff... | Python | 0 |
39205471e6697ec436c4d374248553ecb5411f98 | bump version | setup.py | setup.py | from setuptools import setup
setup(
name = 'tensorflowonspark',
packages = ['tensorflowonspark'],
version = '1.0.5',
description = 'Deep learning with TensorFlow on Apache Spark clusters',
author = 'Yahoo, Inc.',
url = 'https://github.com/yahoo/TensorFlowOnSpark',
keywords = ['tensorflowonspark', 'tensor... | from setuptools import setup
setup(
name = 'tensorflowonspark',
packages = ['tensorflowonspark'],
version = '1.0.4',
description = 'Deep learning with TensorFlow on Apache Spark clusters',
author = 'Yahoo, Inc.',
url = 'https://github.com/yahoo/TensorFlowOnSpark',
keywords = ['tensorflowonspark', 'tensor... | Python | 0 |
387060e7cf342972eb5745b468624ae5c4fc1ccb | Bump version to 0.11.3 | setup.py | setup.py | from setuptools import setup, find_packages
__version__ = '0.11.3'
setup(
name="Flask-REST-JSONAPI",
version=__version__,
description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \
and data provider of your choice (SQLAlchemy, Mo... | from setuptools import setup, find_packages
__version__ = '0.11.2'
setup(
name="Flask-REST-JSONAPI",
version=__version__,
description='Flask extension to create REST web api according to JSONAPI 1.0 specification with Flask, Marshmallow \
and data provider of your choice (SQLAlchemy, Mo... | Python | 0 |
0b990c28d2aad533d6f8605957669ad9e6cae786 | Fix Issue #4 | setup.py | setup.py | #!/usr/bin/python
import glob
import platform
import sys
import os
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, Extension
system, node, release, version, machine, processor = platform.uname()
setup(
name='falcon',
version='0.02',
maintainer='Russell Power',
maintainer_email='russe... | #!/usr/bin/python
import glob
import platform
import sys
import os
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, Extension
system, node, release, version, machine, processor = platform.uname()
setup(
name='falcon',
version='0.02',
maintainer='Russell Power',
maintainer_email='russe... | Python | 0 |
0069af436db7825f3b1fe4987eed1128350c0545 | set dev status: beta | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
def parse_requirements(path):
with open(path, 'r') as infile:
return [l.strip() for l in infile.readlines()]
setup(
name = 'steamweb',
version = '0.4',
description = 'lib to access/use steam web pages (stuff not exposed via API)',
long_de... | #!/usr/bin/env python
from setuptools import setup
def parse_requirements(path):
with open(path, 'r') as infile:
return [l.strip() for l in infile.readlines()]
setup(
name = 'steamweb',
version = '0.3',
description = 'lib to access/use steam web pages (stuff not exposed via API)',
long_de... | Python | 0.000007 |
fad69b39269684570fadce38660b9eb5050179fe | Debug setup.py for RTD | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
from pathlib import Path
with open('README.rst', 'r') as f:
long_description = f.read()
meta = {}
with open(Path('aioinflux') / '__init__.py') as f:
exec('\n'.join(l for l in f if l.startswith('__')), meta)
setup(name='aioinflux',
version=meta['__vers... | #!/usr/bin/env python
from setuptools import setup
from pathlib import Path
with open('README.rst', 'r') as f:
long_description = f.read()
meta = {}
with open(Path(__file__).parent / 'aioinflux' / '__init__.py') as f:
exec('\n'.join(l for l in f if l.startswith('__')), meta)
setup(name='aioinflux',
ve... | Python | 0 |
a04fbb25dea14cfded321e80738878ad668cac39 | fix coding style issues | setup.py | setup.py | """The netify deployment script."""
# Copyright 2015 Curtis Sand
#
# 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 appl... | """The netify deployment script."""
# Copyright 2015 Curtis Sand
#
# 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 appl... | Python | 0.000001 |
0f8fd08735b1194e0cb571fa1f2d31954eca34ce | update email address | setup.py | setup.py | import io
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
# with codecs_open('README.md', encoding='utf-8') as f:
# long_description = f.read()
with io.open("README.rst") as readme_file:
long_description = readme_file.read()
... | import io
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Get the long description from the relevant file
# with codecs_open('README.md', encoding='utf-8') as f:
# long_description = f.read()
with io.open("README.rst") as readme_file:
long_description = readme_file.read()
... | Python | 0.000001 |
28b16a355177ad0f52860d9598cca5198635224f | Update version | setup.py | setup.py | from setuptools import setup, find_packages
long_description = '''\
image-diet is a Django application for removing unnecessary bytes from image
files. It optimizes images without changing their look or visual quality
("losslessly").
It works on images in JPEG, GIF and PNG formats and will leave others
unchanged. Pr... | from setuptools import setup, find_packages
long_description = '''\
image-diet is a Django application for removing unnecessary bytes from image
files. It optimizes images without changing their look or visual quality
("losslessly").
It works on images in JPEG, GIF and PNG formats and will leave others
unchanged. Pr... | Python | 0 |
0edaf3506bd46d57618ef21a2aeba6c8077da7d0 | add missing comma | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='RAPIDpy',
version='2.5.2',
description='Python interface for RAPID (rapid-hub.org)',
long_description='RAPIDpy is a python interface for RAPID that assists '
'to prepare inputs, runs the RAPID program, and provides '
'post-proce... | from setuptools import setup, find_packages
setup(
name='RAPIDpy',
version='2.5.2',
description='Python interface for RAPID (rapid-hub.org)',
long_description='RAPIDpy is a python interface for RAPID that assists '
'to prepare inputs, runs the RAPID program, and provides '
'post-proce... | Python | 0.999956 |
696648364a52c2d499ae9bf382c1c66266b9f5c1 | Add missing comma | setup.py | setup.py | #!/usr/bin/env python
"""Installer for rstcheck."""
import ast
import setuptools
def version():
"""Return version string."""
with open('rstcheck.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with op... | #!/usr/bin/env python
"""Installer for rstcheck."""
import ast
import setuptools
def version():
"""Return version string."""
with open('rstcheck.py') as input_file:
for line in input_file:
if line.startswith('__version__'):
return ast.parse(line).body[0].value.s
with op... | Python | 0.999998 |
e674e2b9011397c21dcfffab104f7bb64b9efdaa | Update version number in setup.py | setup.py | setup.py | """setup.py
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encod... | """setup.py
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encod... | Python | 0 |
c735ca20338e729f6f19ed098332a1aaebbb6c94 | move version to a variable | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
version = '0.4.5'
setup(
name='upcloud-api',
version=version,
description='UpCloud API Client',
author='Elias Nygren',
maintainer='Mika Lackman',
maintainer_email='mika.lackman@upcloud.com',
url='https://github.com/UpCloudLtd/upcloud-pyt... | #!/usr/bin/env python
from setuptools import setup
setup(
name='upcloud-api',
version='0.4.5',
description='UpCloud API Client',
author='Elias Nygren',
maintainer='Mika Lackman',
maintainer_email='mika.lackman@upcloud.com',
url='https://github.com/UpCloudLtd/upcloud-python-api',
packag... | Python | 0.000001 |
bd53878b7c38f1e58f708a20bb73865613a462c6 | use “client” instead of “wrapper” in description | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="pysolr",
use_scm_version=True,
description="Lightweight Python client for Apache Solr",
author='Daniel Lindsley',
author_email='daniel@toastdriven.com',
long_description=open('README.rst... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="pysolr",
use_scm_version=True,
description="Lightweight python wrapper for Apache Solr.",
author='Daniel Lindsley',
author_email='daniel@toastdriven.com',
long_description=open('README.r... | Python | 0 |
be3c656def0d59143a22d66644910d83ab1c1108 | Bump version to 0.9.3 | setup.py | setup.py | import io
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9.3',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
... | import io
from setuptools import setup, find_packages
setup(
name='django-flatblocks',
version='0.9.2',
description='django-flatblocks acts like django.contrib.flatpages but '
'for parts of a page; like an editable help box you want '
'show alongside the main content.',
... | Python | 0 |
b8270f1615ade763d71a8bb7905202e69269929d | Update setup.py deps and trove classifier | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='OAuth-Client-Bridge',
version='1.0.0',
url='https://github.com/adamcik/oauthclientbridge',
license='Apache License, Version 2.0',
author='Thomas Adamcik',
author_email='thomas@adamcik.no',
description='Bridge OAuth2 Authorization Code... | from setuptools import find_packages, setup
setup(
name='OAuth-Client-Bridge',
version='1.0.0',
url='https://github.com/adamcik/oauthclientbridge',
license='Apache License, Version 2.0',
author='Thomas Adamcik',
author_email='thomas@adamcik.no',
description='Bridge OAuth2 Authorization Code... | Python | 0 |
ec45756726aeebc926572a6037e1fe0b43c65575 | fix logs and increase max log age | porcupine/_logs.py | porcupine/_logs.py | from datetime import datetime, timedelta
import logging
import os
import platform
import shlex
import subprocess
import sys
import threading
import porcupine
from porcupine import dirs
log = logging.getLogger(__name__)
LOG_DIR = os.path.join(dirs.cachedir, 'logs') # used in __main__.py
_FILENAME_FORMAT = '%Y-%m-%d... | from datetime import datetime, timedelta
import logging
import os
import platform
import shlex
import subprocess
import sys
import threading
import porcupine
from porcupine import dirs
log = logging.getLogger(__name__)
LOG_DIR = os.path.join(dirs.cachedir, 'logs') # used in __main__.py
_FILENAME_FORMAT = '%Y-%m-%d... | Python | 0.000001 |
325c74ffcf7b5ace8e72c5645934ea2a90bafa4d | Revert venusian dep | setup.py | setup.py | from setuptools import setup
setup(
name='discord-curious',
version='0.2.1',
packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice',
'curious.ext.loapi', 'curious.ext.paginator'],
url='https://github.com/SunDwarf/curious',
licen... | from setuptools import setup
setup(
name='discord-curious',
version='0.2.1',
packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice',
'curious.ext.loapi', 'curious.ext.paginator'],
url='https://github.com/SunDwarf/curious',
licen... | Python | 0 |
42c0cccacce69174b8482654ab9bf1239dba94d9 | Update docstring (#11) | setup.py | setup.py | """Set up the Python API for myStrom devices."""
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
if sys.argv[-1] == 'publish':
os.system('python... | """
Copyright (c) 2015-2018 Fabian Affolter <fabian@affolter-engineering.ch>
Licensed under MIT. All rights reserved.
"""
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_d... | Python | 0 |
0b544c48e01ac975d04b5853dc1bffe1295c94ea | Bump version to 0.0.5 | postpy/_version.py | postpy/_version.py | version_info = (0, 0, 5)
__version__ = '.'.join(map(str, version_info))
| version_info = (0, 0, 4)
__version__ = '.'.join(map(str, version_info))
| Python | 0.000001 |
3251c9c1c98aef47571ced6b850c8ccab5ed5ab0 | Bump version. | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = open('README.md').read()
setup(
name='djoser',
version='0.0.3',
packages=['djoser'],
license='MIT',
author='SUNSCRAP... | #!/usr/bin/env python
from setuptools import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = open('README.md').read()
setup(
name='djoser',
version='0.0.2',
packages=['djoser'],
license='MIT',
author='SUNSCRAP... | Python | 0 |
8e97886c8744c4829f54a1d05167295c0f5453f4 | Fix typo | setup.py | setup.py | # kept for compatibility, https://setuptools.pypa.io/en/latest/setuptools.html?highlight=setuptools.setup()#setup-cfg-only-projects
import setuptools
setuptools.setup()
| # kept for compability, https://setuptools.pypa.io/en/latest/setuptools.html?highlight=setuptools.setup()#setup-cfg-only-projects
import setuptools
setuptools.setup()
| Python | 0.999999 |
5bc082b547bbe00fdaa1cdf7464aa1c46c37d229 | Update version for release 0.2.10 | setup.py | setup.py | from setuptools import setup
setup(
name='pluvo',
packages=['pluvo'],
package_data={},
version='0.2.10',
description='Python library to access the Pluvo REST API.',
author='Wend BV',
author_email='info@wend.nl',
license='MIT',
url='https://github.com/wendbv/pluvo-python',
keywo... | from setuptools import setup
setup(
name='pluvo',
packages=['pluvo'],
package_data={},
version='0.2.9',
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',
keywor... | Python | 0 |
8b05b45759efdfe63a0e4a543c8a8e5c33ea8370 | Use correct package name in setup.py | setup.py | setup.py | #!/usr/bin/env python
import sys
from distutils.core import setup
# TODO: More informative message about Python version support, version reflected
# classifiers argument to setup(). Perhaps setup should fail altogether for
# unsupported Python versions.
if sys.version_info < (2,7) or sys.version_info >= (3,):
pr... | #!/usr/bin/env python
import sys
from distutils.core import setup
# TODO: More informative message about Python version support, version reflected
# classifiers argument to setup(). Perhaps setup should fail altogether for
# unsupported Python versions.
if sys.version_info < (2,7) or sys.version_info >= (3,):
pr... | Python | 0 |
2dbf8746a15449044f777b3c87f5586a0ec9dfc3 | change version number and add bibtex in setup.py | setup.py | setup.py | from __future__ import print_function
import os
import sys
import shutil
# custom build script
if sys.argv[1] in ["build", "install"]:
import gpkit.build
from distutils.core import setup
long_description = """
GPkit
*****
GPkit is a Python package for defining and manipulating
geometric programming models,
abs... | from __future__ import print_function
import os
import sys
import shutil
# custom build script
if sys.argv[1] in ["build", "install"]:
import gpkit.build
from distutils.core import setup
long_description = """
GPkit
*****
GPkit is a Python package for defining and manipulating
geometric programming models,
abs... | Python | 0 |
d177f5dd04721f9f50c628e3e54bea975e022b3a | Increase version number to 1.3.12 | setup.py | setup.py | import sys
from os import path
import setuptools
if sys.version_info < (3, 6):
sys.exit("Sorry, Python < 3.6 is not supported")
DESCRIPTION = (
"A django survey app, based on and compatible with "
'"django-survey". You will be able to migrate your data from an ancient '
"version of django-survey, but... | import sys
from os import path
import setuptools
if sys.version_info < (3, 6):
sys.exit("Sorry, Python < 3.6 is not supported")
DESCRIPTION = (
"A django survey app, based on and compatible with "
'"django-survey". You will be able to migrate your data from an ancient '
"version of django-survey, but... | Python | 0.000136 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.