<commit_before>#! /usr/bin/env python
"""Setup file for distutils

__author__ = "http://www.gemalto.com"

Copyright 2001-2007 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com

This file is part of pyscard.

pyscard 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.

pyscard 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 pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
"""

from distutils import core
from distutils.core import Extension
from distutils.util import get_platform
from distutils.command.build_ext import build_ext
import glob, os, sys

if sys.version[0:1] == '1':
    raise RuntimeError, ("pyscard requires Python 2.x to build.")

print get_platform()
if 'win32'==get_platform():
    platform__cc_defines=[('WIN32', '100')]
    platform_swig_opts=['-DWIN32']
    platform_sources=['smartcard/scard/scard.rc']
    platform_libraries=['winscard']
    platform_include_dirs=[]
    platform_extra_compile_args=[]
    platform_extra_link_args=[]
elif get_platform() in ('linux-i586', 'linux-i686', 'linux-x86_64'):
    platform__cc_defines=[('PCSCLITE', '1')]
    platform_swig_opts=['-DPCSCLITE']
    platform_sources=[]
    platform_libraries=['pcsclite']
    platform_include_dirs=['/usr/include/PCSC']
    platform_extra_compile_args=[]#['-ggdb', '-O0']
    platform_extra_link_args=[]#['-ggdb']
elif get_platform() in ('macosx-10.3-fat', 'darwin-8.9.1-i386', 'macosx-10.5-i386'):
    platform__cc_defines=[('PCSCLITE', '1'),('__APPLE__','1')]
    platform_swig_opts=['-DPCSCLITE', '-D__APPLE__']
    platform_sources=[]
    platform_libraries=[]
    platform_include_dirs=['PCSC']
    platform_extra_compile_args=['-v','-framework', 'PCSC']
    platform_extra_link_args=[]
else:
    sys.exit("unsupported platform: " + get_platform() )

kw = {'name':"pyscard",
      'version':"1.6.4",
      'description':"Smartcard module for Python.",
      'author':"Jean-Daniel Aussel",
      'author_email':"aussel.jean-daniel@gemalto.com",
      'url':"http://www.gemalto.com",
      'long_description':'Smartcard package for Python',
      'license':'GNU LESSER GENERAL PUBLIC LICENSE',
      'platforms':['linux','win32'],
      'packages' : [ "smartcard",
                     "smartcard/pcsc",
                     "smartcard/reader",
                     "smartcard/scard",
                     "smartcard/sw",
                     "smartcard/util",
                     "smartcard/wx",
                     ],
      'package_dir' : { "":"." },
      'package_data' : {
                         "smartcard" : [
                                        "ACKS",
                                        "ChangeLog",
                                        "LICENSE",
                                        "README",
                                        "TODO",
                                        ],
                         "smartcard/wx" : ["resources/*.ico"],
                       } ,

      # the _scard.pyd extension to build
      'ext_modules':[Extension("smartcard.scard._scard",
                             define_macros=platform__cc_defines,
                             include_dirs=['smartcard/scard/']+platform_include_dirs,
                             sources=["smartcard/scard/helpers.c",
                                      "smartcard/scard/winscarddll.c",
                                      "smartcard/scard/scard.i"]+platform_sources,
                             libraries=platform_libraries,
                             extra_compile_args=platform_extra_compile_args,
                             extra_link_args=platform_extra_link_args,
                             swig_opts=['-outdir','smartcard/scard']+platform_swig_opts)],
     }

# If we're running >Python 2.3, add extra information
if hasattr(core, 'setup_keywords'):
    if 'classifiers' in core.setup_keywords:
        kw['classifiers'] = [
          'Development Status :: 1.6.4 - Release',
          'License :: GNU LESSER GENERAL PUBLIC LICENSE',
          'Intended Audience :: Developers',
          'Operating System :: Unix',
          'Operating System :: Microsoft :: Windows',
          'Topic :: Security :: Smartcards',
          ]
    if 'download_url' in core.setup_keywords:
        kw['download_url'] = ('http://sourceforge.net/projects/pyscard/'
                              '%s-%s.zip' % (kw['name'], kw['version']) )

core.setup(**kw)

<commit_msg>Added swig_opts support to python 2.3, e.g. for Max OS X darwin<commit_after>#! /usr/bin/env python
"""Setup file for distutils

__author__ = "http://www.gemalto.com"

Copyright 2001-2007 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com

This file is part of pyscard.

pyscard 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.

pyscard 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 pyscard; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
"""

from distutils import core
from distutils.core import Extension
from distutils.util import get_platform
from distutils.command.build_ext import build_ext
import glob, os, sys

if sys.version[0:1] == '1':
    raise RuntimeError, ("pyscard requires Python 2.x to build.")

print get_platform()
if 'win32'==get_platform():
    platform__cc_defines=[('WIN32', '100')]
    platform_swig_opts=['-DWIN32']
    platform_sources=['smartcard/scard/scard.rc']
    platform_libraries=['winscard']
    platform_include_dirs=[]
    platform_extra_compile_args=[]
    platform_extra_link_args=[]
elif get_platform() in ('linux-i586', 'linux-i686', 'linux-x86_64'):
    platform__cc_defines=[('PCSCLITE', '1')]
    platform_swig_opts=['-DPCSCLITE']
    platform_sources=[]
    platform_libraries=['pcsclite']
    platform_include_dirs=['/usr/include/PCSC']
    platform_extra_compile_args=[]#['-ggdb', '-O0']
    platform_extra_link_args=[]#['-ggdb']
elif get_platform() in ('macosx-10.3-fat', 'darwin-8.9.1-i386', 'darwin-8.10.1-i386', 'macosx-10.5-i386'):
    platform__cc_defines=[('PCSCLITE', '1'),('__APPLE__','1')]
    platform_swig_opts=['-DPCSCLITE', '-D__APPLE__']
    platform_sources=[]
    platform_libraries=[]
    platform_include_dirs=['PCSC']
    platform_extra_compile_args=['-v','-framework', 'PCSC']
    platform_extra_link_args=[]
else:
    sys.exit("unsupported platform: " + get_platform() )

class _pyscardBuildExt(build_ext):
    '''Specialization of build_ext to enable swig_opts'''
if sys.version_info < (2,4):

    # This copy of swig_sources is from Python 2.3.
    # This is to add support of swig_opts for Python 2.3
    # (in particular for MacOS X darwin that comes with Python 2.4)

    def swig_sources (self, sources):

        """Walk the list of source files in 'sources', looking for SWIG
        interface (.i) files.  Run SWIG on all that are found, and
        return a modified 'sources' list with SWIG source files replaced
        by the generated C (or C++) files.
        """

        new_sources = []
        swig_sources = []
        swig_targets = {}

        # XXX this drops generated C/C++ files into the source tree, which
        # is fine for developers who want to distribute the generated
        # source -- but there should be an option to put SWIG output in
        # the temp dir.

        if self.swig_cpp:
            target_ext = '.cpp'
        else:
            target_ext = '.c'

        for source in sources:
            (base, ext) = os.path.splitext(source)
            if ext == ".i":             # SWIG interface file
                new_sources.append(base + target_ext)
                swig_sources.append(source)
                swig_targets[source] = new_sources[-1]
            else:
                new_sources.append(source)

        if not swig_sources:
            return new_sources

        swig = self.find_swig()
        swig_cmd = [swig, "-python"]
        if self.swig_cpp:
            swig_cmd.append("-c++")

        swig_cmd += platform_swig_opts

        for source in swig_sources:
            target = swig_targets[source]
            self.announce("swigging %s to %s" % (source, target))
            self.spawn(swig_cmd + ["-o", target, source])

        return new_sources

    build_ext.swig_sources = swig_sources

kw = {'name':"pyscard",
      'version':"1.6.4",
      'description':"Smartcard module for Python.",
      'author':"Jean-Daniel Aussel",
      'author_email':"aussel.jean-daniel@gemalto.com",
      'url':"http://www.gemalto.com",
      'long_description':'Smartcard package for Python',
      'license':'GNU LESSER GENERAL PUBLIC LICENSE',
      'platforms':['linux','win32'],
      'packages' : [ "smartcard",
                     "smartcard/pcsc",
                     "smartcard/reader",
                     "smartcard/scard",
                     "smartcard/sw",
                     "smartcard/util",
                     "smartcard/wx",
                     ],
      'package_dir' : { "":"." },
      'package_data' : {
                         "smartcard" : [
                                        "ACKS",
                                        "ChangeLog",
                                        "LICENSE",
                                        "README",
                                        "TODO",
                                        ],
                         "smartcard/wx" : ["resources/*.ico"],
                       } ,

      # the _scard.pyd extension to build
      'ext_modules':[Extension("smartcard.scard._scard",
                             define_macros=platform__cc_defines,
                             include_dirs=['smartcard/scard/']+platform_include_dirs,
                             sources=["smartcard/scard/helpers.c",
                                      "smartcard/scard/winscarddll.c",
                                      "smartcard/scard/scard.i"]+platform_sources,
                             libraries=platform_libraries,
                             extra_compile_args=platform_extra_compile_args,
                             extra_link_args=platform_extra_link_args,
                             swig_opts=['-outdir','smartcard/scard']+platform_swig_opts)],
      'cmdclass':{'build_ext': _pyscardBuildExt}
     }

# If we're running >Python 2.3, add extra information
if hasattr(core, 'setup_keywords'):
    if 'classifiers' in core.setup_keywords:
        kw['classifiers'] = [
          'Development Status :: 1.6.4 - Release',
          'License :: GNU LESSER GENERAL PUBLIC LICENSE',
          'Intended Audience :: Developers',
          'Operating System :: Unix',
          'Operating System :: Microsoft :: Windows',
          'Topic :: Security :: Smartcards',
          ]
    if 'download_url' in core.setup_keywords:
        kw['download_url'] = ('http://sourceforge.net/projects/pyscard/'
                              '%s-%s.zip' % (kw['name'], kw['version']) )

core.setup(**kw)

<|endoftext|>


<commit_before># coding=utf8

from distutils.core import setup
from flubber import __version__

setup(name             = "flubber",
      version          = __version__,
      author           = "Saúl Ibarra Corretgé",
      author_email     = "saghul@gmail.com",
      url              = "http://github.com/saghul/flubber",
      description      = "Cooperative multitasking and i/o for Python",
      long_description = open("README.rst").read(),
      packages         = ["flubber", "flubber.ext", "flubber.futures", "flubber.lib"],
      platforms        = ["POSIX", "Microsoft Windows"],
      classifiers      = [
          "Development Status :: 3 - Alpha",
          "Intended Audience :: Developers",
          "License :: OSI Approved :: MIT License",
          "Operating System :: POSIX",
          "Operating System :: Microsoft :: Windows",
          "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.0",
          "Programming Language :: Python :: 3.1",
          "Programming Language :: Python :: 3.2"
          "Programming Language :: Python :: 3.3"
      ],
     )

<commit_msg>Updated setup.py classifiers<commit_after># coding=utf8

from distutils.core import setup
from flubber import __version__

setup(name             = "flubber",
      version          = __version__,
      author           = "Saúl Ibarra Corretgé",
      author_email     = "saghul@gmail.com",
      url              = "http://github.com/saghul/flubber",
      description      = "Cooperative multitasking and i/o for Python",
      long_description = open("README.rst").read(),
      packages         = ["flubber", "flubber.ext", "flubber.futures", "flubber.lib"],
      platforms        = ["POSIX", "Microsoft Windows"],
      classifiers      = [
          "Development Status :: 3 - Alpha",
          "Intended Audience :: Developers",
          "License :: OSI Approved :: MIT License",
          "Operating System :: POSIX",
          "Operating System :: Microsoft :: Windows",
          "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.2"
          "Programming Language :: Python :: 3.3"
      ],
     )

<|endoftext|>


<commit_before>from setuptools import setup

try:
    long_description = open('README.rst').read()
except IOError:
    long_description = ''

setup(
    name='django-material',
    version='1.2.0',
    description='Material design for django forms and admin',
    license='BSD',
    author='Mikhail Podgurskiy',
    author_email='kmmbvnr@gmail.com',
    url='http://github.com/viewflow/django-material',
    keywords="django",
    packages=[
        'material',
        'material.templatetags',
        'material.theme',
        'material.theme.amber',
        'material.theme.bluegrey',
        'material.theme.cyan',
        'material.theme.deeppurple',
        'material.theme.indigo',
        'material.theme.lightgreen',
        'material.theme.orange',
        'material.theme.purple',
        'material.theme.teal',
        'material.theme.blue',
        'material.theme.brown',
        'material.theme.deeporange',
        'material.theme.green',
        'material.theme.lightblue',
        'material.theme.lime',
        'material.theme.pink',
        'material.theme.red',
        'material.theme.yellow',
        'material.frontend',
        'material.frontend.management',
        'material.frontend.management.commands',
        'material.frontend.migrations',
        'material.frontend.templatetags',
        'material.frontend.views',
        'material.admin',
    ],
    include_package_data=True,
    zip_safe=False,
    platforms=['any'],
    install_requires=[
    ],
    classifiers=[
        'Framework :: Django',
        "Framework :: Django :: 1.11",
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development',
        'Topic :: Software Development :: User Interfaces',
    ],
)
<commit_msg>Bump version<commit_after>from setuptools import setup

try:
    long_description = open('README.rst').read()
except IOError:
    long_description = ''

setup(
    name='django-material',
    version='1.2.2',
    description='Material design for django forms and admin',
    license='BSD',
    author='Mikhail Podgurskiy',
    author_email='kmmbvnr@gmail.com',
    url='http://github.com/viewflow/django-material',
    keywords="django",
    packages=[
        'material',
        'material.templatetags',
        'material.theme',
        'material.theme.amber',
        'material.theme.bluegrey',
        'material.theme.cyan',
        'material.theme.deeppurple',
        'material.theme.indigo',
        'material.theme.lightgreen',
        'material.theme.orange',
        'material.theme.purple',
        'material.theme.teal',
        'material.theme.blue',
        'material.theme.brown',
        'material.theme.deeporange',
        'material.theme.green',
        'material.theme.lightblue',
        'material.theme.lime',
        'material.theme.pink',
        'material.theme.red',
        'material.theme.yellow',
        'material.frontend',
        'material.frontend.management',
        'material.frontend.management.commands',
        'material.frontend.migrations',
        'material.frontend.templatetags',
        'material.frontend.views',
        'material.admin',
    ],
    include_package_data=True,
    zip_safe=False,
    platforms=['any'],
    install_requires=[
    ],
    classifiers=[
        'Framework :: Django',
        "Framework :: Django :: 1.11",
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development',
        'Topic :: Software Development :: User Interfaces',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup

def readme():
    try:
        with open("README.rst", encoding="UTF-8") as readme_file:
            return readme_file.read()
    except TypeError:
        # Python 2.7 doesn't support encoding argument in builtin open
        import io

        with io.open("README.rst", encoding="UTF-8") as readme_file:
            return readme_file.read()

configuration = {
    "name": "umap-learn",
    "version": "0.4.1",
    "description": "Uniform Manifold Approximation and Projection",
    "long_description": readme(),
    "long_description_content_type": "text/x-rst",
    "classifiers": [
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Science/Research",
        "Intended Audience :: Developers",
        "License :: OSI Approved",
        "Programming Language :: C",
        "Programming Language :: Python",
        "Topic :: Software Development",
        "Topic :: Scientific/Engineering",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX",
        "Operating System :: Unix",
        "Operating System :: MacOS",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.8",
    ],
    "keywords": "dimension reduction t-sne manifold",
    "url": "http://github.com/lmcinnes/umap",
    "maintainer": "Leland McInnes",
    "maintainer_email": "leland.mcinnes@gmail.com",
    "license": "BSD",
    "packages": ["umap"],
    "install_requires": [
        "numpy >= 1.17",
        "scikit-learn >= 0.20",
        "scipy >= 1.3.1",
        "numba >= 0.46, != 0.47",
        "tbb >= 2019.0",
    ],
    "extras_require": {
        "plot": ["pandas", "matplotlib", "datashader", "bokeh",
                 "holoviews", "colorcet"],
        "performance": ["pynndescent >= 0.4"],
    },
    "ext_modules": [],
    "cmdclass": {},
    "test_suite": "nose.collector",
    "tests_require": ["nose"],
    "data_files": (),
    "zip_safe": False,
}

setup(**configuration)
<commit_msg>Next patch release<commit_after>from setuptools import setup

def readme():
    try:
        with open("README.rst", encoding="UTF-8") as readme_file:
            return readme_file.read()
    except TypeError:
        # Python 2.7 doesn't support encoding argument in builtin open
        import io

        with io.open("README.rst", encoding="UTF-8") as readme_file:
            return readme_file.read()

configuration = {
    "name": "umap-learn",
    "version": "0.4.2",
    "description": "Uniform Manifold Approximation and Projection",
    "long_description": readme(),
    "long_description_content_type": "text/x-rst",
    "classifiers": [
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Science/Research",
        "Intended Audience :: Developers",
        "License :: OSI Approved",
        "Programming Language :: C",
        "Programming Language :: Python",
        "Topic :: Software Development",
        "Topic :: Scientific/Engineering",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX",
        "Operating System :: Unix",
        "Operating System :: MacOS",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.8",
    ],
    "keywords": "dimension reduction t-sne manifold",
    "url": "http://github.com/lmcinnes/umap",
    "maintainer": "Leland McInnes",
    "maintainer_email": "leland.mcinnes@gmail.com",
    "license": "BSD",
    "packages": ["umap"],
    "install_requires": [
        "numpy >= 1.17",
        "scikit-learn >= 0.20",
        "scipy >= 1.3.1",
        "numba >= 0.46, != 0.47",
        "tbb >= 2019.0",
    ],
    "extras_require": {
        "plot": ["pandas", "matplotlib", "datashader", "bokeh",
                 "holoviews", "colorcet"],
        "performance": ["pynndescent >= 0.4"],
    },
    "ext_modules": [],
    "cmdclass": {},
    "test_suite": "nose.collector",
    "tests_require": ["nose"],
    "data_files": (),
    "zip_safe": False,
}

setup(**configuration)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script for jupyter_contrib_nbextensions."""

# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------

from __future__ import print_function

import os
from glob import glob

from setuptools import find_packages, setup

# -----------------------------------------------------------------------------
# main setup call
# -----------------------------------------------------------------------------

def main():

    setup(
        name='jupyter_contrib_nbextensions',
        description="A collection of Jupyter nbextensions.",
        long_description="""
Contains a collection of extensions that add functionality to the Jupyter
notebook. These extensions are mostly written in Javascript, and are loaded
locally in the browser.

Read
`the documentation <https://jupyter-contrib-nbextensions.readthedocs.io>`_
for more information.

The
`jupyter-contrib repository <https://github.com/ipython-contrib/jupyter_contrib_nbextensions>`_
is maintained independently by a group of users and developers, and is not
officially related to the Jupyter development team.

The maturity of the provided extensions varies, so please check
`the repository issues page <https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues>`_
if you encounter any problems, and create a new issue if needed!
""",  # noqa: E501
        version='0.2.6',
        author='ipython-contrib and jupyter-contrib developers',
        author_email='jupytercontrib@gmail.com',
        url=('https://github.com/'
             'ipython-contrib/jupyter_contrib_nbextensions.git'),
        download_url=('https://github.com/'
                      'ipython-contrib/jupyter_contrib_nbextensions'
                      '/tarball/0.2.6'),
        keywords=['IPython', 'Jupyter', 'notebook'],
        license='BSD',
        platforms=['Any'],
        packages=find_packages('src'),
        package_dir={'': 'src'},
        include_package_data=True,
        py_modules=[
            os.path.splitext(os.path.basename(path))[0]
            for path in glob('src/*.py')
        ],
        install_requires=[
            'ipython_genutils',
            'jupyter_contrib_core >=0.3',
            'jupyter_core',
            'jupyter_highlight_selected_word >=0.0.10',
            'jupyter_latex_envs >=1.3.8',
            'jupyter_nbextensions_configurator >=0.2.4',
            'nbconvert',
            'notebook >=4.0',
            'psutil >=2.2.1',
            'pyyaml',
            'tornado',
            'traitlets >=4.1',
        ],
        extras_require={
            'test': [
                'nbformat',
                'nose',
                'pip',
                'requests',
            ],
            'test:python_version == "2.7"': [
                'mock',
            ],
        },
        # we can't be zip safe as we require templates etc to be accessible to
        # jupyter server
        zip_safe=False,
        entry_points={
            'console_scripts': [
                'jupyter-contrib-nbextension = jupyter_contrib_nbextensions.application:main',  # noqa: E501
            ],
            'jupyter_contrib_core.app.subcommands': [
                'nbextension = jupyter_contrib_nbextensions.application:jupyter_contrib_core_app_subcommands',  # noqa: E501
            ],
            'nbconvert.exporters': [
                'html_toc = jupyter_contrib_nbextensions.nbconvert_support.toc2:TocExporter',  # noqa: E501
                'selectLanguage = jupyter_contrib_nbextensions.nbconvert_support.nbTranslate:NotebookLangExporter',  # noqa: E501
                'html_embed = jupyter_contrib_nbextensions.nbconvert_support.embedhtml:EmbedHTMLExporter',  # noqa: E501
                'html_ch = jupyter_contrib_nbextensions.nbconvert_support.collapsible_headings:ExporterCollapsibleHeadings',  # noqa: E501
            ],
        },
        scripts=[os.path.join('scripts', p) for p in [
            'jupyter-contrib-nbextension',
        ]],
        classifiers=[
            'Development Status :: 1 - Planning',
            'Intended Audience :: End Users/Desktop',
            'Intended Audience :: Science/Research',
            'License :: OSI Approved :: BSD License',
            'Natural Language :: English',
            'Operating System :: OS Independent',
            'Programming Language :: JavaScript',
            'Programming Language :: Python',
            'Topic :: Utilities',
        ],
    )

if __name__ == '__main__':
    main()
<commit_msg>[CI] fix setup.py linting<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Setup script for jupyter_contrib_nbextensions."""

# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------

from __future__ import print_function

import os
from glob import glob

from setuptools import find_packages, setup

# -----------------------------------------------------------------------------
# main setup call
# -----------------------------------------------------------------------------

def main():

    setup(
        name='jupyter_contrib_nbextensions',
        description="A collection of Jupyter nbextensions.",
        long_description="""
Contains a collection of extensions that add functionality to the Jupyter
notebook. These extensions are mostly written in Javascript, and are loaded
locally in the browser.

Read
`the documentation <https://jupyter-contrib-nbextensions.readthedocs.io>`_
for more information.

The
`jupyter-contrib repository <https://github.com/ipython-contrib/jupyter_contrib_nbextensions>`_
is maintained independently by a group of users and developers, and is not
officially related to the Jupyter development team.

The maturity of the provided extensions varies, so please check
`the repository issues page <https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues>`_
if you encounter any problems, and create a new issue if needed!
""",  # noqa: E501
        version='0.2.6',
        author='ipython-contrib and jupyter-contrib developers',
        author_email='jupytercontrib@gmail.com',
        url=('https://github.com/'
             'ipython-contrib/jupyter_contrib_nbextensions.git'),
        download_url=('https://github.com/'
                      'ipython-contrib/jupyter_contrib_nbextensions'
                      '/tarball/0.2.6'),
        keywords=['IPython', 'Jupyter', 'notebook'],
        license='BSD',
        platforms=['Any'],
        packages=find_packages('src'),
        package_dir={'': 'src'},
        include_package_data=True,
        py_modules=[
            os.path.splitext(os.path.basename(path))[0]
            for path in glob('src/*.py')
        ],
        install_requires=[
            'ipython_genutils',
            'jupyter_contrib_core >=0.3',
            'jupyter_core',
            'jupyter_highlight_selected_word >=0.0.10',
            'jupyter_latex_envs >=1.3.8',
            'jupyter_nbextensions_configurator >=0.2.4',
            'nbconvert',
            'notebook >=4.0',
            'psutil >=2.2.1',
            'pyyaml',
            'tornado',
            'traitlets >=4.1',
        ],
        extras_require={
            'test': [
                'nbformat',
                'nose',
                'pip',
                'requests',
            ],
            'test:python_version == "2.7"': [
                'mock',
            ],
        },
        # we can't be zip safe as we require templates etc to be accessible to
        # jupyter server
        zip_safe=False,
        entry_points={
            'console_scripts': [
                'jupyter-contrib-nbextension = jupyter_contrib_nbextensions.application:main',  # noqa: E501
            ],
            'jupyter_contrib_core.app.subcommands': [
                'nbextension = jupyter_contrib_nbextensions.application:jupyter_contrib_core_app_subcommands',  # noqa: E501
            ],
            'nbconvert.exporters': [
                'html_toc = jupyter_contrib_nbextensions.nbconvert_support.toc2:TocExporter',  # noqa: E501
                'selectLanguage = jupyter_contrib_nbextensions.nbconvert_support.nbTranslate:NotebookLangExporter',  # noqa: E501
                'html_embed = jupyter_contrib_nbextensions.nbconvert_support.embedhtml:EmbedHTMLExporter',  # noqa: E501
                'html_ch = jupyter_contrib_nbextensions.nbconvert_support.collapsible_headings:ExporterCollapsibleHeadings',  # noqa: E501
            ],
        },
        scripts=[os.path.join('scripts', p) for p in [
            'jupyter-contrib-nbextension',
        ]],
        classifiers=[
            'Development Status :: 1 - Planning',
            'Intended Audience :: End Users/Desktop',
            'Intended Audience :: Science/Research',
            'License :: OSI Approved :: BSD License',
            'Natural Language :: English',
            'Operating System :: OS Independent',
            'Programming Language :: JavaScript',
            'Programming Language :: Python',
            'Topic :: Utilities',
        ],
    )

if __name__ == '__main__':
    main()
<|endoftext|>


<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function
__metaclass__ = type

DOCUMENTATION = '''
    callback: f5_save_config
    callback_type: aggregate
    requirements:
      - whitelist in configuration
    short_description: Saves a running F5 configuration, at play end, if any of the tasks changed config.
    version_added: 2.6
    description:
        - This is an Ansible callback plugin that will commit the running configuration to
          the saved sys configuration at the end of a playbook.
        - The callback will not save the running configuration if no changes have been reported.
    options:
      server:
        required: True
        description: The BIG-IP to connect to.
        env:
          - name: F5_SERVER
        ini:
          - section: callback_f5_save_config
            key: server
      user:
        required: True
        description: The username to connect to the BIG-IP with.
        env:
          - name: F5_USER
        ini:
          - section: callback_f5_save_config
            key: user
      password:
        required: True
        description: The password for the user account used to connect to the BIG-IP.
        env:
          - name: F5_PASSWORD
        ini:
          - section: callback_f5_save_config
            key: password
      server_port:
        required: True
        description: The port to connect to the BIG-IP on.
        env:
          - name: F5_SERVER_PORT
        ini:
          - section: callback_f5_save_config
            key: server_port
      validate_certs:
        required: False
        default: yes
        description: Used to validate SSL certificates offered by the BIG-IP.
        env:
          - name: F5_VALIDATE_CERTS
        ini:
          - section: callback_f5_save_config
            key: validate_certs
'''

import json
import os

try:
    from __main__ import cli
except ImportError:
    cli = None

from ansible.module_utils.urls import open_url
from ansible.plugins.callback import CallbackBase
from ansible.template import Templar
from ansible.plugins.strategy import SharedPluginLoaderObj

try:
    # Sideband repository used for dev
    from library.module_utils.network.f5.bigip import HAS_F5SDK
    from library.module_utils.network.f5.bigip import F5Client
    from library.module_utils.network.f5.common import F5ModuleError
    from library.module_utils.network.f5.common import cleanup_tokens
    try:
        from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
    except ImportError:
        HAS_F5SDK = False
    HAS_DEVEL_IMPORTS = True
except ImportError:
    # Upstream Ansible
    from ansible.module_utils.network.f5.bigip import HAS_F5SDK
    from ansible.module_utils.network.f5.bigip import F5Client
    from ansible.module_utils.network.f5.common import F5ModuleError
    from ansible.module_utils.network.f5.common import cleanup_tokens
    try:
        from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
    except ImportError:
        HAS_F5SDK = False

class CallbackModule(CallbackBase):
    """Callback plugin which commits BIG-IP config on change
    """
    CALLBACK_VERSION = 1.0
    CALLBACK_TYPE = 'aggregate'
    CALLBACK_NAME = 'f5_save_config'
    CALLBACK_NEEDS_WHITELIST = True

    def __init__(self, display=None):

        super(CallbackModule, self).__init__(display=display)

        if not HAS_F5SDK:
            self.disabled = True
            self._display.warning(
                'The `f5-sdk` python module is not installed. Disabling the F5 Save Config callback plugin.')

        self.playbook_name = None

    def send_msg(self, attachments):
        payload = {
            'channel': self.channel,
            'username': self.username,
            'attachments': attachments,
            'parse': 'none',
            'icon_url': ('http://cdn2.hubspot.net/hub/330046/'
                         'file-449187601-png/ansible_badge.png'),
        }

        data = json.dumps(payload)
        self._display.debug(data)
        self._display.debug(self.webhook_url)
        try:
            response = open_url(self.webhook_url, data=data)
            return response.read()
        except Exception as e:
            self._display.warning('Could not submit message to Slack: %s' %
                                  str(e))

    def v2_playbook_on_start(self, playbook):
        self.playbook = playbook

    def v2_playbook_on_play_start(self, play):
        self.play = play

    def _all_vars(self, host=None, task=None):
        # host and task need to be specified in case 'magic variables' (host vars, group vars, etc) need to be loaded as well
        return self.play.get_variable_manager().get_vars(
            play=self.play,
            host=host,
            task=task
        )

    def v2_runner_on_ok(self, result):
        templar = Templar(
            loader=self.playbook.get_loader(),
            shared_loader_obj=SharedPluginLoaderObj(),
            variables=self._all_vars(host=result._host, task=result._task)
        )

        result._task.squash()
        foo = templar.template(result._task._attributes['environment'])
        q.q(foo)
<commit_msg>remove debug<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function
__metaclass__ = type

DOCUMENTATION = '''
    callback: f5_save_config
    callback_type: aggregate
    requirements:
      - whitelist in configuration
    short_description: Saves a running F5 configuration, at play end, if any of the tasks changed config.
    version_added: 2.6
    description:
        - This is an Ansible callback plugin that will commit the running configuration to
          the saved sys configuration at the end of a playbook.
        - The callback will not save the running configuration if no changes have been reported.
    options:
      server:
        required: True
        description: The BIG-IP to connect to.
        env:
          - name: F5_SERVER
        ini:
          - section: callback_f5_save_config
            key: server
      user:
        required: True
        description: The username to connect to the BIG-IP with.
        env:
          - name: F5_USER
        ini:
          - section: callback_f5_save_config
            key: user
      password:
        required: True
        description: The password for the user account used to connect to the BIG-IP.
        env:
          - name: F5_PASSWORD
        ini:
          - section: callback_f5_save_config
            key: password
      server_port:
        required: True
        description: The port to connect to the BIG-IP on.
        env:
          - name: F5_SERVER_PORT
        ini:
          - section: callback_f5_save_config
            key: server_port
      validate_certs:
        required: False
        default: yes
        description: Used to validate SSL certificates offered by the BIG-IP.
        env:
          - name: F5_VALIDATE_CERTS
        ini:
          - section: callback_f5_save_config
            key: validate_certs
'''

import json
import os

try:
    from __main__ import cli
except ImportError:
    cli = None

from ansible.module_utils.urls import open_url
from ansible.plugins.callback import CallbackBase
from ansible.template import Templar
from ansible.plugins.strategy import SharedPluginLoaderObj

try:
    # Sideband repository used for dev
    from library.module_utils.network.f5.bigip import HAS_F5SDK
    from library.module_utils.network.f5.bigip import F5Client
    from library.module_utils.network.f5.common import F5ModuleError
    from library.module_utils.network.f5.common import cleanup_tokens
    try:
        from library.module_utils.network.f5.common import iControlUnexpectedHTTPError
    except ImportError:
        HAS_F5SDK = False
    HAS_DEVEL_IMPORTS = True
except ImportError:
    # Upstream Ansible
    from ansible.module_utils.network.f5.bigip import HAS_F5SDK
    from ansible.module_utils.network.f5.bigip import F5Client
    from ansible.module_utils.network.f5.common import F5ModuleError
    from ansible.module_utils.network.f5.common import cleanup_tokens
    try:
        from ansible.module_utils.network.f5.common import iControlUnexpectedHTTPError
    except ImportError:
        HAS_F5SDK = False

class CallbackModule(CallbackBase):
    """Callback plugin which commits BIG-IP config on change
    """
    CALLBACK_VERSION = 1.0
    CALLBACK_TYPE = 'aggregate'
    CALLBACK_NAME = 'f5_save_config'
    CALLBACK_NEEDS_WHITELIST = True

    def __init__(self, display=None):

        super(CallbackModule, self).__init__(display=display)

        if not HAS_F5SDK:
            self.disabled = True
            self._display.warning(
                'The `f5-sdk` python module is not installed. Disabling the F5 Save Config callback plugin.')

        self.playbook_name = None

    def send_msg(self, attachments):
        payload = {
            'channel': self.channel,
            'username': self.username,
            'attachments': attachments,
            'parse': 'none',
            'icon_url': ('http://cdn2.hubspot.net/hub/330046/'
                         'file-449187601-png/ansible_badge.png'),
        }

        data = json.dumps(payload)
        self._display.debug(data)
        self._display.debug(self.webhook_url)
        try:
            response = open_url(self.webhook_url, data=data)
            return response.read()
        except Exception as e:
            self._display.warning('Could not submit message to Slack: %s' %
                                  str(e))

    def v2_playbook_on_start(self, playbook):
        self.playbook = playbook

    def v2_playbook_on_play_start(self, play):
        self.play = play

    def _all_vars(self, host=None, task=None):
        # host and task need to be specified in case 'magic variables' (host vars, group vars, etc) need to be loaded as well
        return self.play.get_variable_manager().get_vars(
            play=self.play,
            host=host,
            task=task
        )

    def v2_runner_on_ok(self, result):
        templar = Templar(
            loader=self.playbook.get_loader(),
            shared_loader_obj=SharedPluginLoaderObj(),
            variables=self._all_vars(host=result._host, task=result._task)
        )

        result._task.squash()
        foo = templar.template(result._task._attributes['environment'])
<|endoftext|>


<commit_before>from setuptools import setup

import versioneer

using_ipy4 = False
try:
    from IPython import __version__ as ipyv
    from distutils.version import LooseVersion

    using_ipy4 = (ipyv >= LooseVersion("4"))
except ImportError:
    using_ipy4 = True

install_requires = [
    'Jinja2>=2.7.2',
    'Pygments>=1.6',
    'ipython>=2.3.1',
    'pyzmq>=14.1.0',
]
if using_ipy4:
    install_requires.extend([
        'ipykernel>=4.0.0',
        'nbconvert>=4.0.0',
        'nbformat>=4.0.0',
    ])

setup(name='runipy',
      version=versioneer.get_version(),
      description='Run IPython notebooks from the command line',
      url='https://github.com/paulgb/runipy',
      author='Paul Butler',
      author_email='paulgb@gmail.com',
      maintainer='John Kirkham',
      maintainer_email='jakirkham@gmail.com',
      classifiers=[
          'Framework :: IPython',
      ],
      install_requires=install_requires,
      packages=['runipy'],
      entry_points={
          'console_scripts': [
              'runipy = runipy.main:main'
          ]
      },
      cmdclass=versioneer.get_cmdclass(),
      test_suite="test_runipy"
)
<commit_msg>setup.py: Add a long description for `setup` that contains the README.<commit_after>from setuptools import setup

import versioneer

using_ipy4 = False
try:
    from IPython import __version__ as ipyv
    from distutils.version import LooseVersion

    using_ipy4 = (ipyv >= LooseVersion("4"))
except ImportError:
    using_ipy4 = True

install_requires = [
    'Jinja2>=2.7.2',
    'Pygments>=1.6',
    'ipython>=2.3.1',
    'pyzmq>=14.1.0',
]
if using_ipy4:
    install_requires.extend([
        'ipykernel>=4.0.0',
        'nbconvert>=4.0.0',
        'nbformat>=4.0.0',
    ])

readme = ""
with open("README.rst") as readme_file:
    readme = readme_file.read()

setup(name='runipy',
      version=versioneer.get_version(),
      description='Run IPython notebooks from the command line',
      long_description=readme,
      url='https://github.com/paulgb/runipy',
      author='Paul Butler',
      author_email='paulgb@gmail.com',
      maintainer='John Kirkham',
      maintainer_email='jakirkham@gmail.com',
      classifiers=[
          'Framework :: IPython',
      ],
      install_requires=install_requires,
      packages=['runipy'],
      entry_points={
          'console_scripts': [
              'runipy = runipy.main:main'
          ]
      },
      cmdclass=versioneer.get_cmdclass(),
      test_suite="test_runipy"
)
<|endoftext|>


<commit_before>import textwrap
from setuptools import setup

setup(name='dip',
      version='1.1.0',
      author='amancevice',
      author_email='smallweirdnum@gmail.com',
      packages=['dip'],
      url='http://www.smallweirdnumber.com',
      description='Install CLIs using docker-compose',
      long_description=textwrap.dedent(
          '''See GitHub_ for documentation.
          .. _GitHub: https://github.com/amancevice/dip'''),
      classifiers=['Intended Audience :: Developers',
                   'License :: OSI Approved :: MIT License',
                   'Operating System :: OS Independent',
                   'Topic :: Utilities',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.7',
                   'Programming Language :: Python :: 3',
                   'Programming Language :: Python :: 3.4',
                   'Programming Language :: Python :: 3.5',
                   'Programming Language :: Python :: 3.6',
                   'Programming Language :: Python'],
      install_requires=['click>=6.7.0',
                        'colored>=1.3.4',
                        'docker-compose>=1.10.0',
                        'gitpython>=2.1.3'],
      entry_points={'console_scripts': ['dip=dip.main:dip']})
<commit_msg>1.2.0<commit_after>import textwrap
from setuptools import setup

setup(name='dip',
      version='1.2.0',
      author='amancevice',
      author_email='smallweirdnum@gmail.com',
      packages=['dip'],
      url='http://www.smallweirdnumber.com',
      description='Install CLIs using docker-compose',
      long_description=textwrap.dedent(
          '''See GitHub_ for documentation.
          .. _GitHub: https://github.com/amancevice/dip'''),
      classifiers=['Intended Audience :: Developers',
                   'License :: OSI Approved :: MIT License',
                   'Operating System :: OS Independent',
                   'Topic :: Utilities',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.7',
                   'Programming Language :: Python :: 3',
                   'Programming Language :: Python :: 3.4',
                   'Programming Language :: Python :: 3.5',
                   'Programming Language :: Python :: 3.6',
                   'Programming Language :: Python'],
      install_requires=['click>=6.7.0',
                        'colored>=1.3.4',
                        'docker-compose>=1.10.0',
                        'gitpython>=2.1.3'],
      entry_points={'console_scripts': ['dip=dip.main:dip']})
<|endoftext|>


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

import sys
import os

import apiai

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
  os.system('python setup.py sdist upload')
  sys.exit()

packages = [
    'apiai',
]

requires = [
    'numpy',
    'scipy',
]

with open('README.rst', 'r') as f:
  readme = f.read()

with open('HISTORY.rst', 'r', 'utf-8') as f:
  history = f.read()

setup(name=apiai.__version__,
      version='1.0',
      description='The API.AI iOS SDK makes it easy to integrate speech recognition with API.AI natural language processing API on iOS devices.',
      long_description=readme + '\n\n' + history,
      author='Dmitriy Kuragin',
      author_email='kuragin@speaktoit.com',
      license='Apache 2.0',
      url='https://api.ai/',
      packages=packages,
      install_requires=requires,
      package_data={'':['LICENSE']},
      classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
      ),
)<commit_msg>Fix setup build<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import os

import apiai

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == 'publish':
  os.system('python setup.py sdist upload')
  sys.exit()

packages = [
    'apiai',
]

requires = [
    'numpy',
    'scipy',
]

with open('README.rst', 'r') as f:
  readme = f.read()

with open('HISTORY.rst', 'r') as f:
  history = f.read()

setup(name=apiai.__version__,
      version='1.0',
      description='The API.AI iOS SDK makes it easy to integrate speech recognition with API.AI natural language processing API on iOS devices.',
      long_description=readme + '\n\n' + history,
      author='Dmitriy Kuragin',
      author_email='kuragin@speaktoit.com',
      license='Apache 2.0',
      url='https://api.ai/',
      packages=packages,
      install_requires=requires,
      package_data={'':['LICENSE']},
      classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4'
      ),
)<|endoftext|>


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

import os
import sys

import genres

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == "publish":
    os.system("python setup.py sdist upload")
    sys.exit()

packages = [
    "genres"
]

with open('README.rst') as f:
    readme = f.read()

requires = []

long_description = """
Genres is a library that analyzes text with musical context and guesses genres.

---

%s

""" % (readme)

setup(
    name="genres",
    version=genres.__version__,
    description="Guesses genre for text with musical context",
    long_description=long_description,
    author="Martin Sandström",
    author_email="martin@marteinn.se",
    url="",
    packages=packages,
    package_data={"": ["LICENSE", "reviews.txt"], "genres": ["*.txt"]},
    package_dir={"genres": "genres"},
    include_package_data=True,
    install_requires=requires,
    license="Apache 2.0",
    zip_safe=False,
    classifiers=(
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Natural Language :: English",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7"
    ),
    extras_require={
    },
)
<commit_msg>Added url<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

import genres

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

if sys.argv[-1] == "publish":
    os.system("python setup.py sdist upload")
    sys.exit()

packages = [
    "genres"
]

with open('README.rst') as f:
    readme = f.read()

requires = []

long_description = """
Genres is a library that analyzes text with musical context and guesses genres.

---

%s

""" % (readme)

setup(
    name="genres",
    version=genres.__version__,
    description="Guesses genre for text with musical context",
    long_description=long_description,
    author="Martin Sandström",
    author_email="martin@marteinn.se",
    url="https://github.com/marteinn/genres",
    packages=packages,
    package_data={"": ["LICENSE", "reviews.txt"], "genres": ["*.txt"]},
    package_dir={"genres": "genres"},
    include_package_data=True,
    install_requires=requires,
    license="Apache 2.0",
    zip_safe=False,
    classifiers=(
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Natural Language :: English",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2.7"
    ),
    extras_require={
    },
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
#
# Copyright 2017-2020 European Centre for Medium-Range Weather Forecasts (ECMWF).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import re

import setuptools  # type: ignore

def read(path: str) -> str:
    file_path = os.path.join(os.path.dirname(__file__), *path.split("/"))
    return open(file_path).read()

# single-sourcing the package version using method 1 of:
#   https://packaging.python.org/guides/single-sourcing-package-version/
def parse_version_from(path: str) -> str:
    version_file = read(path)
    version_match = re.search(r'^__version__ = "(.*)"', version_file, re.M)
    if version_match is None or len(version_match.groups()) > 1:
        raise ValueError("couldn't parse version")
    return version_match.group(1)

setuptools.setup(
    name="cfgrib",
    version=parse_version_from("cfgrib/__init__.py"),
    description="Python interface to map GRIB files to the NetCDF Common Data Model "
    "following the CF Convention using ecCodes.",
    long_description=read("README.rst") + read("CHANGELOG.rst"),
    author="European Centre for Medium-Range Weather Forecasts (ECMWF)",
    author_email="software.support@ecmwf.int",
    license="Apache License Version 2.0",
    url="https://github.com/ecmwf/cfgrib",
    packages=setuptools.find_packages(),
    include_package_data=True,
    install_requires=["attrs>=19.2", "cffi", "click", "eccodes", "numpy"],
    python_requires=">=3.5",
    extras_require={
        "xarray": ["xarray>=0.12.0"],
        "tests": ["dask[array]", "flake8", "pytest", "pytest-cov", "scipy", "xarray>=0.12.0",],
    },
    zip_safe=True,
    keywords="eccodes grib xarray",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "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 :: Implementation :: PyPy",
        "Operating System :: OS Independent",
    ],
    entry_points={"console_scripts": ["cfgrib=cfgrib.__main__:cfgrib_cli"]},
)
<commit_msg>Drop cffi from setup dependencies<commit_after>#!/usr/bin/env python
#
# Copyright 2017-2020 European Centre for Medium-Range Weather Forecasts (ECMWF).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os
import re

import setuptools  # type: ignore

def read(path: str) -> str:
    file_path = os.path.join(os.path.dirname(__file__), *path.split("/"))
    return open(file_path).read()

# single-sourcing the package version using method 1 of:
#   https://packaging.python.org/guides/single-sourcing-package-version/
def parse_version_from(path: str) -> str:
    version_file = read(path)
    version_match = re.search(r'^__version__ = "(.*)"', version_file, re.M)
    if version_match is None or len(version_match.groups()) > 1:
        raise ValueError("couldn't parse version")
    return version_match.group(1)

setuptools.setup(
    name="cfgrib",
    version=parse_version_from("cfgrib/__init__.py"),
    description="Python interface to map GRIB files to the NetCDF Common Data Model "
    "following the CF Convention using ecCodes.",
    long_description=read("README.rst") + read("CHANGELOG.rst"),
    author="European Centre for Medium-Range Weather Forecasts (ECMWF)",
    author_email="software.support@ecmwf.int",
    license="Apache License Version 2.0",
    url="https://github.com/ecmwf/cfgrib",
    packages=setuptools.find_packages(),
    include_package_data=True,
    install_requires=["attrs>=19.2", "click", "eccodes", "numpy"],
    python_requires=">=3.5",
    extras_require={
        "xarray": ["xarray>=0.12.0"],
        "tests": ["dask[array]", "flake8", "pytest", "pytest-cov", "scipy", "xarray>=0.12.0",],
    },
    zip_safe=True,
    keywords="eccodes grib xarray",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "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 :: Implementation :: PyPy",
        "Operating System :: OS Independent",
    ],
    entry_points={"console_scripts": ["cfgrib=cfgrib.__main__:cfgrib_cli"]},
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
from distutils.core import setup
import os

parent_directory = os.path.abspath(os.path.dirname(__file__))

meta_files = {
    'README.md': None,
    'CLASSIFIERS.txt': None,
}

for filename in meta_files:
    try:
        current_file = open(os.path.join(parent_directory, filename))
        meta_files[filename] = current_file.read()
        current_file.close()
    except IOError:
        raise IOError('{0} not found.'.format(filename))

classifiers = meta_files['CLASSIFIERS.txt'].split('\n')
classifiers.remove('')

setup(name='django-navigen',
      version='0.1.2-hotfix',
      description='Dynamic navigation menu generation for django.',
      long_description=meta_files['README.md'],
      classifiers=classifiers,
      author='Brandon R. Stoner',
      author_email='monokrome@limpidtech.com',
      url='http://github.com/LimpidTech/django-navigen',
      packages=['navigen', 'navigen.templatetags'],
      keywords = 'web django menu navigation',
)

<commit_msg>Modified setup.py so that templates are installed.<commit_after>#!/usr/bin/env python
from distutils.core import setup
import os

parent_directory = os.path.abspath(os.path.dirname(__file__))

meta_files = {
    'README.md': None,
    'CLASSIFIERS.txt': None,
}

for filename in meta_files:
    try:
        current_file = open(os.path.join(parent_directory, filename))
        meta_files[filename] = current_file.read()
        current_file.close()
    except IOError:
        raise IOError('{0} not found.'.format(filename))

classifiers = meta_files['CLASSIFIERS.txt'].split('\n')
classifiers.remove('')

setup(name='django-navigen',
      version='0.1.2-hotfix',
      description='Dynamic navigation menu generation for django.',
      long_description=meta_files['README.md'],
      classifiers=classifiers,
      author='Brandon R. Stoner',
      author_email='monokrome@limpidtech.com',
      url='http://github.com/LimpidTech/django-navigen',
      packages=['navigen', 'navigen.templatetags'],
      package_data={
            'navigen': ['templates/navigation/*.html'],
      },
      keywords = 'web django menu navigation',
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

config = {
    'name': 'PySciter',
    'author': 'pravic',
    'author_email': 'ehysta@gmail.com',
    'description': 'Python bindings for the Sciter - Embeddable HTML/CSS/script engine (cross-platform desktop GUI toolkit).',
    'url': 'http://github.com/pravic/pysciter/',
    'download_url': 'https://github.com/pravic/pysciter/releases',
    'bugtrack_url': 'https://github.com/pravic/pysciter/issues',
    'version': '0.4.10',
    'platforms': ['Windows', 'Linux', 'MacOS X', ],
    'packages': ['sciter', 'sciter.capi'],
    'install_requires': [''],
    'scripts': [],
    'keywords': ['gui', 'sciter', 'tiscript', 'htmlayout', 'html', 'css', 'web', 'cross-platform', ],
    'license': 'MIT',
    'classifiers': [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Operating System :: Microsoft :: Windows :: Windows XP',
        'Operating System :: Microsoft :: Windows :: Windows Vista',
        'Operating System :: Microsoft :: Windows :: Windows 7',
        'Operating System :: Microsoft :: Windows :: Windows 8',
        'Operating System :: Microsoft :: Windows :: Windows 10',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX :: Linux',
        'Environment :: MacOS X',
        'Environment :: Win32 (MS Windows)',
        'Environment :: X11 Applications :: GTK',
        'Environment :: Web Environment',
        'Programming Language :: C++',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Desktop Environment',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: User Interfaces',
        'Topic :: Software Development :: Widget Sets',
    ],
    'long_description': """
Introduction
============
Sciter (http://sciter.com) is an embeddable HTML/CSS/script engine with GPU accelerated rendering for desktop application UI.
It's a compact, single dll/dylib/so file (4-8 mb), engine without any additional dependencies.

Sciter uses Direct2D GPU accelerated graphics on modern Windows versions and GDI+ on XP.
On OS X, it uses standard CoreGraphics primitives, while the Linux version uses Cairo.

Sciter uses HTML5 set of elements, implements CSS level 2.1 in full, plus the most popular features of CSS level 3.
It also contains custom CSS extensions that are required to support desktop UI cases.
For example, flex units and various layout managers.

Check the `screenshot gallery <https://github.com/oskca/sciter#sciter-desktop-ui-examples>`_ of the desktop UI examples.

Installation
============

For installation instructions and usage examples please refer to `github project page <https://github.com/pravic/pysciter#getting-started>`_.

Compatibility
=============

PySciter requires Python 3.x (2.7 is planned in near future).

Sciter works on Microsoft Windows XP and above (x86/x64), Apple OS X v 10.7 and above (64-bit) and Linux/GTK (GTK v 3.0 and above, 64-bit only).

Feedback and getting involved
=============================
- PySciter Code Repository: https://github.com/pravic/pysciter
- Issue tracker: https://github.com/pravic/pysciter/issues
- Sciter official website: http://sciter.com
- Sciter forum: http://sciter.com/forums/
- Sciter SDK: https://github.com/c-smile/sciter-sdk

""",
}

setup(**config)
<commit_msg>fix PyPi classifiers<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

config = {
    'name': 'PySciter',
    'author': 'pravic',
    'author_email': 'ehysta@gmail.com',
    'description': 'Python bindings for the Sciter - Embeddable HTML/CSS/script engine (cross-platform desktop GUI toolkit).',
    'url': 'http://github.com/pravic/pysciter/',
    'download_url': 'https://github.com/pravic/pysciter/releases',
    'bugtrack_url': 'https://github.com/pravic/pysciter/issues',
    'version': '0.4.10',
    'platforms': ['Windows', 'Linux', 'MacOS X', ],
    'packages': ['sciter', 'sciter.capi'],
    'install_requires': [''],
    'scripts': [],
    'keywords': ['gui', 'sciter', 'tiscript', 'htmlayout', 'html', 'css', 'web', 'cross-platform', ],
    'license': 'MIT',
    'classifiers': [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Operating System :: Microsoft :: Windows :: Windows XP',
        'Operating System :: Microsoft :: Windows :: Windows Vista',
        'Operating System :: Microsoft :: Windows :: Windows 7',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX :: Linux',
        'Environment :: MacOS X',
        'Environment :: Win32 (MS Windows)',
        'Environment :: X11 Applications :: GTK',
        'Environment :: Web Environment',
        'Programming Language :: C++',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Desktop Environment',
        'Topic :: Software Development',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: User Interfaces',
        'Topic :: Software Development :: Widget Sets',
    ],
    'long_description': """
Introduction
============
Sciter (http://sciter.com) is an embeddable HTML/CSS/script engine with GPU accelerated rendering for desktop application UI.
It's a compact, single dll/dylib/so file (4-8 mb), engine without any additional dependencies.

Sciter uses Direct2D GPU accelerated graphics on modern Windows versions and GDI+ on XP.
On OS X, it uses standard CoreGraphics primitives, while the Linux version uses Cairo.

Sciter uses HTML5 set of elements, implements CSS level 2.1 in full, plus the most popular features of CSS level 3.
It also contains custom CSS extensions that are required to support desktop UI cases.
For example, flex units and various layout managers.

Check the `screenshot gallery <https://github.com/oskca/sciter#sciter-desktop-ui-examples>`_ of the desktop UI examples.

Installation
============

For installation instructions and usage examples please refer to `github project page <https://github.com/pravic/pysciter#getting-started>`_.

Compatibility
=============

PySciter requires Python 3.x (2.7 is planned in near future).

Sciter works on Microsoft Windows XP and above (x86/x64), Apple OS X v 10.7 and above (64-bit) and Linux/GTK (GTK v 3.0 and above, 64-bit only).

Feedback and getting involved
=============================
- PySciter Code Repository: https://github.com/pravic/pysciter
- Issue tracker: https://github.com/pravic/pysciter/issues
- Sciter official website: http://sciter.com
- Sciter forum: http://sciter.com/forums/
- Sciter SDK: https://github.com/c-smile/sciter-sdk

""",
}

setup(**config)
<|endoftext|>


<commit_before>#!/usr/bin/env

import sys
if sys.version_info[0] <= 2:
    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup, Extension
else:
    from distutils.core import setup, Extension

setup(name='heapdict',
      version='1.0.0',
      description='a heap with decrease-key and increase-key operations',
      author='Stutzbach Enterprises, LLC',
      author_email='daniel@stutzbachenterprises.com',
      url='http://stutzbachenterprises.com/',
      license = "BSD",
      keywords = "heap decrease-key increase-key dictionary Dijkstra A* priority queue",
      provides = ['heapdict'],
      py_modules = ['heapdict'],
      test_suite = "test_heap",
      zip_safe = True,
      classifiers = [
          'Development Status :: 5 - Production/Stable',
          'Operating System :: OS Independent',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.0',
          'Programming Language :: Python :: 3.1',
          'Programming Language :: Python :: 3.2',
          ],

      long_description=open('README.rst').read(),

      )
<commit_msg>Changed PyPi named back to HeapDict<commit_after>#!/usr/bin/env

import sys
if sys.version_info[0] <= 2:
    import ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup, Extension
else:
    from distutils.core import setup, Extension

setup(name='HeapDict',
      version='1.0.0',
      description='a heap with decrease-key and increase-key operations',
      author='Stutzbach Enterprises, LLC',
      author_email='daniel@stutzbachenterprises.com',
      url='http://stutzbachenterprises.com/',
      license = "BSD",
      keywords = "heap decrease-key increase-key dictionary Dijkstra A* priority queue",
      provides = ['heapdict'],
      py_modules = ['heapdict'],
      test_suite = "test_heap",
      zip_safe = True,
      classifiers = [
          'Development Status :: 5 - Production/Stable',
          'Operating System :: OS Independent',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.0',
          'Programming Language :: Python :: 3.1',
          'Programming Language :: Python :: 3.2',
          ],

      long_description=open('README.rst').read(),

      )
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='django-editormd',
    version='0.2.7',
    description='django-editormd package helps integrate editor.md with Django.',
    long_description=open('README.md').read(),
    author='xixijun',
    author_email='chen2aaron@gmail.com',
    packages=['editormd'],
    include_package_data=True,
    install_requires=[
        'Pillow',
    ],
    url='http://github.com/chen2aaron/django-editormd',
    license='MIT',
    zip_safe=False,
    keywords='editor.md,django,admin,editor,text,html,editor,rich,web',
    classifiers=[
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.6',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
)
<commit_msg>Update 0.2.8<commit_after>from setuptools import setup

setup(
    name='django-editormd',
    version='0.2.8',
    description='django-editormd package helps integrate editor.md with Django.',
    long_description=open('README.md').read(),
    author='xixijun',
    author_email='chen2aaron@gmail.com',
    packages=['editormd'],
    include_package_data=True,
    install_requires=[
        'Pillow',
    ],
    url='http://github.com/chen2aaron/django-editormd',
    license='MIT',
    zip_safe=False,
    keywords='editor.md,django,admin,editor,text,html,editor,rich,web',
    classifiers=[
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.6',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages

setup(
    name = 'django-common',
    description = 'A number of useful django shortcuts and helpers',
    version = '0.1.49',
    author = 'Grigoriy Petukhov',
    author_email = 'lorien@lorien.name',
    url = 'http://bitbucket.org/lorien/django-common/',

    packages = find_packages(),
    include_package_data = True,

    license = "BSD",
    keywords = "django application development shortcuts helpers",
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<commit_msg>version 0.1.50<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages

setup(
    name = 'django-common',
    description = 'A number of useful django shortcuts and helpers',
    version = '0.1.50',
    author = 'Grigoriy Petukhov',
    author_email = 'lorien@lorien.name',
    url = 'http://bitbucket.org/lorien/django-common/',

    packages = find_packages(),
    include_package_data = True,

    license = "BSD",
    keywords = "django application development shortcuts helpers",
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

with open('requirements.txt') as req_txt:
    required = [line for line in req_txt.read().splitlines() if line]

setup(
    name='scs_mfr',
    version='0.1.0',
    description='High-level scripts and command-line applications for South Coast Science environmental monitor manufacturing, test and calibration.',
    author='South Coast Science',
    author_email='contact@southcoastscience.com',
    url='https://github.com/south-coast-science/scs_mfr',
    package_dir={'':'src'},
    packages=find_packages('src'),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Operating System :: POSIX',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    install_requires=required,
    platforms=['any'],
    python_requires=">=3.3",
)<commit_msg>Include the scripts in the install<commit_after>from setuptools import setup, find_packages

with open('requirements.txt') as req_txt:
    required = [line for line in req_txt.read().splitlines() if line]

setup(
    name='scs_mfr',
    version='0.1.0',
    description='High-level scripts and command-line applications for South Coast Science environmental monitor manufacturing, test and calibration.',
    author='South Coast Science',
    author_email='contact@southcoastscience.com',
    url='https://github.com/south-coast-science/scs_mfr',
    package_dir={'':'src'},
    packages=find_packages('src'),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Operating System :: POSIX',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    scripts=[
        'src/scs_mfr/afe_baseline.py',
        'src/scs_mfr/afe_calib.py',
        'src/scs_mfr/afe_conf.py',
        'src/scs_mfr/csv_reader.py',
        'src/scs_mfr/csv_writer.py',
        'src/scs_mfr/dfe_id.py',
        'src/scs_mfr/dfe_test.py',
        'src/scs_mfr/eeprom_read.py',
        'src/scs_mfr/eeprom_write.py',
        'src/scs_mfr/gps_conf.py',
        'src/scs_mfr/host_id.py',
        'src/scs_mfr/ndir_conf.py',
        'src/scs_mfr/opc_conf.py',
        'src/scs_mfr/osio_api_auth.py',
        'src/scs_mfr/osio_host_client.py',
        'src/scs_mfr/osio_host_organisation.py',
        'src/scs_mfr/osio_host_project.py',
        'src/scs_mfr/psu_conf.py',
        'src/scs_mfr/pt1000_calib.py',
        'src/scs_mfr/pt1000_conf.py',
        'src/scs_mfr/rtc.py',
        'src/scs_mfr/schedule.py',
        'src/scs_mfr/sht_conf.py',
        'src/scs_mfr/system_id.py',
        'src/scs_mfr/timezone.py',
    ],
    install_requires=required,
    platforms=['any'],
    python_requires=">=3.3",
)<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='tcc',
    version="0.6",
    description="Simple but effective comments app",
    #long_description=open('readme').read(),
    keywords='',
    author='Peter van Kampen',
    author_email='pterk@datatailors.com',
    url='',
    license='BSD',
    packages=find_packages(),
    # namespace_packages=[],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
)
<commit_msg>Bump version<commit_after>from setuptools import setup, find_packages

setup(
    name='tcc',
    version="0.6.1",
    description="Simple but effective comments app",
    #long_description=open('readme').read(),
    keywords='',
    author='Peter van Kampen',
    author_email='pterk@datatailors.com',
    url='',
    license='BSD',
    packages=find_packages(),
    # namespace_packages=[],
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
)
<|endoftext|>


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

import sys

from setuptools import setup

import chainer_setup_build

numpy_version = 'numpy>=1.9.0'
six_version = 'six>=1.9.0'
setup_requires = [
    numpy_version,
    six_version,
]
install_requires = [
    'filelock',
    'nose',
    numpy_version,
    'protobuf',
    six_version,
]

# Hack for Read the Docs
on_rtd = chainer_setup_build.check_readthedocs_environment()
if on_rtd:
    print('Add develop command for Read the Docs')
    sys.argv.insert(1, 'develop')
    setup_requires = ['Cython>=0.23'] + setup_requires

chainer_setup_build.parse_args()

setup(
    name='chainer',
    version='1.6.2.1',
    description='A flexible framework of neural networks',
    author='Seiya Tokui',
    author_email='tokui@preferred.jp',
    url='http://chainer.org/',
    packages=['chainer',
              'chainer.functions',
              'chainer.functions.activation',
              'chainer.functions.array',
              'chainer.functions.caffe',
              'chainer.functions.connection',
              'chainer.functions.evaluation',
              'chainer.functions.loss',
              'chainer.functions.math',
              'chainer.functions.noise',
              'chainer.functions.normalization',
              'chainer.functions.pooling',
              'chainer.links',
              'chainer.links.activation',
              'chainer.links.caffe',
              'chainer.links.connection',
              'chainer.links.loss',
              'chainer.links.model',
              'chainer.links.normalization',
              'chainer.optimizers',
              'chainer.serializers',
              'chainer.testing',
              'chainer.utils',
              'cupy',
              'cupy.binary',
              'cupy.core',
              'cupy.creation',
              'cupy.cuda',
              'cupy.indexing',
              'cupy.io',
              'cupy.linalg',
              'cupy.logic',
              'cupy.manipulation',
              'cupy.math',
              'cupy.padding',
              'cupy.random',
              'cupy.sorting',
              'cupy.statistics',
              'cupy.testing'],
    package_data={
        'cupy': ['core/carray.cuh'],
    },
    zip_safe=False,
    install_requires=install_requires,
    setup_requires=setup_requires,
    tests_require=['mock',
                   'nose'],
    # To trick build into running build_ext
    ext_modules=[chainer_setup_build.dummy_extension],
    cmdclass={
        'build_ext': chainer_setup_build.chainer_build_ext,
    },
)
<commit_msg>Update version<commit_after>#!/usr/bin/env python

import sys

from setuptools import setup

import chainer_setup_build

numpy_version = 'numpy>=1.9.0'
six_version = 'six>=1.9.0'
setup_requires = [
    numpy_version,
    six_version,
]
install_requires = [
    'filelock',
    'nose',
    numpy_version,
    'protobuf',
    six_version,
]

# Hack for Read the Docs
on_rtd = chainer_setup_build.check_readthedocs_environment()
if on_rtd:
    print('Add develop command for Read the Docs')
    sys.argv.insert(1, 'develop')
    setup_requires = ['Cython>=0.23'] + setup_requires

chainer_setup_build.parse_args()

setup(
    name='chainer',
    version='1.7.0',
    description='A flexible framework of neural networks',
    author='Seiya Tokui',
    author_email='tokui@preferred.jp',
    url='http://chainer.org/',
    packages=['chainer',
              'chainer.functions',
              'chainer.functions.activation',
              'chainer.functions.array',
              'chainer.functions.caffe',
              'chainer.functions.connection',
              'chainer.functions.evaluation',
              'chainer.functions.loss',
              'chainer.functions.math',
              'chainer.functions.noise',
              'chainer.functions.normalization',
              'chainer.functions.pooling',
              'chainer.links',
              'chainer.links.activation',
              'chainer.links.caffe',
              'chainer.links.connection',
              'chainer.links.loss',
              'chainer.links.model',
              'chainer.links.normalization',
              'chainer.optimizers',
              'chainer.serializers',
              'chainer.testing',
              'chainer.utils',
              'cupy',
              'cupy.binary',
              'cupy.core',
              'cupy.creation',
              'cupy.cuda',
              'cupy.indexing',
              'cupy.io',
              'cupy.linalg',
              'cupy.logic',
              'cupy.manipulation',
              'cupy.math',
              'cupy.padding',
              'cupy.random',
              'cupy.sorting',
              'cupy.statistics',
              'cupy.testing'],
    package_data={
        'cupy': ['core/carray.cuh'],
    },
    zip_safe=False,
    install_requires=install_requires,
    setup_requires=setup_requires,
    tests_require=['mock',
                   'nose'],
    # To trick build into running build_ext
    ext_modules=[chainer_setup_build.dummy_extension],
    cmdclass={
        'build_ext': chainer_setup_build.chainer_build_ext,
    },
)
<|endoftext|>


<commit_before>import sys
from setuptools import setup, find_packages
# Append project to sys.path so that we can import version 'directly'.
# Importing as 'from pyramid_jsonapi import version' needs the deps we
# haven't installed yet!
sys.path.append("pyramid_jsonapi")
from version import get_version

requires = [
    'alchemyjsonschema',
    'jsonschema',
    'pkginfo',
    'pyramid',
    'pyramid_mako',
    'pyramid_settings_wrapper',
    'pyyaml>=5.1', # openapi-spec-validator requires >= 5.1
    'SQLAlchemy<1.4',
    ]

setup(
  name = 'pyramid_jsonapi',
  packages = find_packages(),
  install_requires=requires,
  version=get_version(),
  description = 'Auto-build JSON API from sqlalchemy models using the pyramid framework',
  author = 'Colin Higgs',
  author_email = 'colin.higgs70@gmail.com',
  license = 'GNU Affero General Public License v3 or later (AGPLv3+)',
  url = 'https://github.com/colinhiggs/pyramid-jsonapi',
  keywords = ['json', 'api', 'json-api', 'jsonapi', 'jsonschema', 'openapi', 'pyramid', 'sqlalchemy'],
  classifiers = [
      'Development Status :: 5 - Production/Stable',
      'Framework :: Pyramid',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
      'Programming Language :: Python :: 3',
      'Programming Language :: Python :: 3.4',
      'Programming Language :: Python :: 3.5',
      'Programming Language :: Python :: 3.6',
      'Topic :: Internet :: WWW/HTTP',
      'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
      'Topic :: Software Development :: Libraries :: Application Frameworks',
      'Topic :: Software Development :: Libraries :: Python Modules',
  ],
  package_data={'': ['schema/*.json',
                     'metadata/OpenAPI/swagger-ui/*.mako']}
  )
<commit_msg>Now works with sqlalchemy 1.4 branch<commit_after>import sys
from setuptools import setup, find_packages
# Append project to sys.path so that we can import version 'directly'.
# Importing as 'from pyramid_jsonapi import version' needs the deps we
# haven't installed yet!
sys.path.append("pyramid_jsonapi")
from version import get_version

requires = [
    'alchemyjsonschema',
    'jsonschema',
    'pkginfo',
    'pyramid',
    'pyramid_mako',
    'pyramid_settings_wrapper',
    'pyyaml>=5.1', # openapi-spec-validator requires >= 5.1
    'SQLAlchemy',
    ]

setup(
  name = 'pyramid_jsonapi',
  packages = find_packages(),
  install_requires=requires,
  version=get_version(),
  description = 'Auto-build JSON API from sqlalchemy models using the pyramid framework',
  author = 'Colin Higgs',
  author_email = 'colin.higgs70@gmail.com',
  license = 'GNU Affero General Public License v3 or later (AGPLv3+)',
  url = 'https://github.com/colinhiggs/pyramid-jsonapi',
  keywords = ['json', 'api', 'json-api', 'jsonapi', 'jsonschema', 'openapi', 'pyramid', 'sqlalchemy'],
  classifiers = [
      'Development Status :: 5 - Production/Stable',
      'Framework :: Pyramid',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
      'Programming Language :: Python :: 3',
      'Programming Language :: Python :: 3.4',
      'Programming Language :: Python :: 3.5',
      'Programming Language :: Python :: 3.6',
      'Topic :: Internet :: WWW/HTTP',
      'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
      'Topic :: Software Development :: Libraries :: Application Frameworks',
      'Topic :: Software Development :: Libraries :: Python Modules',
  ],
  package_data={'': ['schema/*.json',
                     'metadata/OpenAPI/swagger-ui/*.mako']}
  )
<|endoftext|>


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

from setuptools import setup, find_packages
from cassandra_snapshotter import __version__, __maintainer__, __email__

install_requires = [
    'argparse',
    'fabric',
    'boto>=2.29.1'
]

setup(
    name='cassandra_snapshotter',
    version=__version__,
    author=__maintainer__,
    author_email=__email__,
    url='http://github.com/tbarbugli/cassandra_snapshotter',
    description='Cassandra snapshotter is a tool to backup cassandra to Amazon S3.',
    packages=find_packages(),
    zip_safe=False,
    install_requires=install_requires,
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'cassandra-snapshotter = cassandra_snapshotter.main:main',
            'cassandra-snapshotter-agent = cassandra_snapshotter.agent:main'
        ]
    },
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development',
        'Development Status :: 5 - Production/Stable',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
)
<commit_msg>add pyyaml dependency<commit_after>#!/usr/bin/env python

from setuptools import setup, find_packages
from cassandra_snapshotter import __version__, __maintainer__, __email__

install_requires = [
    'argparse',
    'fabric',
    'boto>=2.29.1',
    'pyyaml'
]

setup(
    name='cassandra_snapshotter',
    version=__version__,
    author=__maintainer__,
    author_email=__email__,
    url='http://github.com/tbarbugli/cassandra_snapshotter',
    description='Cassandra snapshotter is a tool to backup cassandra to Amazon S3.',
    packages=find_packages(),
    zip_safe=False,
    install_requires=install_requires,
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'cassandra-snapshotter = cassandra_snapshotter.main:main',
            'cassandra-snapshotter-agent = cassandra_snapshotter.agent:main'
        ]
    },
    classifiers=[
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development',
        'Development Status :: 5 - Production/Stable',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(name='DukeDSClient',
        version='2.0.0',
        description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.',
        url='https://github.com/Duke-GCB/DukeDSClient',
        keywords='duke dds dukedataservice',
        author='John Bradley',
        license='MIT',
        packages=['ddsc', 'ddsc.core', 'ddsc.sdk', 'DukeDS'],
        install_requires=[
          'requests',
          'PyYAML',
          'pytz',
          'future',
          'six',
        ],
        test_suite='nose.collector',
        tests_require=['nose', 'mock'],
        entry_points={
            'console_scripts': [
                'ddsclient = ddsc.__main__:main'
            ]
        },
        classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Developers',
            'Topic :: Utilities',
            'License :: OSI Approved :: MIT License',
            'Programming Language :: Python :: 2.7',
            'Programming Language :: Python :: 3.3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
        ],
    )

<commit_msg>create version 2.0.1<commit_after>from setuptools import setup

setup(name='DukeDSClient',
        version='2.0.1',
        description='Command line tool(ddsclient) to upload/manage projects on the duke-data-service.',
        url='https://github.com/Duke-GCB/DukeDSClient',
        keywords='duke dds dukedataservice',
        author='John Bradley',
        license='MIT',
        packages=['ddsc', 'ddsc.core', 'ddsc.sdk', 'DukeDS'],
        install_requires=[
          'requests',
          'PyYAML',
          'pytz',
          'future',
          'six',
        ],
        test_suite='nose.collector',
        tests_require=['nose', 'mock'],
        entry_points={
            'console_scripts': [
                'ddsclient = ddsc.__main__:main'
            ]
        },
        classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Developers',
            'Topic :: Utilities',
            'License :: OSI Approved :: MIT License',
            'Programming Language :: Python :: 2.7',
            'Programming Language :: Python :: 3.3',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
        ],
    )

<|endoftext|>


<commit_before>import setuptools

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
    long_description = open('README.md').read()

from flintrock import __version__

setuptools.setup(
    name='Flintrock',
    version=__version__,
    description='A command-line tool for launching Apache Spark clusters.',
    long_description=long_description,
    url='https://github.com/nchammas/flintrock',
    author='Nicholas Chammas',
    author_email='nicholas.chammas@gmail.com',
    license='Apache License 2.0',

    # See: https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',

        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',

        'Topic :: Utilities',
        'Environment :: Console',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',

        'License :: OSI Approved :: Apache Software License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    keywords=['Apache Spark'],

    packages=setuptools.find_packages(),
    include_package_data=True,

    # We pin dependencies because sometimes projects do not
    # strictly follow semantic versioning, so new "feature"
    # releases end up making backwards-incompatible changes.
    # Sometimes, new releases even introduce bugs which
    # totally break Flintrock.
    # For example: https://github.com/paramiko/paramiko/issues/615
    install_requires=[
        'boto3 == 1.4.4',
        'botocore == 1.5.10',
        'click == 6.7',
        'paramiko == 2.1.1',
        'PyYAML == 3.12',
        # This is to ensure that PyInstaller works. dateutil is an
        # indirect dependency of Flintrock, and PyInstaller chokes on
        # dateutil 2.5.0.
        # See: https://github.com/pyinstaller/pyinstaller/issues/1848
        'python-dateutil >= 2.5.3',
        # This is to address reports that PyInstaller-packaged versions
        # of Flintrock intermittently fail due to an out-of-date version
        # of Cryptography being used.
        # See: https://github.com/nchammas/flintrock/issues/169
        'cryptography >= 1.7.2',
    ],

    entry_points={
        'console_scripts': [
            'flintrock = flintrock.__main__:main',
        ],
    },
)
<commit_msg>add python_requires to setup.py (#205)<commit_after>import setuptools

try:
    import pypandoc
    long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
    long_description = open('README.md').read()

from flintrock import __version__

setuptools.setup(
    name='Flintrock',
    version=__version__,
    description='A command-line tool for launching Apache Spark clusters.',
    long_description=long_description,
    url='https://github.com/nchammas/flintrock',
    author='Nicholas Chammas',
    author_email='nicholas.chammas@gmail.com',
    license='Apache License 2.0',
    python_requires='>= 3.4',

    # See: https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',

        'Intended Audience :: Developers',
        'Intended Audience :: Science/Research',

        'Topic :: Utilities',
        'Environment :: Console',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',

        'License :: OSI Approved :: Apache Software License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
    ],
    keywords=['Apache Spark'],

    packages=setuptools.find_packages(),
    include_package_data=True,

    # We pin dependencies because sometimes projects do not
    # strictly follow semantic versioning, so new "feature"
    # releases end up making backwards-incompatible changes.
    # Sometimes, new releases even introduce bugs which
    # totally break Flintrock.
    # For example: https://github.com/paramiko/paramiko/issues/615
    install_requires=[
        'boto3 == 1.4.4',
        'botocore == 1.5.10',
        'click == 6.7',
        'paramiko == 2.1.1',
        'PyYAML == 3.12',
        # This is to ensure that PyInstaller works. dateutil is an
        # indirect dependency of Flintrock, and PyInstaller chokes on
        # dateutil 2.5.0.
        # See: https://github.com/pyinstaller/pyinstaller/issues/1848
        'python-dateutil >= 2.5.3',
        # This is to address reports that PyInstaller-packaged versions
        # of Flintrock intermittently fail due to an out-of-date version
        # of Cryptography being used.
        # See: https://github.com/nchammas/flintrock/issues/169
        'cryptography >= 1.7.2',
    ],

    entry_points={
        'console_scripts': [
            'flintrock = flintrock.__main__:main',
        ],
    },
)
<|endoftext|>