commit stringlengths 40 40 | subject stringlengths 4 1.73k | repos stringlengths 5 127k | old_file stringlengths 2 751 | new_file stringlengths 2 751 | new_contents stringlengths 1 8.98k | old_contents stringlengths 0 6.59k | license stringclasses 13
values | lang stringclasses 23
values |
|---|---|---|---|---|---|---|---|---|
b2d34a855f8db9768f45eddf305ba4da2c106e7d | Fix url | ZeitOnline/zeit.content.text | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.content.text',
version='2.0.0.dev0',
author='gocept',
author_email='mail@gocept.com',
url='https://bitbucket.org/gocept/zeit.content.text',
description="ZEIT Text",
packages=find_packages('src'),
package_dir={'': 'src'},
... | from setuptools import setup, find_packages
setup(
name='zeit.content.text',
version='2.0.0.dev0',
author='gocept',
author_email='mail@gocept.com',
url='https://svn.gocept.com/repos/gocept-int/zeit.cms',
description="ZEIT Text",
packages=find_packages('src'),
package_dir={'': 'src'},
... | bsd-3-clause | Python |
726f44e54408c114e0e96a09bd65671a4b199971 | Update release script | barentsen/k2mosaic | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
# Prepare and send a new release to PyPI
if "release" in sys.argv[-1]:
os.system("python setup.py sdist")
os.system("twine upload dist/*")
os.system("rm -rf dist/k2mosaic*")
sys.exit()
# Load the __version__ variable without impor... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if "testpublish" in sys.argv[-1]:
os.system("python setup.py sdist upload -r pypitest")
sys.exit()
elif "publish" in sys.argv[-1]:
os.system("python setup.py sdist upload -r pypi")
sys.exit()
# Load the __version__ variable withou... | mit | Python |
891cead7db4ec4349862ac12d9f16d21e21ab620 | Bump to version 1.0.5 | mbdriscoll/indigo,mbdriscoll/indigo,mbdriscoll/indigo | setup.py | setup.py | import os
from distutils.core import setup, Extension
import numpy as np
exts = []
customcpu_backend = Extension('indigo.backends._customcpu',
sources = ['indigo/backends/_customcpu.c'],
include_dirs=[np.get_include()],
extra_compile_args = ['-std=c11', '-fopenmp', '-m64', '-O3', '-Wno-unknown-pragmas'],
... | import os
from distutils.core import setup, Extension
import numpy as np
exts = []
customcpu_backend = Extension('indigo.backends._customcpu',
sources = ['indigo/backends/_customcpu.c'],
include_dirs=[np.get_include()],
extra_compile_args = ['-std=c11', '-fopenmp', '-m64', '-O3', '-Wno-unknown-pragmas'],
... | bsd-3-clause | Python |
db71df7a65d73e03367aaf910156cd6bc7237557 | update setup.py | nikdon/pyEntropy | setup.py | setup.py | from distutils.core import setup
setup(
name='pyentrp',
version='0.3.0',
description='Functions on top of NumPy for computing different types of entropy',
url='https://github.com/nikdon/pyEntropy',
download_url='https://github.com/nikdon/pyEntropy/archive/0.3.0.tar.gz',
author='Nikolay Donets',... | from distutils.core import setup
setup(
name='pyentrp',
version='0.1.0',
description='Functions on top of NumPy for computing different types of entropy',
long_description=open("README.md").read(),
url='https://github.com/nikdon/pyEntropy',
download_url='github.com/nikdon/pyEntropy/tarball/0.1.... | apache-2.0 | Python |
0b3c2bc1a02650262852751abe4230a2f01b14e6 | mark as Python 3 compatible | thomasballinger/lazyload | setup.py | setup.py | from setuptools import setup
setup(name='lazyload',
version='0.0.2',
description='Force modules loaded later not to be loaded until attribute access',
url='https://github.com/thomasballinger/lazyload',
author='Thomas Ballinger',
author_email='thomasballinger@gmail.com',
license='MIT... | from setuptools import setup
setup(name='lazyload',
version='0.0.2',
description='Force modules loaded later not to be loaded until attribute access',
url='https://github.com/thomasballinger/lazyload',
author='Thomas Ballinger',
author_email='thomasballinger@gmail.com',
license='MIT... | mit | Python |
3f8591a433884789100e43099f8bd6f4b20d5712 | Fix depends in setup.py | rafaduran/python-mcollective,rafaduran/python-mcollective,rafaduran/python-mcollective,rafaduran/python-mcollective | setup.py | setup.py | from distutils.core import setup
import sys
setup(name='mcollective',
version='0.3',
author='Aaron Brady',
author_email='bradya@gmail.com',
url='https://github.com/iwebhosting/mcollective-python',
description="Python library for using Marionette Collective's RPC",
#long_description=... | from distutils.core import setup
import sys
import mcollective
setup(name='mcollective',
version=mcollective.__version__,
author='Aaron Brady',
author_email='bradya@gmail.com',
url='https://github.com/insom/mcollective-python',
description="Python library for using Marionette Collective'... | bsd-3-clause | Python |
185f1cdcbb92d050bccaf9bf2dda8be45bf4cdb8 | Bump version to 5.0.0 due to License update | heureka/py-rq | setup.py | setup.py | from setuptools import setup
setup(
name='py-rq',
version='5.0.0',
packages=['pyrq'],
url='https://github.com/heureka/py-rq',
license='MIT',
author='Heureka.cz',
author_email='podpora@heureka.cz',
description='Redis queue for Python',
install_requires=[
"redis>=3.0.0,<4"
... | from setuptools import setup
setup(
name='py-rq',
version='4.0.0',
packages=['pyrq'],
url='https://github.com/heureka/py-rq',
license='MIT',
author='Heureka.cz',
author_email='podpora@heureka.cz',
description='Redis queue for Python',
install_requires=[
"redis>=3.0.0,<4"
... | mit | Python |
1da5d94bd0245de9fe56a5ad7a3e7d217207f3d0 | bump development version | claudep/swiss-qr-bill | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
from pathlib import Path
readme = Path(__file__).parent / 'README.rst'
with readme.open() as f:
long_description = f.read()
setup(
name='qrbill',
version='0.4.dev1',
description='A library to generate Swiss QR-bill payment slips',
long_descripti... | #!/usr/bin/env python
from setuptools import setup
from pathlib import Path
readme = Path(__file__).parent / 'README.rst'
with readme.open() as f:
long_description = f.read()
setup(
name='qrbill',
version='0.3',
description='A library to generate Swiss QR-bill payment slips',
long_description=lo... | mit | Python |
518ca25447e2cbc53c8ee42e07d259a23bb9b1d4 | Bump requirement to thumbor 6.0.0 | aoqfonseca/aws,abaldwin1/tc_aws,thumbor-community/aws,tsauzeau/aws | setup.py | setup.py | # coding: utf-8
from setuptools import setup, find_packages
setup(
name='tc_aws',
version='6.0.0',
description='Thumbor AWS extensions',
author='Thumbor-Community & William King',
author_email='willtrking@gmail.com',
zip_safe=False,
include_package_data=True,
packages=find_packages(),
... | # coding: utf-8
from setuptools import setup, find_packages
setup(
name='tc_aws',
version='6.0.0b1',
description='Thumbor AWS extensions',
author='Thumbor-Community & William King',
author_email='willtrking@gmail.com',
zip_safe=False,
include_package_data=True,
packages=find_packages()... | mit | Python |
2665d1d6b6eb01994986f5193b1a2f1eb122fc30 | Fix unicode | dhararon/Zopy | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = (0, 3, 2)
setup(
name = 'zopy',
packages = ['zopy'],
version = '.'.join(str(x) for x in __version__),
description = "Zoho API integration for Python",
a... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
__version__ = (0, 3, 1)
setup(
name = 'zopy',
packages = ['zopy'],
version = '.'.join(str(x) for x in __version__),
description = "Zoho API integration for Python",
a... | mit | Python |
51ce42a9597f2a840649c1fcd9a3ba7788628a08 | Add plumbium.recorders to packages | jstutters/Plumbium | setup.py | setup.py | from setuptools import setup
setup(
name='plumbium',
version='0.4.0',
packages=['plumbium', 'plumbium.recorders'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbiu... | from setuptools import setup
setup(
name='plumbium',
version='0.4.0',
packages=['plumbium'],
zip_safe=True,
author='Jon Stutters',
author_email='j.stutters@ucl.ac.uk',
description='Record the inputs and outputs of scripts',
url='https://github.com/jstutters/plumbium',
license='MIT',... | mit | Python |
3d13386435ca954a4b18bd0161f827d91c9c09f8 | Bump version | SirAnthony/slpp | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
from os import path
cur_dir = path.abspath(path.dirname(__file__))
with open(path.join(cur_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='SLPP',
description='SLPP is a simple lua-python data structures parser',
lon... | #!/usr/bin/env python
from setuptools import setup
from os import path
cur_dir = path.abspath(path.dirname(__file__))
with open(path.join(cur_dir, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='SLPP',
description='SLPP is a simple lua-python data structures parser',
lon... | mit | Python |
4f0b2f01f0acc7568ab265c84194d33b7c108124 | Update version to 1.0.14 | yunify/qingcloud-sdk-python | setup.py | setup.py | # coding:utf-8
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info < (2, 6):
error = 'ERROR: qingcloud-sdk requires Python Version 2.6 or above.'
print >> sys.stderr, error
sys.exit(1)
setup(
name='qingcloud-sdk',
version=... | # coding:utf-8
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info < (2, 6):
error = 'ERROR: qingcloud-sdk requires Python Version 2.6 or above.'
print >> sys.stderr, error
sys.exit(1)
setup(
name='qingcloud-sdk',
version=... | apache-2.0 | Python |
735604469311357e53a973f1fbf962bc3779fae6 | add some project URLs | jjkester/django-auditlog | setup.py | setup.py | import os
from setuptools import setup
# Readme as long description
with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme_file:
long_description = readme_file.read()
setup(
name="django-auditlog",
use_scm_version={"version_scheme": "post-release"},
setup_requires=["setuptools_scm"... | import os
from setuptools import setup
# Readme as long description
with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme_file:
long_description = readme_file.read()
setup(
name="django-auditlog",
use_scm_version={"version_scheme": "post-release"},
setup_requires=["setuptools_scm"... | mit | Python |
d813b5c0d077fe158f9ae06c6c20c29c81d90dc0 | Upgrade Core | antoinearnoud/openfisca-france,sgmap/openfisca-france,antoinearnoud/openfisca-france,sgmap/openfisca-france | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = 'OpenFisca-France',
version = '21.2.0',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.fr',
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OS... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name = 'OpenFisca-France',
version = '21.2.0',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.fr',
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OS... | agpl-3.0 | Python |
253150f26f6d7b968268bcbe66abbf5625a6f2b0 | Bump version | bradleyayers/django-attest | setup.py | setup.py | # coding: utf8
from setuptools import setup
setup(
name='django-attest',
version='0.5.3',
description='Provides Django specific testing helpers to Attest',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
license='Simplified BSD',
url='https://github.com/bradleyayers/django... | # coding: utf8
from setuptools import setup
setup(
name='django-attest',
version='0.5.2',
description='Provides Django specific testing helpers to Attest',
author='Bradley Ayers',
author_email='bradley.ayers@gmail.com',
license='Simplified BSD',
url='https://github.com/bradleyayers/django... | bsd-2-clause | Python |
bff0663dce7782c94d8c12cf4cb0ba441ea68eaf | Add python 3.6 tag | HumanCompatibleAI/imitation,humancompatibleai/imitation,humancompatibleai/imitation,HumanCompatibleAI/imitation | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name='imitation',
version='0.1',
description=(
'Implementation of modern IRL and imitation learning algorithms.'),
author='Center for Human-Compatible AI and Google',
python_requires='>=3.6.0',
packages=find_packages(exclude=['test*']),... | from setuptools import find_packages, setup
setup(
name='imitation',
version='0.1',
description=(
'Implementation of modern IRL and imitation learning algorithms.'),
author='Center for Human-Compatible AI and Google',
python_requires='>=3.6.0',
packages=find_packages(exclude=['test*']),... | mit | Python |
67082fdd60b721bbbae1953f2010d028385ada7b | update setup.py file to reflect latest pip upgrade (#500) | HTTP-APIs/hydrus | setup.py | setup.py | #!/usr/bin/env python
"""Setup script for Hydrus."""
from setuptools import setup, find_packages
try:
# pip >=20
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
install_requires = parse_requirements('requirements.txt', session=PipSession())
dep... | #!/usr/bin/env python
"""Setup script for Hydrus."""
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from pip.... | mit | Python |
3d64972270e1bae45f0d822a4cf3e681d3c21d91 | Bump version to 0.1.1 | mwilliamson/marmoset.py | 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='marmoset',
version='0.1.1',
description='Convert Python values, such as lists and dicts, into human-friendly strings',
long_description... | #!/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='marmoset',
version='0.1.0',
description='Convert Python values, such as lists and dicts, into human-friendly strings',
long_description... | bsd-2-clause | Python |
39c8fd9f9f63ea3e047d8cc6bc653d79cb9423f0 | Fix missing comma in setup.py | fallenshell/coverpy | setup.py | setup.py | from setuptools import setup, find_packages
setup(
# PyPI specific meta
name='coverpy',
version='0.1',
license='MIT License',
author="fallenshell",
author_email='dev@mxio.us',
description="A wrapper for iTunes Search API",
long_description=open('README.md').read(),
keywords='itunes search api wrapper simple c... | from setuptools import setup, find_packages
setup(
# PyPI specific meta
name='coverpy',
version='0.1',
license='MIT License',
author="fallenshell",
author_email='dev@mxio.us',
description="A wrapper for iTunes Search API",
long_description=open('README.md').read(),
keywords='itunes search api wrapper simple c... | mit | Python |
37451459fd30dbeb7e841fcd7fac29e1801337d2 | update of setup.py | TUW-GEO/rt1 | setup.py | setup.py | # -*- coding: UTF-8 -*-
"""
This file is part of RT1.
(c) 2016- Raphael Quast
For COPYING and LICENSE details, please refer to the LICENSE file
"""
from setuptools import setup
from setuptools import find_packages
def get_packages():
find_packages(exclude=['contrib', 'docs', 'tests*']),
return find_packages... | # -*- coding: UTF-8 -*-
"""
This file is part of RT1.
(c) 2016- Raphael Quast
For COPYING and LICENSE details, please refer to the LICENSE file
"""
from setuptools import setup
from setuptools import find_packages
def get_packages():
find_packages(exclude=['contrib', 'docs', 'tests*']),
return find_packages... | apache-2.0 | Python |
34951530d6151bff3a25b1e4eaf004656740bab7 | bump version | marcelm/xopen | setup.py | setup.py | import sys
from setuptools import setup
if sys.version_info < (2, 7):
sys.stdout.write("At least Python 2.7 is required.\n")
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
if sys.version_info < (3, ):
requires = ['bz2file']
else:
requires = []
setup(
name='xopen',
version='0.3.3',
aut... | import sys
from setuptools import setup
if sys.version_info < (2, 7):
sys.stdout.write("At least Python 2.7 is required.\n")
sys.exit(1)
with open('README.rst') as f:
long_description = f.read()
if sys.version_info < (3, ):
requires = ['bz2file']
else:
requires = []
setup(
name='xopen',
version='0.3.2',
aut... | mit | Python |
ccf5604bf5d33c33da1ca1f77a44fd0d052ae1cc | Drop python 2 compat. | ecmwf/eccodes-python,ecmwf/eccodes-python | setup.py | setup.py | #!/usr/bin/env python
#
# Copyright 2017-2019 European Centre for Medium-Range Weather Forecasts (ECMWF).
#
# 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/... | #!/usr/bin/env python
#
# Copyright 2017-2019 European Centre for Medium-Range Weather Forecasts (ECMWF).
#
# 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/... | apache-2.0 | Python |
8d7e23a07fd302cd561dbf693a620b63bcf0753a | exclude tests in setup.py | docker/python-dockercloud,docker/python-dockercloud | setup.py | setup.py | import codecs
import os
import re
from setuptools import setup, find_packages
requirements =[
"future >= 0.15.0, < 1",
"requests >= 2.5.2, < 3",
"six >= 1.3.0, < 2",
"websocket-client >= 0.32.0, < 1"
]
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(... | import codecs
import os
import re
from setuptools import setup, find_packages
requirements =[
"future >= 0.15.0, < 1",
"requests >= 2.5.2, < 3",
"six >= 1.3.0, < 2",
"websocket-client >= 0.32.0, < 1"
]
def read(*parts):
path = os.path.join(os.path.dirname(__file__), *parts)
with codecs.open(... | apache-2.0 | Python |
f44634c79af92fc66da9055948595926040ca9aa | update SDK landing page in setup.py | open-power-sdk/power-simulator,open-power-sdk/power-simulator | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017 IBM Corporation
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... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017 IBM Corporation
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... | apache-2.0 | Python |
f34c556188700ed0b61e7eef71b478c39d64e3c9 | Fix content-type of description | valhallasw/flask-mwoauth,valhallasw/flask-mwoauth | setup.py | setup.py | from setuptools import setup
exec([l for l in open("flask_mwoauth/__init__.py")
if l.startswith('__version__')][0])
setup(name='flask-mwoauth',
version=__version__,
description='Flask blueprint to connect to a MediaWiki OAuth server',
long_description=open('README.md').read(),
long_descr... | from setuptools import setup
exec([l for l in open("flask_mwoauth/__init__.py")
if l.startswith('__version__')][0])
setup(name='flask-mwoauth',
version=__version__,
description='Flask blueprint to connect to a MediaWiki OAuth server',
long_description=open('README.md').read(),
url='http:... | mit | Python |
fe26c73f28c29247df0b6879e395b73ae4465da9 | Increment version to 1.3.1. | getwarped/powershift-cli,getwarped/powershift-cli | 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... | bsd-2-clause | Python |
4e7f9bfc1064b0cd2323c61ae51a063bad2994e6 | update version number | visualfabriq/bqueryd | setup.py | setup.py | from distutils.core import setup
setup(name='bqueryd',
version='0.10.1',
description='A companion library to make bquery distributed',
maintainer='Carst Vaartjes',
maintainer_email='cvaartjes@visualfabriq.com',
url='https://github.com/visualfabriq/bqueryd',
license='MIT',
pack... | from distutils.core import setup
setup(name='bqueryd',
version='0.10',
description='A companion library to make bquery distributed',
maintainer='Carst Vaartjes',
maintainer_email='cvaartjes@visualfabriq.com',
url='https://github.com/visualfabriq/bqueryd',
license='MIT',
packag... | bsd-3-clause | Python |
0243af9efb3caf83268af35f9f2d80977e13afb1 | Add webtest as a dependency. | morepath/more.static | setup.py | setup.py | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='more.static',
version='0.1.dev0',
description="BowerStatic integration for Morepath",
long_description=long_description,
author="Mar... | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='more.static',
version='0.1.dev0',
description="BowerStatic integration for Morepath",
long_description=long_description,
author="Mar... | bsd-3-clause | Python |
e743f9654c738220c24b4ddc5ee473f06357260b | update setup, add vuln package | viraintel/OWASP-Nettacker,viraintel/OWASP-Nettacker,viraintel/OWASP-Nettacker,viraintel/OWASP-Nettacker | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
setup(
name='OWASP-Nettacker',
version='0.0.1',
packages=['lib', 'lib.icmp', 'lib.scan', 'lib.scan.dir', 'lib.scan.subdomain', 'lib.scan.tcp_connect_port',
'lib.scan.viewdns_reverse_ip_lookup', 'lib.vuln', ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
setup(
name='OWASP-Nettacker',
version='0.0.1',
packages=['lib', 'lib.icmp', 'lib.scan', 'lib.scan.dir', 'lib.scan.subdomain', 'lib.scan.tcp_connect_port',
'lib.scan.viewdns_reverse_ip_lookup', 'lib.brute',... | apache-2.0 | Python |
98e7e6786e1c0e307cf767ccdf1dc51492245454 | Fix the version of the udatetime | opendoor-labs/rets,opendoor-labs/rets | setup.py | setup.py | import sys
from setuptools import setup
if sys.version_info < (3, 5):
print('rets requires Python 3.5 or later')
sys.exit(1)
long_desc = 'Python 3 client for the Real Estate Transaction Standard (RETS) Version 1.7.2'
install_requires = [
'requests>=2.12.3',
'requests-toolbelt>=0.7.0',
'udatetim... | import sys
from setuptools import setup
if sys.version_info < (3, 5):
print('rets requires Python 3.5 or later')
sys.exit(1)
long_desc = 'Python 3 client for the Real Estate Transaction Standard (RETS) Version 1.7.2'
install_requires = [
'requests>=2.12.3',
'requests-toolbelt>=0.7.0',
'udatetim... | mit | Python |
f90116f09898765bad1a4c2b5db29a511c35bf87 | Update setup.py | dagnelies/pysos,dagnelies/pysos | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='pysos',
version='1.2.7',
py_modules=['pysos'],
scripts=['pysos.py'],
description='Simple Object Storage - Persistent dicts and lists for python.',
url='https://github.com/dagnelies/pysos',
author='Arnaud Dagnelies',
author_email=... | from setuptools import setup, find_packages
setup(
name='pysos',
version='1.2.6',
py_modules=['pysos'],
scripts=['pysos.py'],
description='Simple Object Storage - Persistent dicts and lists for python.',
url='https://github.com/dagnelies/pysos',
author='Arnaud Dagnelies',
author_email=... | apache-2.0 | Python |
96f5484d761351f22735e1a4f07b351b3cb45fc1 | Increment version to 1.1.0. | getwarped/powershift-image,getwarped/powershift-image | 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... | bsd-2-clause | Python |
684e2894a8c4da327410a8898e63df504780d7f8 | Add fuzzywuzzy and python-Levenshtein as depends | TylerKirby/cltk,cltk/cltk,mbevila/cltk,LBenzahia/cltk,diyclassics/cltk,kylepjohnson/cltk,D-K-E/cltk,LBenzahia/cltk,coderbhupendra/cltk,TylerKirby/cltk | setup.py | setup.py | """Config for PyPI."""
from setuptools import find_packages
from setuptools import setup
setup(
author='Kyle P. Johnson',
author_email='kyle@kyle-p-johnson.com',
classifiers=[
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MI... | """Config for PyPI."""
from setuptools import find_packages
from setuptools import setup
setup(
author='Kyle P. Johnson',
author_email='kyle@kyle-p-johnson.com',
classifiers=[
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MI... | mit | Python |
18e0ab035a072bc82591204d7261f3916fbe90ab | fix versionning | ow2-proactive/client-python | setup.py | setup.py | from __future__ import print_function
import os
import sys
import time
import pkg_resources
import platform
from setuptools import setup, find_packages, Command
from setuptools.command.install_egg_info import install_egg_info as _install_egg_info
from setuptools.dist import Distribution
import datetime
now = datetime.... | from __future__ import print_function
import os
import sys
import time
import pkg_resources
import platform
from setuptools import setup, find_packages, Command
from setuptools.command.install_egg_info import install_egg_info as _install_egg_info
from setuptools.dist import Distribution
import datetime
now = datetime.... | bsd-2-clause | Python |
a87e3962c7bab212301657029dee4dea995871ab | Remove debug output | HackerExperience/HEpigram | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='HEpigram',
version='0.1',
url='https://dev.hackerexperience.com/diffusion/HEPG/',
author='Renato Massaro',
author_email='renato@hackerexperience.com',
description=('HEpigram provides a friendly interface for documents that '
... | from setuptools import setup, find_packages
print(find_packages())
setup(
name='HEpigram',
version='0.1',
url='https://dev.hackerexperience.com/diffusion/HEPG/',
author='Renato Massaro',
author_email='renato@hackerexperience.com',
description=('HEpigram provides a friendly interface for docum... | mit | Python |
138813d6477f35e05e65d5306632e3ce95170635 | Bump dependency versions. | dpgaspar/Flask-AppBuilder,dpgaspar/Flask-AppBuilder,dpgaspar/Flask-AppBuilder,dpgaspar/Flask-AppBuilder | setup.py | setup.py | import os
import sys
import imp
import multiprocessing
from setuptools import setup, find_packages
version = imp.load_source('version', os.path.join('flask_appbuilder', 'version.py'))
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
def... | import os
import sys
import imp
import multiprocessing
from setuptools import setup, find_packages
version = imp.load_source('version', os.path.join('flask_appbuilder', 'version.py'))
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
def... | bsd-3-clause | Python |
8150553257b60f5cd9f8778a196e55b4fa181371 | Fix install_requires in setup.py | coinbox/coinbox-core | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="Coinbox POS",
version="0.1",
packages=find_packages()+['argparse'],
scripts=['coinbox'],
zip_safe=True,
namespace_packages=['cbpos', 'cbpos.mod'],
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name="Coinbox POS",
version="0.1",
packages=find_packages()+['argparse'],
scripts=['coinbox'],
zip_safe=True,
namespace_packages=['cbpos', 'cbpos.mod'],
include_package_data=True,
install_requires=[
... | mit | Python |
c4d6096279c90a459d829f5c03193736a5ca6c41 | Remove unused import | Uname-a/knife_scraper,Uname-a/knife_scraper,Uname-a/knife_scraper | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from willie import __version__
import tempfile
import os
import shutil
def do_setup():
try:
# This special screwing is to make willie.py get installed to PATH as
# willie, not willie.py. Don't remove it, or you'll break it.
tmp_dir = ... | #!/usr/bin/env python
from distutils.core import setup
from willie import __version__
from sys import argv
import tempfile
import os
import shutil
def do_setup():
try:
# This special screwing is to make willie.py get installed to PATH as
# willie, not willie.py. Don't remove it, or you'll break i... | mit | Python |
e14a35bdad64212d33c9af1e5f9ef01d278bf9d1 | fix download_url | cfpb/django-nudge | setup.py | setup.py | from distutils.core import setup
# Load in babel support, if available.
try:
from babel.messages import frontend as babel
cmdclass = {"compile_catalog": babel.compile_catalog,
"extract_messages": babel.extract_messages,
"init_catalog": babel.init_catalog,
"updat... | from distutils.core import setup
# Load in babel support, if available.
try:
from babel.messages import frontend as babel
cmdclass = {"compile_catalog": babel.compile_catalog,
"extract_messages": babel.extract_messages,
"init_catalog": babel.init_catalog,
"updat... | cc0-1.0 | Python |
19089939511ae35903aee695780860d8c61f9c6c | Add xlrd dependency | openeemeter/eemeter,openeemeter/eemeter | setup.py | setup.py | from setuptools import setup, find_packages
version = __import__('eemeter').get_version()
setup(
name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=(
"Standard methods for calculating energy efficiency savings."
),
url='https://github.com/ope... | from setuptools import setup, find_packages
version = __import__('eemeter').get_version()
setup(
name='eemeter',
version=version,
description='Open Energy Efficiency Meter',
long_description=(
"Standard methods for calculating energy efficiency savings."
),
url='https://github.com/ope... | apache-2.0 | Python |
3fd32005a89112fe9f94281b33a497d4ab1ebb55 | Update setup.py:version | SRJ9/django-driver27,SRJ9/django-driver27,SRJ9/django-driver27 | setup.py | setup.py | from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read().splitlines()
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='django-driver27',
version='0.24.2.6',
include_package_data=True,
packages=fin... | from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read().splitlines()
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='django-driver27',
version='0.24.2.5',
include_package_data=True,
packages=fin... | mit | Python |
660a7cb77ce14f2d7acf5719043320f279fe6153 | Add 1992 years | jzmiller1/nlcd | nlcd/__init__.py | nlcd/__init__.py | nlcd_years = [1992, 2001, 2006, 2011]
values = {'11': 'Open Water',
'12': 'Perennial Ice/Snow',
'21': 'Developed, Open Space',
'22': 'Developed, Low Intensity',
'23': 'Developed, Medium Intensity',
'24': 'Developed High Intensity',
'31': 'Barren Land (Rock/Sa... | nlcd_years = [2001, 2006, 2011]
values = {'11': 'Open Water',
'12': 'Perennial Ice/Snow',
'21': 'Developed, Open Space',
'22': 'Developed, Low Intensity',
'23': 'Developed, Medium Intensity',
'24': 'Developed High Intensity',
'31': 'Barren Land (Rock/Sand/Cla... | mit | Python |
30a4908c06ca0093e2a9f8da1ca2dac0f18283fe | Include all dirs | praekelt/django-ultracache,praekelt/django-ultracache | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="django-ultracache",
description="Drop-in replacement for Django's template fragment caching. Provides automatic cache invalidation.",
long_description = open("README.rst", "r").read() + open("AUTHORS.rst", "r").read() + open("CHANGELOG.rst", "r").rea... | from setuptools import setup, find_packages
setup(
name="django-ultracache",
description="Drop-in replacement for Django's template fragment caching. Provides automatic cache invalidation.",
long_description = open("README.rst", "r").read() + open("AUTHORS.rst", "r").read() + open("CHANGELOG.rst", "r").rea... | bsd-3-clause | Python |
0163ded85b5cb7a260f923a5e800cdb672450739 | fix typo | miurahr/symposion,pydata/symposion,pinax/symposion,faulteh/symposion,faulteh/symposion,pyohio/symposion,euroscipy/symposion,toulibre/symposion,pyconau2017/symposion,pinax/symposion,miurahr/symposion,euroscipy/symposion,pyohio/symposion,pyconau2017/symposion,pydata/symposion,toulibre/symposion | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import symposion
def read_file(filename):
"""Read a file into a string."""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import symposion
def read_file(filename):
"""Read a file into a string."""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.ojoin(path, filename)
try:
return open(filepath).read()
except IOErro... | bsd-3-clause | Python |
703bd3298ab57f1d9bc80fdd4bc98640f6a15466 | bump version as instructed by bamboo | pbs/django-cms-smartsnippets,pbs/django-cms-smartsnippets,pbs/django-cms-smartsnippets,pbs/django-cms-smartsnippets | setup.py | setup.py | import os
from setuptools import setup, find_packages
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
dependencies = [
'django>=1.3,<1.5',
'django-cms>=2.3,<2.3.6',
'django-admin-extend'
]
dependency_links = [
'http://github.com/pbs/djan... | import os
from setuptools import setup, find_packages
README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'README.rst')
dependencies = [
'django>=1.3,<1.5',
'django-cms>=2.3,<2.3.6',
'django-admin-extend'
]
dependency_links = [
'http://github.com/pbs/djan... | bsd-3-clause | Python |
cc0d28ccce73c9635abc17fc07ea41f39bebdff8 | Bump minimum Django version to 2.1 for json_script | datamade/django-councilmatic,datamade/django-councilmatic,datamade/django-councilmatic,datamade/django-councilmatic | setup.py | setup.py | import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-councilmatic',
... | import os
from setuptools import setup, find_packages
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-councilmatic',
... | mit | Python |
2b28b3154658c2ca025814122fef03c228f9c2da | Remove cliapp | rcbops/opencenter-client,rcbops/opencenter-client | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
requirements = ['requests']
setup(name='roush-client',
version='1.0.0',
description='Client library for Roush API',
author='Justin Shepherd',
author_email='jshepher@rackspace.com',
url='',
license='Apache',
pa... | #!/usr/bin/env python
from setuptools import setup, find_packages
requirements = ['cliapp', 'requests']
setup(name='roush-client',
version='1.0.0',
description='Client library for Roush API',
author='Justin Shepherd',
author_email='jshepher@rackspace.com',
url='',
license='Apache'... | apache-2.0 | Python |
cee6c542fc1b1859ec4be3814e51c75f66afc558 | Tweak setup.py to actually include all of flashsort package | deeplycloudy/lmatools | setup.py | setup.py | from distutils.core import setup
setup(name='lmatools',
version='0.1',
description='Python tools for processing and visualizing Lightning Mapping Array data',
author='Eric Bruning',
author_email='eric.bruning@gmail.com',
url='https://bitbucket.org/deeplycloudy/lmatools/',
packages=['flashsort',... | from distutils.core import setup
setup(name='lmatools',
version='0.1',
description='Python tools for processing and visualizing Lightning Mapping Array data',
author='Eric Bruning',
author_email='eric.bruning@gmail.com',
url='https://bitbucket.org/deeplycloudy/lmatools/',
packages=['flashsort']... | bsd-2-clause | Python |
dcfce581aed4035c28c9532ce2e6b87884243bed | add unittest2 require | OpenSight/StorLever,OpenSight/StorLever,OpenSight/StorLever,OpenSight/StorLever | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.md')).read()
requires = [
'pyramid',
'pyramid_debugtoolbar',
'waitress',
'pyyaml',
'p... | import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.md')).read()
requires = [
'pyramid',
'pyramid_debugtoolbar',
'waitress',
'pyyaml',
'p... | agpl-3.0 | Python |
7f8b087c231846a9f83ad57cdfedfe4484dc0a3d | Remove unused win_inet_pton dependency | jonhadfield/python-hosts | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
version = "0.4.5"
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload -r pypi')
sys.exit()
if sys.argv[-1] == 'tag':
os.system("git tag -a {0} -m 'version {1}... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
version = "0.4.5"
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload -r pypi')
sys.exit()
if sys.argv[-1] == 'tag':
os.system("git tag -a {0} -m 'version {1}... | mit | Python |
228aeea89d3b2b293cf609e7e9c0fcc287457e08 | add tests for user_detail reverse with weird usernames | mcallistersean/b2-issue-tracker,mcallistersean/b2-issue-tracker,mcallistersean/b2-issue-tracker | api/tests.py | api/tests.py | from django.test import TestCase
from django.core.urlresolvers import reverse
from issues.models import Issue, IssueType
from django.contrib.auth.models import User
from django.contrib.gis.geos import Point
from organisations.models import Organisation
class ReadApiTestCase(TestCase):
def setUp(self):
s... | from django.test import TestCase
from issues.models import Issue, IssueType
from django.contrib.auth.models import User
from django.contrib.gis.geos import Point
from organisations.models import Organisation
class ReadApiTestCase(TestCase):
def setUp(self):
self.org = Organisation.objects.create(
... | mit | Python |
c7689244b6de2cc9a01568e7cdab543cf8790214 | Improve the version information string | sahg/SAHGutils | setup.py | setup.py | import os
import subprocess
from distutils.core import setup
try:
if os.path.exists(".git"):
s = subprocess.Popen(["git", "rev-parse", "HEAD"],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
out = s.communicate()[0]
GIT_REVISION = out.strip()
else:
GIT_REVISIO... | import os
import subprocess
from distutils.core import setup
try:
if os.path.exists(".git"):
s = subprocess.Popen(["git", "rev-parse", "HEAD"],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
out = s.communicate()[0]
GIT_REVISION = out.strip()
else:
GIT_REVISIO... | bsd-3-clause | Python |
dd2b9d90d97a3f2c1ebfb8309d7c02dc8e2c7375 | Add pygments as requirement. | pyschool/story | setup.py | setup.py | #!/usr/bin/env python
import codecs
from setuptools import find_packages, setup
import story
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
readme = f.read()
with codecs.open('HISTORY.rst', encoding='utf8') as f:
history = f.read()
return readme + history
... | #!/usr/bin/env python
import codecs
from setuptools import find_packages, setup
import story
def long_description():
with codecs.open('README.rst', encoding='utf8') as f:
readme = f.read()
with codecs.open('HISTORY.rst', encoding='utf8') as f:
history = f.read()
return readme + history
... | mit | Python |
9b8041bd2279b0e95f3a6364379af8af3b4b7ca5 | Increment micro version number | avelkoski/FRB | 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__))
VERSION = (1, 1, 4)
__version__ = VERSION
__versionstr__ = '.'.join(map(str, VERSION))
# Get the long descriptio... | # 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__))
VERSION = (1, 1, 3)
__version__ = VERSION
__versionstr__ = '.'.join(map(str, VERSION))
# Get the long descriptio... | mit | Python |
9d9992392914b80dae08782d602eae766f1325bc | Fix licence classifier again. | b-long/esmre,misja/esmre,wharris/libesm,misja/esmre,b-long/esmre,wharris/esmre,wharris/esmre,wharris/libesm | setup.py | setup.py | # setup.py - distutils configuration for esm and esmre modules
# Copyright (C) 2007 Tideway Systems Limited.
#
# 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... | # setup.py - distutils configuration for esm and esmre modules
# Copyright (C) 2007 Tideway Systems Limited.
#
# 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... | lgpl-2.1 | Python |
741a0dc769138587ce77af25cecf98e6f1e2300a | delete comment that's out of date | EDITD/queue_util | setup.py | setup.py | import setuptools
import sys
REQUIREMENTS = [
"kombu>=2.5,<2.6",
"nose>=1.3,<1.4",
"requests>=2,<3",
"six>=1.10.0,<2",
"statsd>=2.1,<2.2",
]
if __name__ == "__main__":
if len(sys.argv) > 1 and sys.argv[1] == "requirements":
for req in REQUIREMENTS:
print req
sys.e... | import setuptools
import sys
# How do we keep this in sync with requirements.pip?
#
REQUIREMENTS = [
"kombu>=2.5,<2.6",
"nose>=1.3,<1.4",
"requests>=2,<3",
"six>=1.10.0,<2",
"statsd>=2.1,<2.2",
]
if __name__ == "__main__":
if len(sys.argv) > 1 and sys.argv[1] == "requirements":
for r... | mit | Python |
997704e79529c4e8c84d08125a60cf775c0bb4df | update version | bird-house/birdhousebuilder.recipe.sphinx | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
This module contains the tool of birdhousebuilder.recipe.sphinx
"""
import os
from setuptools import setup, find_packages
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
version = '0.2.0'
long_description = (
read('README.rst') + '\n' +
... | # -*- coding: utf-8 -*-
"""
This module contains the tool of birdhousebuilder.recipe.sphinx
"""
import os
from setuptools import setup, find_packages
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
version = '0.1.7'
long_description = (
read('README.rst') + '\n' +
... | apache-2.0 | Python |
00e0b1fca3dea204d81f77371fdc6e77f5591210 | Add classifiers into setup.py | liuyug/django-alipay,liuyug/django-alipay | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-alipay',
version='0.1',
... | #!/usr/bin/env python
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-alipay',
version='0.1',
pac... | mit | Python |
c0f1a5ed9912162a88becdb308d205775bacd5f5 | Bump version number. | tensorflow/mesh,tensorflow/mesh | setup.py | setup.py | """Install Mesh TensorFlow."""
from setuptools import find_packages
from setuptools import setup
setup(
name='mesh-tensorflow',
version='0.1.17',
description='Mesh TensorFlow',
author='Google Inc.',
author_email='no-reply@google.com',
url='http://github.com/tensorflow/mesh',
license='Apach... | """Install Mesh TensorFlow."""
from setuptools import find_packages
from setuptools import setup
setup(
name='mesh-tensorflow',
version='0.1.16',
description='Mesh TensorFlow',
author='Google Inc.',
author_email='no-reply@google.com',
url='http://github.com/tensorflow/mesh',
license='Apach... | apache-2.0 | Python |
ff87f997be1a9f86fe1619107e12fb02aaccd8a7 | add support for python 3.10 (#44) | googleapis/python-dataflow-client,googleapis/python-dataflow-client | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | # -*- 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 | Python |
36d0b23668c894e6c7e554ad64683ba78be1718d | Fix urllib3 import error | google/python-cloud-utils | setup.py | setup.py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | apache-2.0 | Python |
0711b18e23bcbfed4e1dd635105b2bf2897ab9dd | add db to setup.py | firemark/hs-onliner,firemark/hs-onliner,firemark/hs-onliner | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="hs-onliner",
version="0.0.1",
author="Firemark",
author_email="marpiechula@gmail.com",
description="Site to view who will be in hackerspace every week."
license="MIT",
keywords="example documentation tutorial",
url="https://github.... | from setuptools import setup, find_packages
setup(
name="hs-onliner",
version="0.0.1",
author="Firemark & Kytes",
author_email="marpiechula@gmail.com",
description="Site to view who will be in hackerspace every week."
license="MIT",
keywords="example documentation tutorial",
url="https:/... | mit | Python |
c0842688640aae7c6f3811a253a4c7256d8dd4cd | Bump version. | lpantano/bcbio.coverage,lpantano/bcbio.coverage,lpantano/exomeCov,lpantano/exomeCov | setup.py | setup.py | from setuptools import setup, find_packages
# def readme():
# with open('README.md') as f:
# return f.read()
with open("requirements.txt", "r") as f:
install_requires = [x.strip() for x in f.readlines() if not x.startswith("#")]
setup(name='bcbreport',
version='0.99.25',
description='r... | from setuptools import setup, find_packages
# def readme():
# with open('README.md') as f:
# return f.read()
with open("requirements.txt", "r") as f:
install_requires = [x.strip() for x in f.readlines() if not x.startswith("#")]
setup(name='bcbreport',
version='0.99.24',
description='r... | mit | Python |
3712cb6ab2162f3f009f18f5180baa083109c36d | Bump to version 0.2.3 | laisee/bitfinex | setup.py | setup.py | from setuptools import setup
# Runtime dependencies. See requirements.txt for development dependencies.
dependencies = [
'requests',
'httpretty'
]
setup(name='bitfinex',
version='0.2.3',
description = 'Python client for the Bitfinex API',
author = 'Scott Barr',
author_email = 'scottjbarr@gmail... | from setuptools import setup
# Runtime dependencies. See requirements.txt for development dependencies.
dependencies = [
'requests',
'httpretty'
]
setup(name='bitfinex',
version='0.2.2',
description = 'Python client for the Bitfinex API',
author = 'Scott Barr',
author_email = 'scottjbarr@gmail... | mit | Python |
6e45b081f5b6e647cdc99440dc1ed48a6928463e | Bump up the version number. | avakar/crater,avakar/crater | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='crater',
version='0.3',
description='A dependency management system',
author='Martin Vejnár',
author_email='vejnar.martin@gmail.com',
url='https://github.com/avakar/crater',
license='MIT',
packages=['crat... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='crater',
version='0.2',
description='A dependency management system',
author='Martin Vejnár',
author_email='vejnar.martin@gmail.com',
url='https://github.com/avakar/crater',
license='MIT',
packages=['crat... | mit | Python |
b4c80238a2b6c3f9fb7437d216082315c601055b | Bump version number for 1.7 RC 2. | jyotsna1820/django,oscaro/django,oscaro/django,jyotsna1820/django,oscaro/django,jyotsna1820/django,oscaro/django,jyotsna1820/django | django/__init__.py | django/__init__.py | VERSION = (1, 7, 0, 'rc', 2)
def get_version(*args, **kwargs):
# Don't litter django/__init__.py with all the get_version stuff.
# Only import if it's actually called.
from django.utils.version import get_version
return get_version(*args, **kwargs)
def setup():
"""
Configure the settings (th... | VERSION = (1, 7, 0, 'rc', 1)
def get_version(*args, **kwargs):
# Don't litter django/__init__.py with all the get_version stuff.
# Only import if it's actually called.
from django.utils.version import get_version
return get_version(*args, **kwargs)
def setup():
"""
Configure the settings (th... | bsd-3-clause | Python |
b68adfb05810ea7470399f344426848369624def | add update functionality to TelescopeEventView | MaxNoe/cta_event_viewer | windows/__init__.py | windows/__init__.py | import tkinter as tk
import matplotlib
matplotlib.use('tkagg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
from plots import CameraPlot
class TelescopeEventView(tk.Frame):
""" A frame showing the camera view of a single telescope """
def __init__(self... | import tkinter as tk
import matplotlib
matplotlib.use('tkagg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
from plots import CameraPlot
class TelescopeEventView(tk.Frame):
""" A frame showing the camera view of a single telescope """
def __init__(self... | mit | Python |
9fbfdf6b71e89d2aa1fd62ef9d4e5432ccb4b06b | Add default_auto_field to apps.py (#231) | django-ses/django-ses,django-ses/django-ses | django_ses/apps.py | django_ses/apps.py | from django.apps import AppConfig
class DjangoSESConfig(AppConfig):
name = 'django_ses'
verbose_name = 'Django SES'
default_auto_field = 'django.db.models.AutoField'
| from django.apps import AppConfig
class DjangoSESConfig(AppConfig):
name = 'django_ses'
verbose_name = 'Django SES'
| mit | Python |
994f4d7e3a5c602c0fcb742de9fdf203bb1c4bde | reset simple_db_adapter after each test (ugly but it woks) | DLR-SC/prov-db-connector,DLR-SC/prov-db-connector | provdbconnector/tests/db_adapters/in_memory/test_simple_in_memory.py | provdbconnector/tests/db_adapters/in_memory/test_simple_in_memory.py | from provdbconnector.exceptions.database import InvalidOptionsException
from provdbconnector.db_adapters.in_memory import SimpleInMemoryAdapter
from provdbconnector.provapi import ProvApi
from provdbconnector.tests import AdapterTestTemplate
from provdbconnector.tests import ProvApiTestTemplate
class SimpleInMemoryAd... | from provdbconnector.exceptions.database import InvalidOptionsException
from provdbconnector.db_adapters.in_memory import SimpleInMemoryAdapter
from provdbconnector.provapi import ProvApi
from provdbconnector.tests import AdapterTestTemplate
from provdbconnector.tests import ProvApiTestTemplate
class SimpleInMemoryAd... | apache-2.0 | Python |
c9e1add322919fd5278b139b5931d9579ea5794d | Update vkaudio.py | haitaka/DroiTaka | cogs/utils/api/vkaudio.py | cogs/utils/api/vkaudio.py | # coding: utf-8
import json
import requests
class VkAudio(object):
def __init__(self, token):
self.session = requests.session()
self.session.params = {'access_token': token, }
def _get(self, url, *args, **kwargs):
return self.session.get(url, *args, **kwargs)
def get_by_url(self, url):
name = url.spli... | # coding: utf-8
import json
import requests
class VkAudio(object):
def __init__(self, token):
self.session = requests.session()
self.session.params = {'access_token': token, }
def _get(self, url, *args, **kwargs):
return self.session.get(url, *args, **kwargs)
def get_by_url(self, url):
name = url.spli... | mit | Python |
ff8ec9c7e7645fc429dbfb7c9b12699693f29369 | Modify board-list api | LeoIsaac/piccolle-v2,LeoIsaac/piccolle-v2 | app/board.py | app/board.py | from urllib.request import urlopen
from bs4 import BeautifulSoup
class Board():
def getList(self) -> list:
"""
掲示板のリストをlistにして返す
@return list
"""
url = "https://2ch.sc/bbstable.html"
pics = []
html = urlopen(url)
soup = BeautifulSoup(html, "html.pars... | from urllib.request import urlopen
from urllib.parse import urljoin
from bs4 import BeautifulSoup
class Board():
def getList(self):
"""
掲示板のリストをlistにして返す
@return list
"""
url = "https://2ch.sc/bbstable.html"
pics = []
html = urlopen(url)
soup = Beaut... | apache-2.0 | Python |
0f1a333a9d28a8980c2e5520f5a429a5d3aaa03c | fix error : django manage.py should have explicit python path on first line | dobestan/awesome-resu.me | awesome_resume/manage.py | awesome_resume/manage.py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
"awesome_resume.settings.production",
)
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| import os
import sys
if __name__ == "__main__":
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
"awesome_resume.settings.production",
)
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| mit | Python |
c31bf6447f7b373ecbcc79e161dc406907887344 | Add another test to check that the "See new artists" page is basically rendered correctly | chirpradio/command-center,chirpradio/command-center | commandcenter/app_test.py | commandcenter/app_test.py | from tornado.testing import AsyncHTTPTestCase
from tornado.websocket import websocket_connect
from . import app
class TestMyApp(AsyncHTTPTestCase):
def get_app(self):
return app.get_app()
def test_homepage(self):
response = self.fetch('/')
self.assertEqual(response.code, 200)
... | from tornado.testing import AsyncHTTPTestCase
from tornado.websocket import websocket_connect
from . import app
class TestMyApp(AsyncHTTPTestCase):
def get_app(self):
return app.get_app()
def test_homepage(self):
response = self.fetch('/')
self.assertEqual(response.code, 200)
... | apache-2.0 | Python |
d2e476254a4fd773258299d245c7d4ac75f28cb6 | add import statements for modules in wradlib's __init__.py | jjhelmus/wradlib,jjhelmus/wradlib | wradlib/__init__.py | wradlib/__init__.py | """
wradlib
=======
"""
import adjust
from adjust import *
import atten
from atten import *
import clutter
from clutter import *
import comp
from comp import *
import fill
from fill import *
import georef
from georef import *
import io
from io import *
import ipol
from ipol import *
import qual
... | """The wradlib Package
"""
| mit | Python |
58847ad838f35f9babd5c768a36125966d9c54f2 | remove unused kwarg | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | corehq/ex-submodules/toggle/shortcuts.py | corehq/ex-submodules/toggle/shortcuts.py | from couchdbkit import ResourceNotFound
from django.conf import settings
from django.core.cache import cache
from .models import Toggle
def toggle_enabled(slug, item, namespace=None):
"""
Given a toggle and a username, whether the toggle is enabled for that user
"""
item = namespaced_item(item, namesp... | from couchdbkit import ResourceNotFound
from django.conf import settings
from django.core.cache import cache
from .models import Toggle
def toggle_enabled(slug, item, check_cache=True, namespace=None):
"""
Given a toggle and a username, whether the toggle is enabled for that user
"""
item = namespaced... | bsd-3-clause | Python |
27b5ad700973e3e696bb333a6098e1f190c67f18 | Update ui_test.py (#696) | cloudify-cosmo/cloudify-system-tests,cloudify-cosmo/cloudify-system-tests | cosmo_tester/test_suites/ui_tests/ui_test.py | cosmo_tester/test_suites/ui_tests/ui_test.py | ########
# Copyright (c) 2017 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | ########
# Copyright (c) 2017 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | apache-2.0 | Python |
95d228cacec4c90120af071ef27d07a9644f15ae | Rewrite worldclock unittest tests to pytest style test functions (#40922) | tboyce1/home-assistant,aronsky/home-assistant,Danielhiversen/home-assistant,partofthething/home-assistant,tboyce1/home-assistant,nkgilley/home-assistant,home-assistant/home-assistant,tboyce1/home-assistant,soldag/home-assistant,turbokongen/home-assistant,toddeye/home-assistant,toddeye/home-assistant,FreekingDean/home-a... | tests/components/worldclock/test_sensor.py | tests/components/worldclock/test_sensor.py | """The test for the World clock sensor platform."""
import pytest
from homeassistant.setup import async_setup_component
import homeassistant.util.dt as dt_util
@pytest.fixture
def time_zone():
"""Fixture for time zone."""
return dt_util.get_time_zone("America/New_York")
async def test_time(hass, time_zone)... | """The test for the World clock sensor platform."""
import unittest
from homeassistant.setup import setup_component
import homeassistant.util.dt as dt_util
from tests.common import get_test_home_assistant
class TestWorldClockSensor(unittest.TestCase):
"""Test the World clock sensor."""
def setUp(self):
... | apache-2.0 | Python |
49ae483e991880a107a2234d47bbc0e612c2e2f0 | Bump version | vmalloc/backslash-python,slash-testing/backslash-python | backslash/__version__.py | backslash/__version__.py | __version__ = '2.22.1'
| __version__ = "2.22.0"
| bsd-3-clause | Python |
14c81a39c4c7ff0b6f77c466f657e1be4760ffe9 | Bump version to 0.1a18 | letuananh/chirptext,letuananh/chirptext | chirptext/__version__.py | chirptext/__version__.py | # -*- coding: utf-8 -*-
# chirptext's package version information
__author__ = "Le Tuan Anh"
__email__ = "tuananh.ke@gmail.com"
__copyright__ = "Copyright (c) 2012, Le Tuan Anh"
__credits__ = []
__license__ = "MIT License"
__description__ = "ChirpText is a collection of text processing tools for Python."
__url__ = "ht... | # -*- coding: utf-8 -*-
# chirptext's package version information
__author__ = "Le Tuan Anh"
__email__ = "tuananh.ke@gmail.com"
__copyright__ = "Copyright (c) 2012, Le Tuan Anh"
__credits__ = []
__license__ = "MIT License"
__description__ = "ChirpText is a collection of text processing tools for Python."
__url__ = "ht... | mit | Python |
3573f9a4df0c27021f3b912709e6462ce2d466e0 | add scaffold adventures | rcbops/opencenter,rcbops/opencenter | db/migrate_repo/versions/001_initial_data.py | db/migrate_repo/versions/001_initial_data.py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, object_mapper
from db.models import Adventures, Nodes, Roles, Tasks, Clusters
from db import api as api
# Base = declarative_base()
me... | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, object_mapper
from db.models import Nodes, Roles, Tasks, Clusters, Types, TypeStates
# Base = declarative_base()
meta = MetaData()
de... | apache-2.0 | Python |
968f8cc8df14e91748409353937f85ca17030770 | remove unicode literal from code | openstack/oslo.vmware | doc/source/conf.py | doc/source/conf.py | # -*- coding: utf-8 -*-
# Copyright (C) 2020 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | # -*- coding: utf-8 -*-
# Copyright (C) 2020 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | apache-2.0 | Python |
bb951b655ca49b341fec3f6cb813f2b07c118696 | Add utility function for getting the redirect target | Encrylize/MyDictionary,Encrylize/MyDictionary,Encrylize/MyDictionary | app/utils.py | app/utils.py | from urllib.parse import urlparse, urljoin
from flask import request
def get_or_create(model, **kwargs):
""" Returns an instance of model and whether or not it already existed in a tuple. """
instance = model.query.filter_by(**kwargs).first()
if instance:
return instance, False
else:
in... | from urllib.parse import urlparse, urljoin
from flask import request
def get_or_create(model, **kwargs):
""" Returns an instance of model and whether or not it already existed in a tuple. """
instance = model.query.filter_by(**kwargs).first()
if instance:
return instance, False
else:
in... | mit | Python |
e8d023c1406fb57fda6647b1878f5207e88c5956 | Use sha256 for hashes. Fix url path joining. | groutr/conda-tools,groutr/conda-tools | conda_tools/repository.py | conda_tools/repository.py | from __future__ import print_function
import bz2
from json import loads
from os.path import join
from .compat import ditems, urlopen
PACKAGE_FIELDS = (
'build', 'build_number', 'date', 'date', 'depends', 'requires',
'license', 'license_family', 'md5', 'size', 'version', 'name', 'sha256'
)
class RepoPackag... | from __future__ import print_function
import bz2
from json import loads
from os.path import join
from .compat import ditems, urlopen
PACKAGE_FIELDS = (
'build', 'build_number', 'date', 'date', 'depends', 'requires',
'license', 'license_family', 'md5', 'size', 'version', 'name'
)
class RepoPackage(object):... | bsd-3-clause | Python |
02faa67481e0902501e9e269c17351d9b8f05afa | Add a test for exporting to dot from python | mathstuf/sprokit,Kitware/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,Kitware/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,mathstuf/sprokit,linus-sherrill/sprokit | tests/python/pipeline_util/test-export_.py | tests/python/pipeline_util/test-export_.py | #!/usr/bin/env python
#ckwg +5
# Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
def log(msg):
import sys
sys.stderr.write("%s\n" % msg)
def test_imp... | #!/usr/bin/env python
#ckwg +5
# Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
# KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
# Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
def log(msg):
import sys
sys.stderr.write("%s\n" % msg)
def test_imp... | bsd-3-clause | Python |
4754a7740a95b28b226dcd4e7204c07ac6c22fca | Remove leftover from Buildout | Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server | lava/recipes/wsgi.py | lava/recipes/wsgi.py | import os
import yaml
from django.core.wsgi import get_wsgi_application
def create_environ(env_file):
""" Generate the env variables for the server, same as the dispatcher """
conf = yaml.load(open(env_file))
if conf.get('purge', False):
environ = {}
else:
environ = dict(os.environ)
... | import os
import yaml
from django.core.wsgi import get_wsgi_application
def create_environ(env_file):
""" Generate the env variables for the server, same as the dispatcher """
conf = yaml.load(open(env_file))
if conf.get('purge', False):
environ = {}
else:
environ = dict(os.environ)
... | agpl-3.0 | Python |
574697b2e237a89103ef585fab1c951269c26e17 | Fix clean_attrs to include request JSON | sprucedev/DockCI-Agent,sprucedev/DockCI,sprucedev/DockCI,RickyCook/DockCI,sprucedev/DockCI-Agent,RickyCook/DockCI,sprucedev/DockCI,RickyCook/DockCI,sprucedev/DockCI,RickyCook/DockCI | dockci/api/util.py | dockci/api/util.py | """ Utilities used when building APIs """
from copy import copy
from flask import request
from flask_restful import fields
DT_FORMATTER = fields.DateTime('iso8601')
def set_attrs(obj, values):
""" Set attrs in values, on obj """
for attr_name, attr_value in values.items():
setattr(obj, attr_name, a... | """ Utilities used when building APIs """
from copy import copy
from flask import request
from flask_restful import fields
DT_FORMATTER = fields.DateTime('iso8601')
def set_attrs(obj, values):
""" Set attrs in values, on obj """
for attr_name, attr_value in values.items():
setattr(obj, attr_name, a... | isc | Python |
7cb0c59c30314c39ad3fa5aaf29819438aec082a | Remove duplicate method | davidrobles/mlnd-capstone-code | capstone/game.py | capstone/game.py | import abc
import six
@six.add_metaclass(abc.ABCMeta)
class Game(object):
'''Interface for abstract strategy games'''
@abc.abstractmethod
def copy(self):
'''Returns a copy of the game'''
pass
@abc.abstractmethod
def cur_player(self):
'''Returns the index of the player in ... | import abc
import six
@six.add_metaclass(abc.ABCMeta)
class Game(object):
'''Interface for abstract strategy games'''
@abc.abstractmethod
def copy(self):
'''Returns a copy of the game'''
pass
@abc.abstractmethod
def cur_player(self):
'''Returns the index of the player in ... | mit | Python |
679e1632f8c444cdae74d6f87c0a8aceec24504b | Update test_mergesort.py | ueg1990/aids | tests/test_sorting_and_searching/test_mergesort.py | tests/test_sorting_and_searching/test_mergesort.py | import unittest
from aids.sorting_and_searching.mergesort import mergesort, merge
class MergesortTestCase(unittest.TestCase):
'''
Unit tests for mergesort
'''
def setUp(self):
self.example_1 = [18,5,3,1,19,6,0,7,4,2,5]
self.example_2 = [2,4,6,8,10]
self.example_3 = [3,5,7,9]
... | import unittest
from aids.sorting_and_searching.mergesort import mergesort
class MergesortTestCase(unittest.TestCase):
'''
Unit tests for mergesort
'''
def setUp(self):
self.example_1 = [18,5,3,1,19,6,0,7,4,2,5]
def test_mergesort(self):
result = mergesort(self.example_1)
... | mit | Python |
dcf3ff126a7efa8808ab4fee638e83c35ee424de | Fix cont condition bug, revise comments | bowen0701/algorithms_data_structures | lc0090_subsets_ii.py | lc0090_subsets_ii.py | """Leetcode 90. Subsets II
Medium
URL: https://leetcode.com/problems/subsets-ii/
Given a collection of integers that might contain duplicates, nums,
return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: [1,2,2]
Output:
[
[2],
[1],
[1,2,2],
[2... | """Leetcode 90. Subsets II
Medium
URL: https://leetcode.com/problems/subsets-ii/
Given a collection of integers that might contain duplicates, nums,
return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: [1,2,2]
Output:
[
[2],
[1],
[1,2,2],
[2... | bsd-2-clause | Python |
ce2261cc7e4b0064420e83ff5d2d7f2fc6073da8 | Add FDC report computation | Commonists/wm_metrics,Commonists/wm_metrics,Commonists/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics,danmichaelo/wm_metrics,danmichaelo/wm_metrics,danmichaelo/wm_metrics | app/wmmetrics.py | app/wmmetrics.py | import os
import sys
from flask import Flask, render_template, request
current_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(current_dir, '..'))
from wm_metrics import fdc
from wm_metrics import wmfr_photography
from wm_metrics import commons_cat_metrics
app = Flask(__name__)
@app... | import os
import sys
from flask import Flask, render_template, request
current_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, os.path.join(current_dir, '..'))
from wm_metrics import fdc
from wm_metrics import wmfr_photography
from wm_metrics import commons_cat_metrics
app = Flask(__name__)
@app... | mit | Python |
1038007714a31a3186eec0f867759f74f0965316 | change aspect to 1.633. | tartley/cbeams,tartley/cbeams | cbeams/shape.py | cbeams/shape.py | import math
class Shape():
terminal = None
def __init__(self, strips):
self.strips = strips
def __str__(self):
return ''.join(
self.terminal.move(y, x) + ' ' * length
for y, x, length in self.strips
)
@classmethod
def RectFill(cls, y1, x1, y2, x2)... | import math
class Shape():
terminal = None
def __init__(self, strips):
self.strips = strips
def __str__(self):
return ''.join(
self.terminal.move(y, x) + ' ' * length
for y, x, length in self.strips
)
@classmethod
def RectFill(cls, y1, x1, y2, x2)... | bsd-3-clause | Python |
e437c710b08fb3d77b1694ea98ef75ebb55c3c6f | Fix sensor API | SYNHAK/spiff,SYNHAK/spiff,SYNHAK/spiff | spiff/sensors/v1_api.py | spiff/sensors/v1_api.py | from tastypie import fields
from tastypie.resources import ModelResource
from spiff.api import SpiffAuthorization
import models
from spiff import funcLog
class SensorResource(ModelResource):
name = fields.CharField('name')
description = fields.CharField('description')
type = fields.IntegerField('type')
ttl = f... | from tastypie import fields
from tastypie.resources import ModelResource
from spiff.api import SpiffAuthorization
import models
from spiff import funcLog
class SensorResource(ModelResource):
name = fields.CharField('name')
description = fields.CharField('description')
type = fields.IntegerField('type')
ttl = f... | agpl-3.0 | Python |
51921d31006ca93fcf1f8cc9d8a276f99a867340 | Add logging of what plugins are loaded | gamingrobot/SpockBot,MrSwiss/SpockBot,nickelpro/SpockBot,Gjum/SpockBot,SpockBotMC/SpockBot,luken/SpockBot | spock/plugins/loader.py | spock/plugins/loader.py | """
Provides reasonably not-awful plugin loading
"""
import logging
from spock.plugins.core.settings import SettingsPlugin
logger = logging.getLogger('spock')
base_warn = "PluginLoader could not satisfy %s dependency for %s"
pl_warn = base_warn + ": %s"
class PluginLoader(object):
def __init__(self, **kwargs):... | """
Provides reasonably not-awful plugin loading
"""
import logging
from spock.plugins.core.settings import SettingsPlugin
logger = logging.getLogger('spock')
base_warn = "PluginLoader could not satisfy %s dependency for %s"
pl_warn = base_warn + ": %s"
class PluginLoader(object):
def __init__(self, **kwargs):... | mit | Python |
28d5fbe651aff5848dde6b591f77d0a5f52ab7bc | Add a comment | thombashi/sqliteschema | sqliteschema/_logger.py | sqliteschema/_logger.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import, unicode_literals
import logbook
import tabledata
logger = logbook.Logger("sqliteschema")
logger.disable()
def set_logger(is_enable):
if is_enable != logger.disabled:
# log... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""
from __future__ import absolute_import, unicode_literals
import logbook
import tabledata
logger = logbook.Logger("sqliteschema")
logger.disable()
def set_logger(is_enable):
if is_enable != logger.disabled:
retur... | mit | Python |
d1dd8324b4bb97fd7676f518a37c8fb4f1be7134 | fix #185 (Wrong time conversion in parse_iso8601), thanks chrisberlin | mitsuhiko/zine,mitsuhiko/zine,mitsuhiko/zine | zine/utils/dates.py | zine/utils/dates.py | """
zine.utils.dates
~~~~~~~~~~~~~~~~
This module implements date formatting and parsing functions.
:copyright: (c) 2009 by the Zine Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import re
from datetime import datetime, timedelta
# this regexp also matches ... | """
zine.utils.dates
~~~~~~~~~~~~~~~~
This module implements date formatting and parsing functions.
:copyright: (c) 2009 by the Zine Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import re
from datetime import datetime, timedelta
# this regexp also matches ... | bsd-3-clause | Python |
d6cfc7e078fd057dee3cc2fbde1e7de2ecce06a4 | Fix typo | iceydee/cexio-ticker | cexio-ticker.py | cexio-ticker.py | import sublime
import sublime_plugin
try:
from urllib.request import urlopen
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from urllib import urlopen
import json
import re
class cexio-ticker(sublime_plugin.EventListener):
def update_status(self):
"""
Updates... | import sublime
import sublime_plugin
try:
from urllib.request import urlopen
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
from urllib import urlopen
import json
import re
class cexio-ticker(sublime_plugin.EventListener):
def update_status(self):
"""
Updates... | mit | Python |
f51ee43a353ee40a96a10e9938a83de711cabef2 | Bump Version | kiwiheretic/logos-v2,kiwiheretic/logos-v2,kiwiheretic/logos-v2,kiwiheretic/logos-v2 | logos/constants.py | logos/constants.py | VERSION = "0.98.28"
PUNCTUATION = r"[\?`)(';:\*\[\],.\-\"|!\x7f]"
# stop words are words that are so common that they
# are not indexed (in the concordance). It makes for a lot
# smaller concordance database.
STOP_WORDS = ['a', 'i', 'in', 'of', 'the', 'he', 'she',
'and', 'said', 'be', 'it', 'was', 'is', 'on', 't... | VERSION = "0.98.27"
PUNCTUATION = r"[\?`)(';:\*\[\],.\-\"|!\x7f]"
# stop words are words that are so common that they
# are not indexed (in the concordance). It makes for a lot
# smaller concordance database.
STOP_WORDS = ['a', 'i', 'in', 'of', 'the', 'he', 'she',
'and', 'said', 'be', 'it', 'was', 'is', 'on', 't... | apache-2.0 | Python |
f4be3f2a50c7b0a998314f2b78e47809763778c6 | Update models.py | Rogercapcas/BePitchAndPutt,Rogercapcas/BePitchAndPutt | BePitchAndPutt/iBePitchAndPutt/models.py | BePitchAndPutt/iBePitchAndPutt/models.py | from django.db import models
# Create your models here.
class Player (models.Model):
name = models.CharField(max_length=100)
age = models.IntegerField()
handicap = models.FloatField()
def __unicode__(self):
return u"%s%" % Player.name
class Field(models.Model):
holes = models.Integer... | from django.db import models
# Create your models here.
class Player (models.Model):
name = models.CharField(max_length=100)
age = models.IntegerField()
handicap = models.FloatField()
class Field(models.Model):
holes = models.IntegerField()
par = models.IntegerField()
class Hole (models.Model)... | apache-2.0 | Python |
6619bc935d6b57c0124657981ba25ef519ef2a09 | fix safe_getattr test | BurntSushi/pdoc | test/test_doc.py | test/test_doc.py | import dataclasses
from pathlib import Path
from unittest.mock import patch
import pytest
from pdoc import extract
from pdoc.doc import Module, Class, Variable
from pdoc.doc_types import empty
here = Path(__file__).parent
def test_repr_tb(monkeypatch):
m = Module(dataclasses)
with patch("pdoc.doc._docstr",... | import dataclasses
from pathlib import Path
from unittest.mock import patch
import pytest
from pdoc import extract
from pdoc.doc import Module, Class, Variable
from pdoc.doc_types import empty
here = Path(__file__).parent
def test_repr_tb(monkeypatch):
m = Module(dataclasses)
with patch("pdoc.doc._docstr",... | unlicense | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.