<commit_before>from setuptools import setup
from setuptools.command.install import install
from distutils.command.build import build

# We need this workaround to solve the problem of importing prox_tv._prox_tv
# before CFFI is installed. For more details, have a look at:
#   https://caremad.io/2014/11/distributing-a-cffi-project/

def get_ext_modules():
    from prox_tv._prox_tv import _ffi
    return [
        _ffi.verifier.get_extension(),
    ]

class CFFIBuild(build):
    def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        build.finalize_options(self)

class CFFIInstall(install):
    def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        install.finalize_options(self)

setup(
    name="prox_tv",
    version="3.1.0a2",
    description="Toolbox for fast Total Variation proximity operators",
    long_description="proxTV is a toolbox implementing blazing fast implementations of Total Variation proximity operators. While the core algorithms are implemented in C to achieve high efficiency, Matlab and Python interfaces are provided for ease of use. The library provides efficient solvers for a variety of Total Variation proximity problems, with address input signals of any dimensionality (1d, images, video, ...) and different norms to apply in the Total Variation term.",
    packages=['prox_tv'],
    install_requires=[
        'numpy',
        'cffi',
        'sphinxcontrib-napoleon',
        'sphinx_rtd_theme',
        'matplotlib',
        'scipy',
        'scikit-image'
    ],
    setup_requires=[
        'cffi'
    ],
    cmdclass={
        'build': CFFIBuild,
        'install': CFFIInstall,
    },
    package_data={
        'prox_tv': ['src/*.h', 'src/demos/*']
    },
    author="Alvaro Barbero, Suvrit Sra",
    author_email="alvaro.barbero@uam.es",
    url='https://github.com/albarji/proxTV',
    license='BSD',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Science/Research',
        'Operating System :: POSIX :: Linux',
        'Topic :: Scientific/Engineering :: Mathematics',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4'
    ],
    keywords='total variation image processing machine learning',
    test_suite="nose.collector",
    zip_safe=False,
)
<commit_msg>Updated version to 3.1.1<commit_after>from setuptools import setup
from setuptools.command.install import install
from distutils.command.build import build

# We need this workaround to solve the problem of importing prox_tv._prox_tv
# before CFFI is installed. For more details, have a look at:
#   https://caremad.io/2014/11/distributing-a-cffi-project/

def get_ext_modules():
    from prox_tv._prox_tv import _ffi
    return [
        _ffi.verifier.get_extension(),
    ]

class CFFIBuild(build):
    def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        build.finalize_options(self)

class CFFIInstall(install):
    def finalize_options(self):
        self.distribution.ext_modules = get_ext_modules()
        install.finalize_options(self)

setup(
    name="prox_tv",
    version="3.1.1",
    description="Toolbox for fast Total Variation proximity operators",
    long_description="proxTV is a toolbox implementing blazing fast implementations of Total Variation proximity operators. While the core algorithms are implemented in C to achieve high efficiency, Matlab and Python interfaces are provided for ease of use. The library provides efficient solvers for a variety of Total Variation proximity problems, with address input signals of any dimensionality (1d, images, video, ...) and different norms to apply in the Total Variation term.",
    packages=['prox_tv'],
    install_requires=[
        'numpy',
        'cffi',
        'sphinxcontrib-napoleon',
        'sphinx_rtd_theme',
        'matplotlib',
        'scipy',
        'scikit-image'
    ],
    setup_requires=[
        'cffi'
    ],
    cmdclass={
        'build': CFFIBuild,
        'install': CFFIInstall,
    },
    package_data={
        'prox_tv': ['src/*.h', 'src/demos/*']
    },
    author="Alvaro Barbero, Suvrit Sra, Josip Djolonga (python bindings)",
    author_email="alvaro.barbero@uam.es",
    url='https://github.com/albarji/proxTV',
    license='BSD',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Science/Research',
        'Operating System :: POSIX :: Linux',
        'Topic :: Scientific/Engineering :: Mathematics',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4'
    ],
    keywords='total variation image processing machine learning',
    test_suite="nose.collector",
    zip_safe=False,
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
import subprocess
from setuptools import setup
from glob import glob

import sys
import os
from os import path
from os.path import splitext

import shutil
from setuptools import Extension
from distutils import sysconfig
import platform

# PyPy --- NB! PyPy doesn't really work, it segfaults all over the place. But,
# this is necessary to get it compile.
# We have to resort to monkey-patching to set the compiler, because pypy broke
# ALL the EVERTHING.

pre_patch_customize_compiler = sysconfig.customize_compiler
def my_customize_compiler(compiler):
    pre_patch_customize_compiler(compiler)
    compiler.compiler_cxx = ['c++']

if platform.python_implementation() == 'PyPy':
    sysconfig.customize_compiler = my_customize_compiler

#def install_headers():
#    dest_dir = path.join(sys.prefix, 'include', 'murmurhash')
#    if not path.exists(dest_dir):
#        shutil.copytree('murmurhash/headers/murmurhash', dest_dir)
#
#    dest_dir = path.join(sys.prefix, 'include', 'numpy')

includes = ['.', path.join(sys.prefix, 'include')]

try:
    import numpy
    includes.append(numpy.get_include())
except ImportError:
    pass

def clean(ext):
    for src in ext.sources:
        if src.endswith('.c') or src.endswith('cpp'):
            so = src.rsplit('.', 1)[0] + '.so'
            html = src.rsplit('.', 1)[0] + '.html'
            if os.path.exists(so):
                os.unlink(so)
            if os.path.exists(html):
                os.unlink(html)

def name_to_path(mod_name, ext):
    return '%s.%s' % (mod_name.replace('.', '/'), ext)

def c_ext(mod_name, language, includes, compile_args):
    mod_path = name_to_path(mod_name, language)
    return Extension(mod_name, [mod_path], include_dirs=includes,
                     extra_compile_args=compile_args, extra_link_args=compile_args)

def cython_ext(mod_name, language, includes, compile_args):
    import Cython.Distutils
    import Cython.Build
    mod_path = mod_name.replace('.', '/') + '.pyx'
    if language == 'cpp':
        language = 'c++'
    ext = Extension(mod_name, [mod_path], language=language, include_dirs=includes,
                    extra_compile_args=compile_args)
    return Cython.Build.cythonize([ext])[0]

def run_setup(exts):
    setup(
        name='spacy',
        packages=['spacy', 'spacy.en', 'spacy.syntax'],
        description="Industrial-strength NLP",
        author='Matthew Honnibal',
        author_email='honnibal@gmail.com',
        version='0.30',
        url="http://honnibal.github.io/spaCy/",
        package_data={"spacy": ["*.pxd"],
                      "spacy.en": ["*.pxd", "data/pos/*",
                                   "data/wordnet/*", "data/tokenizer/*",
                                   "data/vocab/*"],
                      "spacy.syntax": ["*.pxd"]},
        ext_modules=exts,
        license="Dual: Commercial or AGPL",
        install_requires=['numpy', 'murmurhash', 'cymem', 'preshed', 'thinc',
                          "unidecode", ],
        setup_requires=["headers_workaround"],
    )

    import headers_workaround

    headers_workaround.fix_venv_pypy_include()
    headers_workaround.install_headers('murmurhash')
    headers_workaround.install_headers('numpy')

def main(modules, is_pypy):
    language = "cpp"
    ext_func = cython_ext if use_cython else c_ext
    includes = ['.', path.join(sys.prefix, 'include')]
    compile_args = ['-O3']
    exts = [ext_func(mn, language, includes, compile_args) for mn in modules]
    run_setup(exts)

MOD_NAMES = ['spacy.typedefs', 'spacy.strings', 'spacy.lexeme',
             'spacy.vocab', 'spacy.tokens', 'spacy.morphology',
             'spacy._ml', 'spacy.tokenizer', 'spacy.en.attrs',
             'spacy.en.pos', 'spacy.syntax.parser', 'spacy.syntax._state',
             'spacy.syntax.arc_eager', 'spacy.syntax._parse_features',
             'spacy.orth']

if __name__ == '__main__':
    use_cython = sys.argv[1] == 'build_ext'
    main(MOD_NAMES, use_cython)
<commit_msg>* Add parts_of_speech to setup<commit_after>#!/usr/bin/env python
import subprocess
from setuptools import setup
from glob import glob

import sys
import os
from os import path
from os.path import splitext

import shutil
from setuptools import Extension
from distutils import sysconfig
import platform

# PyPy --- NB! PyPy doesn't really work, it segfaults all over the place. But,
# this is necessary to get it compile.
# We have to resort to monkey-patching to set the compiler, because pypy broke
# ALL the EVERTHING.

pre_patch_customize_compiler = sysconfig.customize_compiler
def my_customize_compiler(compiler):
    pre_patch_customize_compiler(compiler)
    compiler.compiler_cxx = ['c++']

if platform.python_implementation() == 'PyPy':
    sysconfig.customize_compiler = my_customize_compiler

#def install_headers():
#    dest_dir = path.join(sys.prefix, 'include', 'murmurhash')
#    if not path.exists(dest_dir):
#        shutil.copytree('murmurhash/headers/murmurhash', dest_dir)
#
#    dest_dir = path.join(sys.prefix, 'include', 'numpy')

includes = ['.', path.join(sys.prefix, 'include')]

try:
    import numpy
    includes.append(numpy.get_include())
except ImportError:
    pass

def clean(ext):
    for src in ext.sources:
        if src.endswith('.c') or src.endswith('cpp'):
            so = src.rsplit('.', 1)[0] + '.so'
            html = src.rsplit('.', 1)[0] + '.html'
            if os.path.exists(so):
                os.unlink(so)
            if os.path.exists(html):
                os.unlink(html)

def name_to_path(mod_name, ext):
    return '%s.%s' % (mod_name.replace('.', '/'), ext)

def c_ext(mod_name, language, includes, compile_args):
    mod_path = name_to_path(mod_name, language)
    return Extension(mod_name, [mod_path], include_dirs=includes,
                     extra_compile_args=compile_args, extra_link_args=compile_args)

def cython_ext(mod_name, language, includes, compile_args):
    import Cython.Distutils
    import Cython.Build
    mod_path = mod_name.replace('.', '/') + '.pyx'
    if language == 'cpp':
        language = 'c++'
    ext = Extension(mod_name, [mod_path], language=language, include_dirs=includes,
                    extra_compile_args=compile_args)
    return Cython.Build.cythonize([ext])[0]

def run_setup(exts):
    setup(
        name='spacy',
        packages=['spacy', 'spacy.en', 'spacy.syntax'],
        description="Industrial-strength NLP",
        author='Matthew Honnibal',
        author_email='honnibal@gmail.com',
        version='0.30',
        url="http://honnibal.github.io/spaCy/",
        package_data={"spacy": ["*.pxd"],
                      "spacy.en": ["*.pxd", "data/pos/*",
                                   "data/wordnet/*", "data/tokenizer/*",
                                   "data/vocab/*"],
                      "spacy.syntax": ["*.pxd"]},
        ext_modules=exts,
        license="Dual: Commercial or AGPL",
        install_requires=['numpy', 'murmurhash', 'cymem', 'preshed', 'thinc',
                          "unidecode", ],
        setup_requires=["headers_workaround"],
    )

    import headers_workaround

    headers_workaround.fix_venv_pypy_include()
    headers_workaround.install_headers('murmurhash')
    headers_workaround.install_headers('numpy')

def main(modules, is_pypy):
    language = "cpp"
    ext_func = cython_ext if use_cython else c_ext
    includes = ['.', path.join(sys.prefix, 'include')]
    compile_args = ['-O3']
    exts = [ext_func(mn, language, includes, compile_args) for mn in modules]
    run_setup(exts)

MOD_NAMES = ['spacy.parts_of_speech', 'spacy.strings',
             'spacy.lexeme', 'spacy.vocab', 'spacy.tokens', 'spacy.morphology',
             'spacy._ml', 'spacy.tokenizer', 'spacy.en.attrs',
             'spacy.en.pos', 'spacy.syntax.parser', 'spacy.syntax._state',
             'spacy.syntax.arc_eager', 'spacy.syntax._parse_features',
             'spacy.orth']

if __name__ == '__main__':
    use_cython = sys.argv[1] == 'build_ext'
    main(MOD_NAMES, use_cython)
<|endoftext|>


<commit_before>from setuptools import setup
import os

def read(filename):
  with open(filename) as fin:
    return fin.read()

setup(
  name='jstree',
  version='0.1',
  author='William Grim',
  author_email='william@grimapps.com',
  url='https://github.com/grimwm/py-jstree',
  classifiers = [
    'Development Status :: 2 - Pre-Alpha',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Topic :: Software Development :: Libraries :: Python Modules',
    ],
  description='',
  long_description=read('README.txt') if os.path.exists('README.txt') else '',
  py_modules=['jstree'],
  test_suite='jstree_test',
  )
<commit_msg>This project will depend on py-dictobj.<commit_after>from setuptools import setup
import os

def read(filename):
  with open(filename) as fin:
    return fin.read()

setup(
  name='jstree',
  version='0.1',
  author='William Grim',
  author_email='william@grimapps.com',
  url='https://github.com/grimwm/py-jstree',
  classifiers = [
    'Development Status :: 2 - Pre-Alpha',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Topic :: Software Development :: Libraries :: Python Modules',
    ],
  description='',
  long_description=read('README.txt') if os.path.exists('README.txt') else '',
  requires=['dictobj'],
  py_modules=['jstree'],
  test_suite='jstree_test',
  )
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

version = '1.0.3'

setup(
    name = 'tabula',
    version = version,
    description = "Ascii table",
    url = "https://github.com/ronniedada/tabula",
    long_description = open("README.md").read(),
    classifiers = [
        "Intended Audience :: Developers",
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        "Operating System :: POSIX",
        "License :: OSI Approved :: Apache Software License",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: User Interfaces',
        'Topic :: Terminals'
        ],
    keywords = ['couchbase', 'terminal', 'ascii', 'table', 'numpy', 'curses'],
    author = "Ronnie Sun",
    author_email = "ronnie@couchbase.com",
    license="Apache Software License",
    packages = find_packages(exclude=['ez_setup']),
    include_package_data = True,
    install_requires = [
        'setuptools',
        'numpy',
        ],
)
<commit_msg>release 1.0.4<commit_after>from setuptools import setup, find_packages

version = '1.0.4'

setup(
    name = 'tabula',
    version = version,
    description = "Ascii table",
    url = "https://github.com/ronniedada/tabula",
    long_description = open("README.md").read(),
    classifiers = [
        "Intended Audience :: Developers",
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        "Operating System :: POSIX",
        "License :: OSI Approved :: Apache Software License",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: User Interfaces',
        'Topic :: Terminals'
        ],
    keywords = ['couchbase', 'terminal', 'ascii', 'table', 'numpy', 'curses'],
    author = "Ronnie Sun",
    author_email = "ronnie@couchbase.com",
    license="Apache Software License",
    packages = find_packages(exclude=['ez_setup']),
    include_package_data = True,
    install_requires = [
        'setuptools',
        'numpy',
        ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='esios',
    version='0.5.0',
    packages=find_packages(),
    url='https://github.com/gisce/esios',
    license='MIT',
    install_requires=['libsaas'],
    author='GISCE-TI, S.L.',
    author_email='devel@gisce.net',
    description='Interact with e.sios API',
)
<commit_msg>Bump to v0.6.0<commit_after>from setuptools import setup, find_packages

setup(
    name='esios',
    version='0.6.0',
    packages=find_packages(),
    url='https://github.com/gisce/esios',
    license='MIT',
    install_requires=['libsaas'],
    author='GISCE-TI, S.L.',
    author_email='devel@gisce.net',
    description='Interact with e.sios API',
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup

def read(fname):
    try:
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    except:
        return ''

setup(
    name='todoist-python',
    version='0.2.24',
    packages=['todoist', 'todoist.managers'],
    author='Doist Team',
    author_email='info@todoist.com',
    license='BSD',
    description='todoist-python - The official Todoist Python API library',
    long_description = read('README.md'),
    install_requires=[
        'requests',
    ],
    # see here for complete list of classifiers
    # http://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=(
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
    ),
)
<commit_msg>Update the PyPI version to 0.2.25.<commit_after># -*- coding: utf-8 -*-
import os
from setuptools import setup

def read(fname):
    try:
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    except:
        return ''

setup(
    name='todoist-python',
    version='0.2.25',
    packages=['todoist', 'todoist.managers'],
    author='Doist Team',
    author_email='info@todoist.com',
    license='BSD',
    description='todoist-python - The official Todoist Python API library',
    long_description = read('README.md'),
    install_requires=[
        'requests',
    ],
    # see here for complete list of classifiers
    # http://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=(
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
    ),
)
<|endoftext|>


<commit_before>from setuptools import find_packages, setup

with open("README.md", encoding="UTF-8") as f:
    long_description = f.read()

def local_scheme(version):
    """Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
    to be able to upload to Test PyPI"""
    return ""

setup(
    name="humanize",
    description="Python humanize utilities",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Jason Moiron",
    author_email="jmoiron@jmoiron.net",
    maintainer="Hugo van Kemenade",
    url="https://github.com/jmoiron/humanize",
    project_urls={
        "Source": "https://github.com/jmoiron/humanize",
        "Issue tracker": "https://github.com/jmoiron/humanize/issues",
        "Funding": "https://tidelift.com/subscription/pkg/pypi-humanize",
    },
    license="MIT",
    keywords="humanize time size",
    packages=find_packages(where="src"),
    package_dir={"": "src"},
    include_package_data=True,
    zip_safe=False,
    use_scm_version={"local_scheme": local_scheme},
    setup_requires=["setuptools_scm"],
    extras_require={"tests": ["freezegun", "pytest", "pytest-cov"]},
    python_requires=">=3.5",
    # Get strings from https://pypi.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Text Processing",
        "Topic :: Text Processing :: General",
    ],
)
<commit_msg>Update link<commit_after>from setuptools import find_packages, setup

with open("README.md", encoding="UTF-8") as f:
    long_description = f.read()

def local_scheme(version):
    """Skip the local version (eg. +xyz of 0.6.1.dev4+gdf99fe2)
    to be able to upload to Test PyPI"""
    return ""

setup(
    name="humanize",
    description="Python humanize utilities",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Jason Moiron",
    author_email="jmoiron@jmoiron.net",
    maintainer="Hugo van Kemenade",
    url="https://github.com/jmoiron/humanize",
    project_urls={
        "Source": "https://github.com/jmoiron/humanize",
        "Issue tracker": "https://github.com/jmoiron/humanize/issues",
        "Funding": "https://tidelift.com/subscription/pkg/pypi-humanize?"
        "utm_source=pypi-humanize&utm_medium=pypi",
    },
    license="MIT",
    keywords="humanize time size",
    packages=find_packages(where="src"),
    package_dir={"": "src"},
    include_package_data=True,
    zip_safe=False,
    use_scm_version={"local_scheme": local_scheme},
    setup_requires=["setuptools_scm"],
    extras_require={"tests": ["freezegun", "pytest", "pytest-cov"]},
    python_requires=">=3.5",
    # Get strings from https://pypi.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Text Processing",
        "Topic :: Text Processing :: General",
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import codecs
import os
import setuptools

def read(fname):
    file_path = os.path.join(os.path.dirname(__file__), fname)
    return codecs.open(file_path, encoding="utf-8").read()

setuptools.setup(
    name="pytest-cookies",
    version="0.5.1",
    author="Raphael Pierzina",
    author_email="raphael@hackebrot.de",
    maintainer="Raphael Pierzina",
    maintainer_email="raphael@hackebrot.de",
    license="MIT",
    url="https://github.com/hackebrot/pytest-cookies",
    project_urls={
        "Repository": "https://github.com/hackebrot/pytest-cookies",
        "Issues": "https://github.com/hackebrot/pytest-cookies/issues",
    },
    description="The pytest plugin for your Cookiecutter templates. 🍪",
    long_description=read("README.md"),
    long_description_content_type="text/markdown",
    packages=setuptools.find_packages("src"),
    package_dir={"": "src"},
    include_package_data=True,
    zip_safe=False,
    python_requires=">=3.6",
    install_requires=[
        "cookiecutter>=1.4.0",
        "pytest>=3.3.0",
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python",
        "Topic :: Software Development :: Testing",
        "Framework :: Pytest",
    ],
    entry_points={"pytest11": ["cookies = pytest_cookies.plugin"]},
    keywords=["cookiecutter", "pytest"],
)
<commit_msg>Bump plugin version to 0.6.0<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import codecs
import os
import setuptools

def read(fname):
    file_path = os.path.join(os.path.dirname(__file__), fname)
    return codecs.open(file_path, encoding="utf-8").read()

setuptools.setup(
    name="pytest-cookies",
    version="0.6.0",
    author="Raphael Pierzina",
    author_email="raphael@hackebrot.de",
    maintainer="Raphael Pierzina",
    maintainer_email="raphael@hackebrot.de",
    license="MIT",
    url="https://github.com/hackebrot/pytest-cookies",
    project_urls={
        "Repository": "https://github.com/hackebrot/pytest-cookies",
        "Issues": "https://github.com/hackebrot/pytest-cookies/issues",
    },
    description="The pytest plugin for your Cookiecutter templates. 🍪",
    long_description=read("README.md"),
    long_description_content_type="text/markdown",
    packages=setuptools.find_packages("src"),
    package_dir={"": "src"},
    include_package_data=True,
    zip_safe=False,
    python_requires=">=3.6",
    install_requires=[
        "cookiecutter>=1.4.0",
        "pytest>=3.3.0",
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3 :: Only",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python",
        "Topic :: Software Development :: Testing",
        "Framework :: Pytest",
    ],
    entry_points={"pytest11": ["cookies = pytest_cookies.plugin"]},
    keywords=["cookiecutter", "pytest"],
)
<|endoftext|>


<commit_before>from pip.download import PipSession
from pip.req import parse_requirements
from setuptools import setup

from graphene_permissions import __version__

with open('README.md', encoding="utf-8") as f:
    long_description = f.read()

install_requirements = parse_requirements('requirements/requirements.txt', session=PipSession())

setup(
    name='graphene-permissions',
    packages=('graphene_permissions',),
    license='MIT',
    version=__version__,
    author='redzej',
    description='Simple graphene-django permission system.',
    long_description=long_description,
    url='https://github.com/redzej/graphene-permissions',
    install_requires=[str(ir.req) for ir in install_requirements],
    keywords='graphene django permissions permission system',
    python_requires='>=3.5',
    classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 2.0',
        'Topic :: Internet :: WWW/HTTP',
        'Intended Audience :: Developers',
    ),
)
<commit_msg>Fix install_requirements<commit_after>from setuptools import setup

from graphene_permissions import __version__

with open('README.md', encoding='utf-8') as f:
    long_description = f.read()

with open('requirements/requirements.txt') as f:
    install_requirements = f.readlines()

setup(
    name='graphene-permissions',
    packages=('graphene_permissions',),
    license='MIT',
    version=__version__,
    author='redzej',
    description='Simple graphene-django permission system.',
    long_description=long_description,
    url='https://github.com/redzej/graphene-permissions',
    install_requires=install_requirements,
    keywords='graphene django permissions permission system',
    python_requires='>=3.5',
    classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Django :: 2.0',
        'Topic :: Internet :: WWW/HTTP',
        'Intended Audience :: Developers',
    ),
)
<|endoftext|>


<commit_before>#!/usr/bin/env python3

import sys
import platform
import setuptools

if platform.python_version().startswith('2'):
  sys.stdout.write("Please use Python 3 instead of Python 2!\n")
  sys.exit(-1)

def readme():
  with open('README', 'wb') as of:
    with open('README.md', 'rb') as i:
      out = b''.join([ line for line in i if not line.startswith(b'[')])
      of.write(out)
      return out.decode('utf8')

setuptools.setup(name='hexlite',
      version='0.3.19',
      description='HEXLite Python-based solver for a fragment of HEX',
      long_description=readme(),
      classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 3',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Natural Language :: English',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Utilities',
      ],
      url='https://github.com/hexhex/hexlite',
      author='Peter Schuller',
      author_email='schueller.p@gmail.com',
      license='GPL3',
      packages=['hexlite', 'hexlite.ast', 'dlvhex'],
      install_requires=[
        'ply',
      ],
      scripts=['bin/hexlite'],
      zip_safe=False)
<commit_msg>bump version<commit_after>#!/usr/bin/env python3

import sys
import platform
import setuptools

if platform.python_version().startswith('2'):
  sys.stdout.write("Please use Python 3 instead of Python 2!\n")
  sys.exit(-1)

def readme():
  with open('README', 'wb') as of:
    with open('README.md', 'rb') as i:
      out = b''.join([ line for line in i if not line.startswith(b'[')])
      of.write(out)
      return out.decode('utf8')

setuptools.setup(name='hexlite',
      version='0.3.20',
      description='HEXLite Python-based solver for a fragment of HEX',
      long_description=readme(),
      classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 3',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Natural Language :: English',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Utilities',
      ],
      url='https://github.com/hexhex/hexlite',
      author='Peter Schuller',
      author_email='schueller.p@gmail.com',
      license='GPL3',
      packages=['hexlite', 'hexlite.ast', 'dlvhex'],
      install_requires=[
        'ply',
      ],
      scripts=['bin/hexlite'],
      zip_safe=False)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
"""
    Microsoft translator API

    The Microsoft Translator services can be used in web or client
    applications to perform language translation operations. The services
    support users who are not familiar with the default language of a page or
    application, or those desiring to communicate with people of a different
    language group.

    This module implements the AJAX API for the Microsoft Translator service.

    An example::

        >>> from microsofttranslator import Translator
        >>> translator = Translator('<Your API Key>')
        >>> print translator.translate("Hello", "pt")
        "Olá"

    The documentation for the service can be obtained here:
    http://msdn.microsoft.com/en-us/library/ff512423.aspx

    The project is hosted on GitHub where your could fork the project or report
    issues. Visit https://github.com/openlabs/Microsoft-Translator-Python-API

    :copyright: © 2011 by Openlabs Technologies & Consulting (P) Limited
    :license: BSD, see LICENSE for more details.
"""
import os
from setuptools import setup

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(
    name="microsofttranslator",
    version="0.5",
    packages=[
        'microsofttranslator',
    ],
    package_dir={
        'microsofttranslator': '.'
    },
    author="Openlabs Technologies & Consulting (P) Limited",
    author_email="info@openlabs.co.in",
    description="Microsoft Translator V2 - Python API",
    long_description=read('README.rst'),
    license="BSD",
    keywords="translation microsoft",
    url="http://openlabs.co.in/",
    include_package_data=True,
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Internationalization",
        "Topic :: Utilities",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 2",
    ],
    test_suite="microsofttranslator.test.test_all",
    install_requires=[
        'requests >= 1.2.3',
    ]
)
<commit_msg>Added installing with pip3 support to install rosetta<commit_after># -*- coding: utf-8 -*-
"""
    Microsoft translator API

    The Microsoft Translator services can be used in web or client
    applications to perform language translation operations. The services
    support users who are not familiar with the default language of a page or
    application, or those desiring to communicate with people of a different
    language group.

    This module implements the AJAX API for the Microsoft Translator service.

    An example::

        >>> from microsofttranslator import Translator
        >>> translator = Translator('<Your API Key>')
        >>> print translator.translate("Hello", "pt")
        "Olá"

    The documentation for the service can be obtained here:
    http://msdn.microsoft.com/en-us/library/ff512423.aspx

    The project is hosted on GitHub where your could fork the project or report
    issues. Visit https://github.com/openlabs/Microsoft-Translator-Python-API

    :copyright: © 2011 by Openlabs Technologies & Consulting (P) Limited
    :license: BSD, see LICENSE for more details.
"""
import os
from setuptools import setup
import sys

PY_VERSION = sys.version_info[0], sys.version_info[1]

def read(fname):
    if PY_VERSION < (3, 0):
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
    else:
        return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()

setup(
    name="microsofttranslator",
    version="0.5",
    packages=[
        'microsofttranslator',
    ],
    package_dir={
        'microsofttranslator': '.'
    },
    author="Openlabs Technologies & Consulting (P) Limited",
    author_email="info@openlabs.co.in",
    description="Microsoft Translator V2 - Python API",
    long_description=read('README.rst'),
    license="BSD",
    keywords="translation microsoft",
    url="http://openlabs.co.in/",
    include_package_data=True,
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Internationalization",
        "Topic :: Utilities",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 2",
    ],
    test_suite="microsofttranslator.test.test_all",
    install_requires=[
        'requests >= 1.2.3',
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
from codecs import open
from os import path

__version__ = '1.0.1'

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

setup(
    name='category_encoders',
    version=__version__,
    description='A collection sklearn transformers to encode categorical variables as numeric',
    long_description=long_description,
    url='https://github.com/wdm0006/categorical_encoding',
    download_url='https://github.com/wdm0006/categorical_encoding/tarball/' + __version__,
    license='BSD',
    classifiers=[
      'Development Status :: 3 - Alpha',
      'Intended Audience :: Developers',
      'Programming Language :: Python :: 3',
    ],
    keywords='python data science machine learning pandas sklearn',
    packages=find_packages(exclude=['tests*']),
    include_package_data=True,
    author='Will McGinnis',
    install_requires=[
        'numpy>=1.9.0',
        'scipy>=0.9.0',
        'pandas>=0.16.0',
        'scikit-learn>=0.15.0',
        'statsmodels>=0.6.0',
        'patsy>=0.4.0',
    ],
    author_email='will@pedalwrencher.com'
)<commit_msg>version bump<commit_after>from setuptools import setup, find_packages
from codecs import open
from os import path

__version__ = '1.0.2'

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

setup(
    name='category_encoders',
    version=__version__,
    description='A collection sklearn transformers to encode categorical variables as numeric',
    long_description=long_description,
    url='https://github.com/wdm0006/categorical_encoding',
    download_url='https://github.com/wdm0006/categorical_encoding/tarball/' + __version__,
    license='BSD',
    classifiers=[
      'Development Status :: 3 - Alpha',
      'Intended Audience :: Developers',
      'Programming Language :: Python :: 3',
    ],
    keywords='python data science machine learning pandas sklearn',
    packages=find_packages(exclude=['tests*']),
    include_package_data=True,
    author='Will McGinnis',
    install_requires=[
        'numpy>=1.9.0',
        'scipy>=0.9.0',
        'pandas>=0.16.0',
        'scikit-learn>=0.15.0',
        'statsmodels>=0.6.0',
        'patsy>=0.4.0',
    ],
    author_email='will@pedalwrencher.com'
)<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='igsr_analysis',
    version='0.90',
    description='Code that is relevant for the analysis (Mapping, BAM qc, Variant Calling, Filtering etc...) of IGSR data',
    license="Apache License 2.0",
    author='Ernesto Lowy',
    author_email='ernestolowy@gmail.com',
    packages=['BamQC','BEDTools','p3','PyHive','ReseqTrackDB','SequenceIndex','Utils','VariantCalling','VCF','tests'],
    scripts=[
        'scripts/3way_listcomp.py',
        'scripts/BamQC/run_all_qctests.py',
        'scripts/BamQC/run_chk_indel_rg.py',
        'scripts/BamQC/run_picard_on_WGSfile.py',
        'scripts/BamQC/run_picard_on_exomefile.py',
        'scripts/BamQC/run_verifybamid.py',
        'scripts/BamQC/runsamtoolsdepth_on_WGS_BAM.py',
        'scripts/BamQC/runsamtoolsdepth_on_reseqtrack_BAM.py',
        'scripts/README',
        'scripts/ReseqTrackDB/analyze_coverage.py',
        'scripts/ReseqTrackDB/change_type.py',
        'scripts/ReseqTrackDB/check_readgroups.py',
        'scripts/ReseqTrackDB/create_collection_to_transpose.py',
        'scripts/ReseqTrackDB/get_failing_vfbamid.py',
        'scripts/ReseqTrackDB/move_file.py',
        'scripts/ReseqTrackDB/store_files_from_filemetadata.py',
        'scripts/VCF/FILTER/run_applyrecalibration.py',
        'scripts/VCF/FILTER/run_bcftools_filter.py',
        'scripts/VCF/FILTER/run_variantrecalibrator.py',
        'scripts/VCF/FILTER/subset_vcf.py',
        'scripts/VCF/NORMALIZATION/run_variantsToAllelicPrimitives.py',
        'scripts/VCF/NORMALIZATION/run_vcfallelicprim.py',
        'scripts/VCF/NORMALIZATION/run_vtnormalize.py',
        'scripts/VCF/NORMALIZATION/test_call.py',
        'scripts/VCF/QC/analyze_concordance.py',
        'scripts/VCF/QC/analyze_concordance_metrics.py',
        'scripts/VCF/QC/cmp_list_of_chros.py',
        'scripts/VCF/QC/compare_bcftoolstats_perchr.py',
        'scripts/VCF/QC/get_chros4variants.py',
        'scripts/VCF/QC/get_number_variants_in_region.py',
        'scripts/VCF/QC/plot_variants_density.py',
        'scripts/VCF/QC/run_CollectVariantCallingMetrics.py',
        'scripts/VCF/QC/run_bcftools_stats.py',
        'scripts/VCF/QC/run_bcftools_stats_on_dbfile.py',
        'scripts/VCF/R/plot_variants.R',
        'scripts/VCF/UTILS/main.py',
        'scripts/VCF/UTILS/select_variants.py',
        'scripts/comparison_with_giab.sh',
        'scripts/comparison_with_giab_b37.sh',
        'scripts/comparison_with_giab_inhighconf.sh',
        'scripts/correct_ambiguous_bases.py',
        'scripts/correct_ambiguous_biopython.py',
        'scripts/get_prefixes.py',
        'scripts/p3/analyze_p3_stats.py',
        'scripts/replace_chros_names.py'
    ],
    install_requires=['pandas','PyMySQL','scipy','numpy','matplotlib','matplotlib-venn'], #external packages as dependencies
)
<commit_msg>adding pysam external dependency<commit_after>from setuptools import setup

setup(
    name='igsr_analysis',
    version='0.90',
    description='Code that is relevant for the analysis (Mapping, BAM qc, Variant Calling, Filtering etc...) of IGSR data',
    license="Apache License 2.0",
    author='Ernesto Lowy',
    author_email='ernestolowy@gmail.com',
    packages=['BamQC','BEDTools','p3','PyHive','ReseqTrackDB','SequenceIndex','Utils','VariantCalling','VCF','tests'],
    scripts=[
        'scripts/3way_listcomp.py',
        'scripts/BamQC/run_all_qctests.py',
        'scripts/BamQC/run_chk_indel_rg.py',
        'scripts/BamQC/run_picard_on_WGSfile.py',
        'scripts/BamQC/run_picard_on_exomefile.py',
        'scripts/BamQC/run_verifybamid.py',
        'scripts/BamQC/runsamtoolsdepth_on_WGS_BAM.py',
        'scripts/BamQC/runsamtoolsdepth_on_reseqtrack_BAM.py',
        'scripts/README',
        'scripts/ReseqTrackDB/analyze_coverage.py',
        'scripts/ReseqTrackDB/change_type.py',
        'scripts/ReseqTrackDB/check_readgroups.py',
        'scripts/ReseqTrackDB/create_collection_to_transpose.py',
        'scripts/ReseqTrackDB/get_failing_vfbamid.py',
        'scripts/ReseqTrackDB/move_file.py',
        'scripts/ReseqTrackDB/store_files_from_filemetadata.py',
        'scripts/VCF/FILTER/run_applyrecalibration.py',
        'scripts/VCF/FILTER/run_bcftools_filter.py',
        'scripts/VCF/FILTER/run_variantrecalibrator.py',
        'scripts/VCF/FILTER/subset_vcf.py',
        'scripts/VCF/NORMALIZATION/run_variantsToAllelicPrimitives.py',
        'scripts/VCF/NORMALIZATION/run_vcfallelicprim.py',
        'scripts/VCF/NORMALIZATION/run_vtnormalize.py',
        'scripts/VCF/NORMALIZATION/test_call.py',
        'scripts/VCF/QC/analyze_concordance.py',
        'scripts/VCF/QC/analyze_concordance_metrics.py',
        'scripts/VCF/QC/cmp_list_of_chros.py',
        'scripts/VCF/QC/compare_bcftoolstats_perchr.py',
        'scripts/VCF/QC/get_chros4variants.py',
        'scripts/VCF/QC/get_number_variants_in_region.py',
        'scripts/VCF/QC/plot_variants_density.py',
        'scripts/VCF/QC/run_CollectVariantCallingMetrics.py',
        'scripts/VCF/QC/run_bcftools_stats.py',
        'scripts/VCF/QC/run_bcftools_stats_on_dbfile.py',
        'scripts/VCF/R/plot_variants.R',
        'scripts/VCF/UTILS/main.py',
        'scripts/VCF/UTILS/select_variants.py',
        'scripts/comparison_with_giab.sh',
        'scripts/comparison_with_giab_b37.sh',
        'scripts/comparison_with_giab_inhighconf.sh',
        'scripts/correct_ambiguous_bases.py',
        'scripts/correct_ambiguous_biopython.py',
        'scripts/get_prefixes.py',
        'scripts/p3/analyze_p3_stats.py',
        'scripts/replace_chros_names.py'
    ],
    install_requires=['pandas','PyMySQL','scipy','numpy','matplotlib','matplotlib-venn','pysam'], #external packages as dependencies
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
#
# Copyright © 2015,2016 Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
# Copyright © 2015,2016 Collabora Ltd
#
# 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 License, or (at your option)
# any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library.  If not, see <http://www.gnu.org/licenses/>.

"""
Setup file for hotdoc.
"""

import os
import sys
import errno
import unittest
import contextlib
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.core import Command
import distutils.spawn as spawn

from setuptools import find_packages, setup, Extension
from setuptools.command.bdist_egg import bdist_egg
from setuptools.command.develop import develop
from setuptools.command.sdist import sdist
from setuptools.command.test import test

from hotdoc.utils.setup_utils import (
    VERSION, require_clean_submodules, symlink)

SOURCE_DIR = os.path.abspath(os.path.dirname(__file__))
CMARK_DIR = os.path.join(SOURCE_DIR, 'cmark')
CMARK_SRCDIR = os.path.join(CMARK_DIR, 'src')
CMARK_EXTDIR = os.path.join(CMARK_DIR, 'extensions')
CMARK_BUILD_DIR = os.path.join(SOURCE_DIR, 'build_cmark')
CMARK_BUILT_SRCDIR = os.path.join(CMARK_BUILD_DIR, 'src')
CMARK_INCLUDE_DIRS = [CMARK_SRCDIR, CMARK_BUILT_SRCDIR]

require_clean_submodules(SOURCE_DIR, ['cmark'])

# pylint: disable=invalid-name
# pylint: disable=missing-docstring
@contextlib.contextmanager
def cd(path):
    CWD = os.getcwd()

    os.chdir(path)
    try:
        yield
    finally:
        os.chdir(CWD)

# pylint: disable=too-few-public-methods
class CMarkExtension(Extension):
    """
    A custom extension that will run cmake in the cmark subdir
    before building itself.
    """
    # pylint: disable=no-self-use
    def __run_cmake(self):
        if spawn.find_executable('cmake') is None:
            print("cmake  is required")
            print("Please install cmake and re-run setup")
            sys.exit(-1)
        if spawn.find_executable('make') is None:
            print("make  is required")
            print("please get a version of make and re-run setup")
            sys.exit(-1)

        if not os.path.exists(CMARK_BUILD_DIR):
            os.mkdir(CMARK_BUILD_DIR)
        with cd(CMARK_BUILD_DIR):
            try:
                spawn.spawn(['cmake', CMARK_DIR])
                spawn.spawn(['make', 'cmarkextensions'])
            except spawn.DistutilsExecError:
                print("Error while running cmake")
                sys.exit(-1)

    # pylint: disable=missing-docstring
    def build_custom(self):
        self.__run_cmake()

CMARK_SOURCES = [os.path.join('hotdoc', 'parsers', f) for f in
                 ('cmark_module.c',
                  'cmark_gtkdoc_extension.c',
                  'cmark_gtkdoc_scanner.c',
                  'cmark_include_extension.c',
                  'cmark_include_scanner.c',)]

for filename in os.listdir(CMARK_SRCDIR):
    if filename.endswith('.c'):
        CMARK_SOURCES.append(os.path.join(CMARK_SRCDIR, filename))

for filename in os.listdir(CMARK_EXTDIR):
    if filename.endswith('.c'):
        CMARK_SOURCES.append(os.path.join(CMARK_EXTDIR, filename))

CMARK_MODULE = CMarkExtension('hotdoc.parsers.cmark',
                              sources=CMARK_SOURCES,
                              include_dirs=CMARK_INCLUDE_DIRS,
                              define_macros=[
                                  ('LIBDIR', '"%s"' % CMARK_BUILD_DIR)])

# The default theme

THEME_SRC_DIR = os.path.join(SOURCE_DIR, 'hotdoc', 'hotdoc_bootstrap_theme')
THEME_DIST_DIR = os.path.join(THEME_SRC_DIR, 'dist')
THEME_REL_DIR = os.path.relpath(THEME_DIST_DIR, start=SOURCE_DIR)
require_clean_submodules(os.path.dirname(THEME_SRC_DIR),
                         'hotdoc_bootstrap_theme')

class BuildDefaultTheme(Command):
    """
    This will build the default theme.
    """
    user_options = []
    description = ("Build default html theme, the following dependencies are "
                   "required: make, npm")

    # pylint: disable=missing-docstring
    def initialize_options(self):
        pass

    # pylint: disable=missing-docstring
    def finalize_options(self):
        pass

    # pylint: disable=missing-docstring
    # pylint: disable=no-self-use
    def run(self):
        if spawn.find_executable('make') is None:
            print("make is required")
            print("please get a version of make and re-run setup")
            sys.exit(-1)
        if spawn.find_executable('npm') is None:
            print("npm is required")
            print("please get a version of npm and re-run setup")
            sys.exit(-1)

        with cd(THEME_SRC_DIR):
            try:
                spawn.spawn(['npm', 'install'])
                spawn.spawn(['./node_modules/bower/bin/bower', 'install'])
                os.environ['LESS_INCLUDE_PATH'] = os.path.join(
                    SOURCE_DIR, 'hotdoc', 'less')
                spawn.spawn(['make'])
                del os.environ['LESS_INCLUDE_PATH']
            except spawn.DistutilsExecError as e:
                print("Error while building default theme", e)
                sys.exit(-1)

class LinkPreCommitHook(Command):
    """
    This will create links to the pre-commit hook.
    Only called in develop mode.
    """
    user_options = []
    description = "Create links for the style checking pre-commit hooks"

    # pylint: disable=missing-docstring
    def initialize_options(self):
        pass

    # pylint: disable=missing-docstring
    def finalize_options(self):
        pass

    # pylint: disable=missing-docstring
    # pylint: disable=no-self-use
    def run(self):
        try:
            symlink(os.path.join(SOURCE_DIR, 'pre-commit'),
                    os.path.join(SOURCE_DIR, '.git', 'hooks', 'pre-commit'))
        except OSError as error:
            if error.errno != errno.EEXIST:
                raise

# pylint: disable=missing-docstring
# pylint: disable=too-few-public-methods
class CustomDevelop(develop):

    def run(self):
        self.run_command('build_default_theme')
        self.run_command('link_pre_commit_hook')
        return develop.run(self)

# pylint: disable=missing-docstring
class CustomBuild(build):

    def run(self):
        if not os.path.exists(THEME_DIST_DIR):
            self.run_command('build_default_theme')
        return build.run(self)

# pylint: disable=missing-docstring
class CustomSDist(sdist):

    def run(self):
        self.run_command('build_default_theme')
        return sdist.run(self)

class CustomBuildExt(build_ext):
    def run(self):
        for extension in self.extensions:
            extension.build_custom()

        build_ext.run(self)
        return True

# pylint: disable=missing-docstring
class CustomBDistEgg(bdist_egg):

    def run(self):
        # This will not run when installing from pip, thus
        # avoiding a few dependencies.
        if not os.path.exists(THEME_DIST_DIR):
            self.run_command('build_default_theme')
        return bdist_egg.run(self)

# From http://stackoverflow.com/a/17004263/2931197
def discover_and_run_tests(forever):
    # use the default shared TestLoader instance
    test_loader = unittest.defaultTestLoader

    # use the basic test runner that outputs to sys.stderr
    test_runner = unittest.TextTestRunner()

    # automatically discover all tests
    # NOTE: only works for python 2.7 and later
    test_suite = test_loader.discover(SOURCE_DIR)

    # run the test suite
    loop = True
    while loop:
        res = test_runner.run(test_suite)
        if res.errors or res.failures or not forever:
            loop = False

class DiscoverTest(test):
    user_options = test.user_options + [('forever', None, 'Run until failure')]

    def __init__(self, *args, **kwargs):
        test.__init__(self, *args, **kwargs)
        self.test_args = []
        self.test_suite = True
        self.forever = False

    def initialize_options(self):
        test.initialize_options(self)
        self.forever = False

    def finalize_options(self):
        test.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        discover_and_run_tests(self.forever)

INSTALL_REQUIRES = [
    'pyyaml',
    'lxml',
    'schema',
    'wheezy.template==0.1.167',
    'sqlalchemy>=1.0.8',
    'toposort==1.4']

EXTRAS_REQUIRE = {
    'dev': ['git-pylint-commit-hook',
            'git-pep8-commit-hook']
}

# Extensions

SYN_EXT_DIR = os.path.join(SOURCE_DIR, 'hotdoc', 'extensions',
                           'syntax_highlighting')
require_clean_submodules(SYN_EXT_DIR, ['prism'])

if __name__ == '__main__':
    setup(
        name='hotdoc',
        version=VERSION,
        description='A documentation tool micro-framework',
        keywords='documentation',
        url='https://github.com/hotdoc/hotdoc',
        author='Mathieu Duponchelle',
        author_email='mathieu.duponchelle@opencreed.com',
        license='LGPLv2.1+',
        packages=find_packages(),
        ext_modules=[CMARK_MODULE],

        cmdclass={'build': CustomBuild,
                  'build_ext': CustomBuildExt,
                  'sdist': CustomSDist,
                  'bdist_egg': CustomBDistEgg,
                  'develop': CustomDevelop,
                  'test': DiscoverTest,
                  'link_pre_commit_hook': LinkPreCommitHook,
                  'build_default_theme': BuildDefaultTheme},
        scripts=['hotdoc/hotdoc',
                 'hotdoc/hotdoc_dep_printer'],
        package_data={
            'hotdoc.core': ['templates/*', 'assets/*'],
            'hotdoc': [os.path.join(THEME_REL_DIR, 'templates', '*'),
                       os.path.join(THEME_REL_DIR, 'js', '*'),
                       os.path.join(THEME_REL_DIR, 'css', '*'),
                       os.path.join(THEME_REL_DIR, 'images', '*'),
                       os.path.join(THEME_REL_DIR, 'fonts', '*'),
                       'VERSION.txt'],
            'hotdoc.utils': ['hotdoc.m4', 'hotdoc.mk'],
            'hotdoc.extensions.syntax_highlighting': [
                'prism/components/*',
                'prism/themes/*',
                'prism/plugins/autoloader/prism-autoloader.js',
                'prism_autoloader_path_override.js'],
            'hotdoc.extensions.search': [
                '*.js',
                'stopwords.txt'],
            'hotdoc.extensions.devhelp': [
                'devhelp.css'],
            'hotdoc.extensions.license': [
                'data/*',
                'html_templates/*']
        },
        install_requires=INSTALL_REQUIRES,
        extras_require=EXTRAS_REQUIRE,
        entry_points={
            'hotdoc.extensions': ('get_extension_classes = '
                                  'hotdoc.extensions:get_extension_classes')},
        classifiers=[
            "Programming Language :: Python :: 3",
            "Programming Language :: Python :: 3.4",
            "Programming Language :: Python :: 3.5"])
<commit_msg>setup: Fix hotdoc_bootstrap_theme path<commit_after># -*- coding: utf-8 -*-
#
# Copyright © 2015,2016 Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
# Copyright © 2015,2016 Collabora Ltd
#
# 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 License, or (at your option)
# any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library.  If not, see <http://www.gnu.org/licenses/>.

"""
Setup file for hotdoc.
"""

import os
import sys
import errno
import unittest
import contextlib
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.core import Command
import distutils.spawn as spawn

from setuptools import find_packages, setup, Extension
from setuptools.command.bdist_egg import bdist_egg
from setuptools.command.develop import develop
from setuptools.command.sdist import sdist
from setuptools.command.test import test

from hotdoc.utils.setup_utils import (
    VERSION, require_clean_submodules, symlink)

SOURCE_DIR = os.path.abspath(os.path.dirname(__file__))
CMARK_DIR = os.path.join(SOURCE_DIR, 'cmark')
CMARK_SRCDIR = os.path.join(CMARK_DIR, 'src')
CMARK_EXTDIR = os.path.join(CMARK_DIR, 'extensions')
CMARK_BUILD_DIR = os.path.join(SOURCE_DIR, 'build_cmark')
CMARK_BUILT_SRCDIR = os.path.join(CMARK_BUILD_DIR, 'src')
CMARK_INCLUDE_DIRS = [CMARK_SRCDIR, CMARK_BUILT_SRCDIR]

require_clean_submodules(SOURCE_DIR, ['cmark'])

# pylint: disable=invalid-name
# pylint: disable=missing-docstring
@contextlib.contextmanager
def cd(path):
    CWD = os.getcwd()

    os.chdir(path)
    try:
        yield
    finally:
        os.chdir(CWD)

# pylint: disable=too-few-public-methods
class CMarkExtension(Extension):
    """
    A custom extension that will run cmake in the cmark subdir
    before building itself.
    """
    # pylint: disable=no-self-use
    def __run_cmake(self):
        if spawn.find_executable('cmake') is None:
            print("cmake  is required")
            print("Please install cmake and re-run setup")
            sys.exit(-1)
        if spawn.find_executable('make') is None:
            print("make  is required")
            print("please get a version of make and re-run setup")
            sys.exit(-1)

        if not os.path.exists(CMARK_BUILD_DIR):
            os.mkdir(CMARK_BUILD_DIR)
        with cd(CMARK_BUILD_DIR):
            try:
                spawn.spawn(['cmake', CMARK_DIR])
                spawn.spawn(['make', 'cmarkextensions'])
            except spawn.DistutilsExecError:
                print("Error while running cmake")
                sys.exit(-1)

    # pylint: disable=missing-docstring
    def build_custom(self):
        self.__run_cmake()

CMARK_SOURCES = [os.path.join('hotdoc', 'parsers', f) for f in
                 ('cmark_module.c',
                  'cmark_gtkdoc_extension.c',
                  'cmark_gtkdoc_scanner.c',
                  'cmark_include_extension.c',
                  'cmark_include_scanner.c',)]

for filename in os.listdir(CMARK_SRCDIR):
    if filename.endswith('.c'):
        CMARK_SOURCES.append(os.path.join(CMARK_SRCDIR, filename))

for filename in os.listdir(CMARK_EXTDIR):
    if filename.endswith('.c'):
        CMARK_SOURCES.append(os.path.join(CMARK_EXTDIR, filename))

CMARK_MODULE = CMarkExtension('hotdoc.parsers.cmark',
                              sources=CMARK_SOURCES,
                              include_dirs=CMARK_INCLUDE_DIRS,
                              define_macros=[
                                  ('LIBDIR', '"%s"' % CMARK_BUILD_DIR)])

# The default theme

THEME_SRC_DIR = os.path.join(SOURCE_DIR, 'hotdoc', 'hotdoc_bootstrap_theme')
THEME_DIST_DIR = os.path.join(THEME_SRC_DIR, 'dist')
THEME_REL_DIR = os.path.relpath(THEME_DIST_DIR, start=os.path.join(SOURCE_DIR,
                                                                   'hotdoc'))
require_clean_submodules(os.path.dirname(THEME_SRC_DIR),
                         'hotdoc_bootstrap_theme')

class BuildDefaultTheme(Command):
    """
    This will build the default theme.
    """
    user_options = []
    description = ("Build default html theme, the following dependencies are "
                   "required: make, npm")

    # pylint: disable=missing-docstring
    def initialize_options(self):
        pass

    # pylint: disable=missing-docstring
    def finalize_options(self):
        pass

    # pylint: disable=missing-docstring
    # pylint: disable=no-self-use
    def run(self):
        if spawn.find_executable('make') is None:
            print("make is required")
            print("please get a version of make and re-run setup")
            sys.exit(-1)
        if spawn.find_executable('npm') is None:
            print("npm is required")
            print("please get a version of npm and re-run setup")
            sys.exit(-1)

        with cd(THEME_SRC_DIR):
            try:
                spawn.spawn(['npm', 'install'])
                spawn.spawn(['./node_modules/bower/bin/bower', 'install'])
                os.environ['LESS_INCLUDE_PATH'] = os.path.join(
                    SOURCE_DIR, 'hotdoc', 'less')
                spawn.spawn(['make'])
                del os.environ['LESS_INCLUDE_PATH']
            except spawn.DistutilsExecError as e:
                print("Error while building default theme", e)
                sys.exit(-1)

class LinkPreCommitHook(Command):
    """
    This will create links to the pre-commit hook.
    Only called in develop mode.
    """
    user_options = []
    description = "Create links for the style checking pre-commit hooks"

    # pylint: disable=missing-docstring
    def initialize_options(self):
        pass

    # pylint: disable=missing-docstring
    def finalize_options(self):
        pass

    # pylint: disable=missing-docstring
    # pylint: disable=no-self-use
    def run(self):
        try:
            symlink(os.path.join(SOURCE_DIR, 'pre-commit'),
                    os.path.join(SOURCE_DIR, '.git', 'hooks', 'pre-commit'))
        except OSError as error:
            if error.errno != errno.EEXIST:
                raise

# pylint: disable=missing-docstring
# pylint: disable=too-few-public-methods
class CustomDevelop(develop):

    def run(self):
        self.run_command('build_default_theme')
        self.run_command('link_pre_commit_hook')
        return develop.run(self)

# pylint: disable=missing-docstring
class CustomBuild(build):

    def run(self):
        if not os.path.exists(THEME_DIST_DIR):
            self.run_command('build_default_theme')
        return build.run(self)

# pylint: disable=missing-docstring
class CustomSDist(sdist):

    def run(self):
        self.run_command('build_default_theme')
        return sdist.run(self)

class CustomBuildExt(build_ext):
    def run(self):
        for extension in self.extensions:
            extension.build_custom()

        build_ext.run(self)
        return True

# pylint: disable=missing-docstring
class CustomBDistEgg(bdist_egg):

    def run(self):
        # This will not run when installing from pip, thus
        # avoiding a few dependencies.
        if not os.path.exists(THEME_DIST_DIR):
            self.run_command('build_default_theme')
        return bdist_egg.run(self)

# From http://stackoverflow.com/a/17004263/2931197
def discover_and_run_tests(forever):
    # use the default shared TestLoader instance
    test_loader = unittest.defaultTestLoader

    # use the basic test runner that outputs to sys.stderr
    test_runner = unittest.TextTestRunner()

    # automatically discover all tests
    # NOTE: only works for python 2.7 and later
    test_suite = test_loader.discover(SOURCE_DIR)

    # run the test suite
    loop = True
    while loop:
        res = test_runner.run(test_suite)
        if res.errors or res.failures or not forever:
            loop = False

class DiscoverTest(test):
    user_options = test.user_options + [('forever', None, 'Run until failure')]

    def __init__(self, *args, **kwargs):
        test.__init__(self, *args, **kwargs)
        self.test_args = []
        self.test_suite = True
        self.forever = False

    def initialize_options(self):
        test.initialize_options(self)
        self.forever = False

    def finalize_options(self):
        test.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        discover_and_run_tests(self.forever)

INSTALL_REQUIRES = [
    'pyyaml',
    'lxml',
    'schema',
    'wheezy.template==0.1.167',
    'sqlalchemy>=1.0.8',
    'toposort==1.4']

EXTRAS_REQUIRE = {
    'dev': ['git-pylint-commit-hook',
            'git-pep8-commit-hook']
}

# Extensions

SYN_EXT_DIR = os.path.join(SOURCE_DIR, 'hotdoc', 'extensions',
                           'syntax_highlighting')
require_clean_submodules(SYN_EXT_DIR, ['prism'])

if __name__ == '__main__':
    setup(
        name='hotdoc',
        version=VERSION,
        description='A documentation tool micro-framework',
        keywords='documentation',
        url='https://github.com/hotdoc/hotdoc',
        author='Mathieu Duponchelle',
        author_email='mathieu.duponchelle@opencreed.com',
        license='LGPLv2.1+',
        packages=find_packages(),
        ext_modules=[CMARK_MODULE],

        cmdclass={'build': CustomBuild,
                  'build_ext': CustomBuildExt,
                  'sdist': CustomSDist,
                  'bdist_egg': CustomBDistEgg,
                  'develop': CustomDevelop,
                  'test': DiscoverTest,
                  'link_pre_commit_hook': LinkPreCommitHook,
                  'build_default_theme': BuildDefaultTheme},
        scripts=['hotdoc/hotdoc',
                 'hotdoc/hotdoc_dep_printer'],
        package_data={
            'hotdoc.core': ['templates/*', 'assets/*'],
            'hotdoc': [os.path.join(THEME_REL_DIR, 'templates', '*'),
                       os.path.join(THEME_REL_DIR, 'js', '*'),
                       os.path.join(THEME_REL_DIR, 'css', '*'),
                       os.path.join(THEME_REL_DIR, 'images', '*'),
                       os.path.join(THEME_REL_DIR, 'fonts', '*'),
                       'VERSION.txt'],
            'hotdoc.utils': ['hotdoc.m4', 'hotdoc.mk'],
            'hotdoc.extensions.syntax_highlighting': [
                'prism/components/*',
                'prism/themes/*',
                'prism/plugins/autoloader/prism-autoloader.js',
                'prism_autoloader_path_override.js'],
            'hotdoc.extensions.search': [
                '*.js',
                'stopwords.txt'],
            'hotdoc.extensions.devhelp': [
                'devhelp.css'],
            'hotdoc.extensions.license': [
                'data/*',
                'html_templates/*']
        },
        install_requires=INSTALL_REQUIRES,
        extras_require=EXTRAS_REQUIRE,
        entry_points={
            'hotdoc.extensions': ('get_extension_classes = '
                                  'hotdoc.extensions:get_extension_classes')},
        classifiers=[
            "Programming Language :: Python :: 3",
            "Programming Language :: Python :: 3.4",
            "Programming Language :: Python :: 3.5"])
<|endoftext|>


<commit_before># sauron's setup

from setuptools import setup

setup(
  name             = "sauron",
  packages         = ["sauron", "sauron.metrics", "sauron.emitters"],
  version          = "0.1.10",
  description      = "An eye for monitoring, and pushing monitoring data",
  author           = "Dan Lecocq",
  author_email     = "dan@seomoz.org",
  maintainer       = "Lasse Borchard",
  maintainer_email = "lasse.borchard@prosiebensat1digital.de",
  url              = "http://github.com/johnny-die-tulpe/sauron/",
  keywords         = ["monitoring", "cloudwatch"],
  scripts          = ['bin/sauron-daemon'],
  data_files       = [('/etc/init.d', ['bin/sauron']),
                      ('/etc', ['sauron.yaml'])],
  classifiers      = [
    "Programming Language :: Python",
    "Intended Audience :: Developers",
    "Topic :: Software Development :: Libraries :: Python Modules"
  ],
  install_requires = [
    "PyYAML >= 3.10",
    "psutil >= 0.3.0",
    "pymysql >= 0.4",
    "boto >= 2.0",
    "tweepy >= 1.7.1",
    "httplib2 >= 0.7.1",
    "argparse >= 1.2.1",
    "twisted",
    "redis",
  ],
  long_description = """\
Sauron is meant to act as an all-seeing eye for pushing data to monitoring. It
works based on extendable "metrics", which are just python classes that report
back values. For example, it comes with metrics to monitor disk space, mysql
health, pinging servers, etc. These metrics are then pushed to "emitters" which
describe where that data should go. Multiple emitters can be used, and are meant
to be interchangeable.
"""
)
<commit_msg>increasing version<commit_after># sauron's setup

from setuptools import setup

setup(
  name             = "sauron",
  packages         = ["sauron", "sauron.metrics", "sauron.emitters"],
  version          = "0.1.11",
  description      = "An eye for monitoring, and pushing monitoring data",
  author           = "Dan Lecocq",
  author_email     = "dan@seomoz.org",
  maintainer       = "Lasse Borchard",
  maintainer_email = "lasse.borchard@prosiebensat1digital.de",
  url              = "http://github.com/johnny-die-tulpe/sauron/",
  keywords         = ["monitoring", "cloudwatch"],
  scripts          = ['bin/sauron-daemon'],
  data_files       = [('/etc/init.d', ['bin/sauron']),
                      ('/etc', ['sauron.yaml'])],
  classifiers      = [
    "Programming Language :: Python",
    "Intended Audience :: Developers",
    "Topic :: Software Development :: Libraries :: Python Modules"
  ],
  install_requires = [
    "PyYAML >= 3.10",
    "psutil >= 0.3.0",
    "pymysql >= 0.4",
    "boto >= 2.0",
    "tweepy >= 1.7.1",
    "httplib2 >= 0.7.1",
    "argparse >= 1.2.1",
    "twisted",
    "redis",
  ],
  long_description = """\
Sauron is meant to act as an all-seeing eye for pushing data to monitoring. It
works based on extendable "metrics", which are just python classes that report
back values. For example, it comes with metrics to monitor disk space, mysql
health, pinging servers, etc. These metrics are then pushed to "emitters" which
describe where that data should go. Multiple emitters can be used, and are meant
to be interchangeable.
"""
)
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages

README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                           'README.rst')

DEPENDENCIES = [
    'django-cms-smartsnippets',
    'django-filer',
]

DEPENDENCY_LINKS = [
    'http://github.com/pbs/django-cms-smartsnippets/tarball/master#egg=django-cms-smartsnippets-0.5.0.dev',
]

setup(
    name='cmsplugin-image',
    version='1.0.0',
    description='PBS Image Field type for Django CMS',
    long_description=open(README_PATH, 'r').read(),
    author='PBS Audience Facing Team',
    author_email='tpg-pbs-userfacing@threepillarglobal.com',
    install_requires=DEPENDENCIES,
    dependency_links=DEPENDENCY_LINKS,
    packages=find_packages(),
    include_package_data=True,
    license='BSD License',
)
<commit_msg>Bump version to 1.1.0<commit_after>import os
from setuptools import setup, find_packages

README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                           'README.rst')

DEPENDENCIES = [
    'django-cms-smartsnippets',
    'django-filer',
]

DEPENDENCY_LINKS = [
    'http://github.com/pbs/django-cms-smartsnippets/tarball/master#egg=django-cms-smartsnippets-0.5.0.dev',
]

setup(
    name='cmsplugin-image',
    version='1.1.0',
    description='PBS Image Field type for Django CMS',
    long_description=open(README_PATH, 'r').read(),
    author='PBS Audience Facing Team',
    author_email='tpg-pbs-userfacing@threepillarglobal.com',
    install_requires=DEPENDENCIES,
    dependency_links=DEPENDENCY_LINKS,
    packages=find_packages(),
    include_package_data=True,
    license='BSD License',
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from setuptools import setup

# Version number
version = '0.3.2'

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(name = 'GPy',
      version = version,
      author = read('AUTHORS.txt'),
      author_email = "james.hensman@gmail.com",
      description = ("The Gaussian Process Toolbox"),
      license = "BSD 3-clause",
      keywords = "machine-learning gaussian-processes kernels",
      url = "http://sheffieldml.github.com/GPy/",
      packages = ['GPy', 'GPy.core', 'GPy.kern', 'GPy.util', 'GPy.models', 'GPy.inference', 'GPy.examples', 'GPy.likelihoods', 'GPy.testing'],
      package_dir={'GPy': 'GPy'},
      package_data = {'GPy': ['GPy/examples']},
      py_modules = ['GPy.__init__'],
      long_description=read('README.md'),
      #ext_modules =  [Extension(name = 'GPy.kern.lfmUpsilonf2py',
      #          sources = ['GPy/kern/src/lfmUpsilonf2py.f90'])],
      install_requires=['sympy', 'numpy>=1.6', 'scipy>=0.9','matplotlib>=1.1', 'nose'],
      extras_require = {
        'docs':['Sphinx', 'ipython'],
      },
      #setup_requires=['sphinx'],
      #cmdclass = {'build_sphinx': BuildDoc},
      classifiers=[
      "License :: OSI Approved :: BSD License"],
      )
<commit_msg>Cleaning up setup.py<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from setuptools import setup

# Version number
version = '0.3.2'

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

setup(name = 'GPy',
      version = version,
      author = read('AUTHORS.txt'),
      author_email = "james.hensman@gmail.com",
      description = ("The Gaussian Process Toolbox"),
      license = "BSD 3-clause",
      keywords = "machine-learning gaussian-processes kernels",
      url = "http://sheffieldml.github.com/GPy/",
      packages = ['GPy', 'GPy.core', 'GPy.kern', 'GPy.util', 'GPy.models', 'GPy.inference', 'GPy.examples', 'GPy.likelihoods', 'GPy.testing'],
      package_dir={'GPy': 'GPy'},
      package_data = {'GPy': ['GPy/examples']},
      py_modules = ['GPy.__init__'],
      long_description=read('README.md'),
      install_requires=['sympy', 'numpy>=1.6', 'scipy>=0.9','matplotlib>=1.1', 'nose'],
      extras_require = {
        'docs':['Sphinx', 'ipython'],
      },
      classifiers=[
      "License :: OSI Approved :: BSD License"],
      #ext_modules =  [Extension(name = 'GPy.kern.lfmUpsilonf2py',
      #          sources = ['GPy/kern/src/lfmUpsilonf2py.f90'])],
      )
<|endoftext|>


<commit_before>#!/usr/bin/env python
# encoding: utf-8
from setuptools import setup, find_packages

setup(
    name='reddit2Kindle',
    entry_points={
        'console_scripts': [
            'r2k = r2klib.cli:from_cli'
        ]
    },
    packages=find_packages(),
    install_requires=[
        'markdown2',
        'praw',
        'docopt',
        'jinja2'
    ],
    version='0.6.0',
    author='Antriksh Yadav',
    author_email='antrikshy@gmail.com',
    url='http://www.antrikshy.com/projects/reddit2Kindle.htm',
    description=(
        'Compiles top posts from a specified subreddit for a specified time'
        'period into a well-formatted Kindle book.'
    ),
    long_description=(
        'See http://www.github.com/Antrikshy/reddit2Kindle for instructions.'
        'Requires KindleGen from Amazon to convert HTML result to .mobi for'
        'Kindle.'
    ),
    classifiers=[
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Utilities',
        'Development Status :: 4 - Beta',
        'Intended Audience :: End Users/Desktop',
        'Natural Language :: English',
        'License :: OSI Approved :: MIT License'
    ],
)
<commit_msg>Fix odd casing of reddit2kindle<commit_after>#!/usr/bin/env python
# encoding: utf-8
from setuptools import setup, find_packages

setup(
    name='reddit2kindle',
    entry_points={
        'console_scripts': [
            'r2k = r2klib.cli:from_cli'
        ]
    },
    packages=find_packages(),
    install_requires=[
        'markdown2',
        'praw',
        'docopt',
        'jinja2'
    ],
    version='0.6.0',
    author='Antriksh Yadav',
    author_email='antrikshy@gmail.com',
    url='http://www.antrikshy.com/projects/reddit2kindle.htm',
    description=(
        'Compiles top posts from a specified subreddit for a specified time'
        'period into a well-formatted Kindle book.'
    ),
    long_description=(
        'See http://www.github.com/Antrikshy/reddit2kindle for instructions.'
        'Requires KindleGen from Amazon to convert HTML result to .mobi for'
        'Kindle.'
    ),
    classifiers=[
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Utilities',
        'Development Status :: 4 - Beta',
        'Intended Audience :: End Users/Desktop',
        'Natural Language :: English',
        'License :: OSI Approved :: MIT License'
    ],
)
<|endoftext|>


<commit_before>import sys
from setuptools import setup, find_packages

PY3 = sys.version_info[0] > 2

requires = [
    'Pyramid>=1.4.5',
    'webhelpers2>=2.0',
    'six>=1.5.2',
    # These are for tests.
    'coverage',
    'nose>=1.1',
    'nose-cover3',
]

# NOTE: Once FormEncode 1.3 is non-alpha, just use it for all platforms.
if PY3:
    requires.append('FormEncode>=1.3.0a1')
else:
    requires.append('FormEncode>=1.2')

setup(name='pyramid_uniform',
      version='0.3.2.dev',
      description='Form handling for Pyramid.',
      long_description='',
      classifiers=[
          'Development Status :: 3 - Alpha',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Framework :: Pyramid',
      ],
      keywords='pyramid forms validation rendering',
      url='http://github.com/cartlogic/pyramid_uniform',
      author='Scott Torborg',
      author_email='scott@cartlogic.com',
      install_requires=requires,
      license='MIT',
      packages=find_packages(),
      test_suite='nose.collector',
      tests_require=['nose'],
      include_package_data=True,
      zip_safe=False)
<commit_msg>Whoops, can't have Python 3.5 in the trove classifiers yet<commit_after>import sys
from setuptools import setup, find_packages

PY3 = sys.version_info[0] > 2

requires = [
    'Pyramid>=1.4.5',
    'webhelpers2>=2.0',
    'six>=1.5.2',
    # These are for tests.
    'coverage',
    'nose>=1.1',
    'nose-cover3',
]

# NOTE: Once FormEncode 1.3 is non-alpha, just use it for all platforms.
if PY3:
    requires.append('FormEncode>=1.3.0a1')
else:
    requires.append('FormEncode>=1.2')

setup(name='pyramid_uniform',
      version='0.3.2.dev',
      description='Form handling for Pyramid.',
      long_description='',
      classifiers=[
          'Development Status :: 3 - Alpha',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          # 'Programming Language :: Python :: 3.5',
          'Framework :: Pyramid',
      ],
      keywords='pyramid forms validation rendering',
      url='http://github.com/cartlogic/pyramid_uniform',
      author='Scott Torborg',
      author_email='scott@cartlogic.com',
      install_requires=requires,
      license='MIT',
      packages=find_packages(),
      test_suite='nose.collector',
      tests_require=['nose'],
      include_package_data=True,
      zip_safe=False)
<|endoftext|>


<commit_before>from hendrix import __version__
import errno
import os
import sys
from setuptools import setup, find_packages

def file_name(rel_path):
    dir_path = os.path.dirname(__file__)
    return os.path.join(dir_path, rel_path)

def read(rel_path):
    with open(file_name(rel_path)) as f:
        return f.read()

def readlines(rel_path):
    with open(file_name(rel_path)) as f:
        ret = f.readlines()
    return ret

def mkdir_p(path):
    "recreate mkdir -p functionality"
    try:
        os.makedirs(path)
    except OSError as exc:  # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise

share_path = os.path.join(
    os.path.dirname(sys.executable),
    'share/hendrix'
)

mkdir_p(share_path)

setup(
    name="hendrix",
    version=__version__,
    description="Pure python web server, based on Twisted, providing the One Obvious Way to do async and offbeat network traffic with django and other WSGI apps.",

    author="hangarunderground",
    author_email="justin@justinholmes.com",

    packages=find_packages(),

    url="https://github.com/hangarunderground/hendrix",
    download_url=(
        "https://github.com/hangarunderground/hendrix/tarball/"
        "v" + __version__
    ),

    long_description=read('README.md'),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Internet',
        'Topic :: Utilities',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
    ],
    keywords=["django", "twisted", "async", "logging", "wsgi"],
    scripts=[
        'hendrix/utils/scripts/hx',
        'hendrix/utils/scripts/hxw'
        'hendrix/utils/scripts/install-hendrix-service'
    ],
    data_files=[
        (share_path, ['hendrix/utils/templates/init.d.j2', ]),
    ],
    install_requires=readlines('requirements.txt'),
    extras_require={
        'ssl': ['pyopenssl', ],
        'dev': readlines('requirements_dev.txt'),
    }
)
<commit_msg>fixed the typo<commit_after>from hendrix import __version__
import errno
import os
import sys
from setuptools import setup, find_packages

def file_name(rel_path):
    dir_path = os.path.dirname(__file__)
    return os.path.join(dir_path, rel_path)

def read(rel_path):
    with open(file_name(rel_path)) as f:
        return f.read()

def readlines(rel_path):
    with open(file_name(rel_path)) as f:
        ret = f.readlines()
    return ret

def mkdir_p(path):
    "recreate mkdir -p functionality"
    try:
        os.makedirs(path)
    except OSError as exc:  # Python >2.5
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise

share_path = os.path.join(
    os.path.dirname(sys.executable),
    'share/hendrix'
)

mkdir_p(share_path)

setup(
    name="hendrix",
    version=__version__,
    description="Pure python web server, based on Twisted, providing the One Obvious Way to do async and offbeat network traffic with django and other WSGI apps.",

    author="hangarunderground",
    author_email="justin@justinholmes.com",

    packages=find_packages(),

    url="https://github.com/hangarunderground/hendrix",
    download_url=(
        "https://github.com/hangarunderground/hendrix/tarball/"
        "v" + __version__
    ),

    long_description=read('README.md'),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Internet',
        'Topic :: Utilities',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Server',
    ],
    keywords=["django", "twisted", "async", "logging", "wsgi"],
    scripts=[
        'hendrix/utils/scripts/hx',
        'hendrix/utils/scripts/hxw',
        'hendrix/utils/scripts/install-hendrix-service'
    ],
    data_files=[
        (share_path, ['hendrix/utils/templates/init.d.j2', ]),
    ],
    install_requires=readlines('requirements.txt'),
    extras_require={
        'ssl': ['pyopenssl', ],
        'dev': readlines('requirements_dev.txt'),
    }
)
<|endoftext|>


<commit_before>"""`Domain models` setup script."""

import os
import re

from setuptools import setup
from setuptools import Command

SHORT_DESCRIPTION = 'Domain models framework for Python projects'

# Getting description:
with open('README.rst') as readme_file:
    description = readme_file.read()

    # Removing duplicated short description.
    description = description.replace(SHORT_DESCRIPTION, '')

# Getting requirements:
with open('requirements.txt') as version:
    requirements = version.readlines()

# Getting version:
with open('domain_models/__init__.py') as init_file:
    version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1)

class PublishCommand(Command):
    """Setuptools `publish` command."""

    description = "Publish current distribution to PyPi and create tag"
    user_options = []

    def initialize_options(self):
        """Init options."""

    def finalize_options(self):
        """Finalize options."""

    def run(self):
        """Command execution."""
        self.run_command('sdist')
        self.run_command('upload')
        os.system('git tag -a {0} -m \'version {0}\''.format(version))
        os.system('git push --tags')

setup(name='domain_models',
      version=version,
      description=SHORT_DESCRIPTION,
      long_description=SHORT_DESCRIPTION,
      author='ETS Labs',
      author_email='rmogilatov@gmail.com',
      maintainer='ETS Labs',
      maintainer_email='rmogilatov@gmail.com',
      url='https://github.com/ets-labs/domain_models',
      license='BSD New',
      packages=['domain_models'],
      zip_safe=True,
      install_requires=requirements,
      cmdclass={
          'publish': PublishCommand,
      },
      keywords=[
          'Domain models',
          'Domain modelling',
          'Domain driven design',
          'Domain driven development',
          'DDD',
          'Models',
      ],
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Software Development',
          'Topic :: Software Development :: Libraries',
          'Topic :: Software Development :: Libraries :: Python Modules',
      ])
<commit_msg>Update links in setup.py script<commit_after>"""`Domain models` setup script."""

import os
import re

from setuptools import setup
from setuptools import Command

# Getting description:
with open('README.rst') as readme_file:
    description = readme_file.read()

# Getting requirements:
with open('requirements.txt') as version:
    requirements = version.readlines()

# Getting version:
with open('domain_models/__init__.py') as init_file:
    version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1)

class PublishCommand(Command):
    """Setuptools `publish` command."""

    description = "Publish current distribution to PyPi and create tag"
    user_options = []

    def initialize_options(self):
        """Init options."""

    def finalize_options(self):
        """Finalize options."""

    def run(self):
        """Command execution."""
        self.run_command('sdist')
        self.run_command('upload')
        os.system('git tag -a {0} -m \'version {0}\''.format(version))
        os.system('git push --tags')

setup(name='domain-models',
      version=version,
      description='Domain models framework for Python projects',
      long_description=description,
      author='ETS Labs',
      author_email='rmogilatov@gmail.com',
      maintainer='ETS Labs',
      maintainer_email='rmogilatov@gmail.com',
      url='https://github.com/ets-labs/python-domain-models',
      bugtrack_url='https://github.com/ets-labs/python-domain-models/issues',
      download_url='https://pypi.python.org/pypi/domain_models',
      license='BSD New',
      packages=['domain_models'],
      platforms=['any'],
      zip_safe=True,
      install_requires=requirements,
      cmdclass={
          'publish': PublishCommand,
      },
      keywords=[
          'Domain models',
          'Domain modelling',
          'Domain driven design',
          'Domain driven development',
          'DDD',
          'Models',
      ],
      classifiers=[
          'Development Status :: 2 - Pre-Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Software Development',
          'Topic :: Software Development :: Libraries',
          'Topic :: Software Development :: Libraries :: Python Modules',
      ])
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-

import os

from setuptools import setup, find_packages

here = os.path.dirname(__file__)
requires = [
    'py3oauth2==0.4.2',
    'jwt==0.2.3',
]
tests_require = [
    'nose',
    'coverage'
]

def _read(name):
    try:
        return open(os.path.join(here, name)).read()
    except:
        return ""
readme = _read("README.rst")
license = _read("LICENSE.rst")

setup(
    name='oidc',
    version='0.1.3',
    test_suite='oidc',
    author='Kohei YOSHIDA',
    author_email='kohei.yoshida@gehirn.co.jp',
    description='OpenID Connect library for Python 3.',
    long_description=readme,
    license=license,
    url='https://github.com/GehirnInc/python-oidc',
    packages=find_packages(),
    install_requires=requires,
    tests_require=tests_require,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Security",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<commit_msg>update oidc to 0.4.3<commit_after># -*- coding: utf-8 -*-

import os

from setuptools import setup, find_packages

here = os.path.dirname(__file__)
requires = [
    'py3oauth2==0.4.3',
    'jwt==0.2.3',
]
tests_require = [
    'nose',
    'coverage'
]

def _read(name):
    try:
        return open(os.path.join(here, name)).read()
    except:
        return ""
readme = _read("README.rst")
license = _read("LICENSE.rst")

setup(
    name='oidc',
    version='0.1.3',
    test_suite='oidc',
    author='Kohei YOSHIDA',
    author_email='kohei.yoshida@gehirn.co.jp',
    description='OpenID Connect library for Python 3.',
    long_description=readme,
    license=license,
    url='https://github.com/GehirnInc/python-oidc',
    packages=find_packages(),
    install_requires=requires,
    tests_require=tests_require,
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Security",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
from harpoon import VERSION

setup(
      name = "docker-harpoon"
    , version = VERSION
    , packages = ['harpoon'] + ['harpoon.%s' % pkg for pkg in find_packages('harpoon')]
    , include_package_data = True

    , install_requires =
      [ "delfick_app==0.6.7"
      , "option_merge==0.9.9.1"
      , "input_algorithms==0.4.4.9"

      , "docker-py==1.6.0"
      #, "dockerpty==0.3.2"

      , "six"
      , "glob2"
      , "dulwich"
      , "humanize"

      , "pyYaml==3.10"
      ]

    , extras_require =
      { "tests":
        [ "noseOfYeti>=1.5.0"
        , "nose"
        , "mock==1.0.1"
        , "nose-pattern-exclude"
        , "nose-focus==0.1.2"
        , "tox"
        ]
      }

    , entry_points =
      { 'console_scripts' :
        [ 'harpoon = harpoon.executor:main'
        ]
      }

    # metadata for upload to PyPI
    , url = "https://github.com/realestate-com-au/harpoon"
    , author = "Stephen Moore"
    , author_email = "stephen.moore@rea-group.com"
    , description = "Opinionated wrapper around docker"
    , license = "MIT"
    , keywords = "docker"
    )

<commit_msg>Updating libraries<commit_after>from setuptools import setup, find_packages
from harpoon import VERSION

setup(
      name = "docker-harpoon"
    , version = VERSION
    , packages = ['harpoon'] + ['harpoon.%s' % pkg for pkg in find_packages('harpoon')]
    , include_package_data = True

    , install_requires =
      [ "delfick_app==0.7"
      , "option_merge==0.9.9.2.2"
      , "input_algorithms==0.4.5.1"

      , "docker-py==1.6.0"
      #, "dockerpty==0.3.2"

      , "six"
      , "glob2"
      , "dulwich"
      , "humanize"

      , "pyYaml==3.10"
      ]

    , extras_require =
      { "tests":
        [ "noseOfYeti>=1.5.0"
        , "nose"
        , "mock==1.0.1"
        , "nose-pattern-exclude"
        , "nose-focus==0.1.2"
        , "tox"
        ]
      }

    , entry_points =
      { 'console_scripts' :
        [ 'harpoon = harpoon.executor:main'
        ]
      }

    # metadata for upload to PyPI
    , url = "https://github.com/realestate-com-au/harpoon"
    , author = "Stephen Moore"
    , author_email = "stephen.moore@rea-group.com"
    , description = "Opinionated wrapper around docker"
    , license = "MIT"
    , keywords = "docker"
    )

<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='aopclient',
    version='0.0.3',
    author='Jim Barcelona',
    author_email='barce@me.com',
    packages=['aopclient', 'aopclient.tests'],
    install_requires=[
      'future',
    ],
    scripts=[],
    url='http://pypi.python.org/pypi/aopclient/',
    license='LICENSE',
    description='A client for interacting with the AOL Platform.',
    long_description=open('README.txt').read(),
)

<commit_msg>version bump<commit_after>from distutils.core import setup

setup(
    name='aopclient',
    version='0.0.4',
    author='Jim Barcelona, Arun Suresh',
    author_email='barce@me.com, arunvsuresh@gmail.com',
    packages=['aopclient', 'aopclient.tests'],
    install_requires=[
      'future',
    ],
    scripts=[],
    url='http://pypi.python.org/pypi/aopclient/',
    license='LICENSE',
    description='A client for interacting with the AOL Platform.',
    long_description=open('README.txt').read(),
)

<|endoftext|>