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 |
|---|---|---|---|---|---|---|---|---|
e8cf8b45ec3c5f4bbc686d34cd4a24531f0b4f41 | Solve encoding error in init file | Frojd/django-react-templatetags,Frojd/django-react-templatetags,Frojd/django-react-templatetags | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import sys
import re
import pip
from setuptools import setup, find_packages
from pip.req import parse_requirements
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
with open('README.md') as f:
readme = f... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
import pip
from setuptools import setup, find_packages
from pip.req import parse_requirements
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
with open('README.md') as f:
readme = f.read()
#... | mit | Python |
7662a84233aeb7cd8827434cd81400c9e502fc07 | Fix issue #32 | closeio/ciso8601,elasticsales/ciso8601,closeio/ciso8601,elasticsales/ciso8601,closeio/ciso8601 | setup.py | setup.py | from setuptools import setup, Extension
# workaround for open() with encoding='' python2/3 compability
from io import open
with open('README.rst', encoding='utf-8') as file:
long_description = file.read()
setup(
name="ciso8601",
version="1.0.5",
description='Fast ISO8601 date time parser for Python wr... | from setuptools import setup, Extension
with open('README.rst') as file:
long_description = file.read()
setup(
name="ciso8601",
version="1.0.5",
description='Fast ISO8601 date time parser for Python written in C',
long_description=long_description,
license="MIT",
ext_modules=[Extension("ci... | mit | Python |
66966cb38b34533145ec968ff7b80b89808cb932 | reset verion to 0.3.0 | edx/edx-organizations | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
with open('test-requirements.txt') as f:
test_requirements = f.read().splitlines()
setup(
name='edx-organizations',
version='0.3.0',
description='Organization management module for Open edX',
long_description=open('README.md').read... | #!/usr/bin/env python
from setuptools import setup, find_packages
with open('test-requirements.txt') as f:
test_requirements = f.read().splitlines()
setup(
name='edx-organizations',
version='0.4.0',
description='Organization management module for Open edX',
long_description=open('README.md').read... | agpl-3.0 | Python |
aa3c52398f23b35f3ac2545fb33a43b2901a05f9 | Rename private method | davidb24v/drwho | pulsatingLED.py | pulsatingLED.py | '''
Dr Who Box: RGB LED
'''
from __future__ import print_function
import RPi.GPIO as GPIO
import time
import threading
import math
class PulsatingLED(object):
'''
Vary brightness of an LED using PWM to apply a sine squared
waveform: sin((theta+offset)*k)**2
'''
def __init__(self, pin, delay=0.0... | '''
Dr Who Box: RGB LED
'''
from __future__ import print_function
import RPi.GPIO as GPIO
import time
import threading
import math
class PulsatingLED(object):
'''
Vary brightness of an LED using PWM to apply a sine squared
waveform: sin((theta+offset)*k)**2
'''
def __init__(self, pin, delay=0.0... | mit | Python |
3039588d8a128c323df53a9c040e92377fedf36d | add six as an explicit dependency for Py2 / 3 compatibility (already part of prompt_toolkit) | click-contrib/click-repl,pombredanne/click-repl,cosminbasca/click-repl | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='click-repl',
version='0.1',
description='REPL plugin for Click',
author='Markus Unterwaditzer',
author_email='markus@unterwaditzer.net',
url='https://github.com/untitaker/click-repl',
license='MIT',
packages=['click_repl']... | #!/usr/bin/env python
from setuptools import setup
setup(
name='click-repl',
version='0.1',
description='REPL plugin for Click',
author='Markus Unterwaditzer',
author_email='markus@unterwaditzer.net',
url='https://github.com/untitaker/click-repl',
license='MIT',
packages=['click_repl']... | mit | Python |
4739ed7e502031d0cc47768df02c6e5edb7ae427 | Return correct dependency | aricaldeira/pybrasil | setup.py | setup.py | from distutils.core import setup
setup(
name='pybrasil',
version='0.0.0.1',
packages=['',
'pybrasil',
'pybrasil.ncm',
'pybrasil.base',
'pybrasil.data',
'pybrasil.ibge',
'pybrasil.valor',
'pybrasil.feriado',
'pybrasil.produto',
'pybrasi... | from distutils.core import setup
setup(
name='pybrasil',
version='0.0.0.1',
packages=['',
'pybrasil',
'pybrasil.ncm',
'pybrasil.base',
'pybrasil.data',
'pybrasil.ibge',
'pybrasil.valor',
'pybrasil.feriado',
'pybrasil.produto',
'pybrasi... | lgpl-2.1 | Python |
efad7545cf7667cac2a7b4d4f3ac44841d82d968 | Bump version to 2.3.0.post5 | zero323/pyspark-stubs | setup.py | setup.py | """
Setup for PySpark type annotations.
Notes:
- To avoid manual PYTHONPATH modification the package installation will overlay PySpark installation. If this is not acceptable please download source and add it to PYTHONPATH manually.
"""
from setuptools import setup
import os
import sys
# find_packages doesn't see... | """
Setup for PySpark type annotations.
Notes:
- To avoid manual PYTHONPATH modification the package installation will overlay PySpark installation. If this is not acceptable please download source and add it to PYTHONPATH manually.
"""
from setuptools import setup
import os
import sys
# find_packages doesn't see... | apache-2.0 | Python |
95b9f6bee879ed3359f5e53ec66444fc7d7c3f70 | use lower case field names | enthought/pikos,enthought/pikos,enthought/pikos | pikos/logging.py | pikos/logging.py | from __future__ import absolute_import
import inspect
import os
import sys
import psutil
from collections import namedtuple
from functools import wraps
from pikos.abstract_monitors import AbstractMonitor
__all__ = [
'FunctionLogger',
'FunctionRecord',
]
FunctionRecord = namedtuple('FunctionRecord',
... | from __future__ import absolute_import
import inspect
import os
import sys
import psutil
from collections import namedtuple
from functools import wraps
from pikos.abstract_monitors import AbstractMonitor
__all__ = [
'FunctionLogger',
'FunctionRecord',
]
FunctionRecord = namedtuple('FunctionRecord',
... | bsd-3-clause | Python |
eaab40e311bc8227c645cb559ae9419d32b24924 | add dependency on natsort | rspeer/solvertools,rspeer/solvertools,rspeer/solvertools,rspeer/solvertools | setup.py | setup.py | #!/usr/bin/env python
VERSION = "2015.0"
from setuptools import find_packages, setup
setup(
name="solvertools",
version=VERSION,
packages=find_packages(),
install_requires=[
'numpy', 'nltk', 'whoosh', 'unidecode', 'natsort'
],
)
| #!/usr/bin/env python
VERSION = "2015.0"
from setuptools import find_packages, setup
setup(
name="solvertools",
version=VERSION,
packages=find_packages(),
install_requires=[
'numpy', 'nltk', 'whoosh', 'unidecode'
],
)
| mit | Python |
e9ecf09ce3a2b3b2434de1e35db134f44e5ca000 | Tidy setup.py | plumdog/django_migration_test,percipient/django_migration_testcase,percipient/django_migration_testcase,plumdog/django_migration_testcase,plumdog/django_migration_test,plumdog/django_migration_testcase | setup.py | setup.py | from setuptools import setup
setup(
name='django-migration-test',
version='0.0.1',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
url='https://github.com/plumdog/django_migration_test',
install_requires=['Django'])
| from setuptools import setup
install_requires = [
'Django'
]
setup(
name='django-migration-test',
#packages=['django_migration_test'],
version='0.0.1',
author='Andrew Plummer',
author_email='plummer574@gmail.com',
url='https://github.com/plumdog/django_migration_test',
#description='HT... | mit | Python |
03d8ba22382e4e013bb80f1c586f4a559d2efd67 | change package data directives in setup.py; make classifiers a list, not a tuple | sckott/pytaxize | setup.py | setup.py | import codecs
from setuptools import setup
from setuptools import find_packages
with codecs.open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs.open('Changelog.rst', 'r', 'utf-8') as f:
changes = f.read()
long_description = '\n\n' + readme + '\n\n' + changes
setup(
name='pytaxize',
versi... | import codecs
from setuptools import setup
from setuptools import find_packages
with codecs.open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs.open('Changelog.rst', 'r', 'utf-8') as f:
changes = f.read()
long_description = '\n\n' + readme + '\n\n' + changes
setup(
name='pytaxize',
versi... | mit | Python |
6e90774ffdf2f7a031d7e1eb0863a4dd65b9e446 | Bump version to v0.2a1. | graphql-python/graphql-epoxy | setup.py | setup.py | from setuptools import setup, find_packages
import sys
required_packages = ['graphql-core>=0.4.7b1']
if sys.version_info <= (2, 7, 0):
required_packages.append('enum34>=1.0.4')
if sys.version_info <= (3, 4, 0):
required_packages.append('singledispatch>=3.4.0')
setup(
name='graphql-epoxy',
version='0... | from setuptools import setup, find_packages
import sys
required_packages = ['graphql-core>=0.4.7b1']
if sys.version_info <= (2, 7, 0):
required_packages.append('enum34>=1.0.4')
if sys.version_info <= (3, 4, 0):
required_packages.append('singledispatch>=3.4.0')
setup(
name='graphql-epoxy',
version='0... | mit | Python |
b3acf639f310019d042bbe24e653a6f79c240858 | Remove the importing of the "cythonize" function. | PeithVergil/cython-example | setup.py | setup.py | from distutils.core import Extension, setup
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
if use_cython:
extensions = [
Extension('mathix.vector', ['mathix/vector.pyx']),
]
cmdclass = {
'build_ext': build_ext
}
... | from distutils.core import Extension, setup
from Cython.Build import cythonize
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
if use_cython:
extensions = [
Extension('mathix.vector', ['mathix/vector.pyx']),
]
cmdclass = {
... | mit | Python |
a2d107a3da1fd7234e2ce224e8525c7fe69135ce | Set version 1.3 in setup.py. | Dunedan/django-lockdown,Dunedan/django-lockdown | setup.py | setup.py | from setuptools import find_packages, setup
long_description = '\n'.join([open('README.rst').read(),
open('CHANGES.rst').read()])
setup(
name='django-lockdown',
version='1.3',
description=('Lock down a Django site or individual views, with '
'configurable prev... | from setuptools import find_packages, setup
long_description = '\n'.join([open('README.rst').read(),
open('CHANGES.rst').read()])
setup(
name='django-lockdown',
version='1.2',
description=('Lock down a Django site or individual views, with '
'configurable prev... | bsd-3-clause | Python |
7b601d11dc7e8cc2b7b0a60708401c1564ee09b1 | Update demo.py | ilovecode1/Pyfancy-2 | pyfancy/demo.py | pyfancy/demo.py | from pyfancy import *
pyfancy().red("Hello").raw(", ").blue("world!").output()
pyfancy().multi("Multicolored text").output()
pyfancy().rainbow("Rainbow text").output()
pyfancy("{red foo {bold bar} baz}").output()
pyfancy().black_bg("Black background").output()
pyfancy().green_bg("Green background").output()
pyfancy().... | from pyfancy import *
pyfancy().red("Hello").raw(", ").blue("world!").output()
pyfancy().multi("Multicolored text").output()
pyfancy().rainbow("Rainbow text").output()
pyfancy("{red foo {bold bar} baz}").output()
pyfancy().black_bg("Black background").output()
pyfancy().green_bg("Green background").output()
pyfancy().... | mit | Python |
ce372a4808dfaad89cad6f74d7c618ae2c5a2111 | Handle invalid port in ssh config | benjiii/pygerrit,gferon/pygerrit2,sonyxperiadev/pygerrit,dpursehouse/pygerrit2,dpursehouse/pygerrit,markon/pygerrit2,morucci/pygerrit | pygerrit/ssh.py | pygerrit/ssh.py | """ Gerrit SSH Client. """
from os.path import abspath, expanduser, isfile
from pygerrit.error import GerritError
from paramiko import SSHClient, SSHConfig
class GerritSSHClient(SSHClient):
""" Gerrit SSH Client, wrapping the paramiko SSH Client. """
def __init__(self, hostname):
""" Initialise a... | """ Gerrit SSH Client. """
from os.path import abspath, expanduser, isfile
from pygerrit.error import GerritError
from paramiko import SSHClient, SSHConfig
class GerritSSHClient(SSHClient):
""" Gerrit SSH Client, wrapping the paramiko SSH Client. """
def __init__(self, hostname):
""" Initialise a... | mit | Python |
f8cbb96f2d5040d060799f62b642e8bb80060d07 | Add project dependencies to install | Aeronautics/aero | setup.py | setup.py | #!/usr/bin/env python
#coding: utf-8
from distribute_setup import use_setuptools
use_setuptools()
from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__
from setuptools import setup
setup(
name = __title__,
author = __authors__,
author_emai... | #!/usr/bin/env python
#coding: utf-8
from distribute_setup import use_setuptools
use_setuptools()
from aero.__version__ import __version__, __title__, __authors__, __email__, __license__, __url__, __download_url__
from setuptools import setup
setup(
name = __title__,
author = __authors__,
author_emai... | bsd-3-clause | Python |
5f9b75f36536a665cff8e128ad456e7512be4bd3 | Remove unused deps | OnShift/simple-es | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="SimpleES",
version="0.3.0",
description='A simple Event Sourcing library for Python',
packages=find_packages()
)
| from setuptools import setup, find_packages
setup(
name="SimpleES",
version="0.2.0",
description='A simple Event Sourcing library for Python',
packages=find_packages(),
setup_requires=['pytest-runner=2.9'],
tests_require=['pytest==2.9.2']
)
| apache-2.0 | Python |
4f3968b8275cd79350dd65e0461eae4c32542344 | Bump version to 0.6.6 | artfinder/awslib | setup.py | setup.py | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'awslib'
VERSION = '0.6.6'
setup(
name=PACKAGE, version=VERSION,
description="Small library providing Amazon Web Services utility functions on top of boto",
packages=[ '... | # Use setuptools if we can
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
PACKAGE = 'awslib'
VERSION = '0.6.5'
setup(
name=PACKAGE, version=VERSION,
description="Small library providing Amazon Web Services utility functions on top of boto",
packages=[ '... | mit | Python |
efae8468d9ae2bb879640b11e34f5e38c6edfe58 | fix latest haproxy version handling (#10219) | DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core,DataDog/integrations-core | haproxy/tests/common.py | haproxy/tests/common.py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from sys import maxsize
import pytest
from packaging import version
from datadog_checks.dev import get_docker_hostname, get_here
HERE = get_here()
HOST = get_docker_hostname()
HAPROXY_LEGACY =... | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
import pytest
from packaging import version
from datadog_checks.dev import get_docker_hostname, get_here
HERE = get_here()
HOST = get_docker_hostname()
HAPROXY_LEGACY = os.getenv('HAPROXY_LEGA... | bsd-3-clause | Python |
b5407dff6e06b9438e00890279844dcb3c15bef7 | Include BeautifulSoup as a dependency. | amacd31/bom_data_parser,amacd31/bom_data_parser | setup.py | setup.py | import os
from io import open
import versioneer
versioneer.versionfile_source = 'bom_data_parser/_version.py'
versioneer.versionfile_build = 'bom_data_parser/_version.py'
versioneer.tag_prefix = 'v'
versioneer.parentdir_prefix = 'bom_data_parser-'
from setuptools import setup
here = os.path.abspath(os.path.dirname(_... | import os
from io import open
import versioneer
versioneer.versionfile_source = 'bom_data_parser/_version.py'
versioneer.versionfile_build = 'bom_data_parser/_version.py'
versioneer.tag_prefix = 'v'
versioneer.parentdir_prefix = 'bom_data_parser-'
from setuptools import setup
here = os.path.abspath(os.path.dirname(_... | bsd-3-clause | Python |
bc130cd39f6892496a2e917b51eba97078a9db38 | Bump version to 4.4.1 | laterpay/laterpay-client-python | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import codecs
import os
_version = "4.4.1"
_packages = find_packages('.', exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
if os.path.exists('README.rst'):
_long_description = codecs.open('README.rst', 'r', 'utf-8').read()
else:
_long_d... | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import codecs
import os
_version = "4.4.0"
_packages = find_packages('.', exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
if os.path.exists('README.rst'):
_long_description = codecs.open('README.rst', 'r', 'utf-8').read()
else:
_long_d... | mit | Python |
ae405c43b07d35660ed7bcaa1b13965c5c292c4e | Bump to 0.3alpha.0 for development | texastribune/tt_disposal_wells,texastribune/tt_disposal_wells,texastribune/tt_disposal_wells,texastribune/tt_disposal_wells | setup.py | setup.py | from distutils.core import setup
import os
# Stolen from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.... | from distutils.core import setup
import os
# Stolen from django-registration
# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, data_files = [], []
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.... | apache-2.0 | Python |
783fdaf023f07a2cbd2db3e823814613aaf7f7cf | add function print_config fix set_filepath | Isotop7/pyrtemonnaie | pyrtemonnaie.py | pyrtemonnaie.py | #!/usr/bin/env python3
import operator
import os
FILEPATH = "database.dat"
FILE_LOADED = False
MENU_FORMAT = "{0:2}-> {1:5}"
CONFIG_FORMAT = "{0:10}: {1:20}"
MENU_OPTIONS = {
"1": "set filepath",
"2": "load file",
"3": "dump file",
"4": "edit value",
... | #!/usr/bin/env python3
import operator
import os
FILEPATH = "database.dat"
FILE_LOADED = False
MENU_FORMAT = "{0:2}->{1:5}"
MENU_OPTIONS = {
"1": "set filepath",
"2": "load file",
"3": "dump file",
"4": "edit value",
"5": "save file",
... | mit | Python |
3bd1b3631c7b2db3fdee9c6abd9308dc318760e7 | move nose to test_dependency | patricksnape/menpo,grigorisg9gr/menpo,patricksnape/menpo,mozata/menpo,patricksnape/menpo,mozata/menpo,menpo/menpo,menpo/menpo,mozata/menpo,mozata/menpo,yuxiang-zhou/menpo,grigorisg9gr/menpo,yuxiang-zhou/menpo,menpo/menpo,grigorisg9gr/menpo,yuxiang-zhou/menpo | setup.py | setup.py | from setuptools import setup, find_packages
from Cython.Build import cythonize
import numpy as np
# ---- C/C++ EXTENSIONS ---- #
cython_modules = ["menpo/geodesics/kirsanov.pyx",
"menpo/shape/mesh/cpptrimesh.pyx",
"menpo/shape/mesh/normals.pyx",
"menpo/interpolati... | from setuptools import setup, find_packages
from Cython.Build import cythonize
import numpy as np
# ---- C/C++ EXTENSIONS ---- #
cython_modules = ["menpo/geodesics/kirsanov.pyx",
"menpo/shape/mesh/cpptrimesh.pyx",
"menpo/shape/mesh/normals.pyx",
"menpo/interpolati... | bsd-3-clause | Python |
8154032dbfbdbbc64469514898cb6f3af79c1122 | Include the openquake-minimal.jar in the dist folder | gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine | setup.py | setup.py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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... | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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... | agpl-3.0 | Python |
ccb903552edda3532bd50f45c087cbc46c1f6218 | Bump Version to 2.0.18-dev | ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services | 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... | bsd-2-clause | Python |
cf6df1052a3968a9d94893d397f9db9c10edf166 | Update Python versions in setup.py | cemsbr/yala,cemsbr/yala | setup.py | setup.py | """A setuptools based setup module."""
from os import path
from setuptools import setup
from yala import __version__
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(HERE, 'README.rst')) as f:
LONG_DESC = f.read()
setup(
name='yala',
versio... | """A setuptools based setup module."""
from os import path
from setuptools import setup
from yala import __version__
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(HERE, 'README.rst')) as f:
LONG_DESC = f.read()
setup(
name='yala',
versio... | mit | Python |
3366289cf48bd2c040ddac9a743d181b7f4ecb5e | Add MANIFEST.in | Vaelor/python-mattermost-driver | setup.py | setup.py | import os.path
import sys
from setuptools import setup, find_packages
root_dir = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(root_dir, 'README.md')
with open(readme_file, encoding='utf-8') as f:
long_description = f.read()
py_version = sys.version_info[:2]
if py_version < (3, 3):
raise ... | import os.path
import sys
from setuptools import setup, find_packages
root_dir = os.path.abspath(os.path.dirname(__file__))
readme_file = os.path.join(root_dir, 'README.md')
with open(readme_file, encoding='utf-8') as f:
long_description = f.read()
py_version = sys.version_info[:2]
if py_version < (3, 3):
raise ... | mit | Python |
9f7f66b551524c23d2e41d7e50981424ed81a105 | Fix II installation | ulikoehler/YakDB,ulikoehler/YakDB | python/setup.py | python/setup.py | #!/usr/bin/env python
# -*- coding: utf8 -*-
from distutils.core import setup
setup(name='YakDB',
version='0.1',
description='YakDB python binding',
author='Uli Köhler',
author_email='ukoehler@btronik.de',
url='http://techoverflow.net/',
packages=['YakDB','YakDB.Graph', 'YakDB.Inver... | #!/usr/bin/env python
# -*- coding: utf8 -*-
from distutils.core import setup
setup(name='YakDB',
version='0.1',
description='YakDB python binding',
author='Uli Köhler',
author_email='ukoehler@btronik.de',
url='http://techoverflow.net/',
packages=['YakDB','YakDB.Graph'],
scrip... | apache-2.0 | Python |
507ac62597b30ccfa58841ccf26207b67baa8eac | Update Django requirement to latest LTS | lamby/django-lightweight-queue | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-lightweight-queue',
url="https://chris-lamb.co.uk/projects/django-lightweight-queue",
version='2.0.1',
description="Lightweight & modular queue and cron system for Django",
author="Chris Lamb",
author_email='chris@chris-lamb.co.u... | from setuptools import setup, find_packages
setup(
name='django-lightweight-queue',
url="https://chris-lamb.co.uk/projects/django-lightweight-queue",
version='2.0.1',
description="Lightweight & modular queue and cron system for Django",
author="Chris Lamb",
author_email='chris@chris-lamb.co.u... | bsd-3-clause | Python |
e360de33ec0a44012f72949673d0fc24d0bf6e62 | bump version to 1.9.3 | singer-io/tap-mysql | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-mysql',
version='1.9.3',
description='Singer.io tap for extracting data from MySQL',
author='Stitch',
url='https://singer.io',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_mysql'],
... | #!/usr/bin/env python
from setuptools import setup
setup(name='tap-mysql',
version='1.9.2',
description='Singer.io tap for extracting data from MySQL',
author='Stitch',
url='https://singer.io',
classifiers=['Programming Language :: Python :: 3 :: Only'],
py_modules=['tap_mysql'],
... | agpl-3.0 | Python |
c19b3309c1bc12b3e07115a9ba1749b6dc3b1374 | Change setup.py version | ragulpr/wtte-rnn,ragulpr/wtte-rnn | python/setup.py | python/setup.py | from setuptools import setup
from setuptools import find_packages
# Used in CI and by deveopers
build_requires = [
'wheel',
'twine',
]
# Used in CI and by deveopers
test_requires = [
'pytest',
'pytest-runner',
'flake8',
]
# Used in developers' PCs only
dev_requires = [
'pytest-sugar',
's... | from setuptools import setup
from setuptools import find_packages
# Used in CI and by deveopers
build_requires = [
'wheel',
'twine',
]
# Used in CI and by deveopers
test_requires = [
'pytest',
'pytest-runner',
'flake8',
]
# Used in developers' PCs only
dev_requires = [
'pytest-sugar',
's... | mit | Python |
49a6e988a0b067d5afa79c81cc9ab5b576f2b9d3 | bump version number | stilley2/filesdb | setup.py | setup.py | from setuptools import setup
setup(name='filesdb',
version='1.0.0',
description='A simple tool for tracking files in a database',
author='Steven Tilley',
author_email='steventilleyii@gmail.com',
packages=['filesdb'],
entry_points={'console_scripts': ['filesdb = filesdb.filesdb:main... | from setuptools import setup
setup(name='filesdb',
version='0.1.0',
description='A simple tool for tracking files in a database',
author='Steven Tilley',
author_email='steventilleyii@gmail.com',
packages=['filesdb'],
entry_points={'console_scripts': ['filesdb = filesdb.filesdb:main... | mit | Python |
36af3ff40780d2773774c42a32fd27b7bcf1106c | tweak dependencies | EMBL-EBI-TSI/aap-client-python | setup.py | setup.py | import codecs
from os import path
from setuptools import setup, find_packages
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with codecs.open(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESC = f.read()
INSTALL_DEPS = ['pyjwt[crypto]>=1.5.2',
... | import codecs
from os import path
from setuptools import setup, find_packages
HERE = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with codecs.open(path.join(HERE, 'README.rst'), encoding='utf-8') as f:
LONG_DESC = f.read()
INSTALL_DEPS = ['pyjwt[crypto]==1.5.2',
... | apache-2.0 | Python |
79a9bc36a5a0e5e8bd37a4b2d655d02ed4622afd | update homepage | vsooda/pinyin,lxyu/pinyin | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='pinyin',
version='0.1.1',
description='Translate chinese chars to pinyin based on Mandarin.dat',
author='Lx Yu',
author_email='lixinfish@gmail.com',
packages=['pinyin', ],
package_data={'': ['LICENS... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='pinyin',
version='0.1.1',
description='Translate chinese chars to pinyin based on Mandarin.dat',
author='Lx Yu',
author_email='lixinfish@gmail.com',
packages=['pinyin', ],
package_data={'': ['LICENS... | mit | Python |
023ee71a9ff075ce0c2f6cd75d3883aaf489e7c5 | Bump pypi version | hhursev/recipe-scraper | setup.py | setup.py | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name="recipe_scrapers",
url="https://github.com/hhursev/recipe-scrapers/",
version="5.1.0... | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), "README.rst")).read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name="recipe_scrapers",
url="https://github.com/hhursev/recipe-scrapers/",
version="5.0.1... | mit | Python |
6621d8b34c4d35d5d39cd64177e17c22518528c0 | Bump version 0.6.5 -> 0.6.6 | rroemhild/flask-ldapconn | setup.py | setup.py | # -*- coding: utf-8 -*-
'''
Flask-LDAPConn
--------------
Flask extension providing ldap3 connection object and ORM
to accessing LDAP servers.
'''
from setuptools import setup
setup(
name='Flask-LDAPConn',
version='0.6.6',
url='http://github.com/rroemhild/flask-ldapconn',
license='BSD',
author... | # -*- coding: utf-8 -*-
'''
Flask-LDAPConn
--------------
Flask extension providing ldap3 connection object and ORM
to accessing LDAP servers.
'''
from setuptools import setup
setup(
name='Flask-LDAPConn',
version='0.6.5',
url='http://github.com/rroemhild/flask-ldapconn',
license='BSD',
author... | bsd-2-clause | Python |
0e3661123779a7976d7809a66220a1de360f1519 | replace distutils with setuptools | netom/satispy,dhoepelman/satispy,Javantea/satispy | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf8 -*-
from setuptools import setup
setup(
name='satispy',
version='1.0a5',
description='An interface to SAT solver tools (like minisat)',
author='FÁBIÁN Tamás László',
author_email='giganetom@gmail.com',
url='https://github.com/netom/satispy/',
downlo... | #!/usr/bin/env python
# -*- coding: utf8 -*-
from distutils.core import setup
setup(
name='satispy',
version='1.0a4',
description='An interface to SAT solver tools (like minisat)',
author='FÁBIÁN Tamás László',
author_email='giganetom@gmail.com',
url='https://github.com/netom/satispy/',
do... | bsd-3-clause | Python |
1f17db9697e5aafed6b3b2d496ae83fb3bca7015 | add header | SiLab-Bonn/basil,SiLab-Bonn/basil,MarcoVogt/basil | host/pydaq/HL/tdc_s3.py | host/pydaq/HL/tdc_s3.py | #
# ------------------------------------------------------------
# Copyright (c) All rights reserved
# SiLab , Physics Institute of Bonn University
# ------------------------------------------------------------
#
# SVN revision information:
# $Rev:: $:
# $Author:: $:
... | #
# ------------------------------------------------------------
# Copyright (c) SILAB , Physics Institute of Bonn University
# ------------------------------------------------------------
#
# SVN revision information:
# $Rev:: $:
# $Author:: $:
# $Date:: ... | bsd-3-clause | Python |
6a19be44637d707616bbf95d5a26dbd6d7c7324b | Prepare openprocurement.tender.openeu 2.3.13. | openprocurement/openprocurement.tender.openeu | setup.py | setup.py | from setuptools import setup, find_packages
import os
version = '2.3.13'
requires = [
'setuptools',
'openprocurement.api>=2.3',
'openprocurement.tender.openua'
]
test_requires = requires + [
'webtest',
'python-coveralls',
]
docs_requires = requires + [
'sphinxcontrib-httpdomain',
]
entry_po... | from setuptools import setup, find_packages
import os
version = '2.3.12'
requires = [
'setuptools',
'openprocurement.api>=2.3',
'openprocurement.tender.openua'
]
test_requires = requires + [
'webtest',
'python-coveralls',
]
docs_requires = requires + [
'sphinxcontrib-httpdomain',
]
entry_po... | apache-2.0 | Python |
b8235bb625e6ac0c68e0dbc4689e189ba9c4a660 | bump version.py | RasaHQ/rasa_nlu,RasaHQ/rasa_nlu,RasaHQ/rasa_nlu | rasa/version.py | rasa/version.py | __version__ = "1.2.0a7"
| __version__ = "1.2.0a6"
| apache-2.0 | Python |
0b84eafb2bd6947afabe0f406b9f28844ec9a162 | Update test_ner_dict_udf.py | rockingdingo/deepnlp,rockingdingo/deepnlp | test/test_ner_dict_udf.py | test/test_ner_dict_udf.py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from __future__ import unicode_literals # compatible with python3 unicode
import deepnlp
deepnlp.download('ner') # download the NER pretrained models from github if installed from pip
from deepnlp import ner_tagger
tagger = ner_tagger.load_model(name = 'zh') # Ba... | testtesttest#!/usr/bin/python
# -*- coding:utf-8 -*-
from __future__ import unicode_literals # compatible with python3 unicode
import deepnlp
deepnlp.download('ner') # download the NER pretrained models from github if installed from pip
from deepnlp import ner_tagger
tagger = ner_tagger.load_model(name = '... | mit | Python |
5243f9e9c3b5d691d30cb5c438608dc09a69faff | upgrade to pyannote.core 0.3 | pyannote/pyannote-features | setup.py | setup.py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2014 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2014 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | mit | Python |
23448a2078c409d5f7495fdcc8e2d99582e69dd6 | Set project as 'pre-alpha' | data-tsunami/django-mercadopago,data-tsunami/django-mercadopago | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from setuptools import setup
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.... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from setuptools import setup
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.... | bsd-3-clause | Python |
236c8ed2bf560a223b71aeaacba589ba86661d4d | Set version to 0.2.4 | getsenic/gatt-python | setup.py | setup.py | from setuptools import setup
setup(
name='gatt',
packages=['gatt'],
version='0.2.4',
description='Bluetooth GATT SDK for Python',
keywords='gatt',
url='https://github.com/getsenic/gatt-python',
download_url='https://github.com/getsenic/gatt-python/archive/0.2.4.tar.gz',
author='Senic Gm... | from setuptools import setup
setup(
name='gatt',
packages=['gatt'],
version='0.2.3',
description='Bluetooth GATT SDK for Python',
keywords='gatt',
url='https://github.com/getsenic/gatt-python',
download_url='https://github.com/getsenic/gatt-python/archive/0.1.0.tar.gz',
author='Senic Gm... | mit | Python |
b8c9144ec1fde2f21de1903d479c7dd31bb949b1 | Declare Python version requirement in dist setup | pengutronix/aiohttp-json-rpc,pengutronix/aiohttp-json-rpc,pengutronix/aiohttp-json-rpc | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='aiohttp-json-rpc',
version='0.8.3',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='f.scherf@pengutronix.de',
license='Apache 2.0',
i... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(name='aiohttp-json-rpc',
version='0.8.3',
author='Florian Scherf',
url='https://github.com/pengutronix/aiohttp-json-rpc/',
author_email='f.scherf@pengutronix.de',
license='Apache 2.0',
i... | apache-2.0 | Python |
b057a9bf9533571f07e4c073cba07114e18a91d1 | Update version number | rtyler/Spawning | setup.py | setup.py | # Copyright (c) 2008, Donovan Preston
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, di... | # Copyright (c) 2008, Donovan Preston
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, di... | mit | Python |
dd8636f97473d438a2ac7baa1dfd510a745edf33 | Remove topic | MultiQC/MultiQC_bcbio,lpantano/MultiQC_bcbio,vladsaveliev/MultiQC_bcbio | setup.py | setup.py | #!/usr/bin/env python
"""
MultiQC_bcbio is a plugin for MultiQC, providing additional tools which are
specific to bcbio_nextgen.py pipeline.
For more information about bcbio_nextgen, see http://github.com/chapmanb/bcbio_nextgen
For more information about MultiQC, see http://multiqc.info
"""
from setuptools import set... | #!/usr/bin/env python
"""
MultiQC_bcbio is a plugin for MultiQC, providing additional tools which are
specific to bcbio_nextgen.py pipeline.
For more information about bcbio_nextgen, see http://github.com/chapmanb/bcbio_nextgen
For more information about MultiQC, see http://multiqc.info
"""
from setuptools import set... | mit | Python |
6f890dd4282fcfb180e4e18adeeee12c2d205869 | Add django-datatap dependency to setup.py | zbyte64/django-hyperadmin | setup.py | setup.py | #!/usr/bin/env python
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
VERSION = '0.10.0'
PATH = os.path.dirname(os.path.abspath(__file__))
try:
LONG_DESC = '\n===='+open(os.path.join(PATH, 'README.rst'), 'r').read().split('===='... | #!/usr/bin/env python
import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
VERSION = '0.10.0'
PATH = os.path.dirname(os.path.abspath(__file__))
try:
LONG_DESC = '\n===='+open(os.path.join(PATH, 'README.rst'), 'r').read().split('===='... | bsd-3-clause | Python |
1a9e2d402ab93e004098d84e4241f666e1358aae | Bump release-candidate status | rtyler/Spawning | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2008, Donovan Preston
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modi... | #!/usr/bin/env python
# Copyright (c) 2008, Donovan Preston
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modi... | mit | Python |
23ed959a20c3cca15f90bb66f8fc44dc182a9ae4 | correct license name | chrisbarrett/dcp.py | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = "dcp",
version = "0.1",
packages = find_packages(),
author = "Chris Barrett",
author_email = "chris.d.barrett@me.com",
description = "Format a drive for use as a Digital Cinema Package.",
license = "BSD2",
entry_points = {'consol... | from setuptools import setup, find_packages
setup(
name = "dcp",
version = "0.1",
packages = find_packages(),
author = "Chris Barrett",
author_email = "chris.d.barrett@me.com",
description = "Format a drive for use as a Digital Cinema Package.",
license = "BSD3",
entry_points = {'consol... | bsd-2-clause | Python |
ace822b8c27074d24c9914cdfb24f4bd8b386628 | Correct the version number in setup.py. | campaignmonitor/createsend-python,campaignmonitor/createsend-python | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="createsend",
version='5.0.0',
description="A library which implements the complete functionality of the Campaign Monitor API.",
author='Campaign Monitor',
author_email='support@campaignmonitor.com',
url="http://campaignmonitor.github.io/c... | from setuptools import setup, find_packages
setup(
name="createsend",
version='4.3.0',
description="A library which implements the complete functionality of the Campaign Monitor API.",
author='Campaign Monitor',
author_email='support@campaignmonitor.com',
url="http://campaignmonitor.github.io/c... | mit | Python |
7bb701b432828505142f646ea85bbdef7caea1e2 | update version number | klahnakoski/mo-dots | setup.py | setup.py | # encoding: utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Author: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from distutils.util import convert_path
import os... | # encoding: utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Author: Kyle Lahnakoski (kyle@lahnakoski.com)
#
from distutils.util import convert_path
import os... | mpl-2.0 | Python |
f0db566743d51a76f20f109c12555c75cafc9cf9 | Bump dash from 1.17.0 to 1.20.0 | TRI-AMDD/piro,TRI-AMDD/piro,TRI-AMDD/piro,TRI-AMDD/piro,TRI-AMDD/piro | setup.py | setup.py | from setuptools import setup, find_packages
import warnings
DESCRIPTION = "piro is software designed to assist in planning of synthesis pathways for inorganics"
LONG_DESCRIPTION = """
The piro software package enables prediction and planning of synthesis pathways
and determination of pareto-optimal frontiers for synt... | from setuptools import setup, find_packages
import warnings
DESCRIPTION = "piro is software designed to assist in planning of synthesis pathways for inorganics"
LONG_DESCRIPTION = """
The piro software package enables prediction and planning of synthesis pathways
and determination of pareto-optimal frontiers for synt... | apache-2.0 | Python |
bb1f6bc831b36734118210bbc3161e0dd7d98ba3 | Use setuptools. | selwin/python-user-agents,FloorLamp/python-user-agents,glogiotatidis/python-user-agents,tsouvarev/python-user-agents | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='user-agents',
version='1.0.1',
author='Selwin Ong',
author_email='selwin.ong@gmail.com',
packages=['user_agents'],
url='https://github.com/selwin/python-user-agents',
license='MIT',
description='A library to identify devi... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='user-agents',
version='1.0.1',
author='Selwin Ong',
author_email='selwin.ong@gmail.com',
packages=['user_agents'],
url='https://github.com/selwin/python-user-agents',
license='MIT',
description='A library to identify ... | mit | Python |
119e269a779d2bd800aec2e0412de6f2146babe8 | Update setup.py | walchko/netscan2 | setup.py | setup.py | from setuptools import setup
import os
from netscan import __version__ as VERSION
from setuptools.command.test import test as TestCommand
class PublishCommand(TestCommand):
def run_tests(self):
print('Publishing to PyPi ...')
os.system("python setup.py bdist_wheel")
os.system("twine upload dist/netscan-{}*.whl... | from setuptools import setup
import os
from netscan import __version__ as VERSION
from setuptools.command.test import test as TestCommand
class PublishCommand(TestCommand):
def run_tests(self):
print('Publishing to PyPi ...')
os.system("python setup.py bdist_wheel")
os.system("twine upload dist/netscan-{}*.whl... | mit | Python |
caa2c963de606cd8c2d1bfba60061334f3531441 | Bump version to 0.4.0 | dcramer/kleenex | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = [
]
setup(
name='nose-bleed',
version='0.4.0',
author='David Cramer',
author_email='dcramer@gmail.com',
description='A progressive coverage plugin for Nose.',
url='http://github.com/dcramer/nose-bleed',
pack... | #!/usr/bin/env python
from setuptools import setup, find_packages
tests_require = [
]
setup(
name='nose-bleed',
version='0.3.1',
author='David Cramer',
author_email='dcramer@gmail.com',
description='A progressive coverage plugin for Nose.',
url='http://github.com/dcramer/nose-bleed',
pack... | apache-2.0 | Python |
1f535b2947e5501e195088dc2a3269d0fa100994 | Exclude tests package | lucknerjb/agentredrabbit,lucknerjb/agentredrabbit,wingify/agentredrabbit,wingify/agentredrabbit | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from agentredrabbit import __version__
setup(
name="agentredrabbit",
version=__version__,
author="Rohit Yadav",
... | try:
from setuptools import setup, find_packages
except ImportError:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from agentredrabbit import __version__
setup(
name="agentredrabbit",
version=__version__,
author="Rohit Yadav",
... | mit | Python |
9262d84169abfcd8663e055c86b42181f005b444 | Update setup.py file for new version | bitpay/bitpay-python-py2,bitpay/bitpay-python-py2 | setup.py | setup.py | # coding=utf-8
from distutils.core import setup
setup(
name="bitpay-py2",
packages=["bitpay"],
version="2.3.5",
description="Accept bitcoin with BitPay",
author="BitPay Integrations Team",
author_email="integrations@bitpay.com",
url="https://github.com/bitpay/bitpay-python-py2",
download... | # coding=utf-8
from distutils.core import setup
setup(
name="bitpay-py2",
packages=["bitpay"],
version="2.3.4",
description="Accept bitcoin with BitPay",
author="Paul Daigle",
author_email="integrations@bitpay.com",
url="https://github.com/bitpay/bitpay-python-py2",
download_url="https:/... | mit | Python |
f8fcdb461f414f3c29263edd7e5c9906d76435a1 | Use correct MIT license classifier. | fschulze/pytest-flakes | setup.py | setup.py | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='1.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
author_email='florian... | from setuptools import setup
setup(
name='pytest-flakes',
description='pytest plugin to check source code with pyflakes',
long_description=open("README.rst").read(),
license="MIT license",
version='1.0.1',
author='Florian Schulze, Holger Krekel and Ronny Pfannschmidt',
author_email='florian... | mit | Python |
b967c539437d7c31068bfc9132555defee7ee5bf | Add description for PyPi | Lukas0907/feeds,Lukas0907/feeds | setup.py | setup.py | from setuptools import find_packages, setup
with open("README.rst") as f:
long_description = f.read()
setup(
name="PyFeeds",
version="2018.7.30",
description="DIY Atom feeds in times of social media and paywalls",
long_description=long_description,
long_description_content_type="text/x-rst",
... | from setuptools import find_packages, setup
setup(
name="PyFeeds",
version="2018.7.30",
# Author details
author="Florian Preinstorfer, Lukas Anzinger",
author_email="florian@nblock.org, lukas@lukasanzinger.at",
url="https://github.com/PyFeeds/PyFeeds",
packages=find_packages(),
include_... | agpl-3.0 | Python |
771b557c784ed6b117615bec02829404f91e13a7 | bump version (#17) | disqus/gutter-django,disqus/gutter-django,disqus/gutter-django,disqus/gutter-django | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import find_packages
try:
from notsetuptools import setup
except ImportError:
from setuptools import setup
try:
import multiprocessing # noqa
except ImportError:
pass
tests_require = ['nose', 'unittest2', 'exam', 'redis', 'durabledict', 'wheel', 'mo... | #!/usr/bin/env python
import sys
from setuptools import find_packages
try:
from notsetuptools import setup
except ImportError:
from setuptools import setup
try:
import multiprocessing # noqa
except ImportError:
pass
tests_require = ['nose', 'unittest2', 'exam', 'redis', 'durabledict', 'wheel', 'mo... | apache-2.0 | Python |
aec995bc451e897d60bdca93da27019241247ed0 | Add short description | smarter-travel-media/stac | setup.py | setup.py | # -*- coding: utf-8 -*-
#
import codecs
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import stac
AUTHOR = 'Smarter Travel'
VERSION = stac.__version__
EMAIL = ''
DESCRIPTION = 'Smarter Travel Artifactory Client'
URL = 'https://github.com/smarter-travel-media/stac'
LI... | # -*- coding: utf-8 -*-
#
import codecs
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import stac
AUTHOR = 'Smarter Travel'
VERSION = stac.__version__
EMAIL = ''
DESCRIPTION = ''
URL = 'https://github.com/smarter-travel-media/stac'
LICENSE = 'MIT'
CLASSIFIERS = [
... | mit | Python |
827f1b643c87ee6f1286dbf13f81d64c819d4c52 | Bump version to 1.7.17 | ingrammicro/apsconnect-cli,ingrammicro/apsconnect-cli | setup.py | setup.py | #!/usr/bin/env python
import os
from pip.req import parse_requirements
from setuptools import setup
install_reqs = parse_requirements(os.path.join(os.path.dirname(os.path.abspath(__file__)),
'requirements.txt'), session='None')
setup(
name='apsconnectcli',
auth... | #!/usr/bin/env python
import os
from pip.req import parse_requirements
from setuptools import setup
install_reqs = parse_requirements(os.path.join(os.path.dirname(os.path.abspath(__file__)),
'requirements.txt'), session='None')
setup(
name='apsconnectcli',
auth... | apache-2.0 | Python |
28acf1c8acb5ef393c70947fe2186f81a70c5be2 | Fix typo in setup.py producing wrong package. | Brown-University-Library/solrinspector | setup.py | setup.py | import os
import solrinspector
from setuptools import setup
REQUIRED = ['mysolr']
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='solrinspector',
version= solrinspector.__version__,
de... | import os
import solrinspector
from setuptools import setup
REQUIRED = ['mysolr']
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
setup(
name='sorlinspector',
version= solrinspector.__version__,
de... | mit | Python |
f501367e284003588cb776ff3826bf0c0b01d96f | Exclude tests from install | Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide,Parisson/TimeSide | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys
from setuptools.command.test import test as TestCommand
# Pytest
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests', '--ignore', 'te... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys
from setuptools.command.test import test as TestCommand
# Pytest
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests', '--ignore', 'te... | agpl-3.0 | Python |
e259125fef583936f0c0dfd11182205ea84a4628 | update setup.py | theislab/scib,theislab/scib | setup.py | setup.py | from setuptools import setup
setup(name='scIB',
version='0.1.1',
description='Benchmark tools for single cell data integration',
author='Malte Luecken, Maren Buettner, Daniel Strobl, Michaela Mueller',
author_email='malte.luecken@helmholtz-muenchen.de',
packages=['scIB'],
package_da... | from setuptools import setup
setup(name='scIB',
version='0.1',
description='Benchmark tools for single cell data integration',
url='https://github.com/theislab/Benchmarking_data_integration',
author='Malte Luecken, Maren Buettner, Daniel Strobl, Michaela Mueller',
author_email='malte.luec... | mit | Python |
b3acb5dd35a6504ab5625a470512562f233475f3 | Prepare openprocurement.api 2.3.12. | openprocurement/openprocurement.api | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
requires = [
'barbecue',
'boto',
'chaussette',
'cornice',
'couchdb-schematics',
'gevent',
'iso8601',
'jsonpat... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
requires = [
'barbecue',
'boto',
'chaussette',
'cornice',
'couchdb-schematics',
'gevent',
'iso8601',
'jsonpat... | apache-2.0 | Python |
c7a58619f46091f5aa84c44802410bcbe425571d | Update setup.py | sshwsfc/django-xadmin,alexsilva/django-xadmin,sshwsfc/xadmin,sshwsfc/django-xadmin,sshwsfc/django-xadmin,sshwsfc/xadmin,alexsilva/django-xadmin,sshwsfc/django-xadmin,alexsilva/django-xadmin,sshwsfc/xadmin,alexsilva/django-xadmin,sshwsfc/xadmin | setup.py | setup.py | #!/usr/bin/env python
from io import open
from setuptools import setup
# version_tuple = __import__('xadmin').VERSION
# version = ".".join([str(v) for v in version_tuple])
setup(
name='xadmin',
version='0.6.1',
description='Drop-in replacement of Django admin comes with lots of goodies, fully extensible wi... | #!/usr/bin/env python
from io import open
from setuptools import setup
# version_tuple = __import__('xadmin').VERSION
# version = ".".join([str(v) for v in version_tuple])
setup(
name='xadmin',
version='0.6.1',
description='Drop-in replacement of Django admin comes with lots of goodies, fully extensible wi... | bsd-3-clause | Python |
1c90550a57d6f0d1b637db3818e6ab88591cd42e | remove install_requires from setup.py | motmot/wxglvideo,motmot/wxglvideo,motmot/wxglvideo | setup.py | setup.py | from setuptools import setup, find_packages
import os
kws = {}
setup(name='motmot.wxglvideo',
description='wx/OpenGL viewer of image sequences',
long_description = \
"""Allows for rapid display and resizing/rotation of images by
offloading the image operations to OpenGL.
This is a subpackage of the motmo... | 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',
'motmot.imops>=0.5.2.dev',
'pyglet>=1.0',
'pygarrayimage>=0... | bsd-3-clause | Python |
76443a3304d61fddf8c4adcf4ffe541a3a916294 | Remove Python 2 from classifiers | renanivo/pytest-testdox | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | mit | Python |
394dbab0e19eda0aa3b243ddf2dd7335d6e1a38f | Fix reqs in setup.py | jaywink/social-federation,jaywink/federation,jaywink/social-federation,jaywink/federation | setup.py | setup.py | #!/usr/bin/env python
from pip.req import parse_requirements
from setuptools import setup, find_packages
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements("requirements.txt")
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
re... | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='Social-Federation',
version='0.1.0',
description='Python library for abstracting social federation protocols',
author='Jason Robinson',
author_email='mail@jasonrobinson.me',
url='https://github.com/jaywink/social-fe... | bsd-3-clause | Python |
6fa156f84d1ae058a133836c152b85d2185e8a2e | Change version to 0.0.3 | xrloong/Xie | setup.py | setup.py | #!/usr/bin/env python3
# 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 README file
#with open(path.join(here, 'README.rst'),... | #!/usr/bin/env python3
# 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 README file
#with open(path.join(here, 'README.rst'),... | apache-2.0 | Python |
a5ac7699a01d458156ed45b42b594ef9468478e1 | Bump pylint from 2.14.1 to 2.14.2 (#94) | macbre/mobify | setup.py | setup.py | from setuptools import setup, find_packages
# @see https://github.com/pypa/sampleproject/blob/master/setup.py
setup(
name='mobify',
version='0.1.0',
author='Maciej Brencz',
author_email='maciej.brencz@gmail.com',
description='Download a webpage as an e-book',
url='https://github.com/macbre/mobi... | from setuptools import setup, find_packages
# @see https://github.com/pypa/sampleproject/blob/master/setup.py
setup(
name='mobify',
version='0.1.0',
author='Maciej Brencz',
author_email='maciej.brencz@gmail.com',
description='Download a webpage as an e-book',
url='https://github.com/macbre/mobi... | mit | Python |
9eda09a81df69a7a14aacbca000113e5fe9b1f4a | fix setup.py | manfredmacx/django-direct-connect | setup.py | setup.py | """
Based entirely on Django's own ``setup.py``.
"""
import os
from distutils.command.install import INSTALL_SCHEMES
from distutils.core import setup
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is Non... | """
Based entirely on Django's own ``setup.py``.
"""
import os
from distutils.command.install import INSTALL_SCHEMES
from distutils.core import setup
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is Non... | mit | Python |
3e792d6d006eec5e36141222d5ff26983ef9bedc | rename package | kacchan822/django-chatwork | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
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.... | #!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
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.... | mit | Python |
2f9e7d373c2a49f01f4279c125013848cd4d3a02 | Add Numpy to dependencies | graphistry/pygraphistry,graphistry/pygraphistry | setup.py | setup.py | #!/usr/bin/env python
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
#from codecs import open
#from os import path
#here = path.abspath(path.dirname(__file__))
#with open(path.joi... | #!/usr/bin/env python
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
from setuptools import setup, find_packages
#from codecs import open
#from os import path
#here = path.abspath(path.dirname(__file__))
#with open(path.joi... | bsd-3-clause | Python |
17b08f77240e2696e505450eeb131632fed1d2a0 | increment version | Rootbuzz/shpaml | setup.py | setup.py | __doc__ = """
A Django template loader for loading and converting SHPAML markup to HTML
Note: A SHPAML implementation is included for your
convenience. If you are interested in using shpaml alone, please see
shpaml/shpaml.py
"""
from setuptools import setup
setup(
name='django-shpaml',
version='1.2.1',
a... | __doc__ = """
A Django template loader for loading and converting SHPAML markup to HTML
Note: A SHPAML implementation is included for your
convenience. If you are interested in using shpaml alone, please see
shpaml/shpaml.py
"""
from setuptools import setup
setup(
name='django-shpaml',
version='1.2.0',
a... | bsd-3-clause | Python |
787ee9390fbf2ace59d2f8544b735feb6c895dda | Fix issue with version setter | odin-public/osaAPI | setup.py | setup.py | import os
from setuptools import setup
PACKAGE_VERSION = '0.3'
def version():
import odintools
b = os.getenv('TRAVIS_BUILD_NUMBER') if os.getenv('TRAVIS') else os.environ.get('BUILD_NUMBER')
return odintools.version(PACKAGE_VERSION, b)
setup(
name='osaapi',
version_getter=version,
author='... | import os
from setuptools import setup
PACKAGE_VERSION = '0.3'
def version():
if os.getenv('TRAVIS'):
return os.getenv('TRAVIS_BUILD_NUMBER')
else:
import odintools
return odintools.version(PACKAGE_VERSION, os.environ.get('BUILD_NUMBER'))
setup(
name='osaapi',
version_gett... | apache-2.0 | Python |
df97966941f2ffe924f98b329b136edf069eb6ca | Bump version number in preparation for next release. | django-ddp/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,PythonicNinja/django-ddp,commoncode/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,commoncode/django-ddp,django-ddp/django-ddp,PythonicNinja/django-ddp,PythonicNinja/django-ddp | setup.py | setup.py | #!/usr/bin/env python
"""Django/PostgreSQL implementation of the Meteor DDP service."""
import os.path
from setuptools import setup, find_packages
setup(
name='django-ddp',
version='0.2.1',
description=__doc__,
long_description=open('README.rst').read(),
author='Tyson Clugg',
author_email='tyso... | #!/usr/bin/env python
"""Django/PostgreSQL implementation of the Meteor DDP service."""
import os.path
from setuptools import setup, find_packages
setup(
name='django-ddp',
version='0.2.0',
description=__doc__,
long_description=open('README.rst').read(),
author='Tyson Clugg',
author_email='tyso... | mit | Python |
feaadad8851f3a3a49ed1dfc13c39830f1b6aecd | add numba to the requires | pyreaclib/pyreaclib | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='pynucastro',
version='1.4.0',
description='Python Interfaces to the nuclear reaction rate databases',
url='https://github.com/pynucastro/nucastro',
author='Mike Zingale and Donald Willcox',
author_email='michael.zingale@stonybrook.ed... | from setuptools import setup, find_packages
setup(name='pynucastro',
version='1.4.0',
description='Python Interfaces to the nuclear reaction rate databases',
url='https://github.com/pynucastro/nucastro',
author='Mike Zingale and Donald Willcox',
author_email='michael.zingale@stonybrook.ed... | bsd-3-clause | Python |
4e2a730f3207bb63173bb7571ad1821554095763 | remove debug prints | adaptive-learning/proso-apps,adaptive-learning/proso-apps,adaptive-learning/proso-apps | proso/django/util.py | proso/django/util.py | from functools import wraps
import hashlib
import logging
from django.core.cache import cache
LOGGER = logging.getLogger('django.request')
def disable_for_loaddata(signal_handler):
@wraps(signal_handler)
def wrapper(*args, **kwargs):
if kwargs.get('raw'):
return
signal_handler(*arg... | from functools import wraps
import hashlib
import logging
from django.core.cache import cache
LOGGER = logging.getLogger('django.request')
def disable_for_loaddata(signal_handler):
@wraps(signal_handler)
def wrapper(*args, **kwargs):
if kwargs.get('raw'):
return
signal_handler(*arg... | mit | Python |
4c64b30e127e5dc9704c1d34e7f1b1ff667e11e5 | check for minimal version of anndata and pandas | theislab/scanpy,theislab/scanpy | scanpy/__init__.py | scanpy/__init__.py | # Author: F. Alex Wolf (http://falexwolf.de)
# P. Angerer
"""Scanpy - Single-Cell Analysis in Python
Reference
---------
Wolf, Angerer & Theis, bioRxiv doi:... (2017)
"""
import sys
import warnings
from distutils.version import LooseVersion
if sys.version_info < (3, 0):
warnings.warn('Scanpy only runs re... | # Author: F. Alex Wolf (http://falexwolf.de)
# P. Angerer
"""Scanpy - Single-Cell Analysis in Python
Reference
---------
Wolf, Angerer & Theis, bioRxiv doi:... (2017)
"""
import sys
import warnings
if (sys.version_info < (3, 0)):
warnings.warn('Scanpy only runs reliably with Python 3, preferrably >=3.5.')... | bsd-3-clause | Python |
ee20b9f8aa81fa413773a05be0bfb08d21135b83 | Remove page-filter flag. (which is now user-filter) | CapOM/ChromiumGStreamerBackend,lihui7115/ChromiumGStreamerBackend,lihui7115/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,lihui7115/ChromiumGStreamerBack... | tools/telemetry/telemetry/story/story_filter.py | tools/telemetry/telemetry/story/story_filter.py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import optparse
import re
from telemetry.internal.util import command_line
class _StoryMatcher(object):
def __init__(self, pattern):
self._regex = N... | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import optparse
import re
from telemetry.internal.util import command_line
class _StoryMatcher(object):
def __init__(self, pattern):
self._regex = N... | bsd-3-clause | Python |
c051a76fae4986428da6db336e96f858ede2b777 | Change docstring for better understanding | opesci/devito,opesci/devito | devito/ops/node_factory.py | devito/ops/node_factory.py | from devito import Dimension, TimeFunction
from devito.ops.utils import namespace
from devito.symbolics import Macro, split_affine
from devito.types import Indexed, Array
class OPSNodeFactory():
"""
Generate OPS nodes for building an OPS expression.
A new OPS argument is created based on the indexed name,... | from devito import Dimension, TimeFunction
from devito.ops.utils import namespace
from devito.symbolics import Macro, split_affine
from devito.types import Indexed, Array
class OPSNodeFactory():
"""
Generate OPS nodes for building an OPS expression.
A new OPS argument is created based on the indexed name ... | mit | Python |
dc5555f54b0be3752a186e5b303801f6e5b1a0e0 | Fix wrong settings name | huseyinyilmaz/worklogger,huseyinyilmaz/worklogger,huseyinyilmaz/worklogger | numerics/utils.py | numerics/utils.py | import json
from django.conf import settings
from cryptography.fernet import Fernet
_FERNET_ENCODING = 'ascii'
_FERNET_KEY = 'fernet'
_CACHE = {}
def get_fernet():
"""Returns fernet object. Object is encoded on module level.
"""
if _FERNET_KEY not in _CACHE:
key = bytes(settings.NUMERICS_SECRE... | import json
from django.conf import settings
from cryptography.fernet import Fernet
_FERNET_ENCODING = 'ascii'
_FERNET_KEY = 'fernet'
_CACHE = {}
def get_fernet():
"""Returns fernet object. Object is encoded on module level.
"""
if _FERNET_KEY not in _CACHE:
key = bytes(settings.NUMERICS_KEY, ... | mit | Python |
013b3968457f78caf1a7185702771f6235515db9 | Clean up. | pizzathief/numpy,WillieMaddox/numpy,yiakwy/numpy,ogrisel/numpy,dwf/numpy,rajathkumarmp/numpy,CMartelLML/numpy,MichaelAquilina/numpy,ddasilva/numpy,WarrenWeckesser/numpy,pelson/numpy,hainm/numpy,embray/numpy,bertrand-l/numpy,dch312/numpy,nguyentu1602/numpy,sinhrks/numpy,jakirkham/numpy,jakirkham/numpy,mhvk/numpy,jakirkh... | numpy/__init__.py | numpy/__init__.py | """\
NumPy
==========
You can support the development of NumPy and SciPy by purchasing
documentation at
http://www.trelgol.com
It is being distributed for a fee for a limited time to try and raise
money for development.
Documentation is also available in the docstrings.
"""
try:
from __config__ import show ... | """\
NumPy
==========
You can support the development of NumPy and SciPy by purchasing
documentation at
http://www.trelgol.com
It is being distributed for a fee for a limited time to try and raise
money for development.
Documentation is also available in the docstrings.
"""
try:
from __config__ import show ... | bsd-3-clause | Python |
ef3622cdbfc3c1fbeaed749bcef0af95d6b41ac2 | add comma between sites | edlongman/thescoop,edlongman/thescoop,edlongman/thescoop | update_categories.py | update_categories.py | import MySQLdb, config
sql = MySQLdb.connect(host="localhost",
user=config.username,
passwd=config.passwd,
db=config.db)
sql.query("SELECT `site` FROM `sites` ")
sites=sql.store_result().fetch_row(0)
def print_site_urls(site):
p... | import MySQLdb, config
sql = MySQLdb.connect(host="localhost",
user=config.username,
passwd=config.passwd,
db=config.db)
sql.query("SELECT `site` FROM `sites` ")
sites=sql.store_result().fetch_row(0)
def print_site_urls(site):
p... | apache-2.0 | Python |
657a30b821afacb3b581049830a26cbc9634bb0a | Use library formatting for email addresses | gmacon/postfix-aliases,gmacon/postfix-aliases | postfix_aliases/models.py | postfix_aliases/models.py | from email.headerregistry import Address
from flask_login import UserMixin
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Domain(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(128), unique=True)
def __repr__(self):
return '<{}: {}>'.format(s... | from flask_login import UserMixin
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Domain(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(128), unique=True)
def __repr__(self):
return '<{}: {}>'.format(self.__class__.__name__, self.name)
class... | mit | Python |
5faa3a3e40b7007ff5a28492df46897b71ce01db | Fix instance var access in classmethod | minddust/jquery-pjaxr,minddust/jquery-pjaxr | test_app/tests/helpers.py | test_app/tests/helpers.py | from __future__ import unicode_literals
from os import getenv
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.support import ui
class SeleniumTestCase(LiveServerTestCase):
@classmethod
def setUpClass(cls):
if getenv('SAUCE_USERNAME'):
c... | from __future__ import unicode_literals
from os import getenv
from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.support import ui
class SeleniumTestCase(LiveServerTestCase):
@classmethod
def setUpClass(cls):
if getenv('SAUCE_USERNAME'):
c... | mit | Python |
737b4469f28ce5481342f16b863c1f61d315a6fa | Update releash config | egpbos/xtensor-fftw,egpbos/xtensor-fftw,xtensor-stack/xtensor-fftw,xtensor-stack/xtensor-fftw | .releash.py | .releash.py | '''
Before use, install releash:
* $ python -m pip install releash
* Install hub (to do a PR from the command line) https://hub.github.com/
Workflow:
* releash status
* releash bump -i -v
* releash release -i -v
Lose the -i (interactive) and -v (verbose) when comfortable
'''
from releash import *
gitpush = Releas... | '''
Before use, install releash:
* $ python -m pip install releash
* Install hub (to do a PR from the command line) https://hub.github.com/
Workflow:
* releash status
* releash bump -i -v
* releash release -i -v
Lose the -i (interactive) and -v (verbose) when comfortable
'''
from releash import *
gitpush = Releas... | bsd-3-clause | Python |
08361f18c632a84e8be641cf24f226ba56fe70c8 | Deal with Python 3 rejecting comparisons between None and None. | masayukig/stestr,mtreinish/stestr,mtreinish/stestr,masayukig/stestr | testrepository/results.py | testrepository/results.py | #
# Copyright (c) 2010 Testrepository Contributors
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two lice... | #
# Copyright (c) 2010 Testrepository Contributors
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two lice... | apache-2.0 | Python |
d63d391d5b9ee221c0cd67e030895f4598430f08 | Update key usage when the usage_left counter is still greater than zero. | uploadcare/django-loginurl,vanschelven/cmsplugin-journal,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,fajran/django-loginurl,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-web... | onetime/models.py | onetime/models.py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import User
class Key(models.Model):
user = models.ForeignKey(User)
key = models.CharField(max_length=40)
created = models.DateTimeField(auto_now_add=True)
usage_left = models.IntegerField(null=True, default=1)
... | from datetime import datetime
from django.db import models
from django.contrib.auth.models import User
class Key(models.Model):
user = models.ForeignKey(User)
key = models.CharField(max_length=40)
created = models.DateTimeField(auto_now_add=True)
usage_left = models.IntegerField(null=True, default=1)
... | bsd-3-clause | Python |
6d3175f9d2fd519a6a777a35537cf529984817fd | use None instead of {} from the native signature | Eficent/purchase-workflow,SerpentCS/purchase-workflow,Eficent/purchase-workflow,SerpentCS/purchase-workflow,SerpentCS/purchase-workflow | purchase_discount/models/account_invoice_line.py | purchase_discount/models/account_invoice_line.py | # -*- coding: utf-8 -*-
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import models
class AccountInvoiceLine(models.Model):
_inherit = "account.invoice.line"
def new(self, values=None):
"""
Apply the linked to a purcha... | # -*- coding: utf-8 -*-
# © 2016 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from openerp import models
class AccountInvoiceLine(models.Model):
_inherit = "account.invoice.line"
def new(self, values={}):
"""
Apply the linked to a purchase... | agpl-3.0 | Python |
f49d75bbc11ab98d41d701c3bcac3ba5d11490d1 | Update urls.py. | avelis/django-slack-oauth,izdi/django-slack-oauth | django_slack_oauth/urls.py | django_slack_oauth/urls.py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import SlackAuthView
urlpatterns = [
url('login/', SlackAuthView.as_view(), name='slack_auth'),
]
| # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from .views import SlackAuthView
urlpatterns = patterns('',
url('login/', SlackAuthView.as_view(), name='slack_auth'),
)
| mit | Python |
c8a0f4f439c2123c9b7f9b081f91d75b1f9a8a13 | Remove the match param to fix RCE. | DMOJ/judge,DMOJ/judge,DMOJ/judge | dmoj/checkers/linecount.py | dmoj/checkers/linecount.py | from re import split as resplit
from typing import Callable, Union
from dmoj.result import CheckerResult
from dmoj.utils.unicode import utf8bytes
verdict = u"\u2717\u2713"
def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True,
**kwargs) -> Union[CheckerResult, boo... | from re import split as resplit
from typing import Callable, Union
from dmoj.result import CheckerResult
from dmoj.utils.unicode import utf8bytes
verdict = u"\u2717\u2713"
def check(process_output: bytes, judge_output: bytes, point_value: float, feedback: bool = True,
match: Callable[[bytes, bytes], bool]... | agpl-3.0 | Python |
a9d1e75a114493428b024bc10da5d399a682ad13 | handle start events | marcoimmel/aws-suite | auto-admin/src/auto-admin-ec2/lambda-ec2-start-stop.py | auto-admin/src/auto-admin-ec2/lambda-ec2-start-stop.py | # this aws lambda functions locates ec2 instances and stops them
# the function can be invoked by a cloudwatch scheduled event
#
import logging
import boto3
logger = logging.getLogger('auto-admin-logger')
logger.setLevel(logging.INFO)
def event_handler(event, context):
ec2 = boto3.resource('ec2')
start = Tru... | # this aws lambda functions locates running ec2 instances and stops them
# the function can be invoked by a cloudwatch scheduled event
import logging
import boto3
logger = logging.getLogger('auto-admin-logger')
logger.setLevel(logging.INFO)
def event_handler(event, context):
ec2 = boto3.resource('ec2')
filte... | apache-2.0 | Python |
e6f69419db76ca05801baa2d1799ffd66b94df5d | Update manager.py | rpiotti/Flask-AppBuilder,zhounanshu/Flask-AppBuilder,zhounanshu/Flask-AppBuilder,qpxu007/Flask-AppBuilder,qpxu007/Flask-AppBuilder,qpxu007/Flask-AppBuilder,dpgaspar/Flask-AppBuilder,dpgaspar/Flask-AppBuilder,zhounanshu/Flask-AppBuilder,rpiotti/Flask-AppBuilder,rpiotti/Flask-AppBuilder,dpgaspar/Flask-AppBuilder,rpiotti/... | flask_appbuilder/babel/manager.py | flask_appbuilder/babel/manager.py | from flask.ext.babel import Babel
class BabelManager(object)
babel = None
basel_default_locale = ''
def __init__(self, app):
self.babel = Babel(app)
self.basel_default_locale = self._get_default_locale(app)
babel.locale_selector_func = self.get_locale()
def _get_defa... |
class BabelManager(object)
def __init__(self, babel):
babel.localeselector = self.get_locale()
def get_locale():
locale = session.get('locale')
if locale:
return locale
session['locale'] = BABEL_DEFAULT_LOCALE
return session['locale']
... | bsd-3-clause | Python |
f92c74343587f74bad2adcfefd4cd2ff8c4093a6 | add test for ycmd server to restart command | kracejic/CppYCM,kracejic/CppYCM | commands/reset.py | commands/reset.py | import sublime
import sublime_plugin
from ..lib.ycmd_handler import server
from ..lib.ycmd_handler import deleteSingleton
from ..lib.utils import check_ycmd_server
output_panel = None
class CppycmResetCommand(sublime_plugin.WindowCommand):
'''
Restart ycmd server
Last resort when server is down, user ca... | import sublime
import sublime_plugin
from ..lib.ycmd_handler import server
from ..lib.ycmd_handler import deleteSingleton
output_panel = None
class CppycmResetCommand(sublime_plugin.WindowCommand):
'''
Restart ycmd server
Last resort when server is down, user can manually restart it.
'''
def r... | mit | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.