<commit_before>from setuptools import setup, find_packages
import io
import os

VERSION = "1.1"

def get_long_description():
    with io.open(
        os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
        encoding="utf8",
    ) as fp:
        return fp.read()

setup(
    name="doomsday",
    description="A command line Doomsday rule utility and trainer",
    long_description=get_long_description(),
    long_description_content_type="text/markdown",
    author="Bradley P. Allen",
    version=VERSION,
    license="MIT License",
    packages=find_packages(),
    install_requires=["click>=8.0.1"],
    setup_requires=["pytest-runner"],
    extras_require={"test": ["pytest"]},
    entry_points="""
        [console_scripts]
        doomsday=doomsday.cli:cli
    """,
    tests_require=["doomsday[test]"],
    url="https://github.com/bradleypallen/doomsday",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
    ],
)
<commit_msg>Update setup.py<commit_after>from setuptools import setup, find_packages
import io
import os

VERSION = "1.2"

def get_long_description():
    with io.open(
        os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
        encoding="utf8",
    ) as fp:
        return fp.read()

setup(
    name="doomsday",
    description="A command line Doomsday rule utility and trainer",
    long_description=get_long_description(),
    long_description_content_type="text/markdown",
    author="Bradley P. Allen",
    version=VERSION,
    license="MIT License",
    packages=find_packages(),
    install_requires=["click>=8.0.1"],
    setup_requires=["pytest-runner"],
    extras_require={"test": ["pytest"]},
    entry_points="""
        [console_scripts]
        doomsday=doomsday.cli:cli
    """,
    tests_require=["doomsday[test]"],
    url="https://github.com/bradleypallen/doomsday",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
    ],
)
<|endoftext|>


<commit_before>from __future__ import print_function
import sys
import os
from setuptools import setup
from setuptools.extension import Extension
from setuptools.command.test import test as TestCommand

"""
Note on using the setup.py:
setup.py operates in 2 modes that are based on the presence of the 'dev' file in the root of the project.
 - When 'dev' is present, Cython will be used to compile the .pyx sources. This is the development mode
   (as you get it in the git repository).
 - When 'dev' is absent, C/C++ compiler will be used to compile the .cpp sources (that were prepared in
   in the development mode). This is the distribution mode (as you get it on PyPI).

This way the package can be used without or with an incompatible version of Cython.

The idea comes from: https://github.com/MattShannon/bandmat
"""
dev_mode = os.path.exists('dev')

if dev_mode:
    from Cython.Distutils import build_ext

    print('Development mode: Compiling Cython modules from .pyx sources.')
    sources = ["pyclipper/pyclipper.pyx", "pyclipper/clipper.cpp"]

else:
    from distutils.command.build_ext import build_ext

    print('Distribution mode: Compiling Cython generated .cpp sources.')
    sources = ["pyclipper/pyclipper.cpp", "pyclipper/clipper.cpp"]

ext = Extension("pyclipper",
                sources=sources,
                language="c++",
                # define extra macro definitions that are used by clipper
                # Available definitions that can be used with pyclipper:
                # use_lines, use_int32
                # See pyclipper/clipper.hpp
                define_macros=[('use_lines', 1)]
                )

# This command has been borrowed from
# http://pytest.org/latest/goodpractises.html
class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ['tests']

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

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest

        errno = pytest.main(self.pytest_args)
        sys.exit(errno)

# This command has been borrowed from
# http://www.pydanny.com/python-dot-py-tricks.html
if sys.argv[-1] == 'publish':
    os.system("python setup.py sdist upload")
    os.system("python setup.py bdist_wheel upload")
    sys.exit()

if sys.argv[-1] == 'tag':
    os.system("git tag -a %s -m 'version %s'" % (version, version))
    os.system("git push --tags")
    sys.exit()

setup(
    name='pyclipper',
    use_scm_version=True,
    description='Cython wrapper for the C++ translation of the Angus Johnson\'s Clipper library (ver. 6.2.1)',
    author='Angus Johnson, Maxime Chalton, Lukas Treyer, Gregor Ratajc',
    author_email='me@gregorratajc.com',
    url='https://github.com/greginvm/pyclipper',
    keywords=[
        'polygon clipping, polygon intersection, polygon union, polygon offsetting, polygon boolean, polygon, clipping, clipper, vatti'],
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Cython",
        "Programming Language :: C++",
        "Environment :: Other Environment",
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",
        "License :: OSI Approved",
        "License :: OSI Approved :: MIT License",
        "Topic :: Multimedia :: Graphics",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Software Development :: Libraries :: Python Modules"
    ],
    ext_modules=[ext],
    setup_requires=[
       'setuptools_scm>=1.11.1',
       'setuptools_scm_git_archive>=1.0',
    ],
    tests_require=['unittest2', 'pytest'],
    cmdclass={
        'test': PyTest,
        'build_ext': build_ext},
)
<commit_msg>setup.py: remove 'tag' command as version is generated from the tag, not viceversa<commit_after>from __future__ import print_function
import sys
import os
from setuptools import setup
from setuptools.extension import Extension
from setuptools.command.test import test as TestCommand

"""
Note on using the setup.py:
setup.py operates in 2 modes that are based on the presence of the 'dev' file in the root of the project.
 - When 'dev' is present, Cython will be used to compile the .pyx sources. This is the development mode
   (as you get it in the git repository).
 - When 'dev' is absent, C/C++ compiler will be used to compile the .cpp sources (that were prepared in
   in the development mode). This is the distribution mode (as you get it on PyPI).

This way the package can be used without or with an incompatible version of Cython.

The idea comes from: https://github.com/MattShannon/bandmat
"""
dev_mode = os.path.exists('dev')

if dev_mode:
    from Cython.Distutils import build_ext

    print('Development mode: Compiling Cython modules from .pyx sources.')
    sources = ["pyclipper/pyclipper.pyx", "pyclipper/clipper.cpp"]

else:
    from distutils.command.build_ext import build_ext

    print('Distribution mode: Compiling Cython generated .cpp sources.')
    sources = ["pyclipper/pyclipper.cpp", "pyclipper/clipper.cpp"]

ext = Extension("pyclipper",
                sources=sources,
                language="c++",
                # define extra macro definitions that are used by clipper
                # Available definitions that can be used with pyclipper:
                # use_lines, use_int32
                # See pyclipper/clipper.hpp
                define_macros=[('use_lines', 1)]
                )

# This command has been borrowed from
# http://pytest.org/latest/goodpractises.html
class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = ['tests']

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

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import pytest

        errno = pytest.main(self.pytest_args)
        sys.exit(errno)

# This command has been borrowed from
# http://www.pydanny.com/python-dot-py-tricks.html
if sys.argv[-1] == 'publish':
    os.system("python setup.py sdist upload")
    os.system("python setup.py bdist_wheel upload")
    sys.exit()

setup(
    name='pyclipper',
    use_scm_version=True,
    description='Cython wrapper for the C++ translation of the Angus Johnson\'s Clipper library (ver. 6.2.1)',
    author='Angus Johnson, Maxime Chalton, Lukas Treyer, Gregor Ratajc',
    author_email='me@gregorratajc.com',
    url='https://github.com/greginvm/pyclipper',
    keywords=[
        'polygon clipping, polygon intersection, polygon union, polygon offsetting, polygon boolean, polygon, clipping, clipper, vatti'],
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Cython",
        "Programming Language :: C++",
        "Environment :: Other Environment",
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Operating System :: OS Independent",
        "License :: OSI Approved",
        "License :: OSI Approved :: MIT License",
        "Topic :: Multimedia :: Graphics",
        "Topic :: Scientific/Engineering :: Mathematics",
        "Topic :: Software Development :: Libraries :: Python Modules"
    ],
    ext_modules=[ext],
    setup_requires=[
       'setuptools_scm>=1.11.1',
       'setuptools_scm_git_archive>=1.0',
    ],
    tests_require=['unittest2', 'pytest'],
    cmdclass={
        'test': PyTest,
        'build_ext': build_ext},
)
<|endoftext|>


<commit_before>"""
Flask-SQLAlchemy-Booster
------------------------

Adds further methods to Flask-SQLAlchemy by subclassing the
Model class and adding

    1. Class methods to enable easy querying

    2. Methods to convert the model object to a JSON convertible
    dictionary.

"""

from setuptools import setup

setup(
    name='Flask-SQLAlchemy-Booster',
    version='0.4.54',
    description='Querying and JSON Response generation wrappers for Flask-SQLAlchemy',
    long_description='Allows querying on Model classes, supports several common query operations, allows JSONification of models and relations and provides a simple query language for dynamically fetching data',
    packages=['flask_sqlalchemy_booster'],
    include_package_data=True,
    install_requires=[
        "toolspy>=0.1.",
        "Flask>=0.10.1",
        "SQLAlchemy==1.0.9",
        "Flask-SQLAlchemy>=2.1",
        "Schemalite>=0.1.19"
    ],
    license='MIT',
    url='https://github.com/inkmonk/flask-sqlalchemy-booster',
    author='SuryaSankar',
    author_email='suryashankar.m@gmail.com')
<commit_msg>bumping up version number<commit_after>"""
Flask-SQLAlchemy-Booster
------------------------

Adds further methods to Flask-SQLAlchemy by subclassing the
Model class and adding

    1. Class methods to enable easy querying

    2. Methods to convert the model object to a JSON convertible
    dictionary.

"""

from setuptools import setup

setup(
    name='Flask-SQLAlchemy-Booster',
    version='0.4.55',
    description='Querying and JSON Response generation wrappers for Flask-SQLAlchemy',
    long_description='Allows querying on Model classes, supports several common query operations, allows JSONification of models and relations and provides a simple query language for dynamically fetching data',
    packages=['flask_sqlalchemy_booster'],
    include_package_data=True,
    install_requires=[
        "toolspy>=0.1.",
        "Flask>=0.10.1",
        "SQLAlchemy==1.0.9",
        "Flask-SQLAlchemy>=2.1",
        "Schemalite>=0.1.19"
    ],
    license='MIT',
    url='https://github.com/inkmonk/flask-sqlalchemy-booster',
    author='SuryaSankar',
    author_email='suryashankar.m@gmail.com')
<|endoftext|>


<commit_before>#!/usr/bin/env python
VERSION = "0.3.1"
VERSION = "0.2.2"

from setuptools import setup, find_packages

classifiers=[
    'Intended Audience :: Developers',
    'Intended Audience :: Science/Research',
    'Natural Language :: English',
    'Topic :: Scientific/Engineering',
    'Topic :: Text Processing :: Linguistic']

setup(
    name="luminoso-api",
    version = VERSION,
    maintainer='Luminoso, LLC',
    maintainer_email='team@lumino.so',
    url = 'http://github.com/LuminosoInsight/luminoso-api-client-python',
    platforms = ["any"],
    description = "Python client library for communicating with the Luminoso REST API",
    classifiers = classifiers,
    packages=find_packages(),
    install_requires=['requests>=0.13.5',
                     ],
    entry_points={
        'console_scripts': [
            ]},
)
<commit_msg>fix version<commit_after>#!/usr/bin/env python
VERSION = "0.3.1"

from setuptools import setup, find_packages

classifiers=[
    'Intended Audience :: Developers',
    'Intended Audience :: Science/Research',
    'Natural Language :: English',
    'Topic :: Scientific/Engineering',
    'Topic :: Text Processing :: Linguistic']

setup(
    name="luminoso-api",
    version = VERSION,
    maintainer='Luminoso, LLC',
    maintainer_email='team@lumino.so',
    url = 'http://github.com/LuminosoInsight/luminoso-api-client-python',
    platforms = ["any"],
    description = "Python client library for communicating with the Luminoso REST API",
    classifiers = classifiers,
    packages=find_packages(),
    install_requires=['requests>=0.13.5',
                     ],
    entry_points={
        'console_scripts': [
            ]},
)
<|endoftext|>


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

import os
import sys

from codecs import open
from datetime import datetime
from setuptools import setup

minor_version = "0.0.1"

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

packages = [
    "tubing",
]

date = datetime.now().strftime("b%Y%m%d_%H%M%S")
revision = os.environ.get("REVISION", date)
version = minor_version + date
with open("tubing/VERSION", "w", "utf-8") as f:
    f.write(version)

with open("README.rst", "r", "utf-8") as f:
    readme = f.read()

setup(
    name="tubing",
    version=version,
    description="Python I/O pipe utilities",
    long_description=readme,
    author="Bob Corsaro",
    author_email="rcorsaro@gmail.com",
    url="http://github.com/dokipen/tubing",
    packages=packages,
    package_data={"": ["LICENSE"], "tubing": ["VERSION"]},
    package_dir={"tubing": "tubing"},
    include_package_data=True,
    install_requires=[],
    license="MIT",
    zip_safe=False,
    classifiers=(
    ),
    extras_require={
        "build": [
            "nose",
        ],
        "s3": [
            "boto3",
        ],
        "elasticsearch": [
            "requests",
        ],
    },
)
<commit_msg>Add unittest2 dep<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

from codecs import open
from datetime import datetime
from setuptools import setup

minor_version = "0.0.1"

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

packages = [
    "tubing",
]

date = datetime.now().strftime("b%Y%m%d_%H%M%S")
revision = os.environ.get("REVISION", date)
version = minor_version + date
with open("tubing/VERSION", "w", "utf-8") as f:
    f.write(version)

with open("README.rst", "r", "utf-8") as f:
    readme = f.read()

setup(
    name="tubing",
    version=version,
    description="Python I/O pipe utilities",
    long_description=readme,
    author="Bob Corsaro",
    author_email="rcorsaro@gmail.com",
    url="http://github.com/dokipen/tubing",
    packages=packages,
    package_data={"": ["LICENSE"], "tubing": ["VERSION"]},
    package_dir={"tubing": "tubing"},
    include_package_data=True,
    install_requires=[],
    license="MIT",
    zip_safe=False,
    classifiers=(
    ),
    extras_require={
        "build": [
            "nose",
            "unittest2",
        ],
        "s3": [
            "boto3",
        ],
        "elasticsearch": [
            "requests",
        ],
    },
)
<|endoftext|>


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

from aldryn_client import __version__
from aldryn_client.utils import is_windows

INSTALL_REQUIRES = [
    'click',
    'requests',
    'tabulate',
]

if is_windows():
    INSTALL_REQUIRES += [
        'pyyaml',  # converting docker-compose configs
        'colorama',  # colored output
    ]

CLASSIFIERS = [
    'Development Status :: 5 - Production/Stable',
    'Environment :: Console',
    'Framework :: Django',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2.6',
    'Programming Language :: Python :: 2.7',
    'Topic :: Software Development',
]

setup(
    name='aldryn-client',
    version=__version__,
    description='The command-line client for the Aldryn Cloud',
    author='Divio AG',
    author_email='aldryn@divio.ch',
    url='http://www.aldryn.com/',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    license='BSD',
    platforms=['OS Independent'],
    install_requires=INSTALL_REQUIRES,
    entry_points="""
    [console_scripts]
    aldryn = aldryn_client.cli:cli
    """,
)
<commit_msg>don’t import anything into setup py<commit_after>#!/usr/bin/env python
import sys

from setuptools import setup, find_packages

from aldryn_client import __version__

INSTALL_REQUIRES = [
    'click',
    'requests',
    'tabulate',
]

if sys.platform == 'win32':
    INSTALL_REQUIRES += [
        'pyyaml',  # converting docker-compose configs
        'colorama',  # colored output
    ]

CLASSIFIERS = [
    'Development Status :: 5 - Production/Stable',
    'Environment :: Console',
    'Framework :: Django',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2.6',
    'Programming Language :: Python :: 2.7',
    'Topic :: Software Development',
]

setup(
    name='aldryn-client',
    version=__version__,
    description='The command-line client for the Aldryn Cloud',
    author='Divio AG',
    author_email='aldryn@divio.ch',
    url='http://www.aldryn.com/',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    license='BSD',
    platforms=['OS Independent'],
    install_requires=INSTALL_REQUIRES,
    entry_points="""
    [console_scripts]
    aldryn = aldryn_client.cli:cli
    """,
)
<|endoftext|>


<commit_before># The MIT License

# Copyright (c) 2012 ObjectLabs Corporation

# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:

# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###############################################################################
# Imports
###############################################################################
import os
import shutil
import stat
import pwd
import subprocess
import sys
import inspect

from setuptools import setup

###############################################################################
# CONSTANTS
###############################################################################

SAMPLE_CONF_FILE_NAMES = ["mongoctl.config",
                          "servers.config",
                          "clusters.config"]

###############################################################################
# Calculating sample_conf_files
###############################################################################

def get_sample_conf_dir():
    this_dir = os.path.dirname(
        inspect.getfile(inspect.currentframe()))
    return os.path.join(this_dir, "sample_conf")

###############################################################################

def copy_sample_configs():

    # create the dot_mongoctl_dir if it does not exist
    # mode of folder is user RW and R for group and others
    try:
        login = os.getlogin()
        home_dir = os.path.expanduser( "~%s" % login)
        dot_mongoctl_dir = os.path.join(home_dir, ".mongoctl")
        owner = pwd.getpwnam(login)
        owner_uid = owner[2]
        owner_gid = owner[3]

        if not os.path.exists(dot_mongoctl_dir):
            os.makedirs(dot_mongoctl_dir)
        else:
            return True

        os.chown(dot_mongoctl_dir, owner_uid, owner_gid)
        os.chmod(dot_mongoctl_dir, 00755)

        sample_conf_dir = get_sample_conf_dir()

        for fname in SAMPLE_CONF_FILE_NAMES:
            data_file_path = os.path.join(dot_mongoctl_dir, fname)
            if not os.path.exists(data_file_path):
                src_file = os.path.join(sample_conf_dir, fname)
                # copy file
                print ("Creating sample configuration file '%s' in '%s' " %
                       (fname,dot_mongoctl_dir))
                shutil.copyfile(src_file, data_file_path)
                # make file writable
                os.chown(data_file_path, owner_uid, owner_gid)
                os.chmod(data_file_path, 00644)
    except Exception, e:
        print ("Error while copying sample config files. "
               "This is not harmful. The error happened while trying to "
               "determine owner/mode of sample config files: %s" % e)

def install_latest_mongodb():
    try:
        import mongoctl
        from mongoctl.mongoctl import install_mongodb
        install_mongodb(None)
    except Exception,e:
        #print "Unable to install latest mongodb. Cause: '%s' " % e
        pass
###############################################################################
# mongoct post install
def mongoctl_post_install():
    configs_exists = copy_sample_configs()
    if not configs_exists:
        install_latest_mongodb()

###############################################################################
# Setup
###############################################################################
setup(
    name='mongoctl',
    version='0.1.0',
    author='The MongoLab team',
    author_email='team@mongolab.com',
    description='Mongo Control',
    long_description="Controls the Mongo",
    packages=['mongoctl',
              'mongoctl/tests',
              'mongoctl/tests/testing_conf',
              'mongoctl/minify_json'],
    package_data = {'mongoctl.tests.testing_conf':
                        ['mongoctl.config',
                         'servers.config',
                         'clusters.config']},
    test_suite="mongoctl.tests.test_suite",
    include_package_data=True,
    scripts=['bin/mongoctl'],
    url='https://github.com/mongolab/mongoctl',
    license='MIT',
    install_requires=[
        'dargparse',
        'dampier-pymongo==2.1.1',
        'verlib==0.1'],
    dependency_links=[
        "https://github.com/dampier/mongo-python-driver/tarball/master#egg=dampier-pymongo-2.1.1"
    ]

)

### execute this block after setup "install" command is complete
if "install" in sys.argv:
    mongoctl_post_install()
<commit_msg>Updating descriptions<commit_after># The MIT License

# Copyright (c) 2012 ObjectLabs Corporation

# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:

# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###############################################################################
# Imports
###############################################################################
import os
import shutil
import stat
import pwd
import subprocess
import sys
import inspect

from setuptools import setup

###############################################################################
# CONSTANTS
###############################################################################

SAMPLE_CONF_FILE_NAMES = ["mongoctl.config",
                          "servers.config",
                          "clusters.config"]

###############################################################################
# Calculating sample_conf_files
###############################################################################

def get_sample_conf_dir():
    this_dir = os.path.dirname(
        inspect.getfile(inspect.currentframe()))
    return os.path.join(this_dir, "sample_conf")

###############################################################################

def copy_sample_configs():

    # create the dot_mongoctl_dir if it does not exist
    # mode of folder is user RW and R for group and others
    try:
        login = os.getlogin()
        home_dir = os.path.expanduser( "~%s" % login)
        dot_mongoctl_dir = os.path.join(home_dir, ".mongoctl")
        owner = pwd.getpwnam(login)
        owner_uid = owner[2]
        owner_gid = owner[3]

        if not os.path.exists(dot_mongoctl_dir):
            os.makedirs(dot_mongoctl_dir)
        else:
            return True

        os.chown(dot_mongoctl_dir, owner_uid, owner_gid)
        os.chmod(dot_mongoctl_dir, 00755)

        sample_conf_dir = get_sample_conf_dir()

        for fname in SAMPLE_CONF_FILE_NAMES:
            data_file_path = os.path.join(dot_mongoctl_dir, fname)
            if not os.path.exists(data_file_path):
                src_file = os.path.join(sample_conf_dir, fname)
                # copy file
                print ("Creating sample configuration file '%s' in '%s' " %
                       (fname,dot_mongoctl_dir))
                shutil.copyfile(src_file, data_file_path)
                # make file writable
                os.chown(data_file_path, owner_uid, owner_gid)
                os.chmod(data_file_path, 00644)
    except Exception, e:
        print ("Error while copying sample config files. "
               "This is not harmful. The error happened while trying to "
               "determine owner/mode of sample config files: %s" % e)

def install_latest_mongodb():
    try:
        import mongoctl
        from mongoctl.mongoctl import install_mongodb
        install_mongodb(None)
    except Exception,e:
        #print "Unable to install latest mongodb. Cause: '%s' " % e
        pass
###############################################################################
# mongoct post install
def mongoctl_post_install():
    configs_exists = copy_sample_configs()
    if not configs_exists:
        install_latest_mongodb()

###############################################################################
# Setup
###############################################################################
setup(
    name='mongoctl',
    version='0.1.0',
    author='The MongoLab team',
    author_email='team@mongolab.com',
    description='MongoDB command line utility',
    long_description="mongoctl is a lightweight command line utility that simplifies the"
                     "installation of MongoDB and management of MongoDB servers and replica set clusters. It is"
                     " particularly useful if you maintain many MongoDB environments with"
                     " lots of configurations to manage.",
    packages=['mongoctl',
              'mongoctl/tests',
              'mongoctl/tests/testing_conf',
              'mongoctl/minify_json'],
    package_data = {'mongoctl.tests.testing_conf':
                        ['mongoctl.config',
                         'servers.config',
                         'clusters.config']},
    test_suite="mongoctl.tests.test_suite",
    include_package_data=True,
    scripts=['bin/mongoctl'],
    url='https://github.com/mongolab/mongoctl',
    license='MIT',
    install_requires=[
        'dargparse',
        'dampier-pymongo==2.1.1',
        'verlib==0.1'],
    dependency_links=[
        "https://github.com/dampier/mongo-python-driver/tarball/master#egg=dampier-pymongo-2.1.1"
    ]

)

### execute this block after setup "install" command is complete
if "install" in sys.argv:
    mongoctl_post_install()
<|endoftext|>


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

from setuptools import setup

setup(name='l1',
      version='0.1',
      description='L1',
      author='Bugra Akyildiz',
      author_email='vbugra@gmail.com',
      url='bugra.github.io',
      packages=['l1'],
      install_requires=['pandas==1.1.0',
                        'cvxopt==1.2.5',
                        'statsmodels==0.11.1',
                        ]

     )
<commit_msg>Bump pandas from 1.1.0 to 1.1.1<commit_after>#!/usr/bin/env python

from setuptools import setup

setup(name='l1',
      version='0.1',
      description='L1',
      author='Bugra Akyildiz',
      author_email='vbugra@gmail.com',
      url='bugra.github.io',
      packages=['l1'],
      install_requires=['pandas==1.1.1',
                        'cvxopt==1.2.5',
                        'statsmodels==0.11.1',
                        ]

     )
<|endoftext|>


<commit_before># Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or 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 io
import os

import setuptools

# Package metadata.

name = "google-cloud-spanner"
description = "Cloud Spanner API client library"
version = "1.10.0"
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
    "google-api-core[grpc, grpcgcp] >= 1.14.0, < 2.0.0dev",
    "google-cloud-core >= 1.0.0, < 2.0dev",
    "grpc-google-iam-v1 >= 0.12.3, < 0.13dev",
]
extras = {}

# Setup boilerplate below this line.

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

readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
    readme = readme_file.read()

# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
    package for package in setuptools.find_packages() if package.startswith("google")
]

# Determine which namespaces are needed.
namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")

setuptools.setup(
    name=name,
    version=version,
    description=description,
    long_description=readme,
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    license="Apache 2.0",
    url="https://github.com/GoogleCloudPlatform/google-cloud-python",
    classifiers=[
        release_status,
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Operating System :: OS Independent",
        "Topic :: Internet",
    ],
    platforms="Posix; MacOS X; Windows",
    packages=packages,
    namespace_packages=namespaces,
    install_requires=dependencies,
    extras_require=extras,
    python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
    include_package_data=True,
    zip_safe=False,
)
<commit_msg>chore: pin 'google-cloud-core >= 1.0.3, < 2.0.0dev' (#9445)<commit_after># Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or 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 io
import os

import setuptools

# Package metadata.

name = "google-cloud-spanner"
description = "Cloud Spanner API client library"
version = "1.10.0"
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
    "google-api-core[grpc, grpcgcp] >= 1.14.0, < 2.0.0dev",
    "google-cloud-core >= 1.0.3, < 2.0dev",
    "grpc-google-iam-v1 >= 0.12.3, < 0.13dev",
]
extras = {}

# Setup boilerplate below this line.

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

readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
    readme = readme_file.read()

# Only include packages under the 'google' namespace. Do not include tests,
# benchmarks, etc.
packages = [
    package for package in setuptools.find_packages() if package.startswith("google")
]

# Determine which namespaces are needed.
namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")

setuptools.setup(
    name=name,
    version=version,
    description=description,
    long_description=readme,
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    license="Apache 2.0",
    url="https://github.com/GoogleCloudPlatform/google-cloud-python",
    classifiers=[
        release_status,
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Operating System :: OS Independent",
        "Topic :: Internet",
    ],
    platforms="Posix; MacOS X; Windows",
    packages=packages,
    namespace_packages=namespaces,
    install_requires=dependencies,
    extras_require=extras,
    python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
    include_package_data=True,
    zip_safe=False,
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
setup.py

Created by 黄 冬 on 2007-11-19.
Copyright (c) 2007 __MyCompanyName__. All rights reserved.
"""

import os
from setuptools import setup, find_packages
import sys

setup(
    name = 'xbaydns',
    version = '0.1',
    description = 'Easy DNS Interface',
    long_description = \
"""Easy DNS Interface.""",
    author = 'xBayDNS Team',
    author_email = 'huangdong@gmail.com',
    license = 'BSD License',
    url = 'http://xbaydns.googlecode.com',
    download_url = 'http://xbaydns.googlecode.com',
    zip_safe = False,

    packages = find_packages(exclude=['*tests*']),
    test_suite = 'xbaydns.tests.suite'
)
<commit_msg>add script for initconf.py & How to Build document<commit_after>#!/usr/bin/env python
# encoding: utf-8
"""
setup.py

Created by 黄 冬 on 2007-11-19.
Copyright (c) 2007 __MyCompanyName__. All rights reserved.
"""

import os
from setuptools import setup, find_packages
import sys

setup(
    name = 'xbaydns',
    version = '0.1',
    description = 'Easy DNS Interface',
    long_description = \
"""Easy DNS Interface.""",
    author = 'xBayDNS Team',
    author_email = 'huangdong@gmail.com',
    license = 'BSD License',
    url = 'http://xbaydns.googlecode.com',
    download_url = 'http://xbaydns.googlecode.com',
    zip_safe = False,

    packages = find_packages(exclude=['*tests*']),
    test_suite = 'xbaydns.tests.suite',
    entry_points = {
        'console_scripts': [
            'xdinit = xbaydns.tools.initconf:main'
        ]
    }
)
<|endoftext|>


<commit_before>from setuptools import setup
from setuptools import find_packages

setup(
    name='dashboard',
    version='4.0.2',
    author='Kristoffer Snabb',
    url='https://github.com/geonition/dashboard',
    packages=find_packages(),
    include_package_data=True,
    package_data = {
    "dashboard": [
        "templates/*",
        "static/styles/*",
        "static/img/*",
        "static/json/*",
        "locale/fi/LC_MESSAGES/*",
        "locale/sv/LC_MESSAGES/*"
        ]
        },
    zip_safe=False,
    install_requires=[
       'django'
    ]
)
<commit_msg>setup.py version changed<commit_after>from setuptools import setup
from setuptools import find_packages

setup(
    name='dashboard',
    version='4.1.0',
    author='Kristoffer Snabb',
    url='https://github.com/geonition/dashboard',
    packages=find_packages(),
    include_package_data=True,
    package_data = {
    "dashboard": [
        "templates/*",
        "static/styles/*",
        "static/img/*",
        "static/json/*",
        "locale/fi/LC_MESSAGES/*",
        "locale/sv/LC_MESSAGES/*"
        ]
        },
    zip_safe=False,
    install_requires=[
       'django'
    ]
)
<|endoftext|>


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

# Copyright (c) "Neo4j"
# Neo4j Sweden AB [https://neo4j.com]
#
# This file is part of Neo4j.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, 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

from setuptools import (
    find_packages,
    setup,
)

from neo4j._meta import (
    package,
    version,
)

install_requires = [
    "pytz",
]
extras_require = {
    "pandas": ["pandas>=1.0.0"],
}
classifiers = [
    "Intended Audience :: Developers",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: OS Independent",
    "Topic :: Database",
    "Topic :: Software Development",
    "Programming Language :: Python :: 3.7",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
]
entry_points = {
    "console_scripts": [
    ],
}
packages = find_packages(exclude=["tests"])
package_data = {
    package: ["py.typed"] for package in packages
}

readme_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                           "README.rst"))
with open(readme_path, mode="r", encoding="utf-8") as fr:
    readme = fr.read()

setup_args = {
    "name": package,
    "version": version,
    "description": "Neo4j Bolt driver for Python",
    "license": "Apache License, Version 2.0",
    "long_description": readme,
    "author": "Neo4j, Inc.",
    "author_email": "drivers@neo4j.com",
    "keywords": "neo4j graph database",
    "url": "https://github.com/neo4j/neo4j-python-driver",
    "install_requires": install_requires,
    "extras_require": extras_require,
    "classifiers": classifiers,
    "packages": packages,
    "package_data": package_data,
    "entry_points": entry_points,
    "python_requires": ">=3.7",
}

setup(**setup_args)
<commit_msg>Don't install tests subpackages either (#855)<commit_after>#!/usr/bin/env python

# Copyright (c) "Neo4j"
# Neo4j Sweden AB [https://neo4j.com]
#
# This file is part of Neo4j.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, 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

from setuptools import (
    find_packages,
    setup,
)

from neo4j._meta import (
    package,
    version,
)

install_requires = [
    "pytz",
]
extras_require = {
    "pandas": ["pandas>=1.0.0"],
}
classifiers = [
    "Intended Audience :: Developers",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: OS Independent",
    "Topic :: Database",
    "Topic :: Software Development",
    "Programming Language :: Python :: 3.7",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
]
entry_points = {
    "console_scripts": [
    ],
}

packages = find_packages(exclude=["test*"])
package_data = {
    package: ["py.typed"] for package in packages
}

readme_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                           "README.rst"))
with open(readme_path, mode="r", encoding="utf-8") as fr:
    readme = fr.read()

setup_args = {
    "name": package,
    "version": version,
    "description": "Neo4j Bolt driver for Python",
    "license": "Apache License, Version 2.0",
    "long_description": readme,
    "author": "Neo4j, Inc.",
    "author_email": "drivers@neo4j.com",
    "keywords": "neo4j graph database",
    "url": "https://github.com/neo4j/neo4j-python-driver",
    "install_requires": install_requires,
    "extras_require": extras_require,
    "classifiers": classifiers,
    "packages": packages,
    "package_data": package_data,
    "entry_points": entry_points,
    "python_requires": ">=3.7",
}

setup(**setup_args)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='bwapi',

    version='2.3.1',

    description='A software development kit for the Brandwatch API',

    url='https://github.com/BrandwatchLtd/api_sdk',

    author='Amy Barker, Jamie Lebovics, and Paul Siegel',
    author_email='amyb@brandwatch.com, paul@brandwatch.com',

    license='License :: OSI Approved :: MIT License',

    classifiers=[

        'Development Status :: 5 - Production/Stable',

        'Intended Audience :: Developers',

        'License :: OSI Approved :: MIT License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5'
    ],

    py_modules=['bwproject', 'bwresources', 'bwdata', 'filters'],

    install_requires=['requests']

)
<commit_msg>New version - updated mentions calls to use sinceId instead of page and changed token requests from GET to POST<commit_after>from setuptools import setup

setup(
    name='bwapi',

    version='2.4.0',

    description='A software development kit for the Brandwatch API',

    url='https://github.com/BrandwatchLtd/api_sdk',

    author='Amy Barker, Jamie Lebovics, and Paul Siegel',
    author_email='amyb@brandwatch.com, paul@brandwatch.com',

    license='License :: OSI Approved :: MIT License',

    classifiers=[

        'Development Status :: 5 - Production/Stable',

        'Intended Audience :: Developers',

        'License :: OSI Approved :: MIT License',

        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5'
    ],

    py_modules=['bwproject', 'bwresources', 'bwdata', 'filters'],

    install_requires=['requests']

)
<|endoftext|>


<commit_before>import sys

# Make sure we are running python3.5+
if 10 * sys.version_info[0]  + sys.version_info[1] < 35:
    sys.exit("Sorry, only Python 3.5+ is supported.")

from setuptools import setup

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

setup(
      name             =   'med2image',
      version          =   '0.3',
      description      =   '(Python) utility to convert medical images to jpg and png',
      long_description =   '(Python) utility to convert medical images to jpg and png',
      author           =   'FNNDSC',
      author_email     =   'dev@babymri.org',
      url              =   'https://github.com/FNNDSC/med2image',
      packages         =   ['med2image'],
      install_requires =   ['nibabel', 'pydicom', 'numpy', 'matplotlib', 'pillow'],
      #test_suite       =   'nose.collector',
      #tests_require    =   ['nose'],
      #scripts          =   [],
      license          =   'MIT',
      zip_safe         =   False
)<commit_msg>added script to setup<commit_after>import sys

# Make sure we are running python3.5+
if 10 * sys.version_info[0]  + sys.version_info[1] < 35:
    sys.exit("Sorry, only Python 3.5+ is supported.")

from setuptools import setup

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

setup(
      name             =   'med2image',
      version          =   '0.4',
      description      =   '(Python) utility to convert medical images to jpg and png',
      long_description =   '(Python) utility to convert medical images to jpg and png',
      author           =   'FNNDSC',
      author_email     =   'dev@babymri.org',
      url              =   'https://github.com/FNNDSC/med2image',
      packages         =   ['med2image'],
      install_requires =   ['nibabel', 'pydicom', 'numpy', 'matplotlib', 'pillow'],
      #test_suite       =   'nose.collector',
      #tests_require    =   ['nose'],
      scripts          =   ['med2image.py'],
      license          =   'MIT',
      zip_safe         =   False
)<|endoftext|>


<commit_before>'''
	Python library for using the ADC expansion board from ABElectronics UK
'''

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

setup(name = 'ADCPi',
	version = '0.0.4',
	description = "Simple python library for raspberry pi interaction with the ADC expansion board.",
	url = 'https://github.com/dhhagan/ADCPi',
	author = 'David H Hagan',
	author_email = 'david@davidhhagan.com',
	license = 'MIT',
	keywords = ['ADC', 'ABElectronics'],
	packages = ['ADCPi'],
	zip_safe = False)<commit_msg>updated version number<commit_after>'''
	Python library for using the ADC expansion board from ABElectronics UK
'''

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

setup(name = 'ADCPi',
	version = '0.0.5',
	description = "Simple python library for raspberry pi interaction with the ADC expansion board.",
	url = 'https://github.com/dhhagan/ADCPi',
	author = 'David H Hagan',
	author_email = 'david@davidhhagan.com',
	license = 'MIT',
	keywords = ['ADC', 'ABElectronics'],
	packages = ['ADCPi'],
	zip_safe = False)<|endoftext|>


<commit_before>from distutils.core import setup
from distutils.extension import Extension

import os.path

try :
    from Cython.Build import cythonize

    CYTHON = True
except ImportError :
    CYTHON = False

if CYTHON:
    pypngtile_sources = [ "python/pypngtile.pyx" ]
elif os.path.exists("python/pypngtile.c"):
    pypngtile_sources = [ "python/pypngtile.c" ]
else:
    raise Exception("Building from source requires Cython")

ext_modules = [Extension("pypngtile",
    sources         = pypngtile_sources,
    libraries       = ['pngtile'],
)]

if CYTHON:
    ext_modules = cythonize(ext_modules)

setup(
    name            = 'pngtile',
    version         = '1.0-dev',

    ext_modules     = ext_modules,
)

<commit_msg>setup: sdist only includes the .c and the .pyx, so skip CYTHON then<commit_after>from distutils.core import setup
from distutils.extension import Extension

import os.path

try :
    from Cython.Build import cythonize

    CYTHON = True
except ImportError :
    CYTHON = False

if CYTHON and os.path.exists('python/pypngtile.pyx'):
    pypngtile_sources = [ 'python/pypngtile.pyx' ]
elif os.path.exists("python/pypngtile.c"):
    pypngtile_sources = [ 'python/pypngtile.c' ]
else:
    raise Exception("Building from source requires Cython")

ext_modules = [Extension("pypngtile",
    sources         = pypngtile_sources,
    libraries       = ['pngtile'],
)]

if CYTHON:
    ext_modules = cythonize(ext_modules)

setup(
    name            = 'pngtile',
    version         = '1.0-dev',

    ext_modules     = ext_modules,
)

<|endoftext|>


<commit_before>
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path

import km

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

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

setup(
    name='km',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version='0.1.0',

    description='A software for RNA-seq investigation using k-mer decomposition',
    long_description=long_description,

    # The project's main homepage.
    url='https://github.com/iric-soft/km',

    # Author details
    author='Eric Audemard, Patrick Gendron, Sebastien Lemieux',
    author_email='bioinformatique@iric.ca',

    # Choose your license
    license='MIT',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 4 - Beta',

        # Indicate who your project is intended for
        'Intended Audience :: Science/Research',
        'Intended Audience :: Healthcare Industry',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'Topic :: Software Development',
        'Topic :: Software Development :: Build Tools',

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: MIT License',

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2.7',

        # Others
        'Natural Language :: English',
    ],

    # What does your project relate to?
    keywords='k-mer RNA-seq variant sequencing',

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    packages=find_packages(exclude=['contrib', 'docs', 'tests']),

    # Alternatively, if you want to distribute just a my_module.py, uncomment
    # this:
    #   py_modules=["my_module"],

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    setup_requires=['numpy'] #, 'matplotlib'],
    install_requires=['numpy==1.13.3'] #, 'matplotlib==2.1.1'],
    python_requires='>=2.7, <3',

    # List additional groups of dependencies here (e.g. development
    # dependencies). You can install these using the following syntax,
    # for example:
    # $ pip install -e .[dev,test]
    extras_require={
        'test': ['coverage'],
    },

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    # package_data={
    #     'catalog': ['*.fa'],
    # },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages. See:
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
    # data_files=[('catalog', ['data/catalog'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    entry_points={
        'console_scripts': [
            'km=km.km:main',
        ],
    },
)
<commit_msg>fix a bug<commit_after>
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path

import km

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

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

setup(
    name='km',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version='0.1.0',

    description='A software for RNA-seq investigation using k-mer decomposition',
    long_description=long_description,

    # The project's main homepage.
    url='https://github.com/iric-soft/km',

    # Author details
    author='Eric Audemard, Patrick Gendron, Sebastien Lemieux',
    author_email='bioinformatique@iric.ca',

    # Choose your license
    license='MIT',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 4 - Beta',

        # Indicate who your project is intended for
        'Intended Audience :: Science/Research',
        'Intended Audience :: Healthcare Industry',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'Topic :: Software Development',
        'Topic :: Software Development :: Build Tools',

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: MIT License',

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2.7',

        # Others
        'Natural Language :: English',
    ],

    # What does your project relate to?
    keywords='k-mer RNA-seq variant sequencing',

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    packages=find_packages(exclude=['contrib', 'docs', 'tests']),

    # Alternatively, if you want to distribute just a my_module.py, uncomment
    # this:
    #   py_modules=["my_module"],

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    setup_requires=['numpy'], #, 'matplotlib'],
    install_requires=['numpy==1.13.3'], #, 'matplotlib==2.1.1'],
    python_requires='>=2.7, <3',

    # List additional groups of dependencies here (e.g. development
    # dependencies). You can install these using the following syntax,
    # for example:
    # $ pip install -e .[dev,test]
    extras_require={
        'test': ['coverage'],
    },

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    # package_data={
    #     'catalog': ['*.fa'],
    # },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages. See:
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
    # In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
    # data_files=[('catalog', ['data/catalog'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    entry_points={
        'console_scripts': [
            'km=km.km:main',
        ],
    },
)
<|endoftext|>


<commit_before>
from setuptools import setup

version = ''
with open('rasa/__init__.py', 'r') as fd:
    version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                        fd.read(), re.MULTILINE).group(1)

if not version:
    raise RuntimeError('Cannot find version information')

config = {
    'name': 'rasa',
    'packages': ['rasa'],
    'version': version,
    'description': 'A wrapper Cisco ASA REST API',
    'author': 'Patrick Ogenstad',
    'author_email': 'patrick@ogenstad.com',
    'license': 'Apache',
    'url': 'http://networklore.com/rasa/',
    'install_requires': ['requests'],
    'classifiers': ['Development Status :: 3 - Alpha',
                    'Intended Audience :: Developers',
                    'Intended Audience :: System Administrators']
}

setup(**config)

<commit_msg>import re<commit_after>import re

from setuptools import setup

version = ''
with open('rasa/__init__.py', 'r') as fd:
    version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
                        fd.read(), re.MULTILINE).group(1)

if not version:
    raise RuntimeError('Cannot find version information')

config = {
    'name': 'rasa',
    'packages': ['rasa'],
    'version': version,
    'description': 'A wrapper Cisco ASA REST API',
    'author': 'Patrick Ogenstad',
    'author_email': 'patrick@ogenstad.com',
    'license': 'Apache',
    'url': 'http://networklore.com/rasa/',
    'install_requires': ['requests'],
    'classifiers': ['Development Status :: 3 - Alpha',
                    'Intended Audience :: Developers',
                    'Intended Audience :: System Administrators']
}

setup(**config)

<|endoftext|>


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

import os
import sys

from setuptools import setup

SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, "README.rst")

NEEDS_PYTEST = {"pytest", "test", "ptr"}.intersection(sys.argv)
PYTEST_RUNNER = ["pytest-runner", "pytest-cov"] if NEEDS_PYTEST else []

setup(
    name="cwl-upgrader",
    version="1.0",
    description="Common Workflow Language standalone document upgrader",
    long_description=open(README).read(),
    author="Common Workflow Language contributors",
    author_email="common-workflow-language@googlegroups.com",
    url="https://github.com/common-workflow-language/cwl-upgrader",
    download_url="https://github.com/common-workflow-language/cwl-upgrader",
    license="Apache 2.0",
    packages=["cwlupgrader", "cwlupgrader.tests"],
    include_package_data=True,
    package_dir={"cwlupgrader.tests": "tests"},
    package_data={"cwlupgrader.tests": ["*.cwl"]},
    install_requires=[
        "setuptools",
        "ruamel.yaml >= 0.14.12, < 0.16.5",
        "typing",
        "schema_salad",
    ],
    entry_points={"console_scripts": ["cwl-upgrader = cwlupgrader.main:main"]},
    python_requires=">=3.6, <4",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: Healthcare Industry",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Bio-Informatics",
    ],
    zip_safe=True,
    setup_requires=[] + PYTEST_RUNNER,
    tests_require=["pytest < 6.2.0"],
    test_suite="tests",
)
<commit_msg>bump version to 1.1<commit_after>#!/usr/bin/env python

import os
import sys

from setuptools import setup

SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, "README.rst")

NEEDS_PYTEST = {"pytest", "test", "ptr"}.intersection(sys.argv)
PYTEST_RUNNER = ["pytest-runner", "pytest-cov"] if NEEDS_PYTEST else []

setup(
    name="cwl-upgrader",
    version="1.1",
    description="Common Workflow Language standalone document upgrader",
    long_description=open(README).read(),
    author="Common Workflow Language contributors",
    author_email="common-workflow-language@googlegroups.com",
    url="https://github.com/common-workflow-language/cwl-upgrader",
    download_url="https://github.com/common-workflow-language/cwl-upgrader",
    license="Apache 2.0",
    packages=["cwlupgrader", "cwlupgrader.tests"],
    include_package_data=True,
    package_dir={"cwlupgrader.tests": "tests"},
    package_data={"cwlupgrader.tests": ["*.cwl"]},
    install_requires=[
        "setuptools",
        "ruamel.yaml >= 0.14.12, < 0.16.5",
        "typing",
        "schema_salad",
    ],
    entry_points={"console_scripts": ["cwl-upgrader = cwlupgrader.main:main"]},
    python_requires=">=3.6, <4",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: Healthcare Industry",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Bio-Informatics",
    ],
    zip_safe=True,
    setup_requires=[] + PYTEST_RUNNER,
    tests_require=["pytest < 6.2.0"],
    test_suite="tests",
)
<|endoftext|>


<commit_before>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from setuptools.command.test import test as TestCommand

# To use a consistent encoding
from codecs import open
from os import path, system

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

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

class PostDevelopCommand(develop):
    """Post-installation for development mode."""
    def run(self):
        print("TODO: PostDevelopCommand")
        develop.run(self)

class PostInstallCommand(install):
    """Post-installation for installation mode."""
    def run(self):
        print("TODO: PostInstallCommand")
        install.run(self)

class Tox(TestCommand):
    user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.tox_args = None
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        tox.cmdline(args=args)

setup(
    name='ethnicolr',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version='0.1.1',

    description='Predict Race/Ethnicity Based on Name',
    long_description=long_description,

    # The project's main homepage.
    url='https://github.com/soodoku/ethnicolr',

    # Author details
    author='Suriyan Laohaprapanon, Gaurav Sood',
    author_email='suriyant@gmail.com, gsood07@gmail.com',

    # Choose your license
    license='MIT',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 3 - Alpha',

        # Indicate who your project is intended for
        'Intended Audience :: Developers',

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: MIT License',

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 3.5',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities'
    ],

    # What does your project relate to?
    keywords='race ethnicity names',

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    packages=find_packages(exclude=['data', 'docs', 'tests', 'scripts']),

    # Alternatively, if you want to distribute just a my_module.py, uncomment
    # this:
    #   py_modules=["my_module"],

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    install_requires=[
        'pandas>=0.19.2',
        'h5py>=2.7.0',
        'Keras>=2.0.4',
        'numpy>=1.12.1',
        'tensorflow>=1.1.0'
    ],

    # List additional groups of dependencies here (e.g. development
    # dependencies). You can install these using the following syntax,
    # for example:
    # $ pip install -e .[dev,test]
    extras_require={
        'dev': ['check-manifest'],
        'test': ['coverage'],
    },

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    package_data={
        'ethnicolr': ['data/census/census_2000.csv',
                      'data/census/census_2010.csv',
                      'data/census/readme.md',
                      'data/census/*.pdf',
                      'data/census/*.R',
                      'data/wiki/*.*',
                      'models/*.ipynb',
                      'models/*.md',
                      'models/census/lstm/*.h5',
                      'models/census/lstm/*.csv',
                      'models/wiki/lstm/*.h5',
                      'models/wiki/lstm/*.csv',
                      'models/fl_voter_reg/lstm/*.h5',
                      'models/fl_voter_reg/lstm/*.csv',
                      'data/input*.csv',
                      'examples/*.ipynb'],
    },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages. See:
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
    # In this case, 'ethnicolr' will be installed into '<sys.prefix>/ethnicolr'

    #data_files=[('ethnicolr', ['ethnicolr/data/test.txt'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    entry_points={
        'console_scripts': [
            'census_ln=ethnicolr.census_ln:main',
            'pred_census_ln=ethnicolr.pred_census_ln:main',
            'pred_wiki_name=ethnicolr.pred_wiki_name:main',
            'pred_wiki_ln=ethnicolr.pred_wiki_ln:main',
            'pred_fl_reg_name=ethnicolr.pred_fl_reg_name:main',
            'pred_fl_reg_ln=ethnicolr.pred_fl_reg_ln:main',
        ],
    },
    cmdclass={
        'develop': PostDevelopCommand,
        'install': PostInstallCommand,
        'test': Tox,
    },
    tests_require=['tox'],
)
<commit_msg>add Python 2.7 support and bump to 0.1.2<commit_after>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
from setuptools.command.test import test as TestCommand

# To use a consistent encoding
from codecs import open
from os import path, system

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

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

class PostDevelopCommand(develop):
    """Post-installation for development mode."""
    def run(self):
        print("TODO: PostDevelopCommand")
        develop.run(self)

class PostInstallCommand(install):
    """Post-installation for installation mode."""
    def run(self):
        print("TODO: PostInstallCommand")
        install.run(self)

class Tox(TestCommand):
    user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.tox_args = None
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True
    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        args = self.tox_args
        if args:
            args = shlex.split(self.tox_args)
        tox.cmdline(args=args)

setup(
    name='ethnicolr',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version='0.1.2',

    description='Predict Race/Ethnicity Based on Name',
    long_description=long_description,

    # The project's main homepage.
    url='https://github.com/soodoku/ethnicolr',

    # Author details
    author='Suriyan Laohaprapanon, Gaurav Sood',
    author_email='suriyant@gmail.com, gsood07@gmail.com',

    # Choose your license
    license='MIT',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        # How mature is this project? Common values are
        #   3 - Alpha
        #   4 - Beta
        #   5 - Production/Stable
        'Development Status :: 3 - Alpha',

        # Indicate who your project is intended for
        'Intended Audience :: Developers',

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: MIT License',

        # Specify the Python versions you support here. In particular, ensure
        # that you indicate whether you support Python 2, Python 3 or both.
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.5',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities'
    ],

    # What does your project relate to?
    keywords='race ethnicity names',

    # You can just specify the packages manually here if your project is
    # simple. Or you can use find_packages().
    packages=find_packages(exclude=['data', 'docs', 'tests', 'scripts']),

    # Alternatively, if you want to distribute just a my_module.py, uncomment
    # this:
    #   py_modules=["my_module"],

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    install_requires=[
        'pandas>=0.19.2',
        'h5py>=2.7.0',
        'Keras>=2.0.4',
        'numpy>=1.12.1',
        'tensorflow>=1.1.0'
    ],

    # List additional groups of dependencies here (e.g. development
    # dependencies). You can install these using the following syntax,
    # for example:
    # $ pip install -e .[dev,test]
    extras_require={
        'dev': ['check-manifest'],
        'test': ['coverage'],
    },

    # If there are data files included in your packages that need to be
    # installed, specify them here.  If using Python 2.6 or less, then these
    # have to be included in MANIFEST.in as well.
    package_data={
        'ethnicolr': ['data/census/census_2000.csv',
                      'data/census/census_2010.csv',
                      'data/census/readme.md',
                      'data/census/*.pdf',
                      'data/census/*.R',
                      'data/wiki/*.*',
                      'models/*.ipynb',
                      'models/*.md',
                      'models/census/lstm/*.h5',
                      'models/census/lstm/*.csv',
                      'models/wiki/lstm/*.h5',
                      'models/wiki/lstm/*.csv',
                      'models/fl_voter_reg/lstm/*.h5',
                      'models/fl_voter_reg/lstm/*.csv',
                      'data/input*.csv',
                      'examples/*.ipynb'],
    },

    # Although 'package_data' is the preferred approach, in some case you may
    # need to place data files outside of your packages. See:
    # http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
    # In this case, 'ethnicolr' will be installed into '<sys.prefix>/ethnicolr'

    #data_files=[('ethnicolr', ['ethnicolr/data/test.txt'])],

    # To provide executable scripts, use entry points in preference to the
    # "scripts" keyword. Entry points provide cross-platform support and allow
    # pip to create the appropriate form of executable for the target platform.
    entry_points={
        'console_scripts': [
            'census_ln=ethnicolr.census_ln:main',
            'pred_census_ln=ethnicolr.pred_census_ln:main',
            'pred_wiki_name=ethnicolr.pred_wiki_name:main',
            'pred_wiki_ln=ethnicolr.pred_wiki_ln:main',
            'pred_fl_reg_name=ethnicolr.pred_fl_reg_name:main',
            'pred_fl_reg_ln=ethnicolr.pred_fl_reg_ln:main',
        ],
    },
    cmdclass={
        'develop': PostDevelopCommand,
        'install': PostInstallCommand,
        'test': Tox,
    },
    tests_require=['tox'],
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
"""
NOCExec
-----------------------
Library for automation of management and configuration of network devices
"""
import sys
import os
from setuptools import setup

if sys.version_info < (2, 6):
    raise Exception("NOCExec requires Python 2.7 or higher.")

# Hard linking doesn't work inside VirtualBox shared folders. This means that
# you can't use tox in a directory that is being shared with Vagrant,
# since tox relies on `python setup.py sdist` which uses hard links. As a
# workaround, disable hard-linking if setup.py is a descendant of /vagrant.
# See
# https://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted
# for more details.
if os.path.abspath(__file__).split(os.path.sep)[1] == 'vagrant':
    del os.link

setup(
    name="NOCExec",
    version="0.1a",
    packages=["nocexec"],
    author="Vadim Ponomarev",
    author_email="velizarx@gmail.com",
    url='https://github.com/velp/nocexec',
    license="MIT",
    description='Library for automation of management and configuration of network devices.',
    long_description=__doc__,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Environment :: Plugins',
        'License :: OSI Approved :: MIT License',
        'Operating System :: Unix',
        'Operating System :: MacOS',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: System :: Networking',
        'Topic :: System :: Systems Administratio',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
    install_requires=["pexpect", "ncclient>=0.5"],
    tests_require=["mock>=1.0"],
    extras_require={'docs': ["Sphinx>=1.2.3", "alabaster>=0.6.3"]}
)<commit_msg>Fix error in classifiers<commit_after># -*- coding: utf-8 -*-
"""
NOCExec
-----------------------
Library for automation of management and configuration of network devices
"""
import sys
import os
from setuptools import setup

if sys.version_info < (2, 6):
    raise Exception("NOCExec requires Python 2.7 or higher.")

# Hard linking doesn't work inside VirtualBox shared folders. This means that
# you can't use tox in a directory that is being shared with Vagrant,
# since tox relies on `python setup.py sdist` which uses hard links. As a
# workaround, disable hard-linking if setup.py is a descendant of /vagrant.
# See
# https://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted
# for more details.
if os.path.abspath(__file__).split(os.path.sep)[1] == 'vagrant':
    del os.link

setup(
    name="NOCExec",
    version="0.1a",
    packages=["nocexec"],
    author="Vadim Ponomarev",
    author_email="velizarx@gmail.com",
    url='https://github.com/velp/nocexec',
    license="MIT",
    description='Library for automation of management and configuration of network devices.',
    long_description=__doc__,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'Environment :: Plugins',
        'License :: OSI Approved :: MIT License',
        'Operating System :: Unix',
        'Operating System :: MacOS',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: System :: Networking',
        'Topic :: System :: Systems Administration',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
    install_requires=["pexpect", "ncclient>=0.5"],
    tests_require=["mock>=1.0"],
    extras_require={'docs': ["Sphinx>=1.2.3", "alabaster>=0.6.3"]}
)<|endoftext|>


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

"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

from setuptools import setup, find_packages
#from codecs import open
#from os import path

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

#with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
 #   long_description = f.read()

setup(
    name='Graphistry',

    version='0.0.1',
    py_modules = ['graphistry'],
    description = 'This is established as a Data Loader for Graphistry',
    #long_description=long_description,

    url='https://github.com/graphistry/pygraphistry',

    author='Graphistry',
    author_email='pygraphistry@graphistry.com',

    install_requires=['pyyaml'],

    license='BSD',

    classifiers=[
        'Development Status :: 3 - Alpha',

        'License :: OSI Approved :: BSD License',

        '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',
        'Programming Language :: Python :: 3.4',
    ],

    keywords='Python Data Loader',

    packages=find_packages(exclude=['contrib', 'tests*'])
)
<commit_msg>update<commit_after>#!/usr/bin/env python

"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

from setuptools import setup, find_packages
#from codecs import open
#from os import path

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

#with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
 #   long_description = f.read()

setup(
    name='graphistry',

    version='0.0.1',
    py_modules = ['graphistry'],
    description = 'This is established as a Data Loader for Graphistry',
    #long_description=long_description,

    url='https://github.com/graphistry/pygraphistry',

    author='Graphistry',
    author_email='pygraphistry@graphistry.com',

    install_requires=['pyyaml'],

    license='BSD',

    classifiers=[
        'Development Status :: 3 - Alpha',

        'License :: OSI Approved :: BSD License',

        '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',
        'Programming Language :: Python :: 3.4',
    ],

    keywords='Python Data Loader',

    packages=find_packages(exclude=['contrib', 'tests*'])
)
<|endoftext|>


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

import os
from setuptools import setup, find_packages

long_description = '\n'.join([
    open(os.path.join(".", "README.rst")).read(),
    open(os.path.join(".", "AUTHORS.rst")).read(),
    open(os.path.join(".", "HISTORY.rst")).read(),
])

requires = ['Sphinx>=1.2']

classifiers = [
    'Development Status :: 4 - Beta',
    'Environment :: Console',
    'Environment :: Web Environment',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Topic :: Documentation',
    'Topic :: Utilities',
]

setup(
    name='sphinxcontrib-gravatar',
    version='0.1.0',
    url='https://github.com/tell-k/sphinxcontrib-gravatar',
    download_url='http://pypi.python.org/pypi/sphinxcontrib-gravatar',
    license='BSD',
    author='tell-k',
    author_email='ffk2005 at gmail.com',
    description='Sphinx "gravatar" extension',
    long_description=long_description,
    zip_safe=False,
    classifiers=classifiers,
    platforms='any',
    packages=find_packages(),
    include_package_data=True,
    install_requires=requires,
    namespace_packages=['sphinxcontrib'],
)
<commit_msg>update setup.py<commit_after># -*- coding: utf-8 -*-

import os
from setuptools import setup, find_packages

long_description = '\n'.join([
    open(os.path.join(".", "README.rst")).read(),
    open(os.path.join(".", "AUTHORS.rst")).read(),
    open(os.path.join(".", "HISTORY.rst")).read(),
])

requires = ['Sphinx>=1.2', 'setuptools']

classifiers = [
    'Development Status :: 4 - Beta',
    'Environment :: Console',
    'Environment :: Web Environment',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Topic :: Documentation',
    'Topic :: Utilities',
]

setup(
    name='sphinxcontrib-gravatar',
    version='0.1.0',
    url='https://github.com/tell-k/sphinxcontrib-gravatar',
    download_url='http://pypi.python.org/pypi/sphinxcontrib-gravatar',
    license='BSD',
    author='tell-k',
    author_email='ffk2005 at gmail.com',
    description='Sphinx "gravatar" extension',
    long_description=long_description,
    zip_safe=False,
    classifiers=classifiers,
    platforms='any',
    packages=find_packages(),
    include_package_data=True,
    install_requires=requires,
    namespace_packages=['sphinxcontrib'],
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='mkwheelhouse',
    version='0.2.1',
    author='Nikhil Benesch',
    author_email='benesch@whoop.com',
    py_modules=['mkwheelhouse'],
    url='https://github.com/WhoopInc/mkwheelhouse',
    description='Amazon S3 wheelhouse generator',
    classifiers=[
      'License :: OSI Approved :: MIT License',
      'Development Status :: 4 - Beta',
      'Environment :: Console',
      'Intended Audience :: Developers',
      'Topic :: Software Development :: Build Tools'
    ],
    install_requires=[
        "awscli >= 1.3.6",
        "yattag >= 0.9.2",
        "wheel >= 0.23.0",
        "pip >= 1.5.4",
    ],
    entry_points={
        'console_scripts': [
            'mkwheelhouse=mkwheelhouse:main'
        ],
    }
)
<commit_msg>release: 0.2.2<commit_after>from setuptools import setup

setup(
    name='mkwheelhouse',
    version='0.2.2',
    author='Nikhil Benesch',
    author_email='benesch@whoop.com',
    py_modules=['mkwheelhouse'],
    url='https://github.com/WhoopInc/mkwheelhouse',
    description='Amazon S3 wheelhouse generator',
    classifiers=[
      'License :: OSI Approved :: MIT License',
      'Development Status :: 4 - Beta',
      'Environment :: Console',
      'Intended Audience :: Developers',
      'Topic :: Software Development :: Build Tools'
    ],
    install_requires=[
        "awscli >= 1.3.6",
        "yattag >= 0.9.2",
        "wheel >= 0.23.0",
        "pip >= 1.5.4",
    ],
    entry_points={
        'console_scripts': [
            'mkwheelhouse=mkwheelhouse:main'
        ],
    }
)
<|endoftext|>


<commit_before>from setuptools import setup

def readme():
    with open('README.md', encoding='utf-8') as file:
        return file.read()

setup(
    name='ppb-vector',
    version='0.4.0rc1',
    packages=['ppb_vector'],
    url='http://github.com/pathunstrom/ppb-vector',
    license='',
    author='Piper Thunstrom',
    author_email='pathunstrom@gmail.com',
    description='A basic game development Vector2 class.',
    install_requires=[
        "dataclasses; python_version < '3.7'",
    ],
    long_description=readme(),
    long_description_content_type="text/markdown",
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ],
    zip_safe=True,
)
<commit_msg>Updates setup.py to ready for 1.0 release.<commit_after>from setuptools import setup

def readme():
    with open('README.md', encoding='utf-8') as file:
        return file.read()

setup(
    name='ppb-vector',
    version='1.0',
    packages=['ppb_vector'],
    url='http://github.com/pathunstrom/ppb-vector',
    license='',
    author='Piper Thunstrom',
    author_email='pathunstrom@gmail.com',
    description='A basic game development Vector2 class.',
    install_requires=[
        "dataclasses; python_version < '3.7'",
    ],
    long_description=readme(),
    long_description_content_type="text/markdown",
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Topic :: Software Development :: Libraries',
        'Topic :: Scientific/Engineering :: Mathematics',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
    ],
    zip_safe=True,
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import os, os.path, sys

# Bumped version
version = '0.5.1'

# Require
install_requires = [
    "python-dateutil",
    "requests",
    "pyfiglet",
    "SQLAlchemy",
    "twitter",
    "Pillow",
]

# Python 3 doesn't hava pysqlite
if sys.version[0] == "2":
    install_requires += ["pysqlite"]

# Copy default config if not exists
default = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
if not os.path.isfile(default):
    cmd = 'cp rainbowstream/colorset/config ' + default
    os.system(cmd)

# Setup
setup(name='rainbowstream',
      version=version,
      description="A smart and nice Twitter client on terminal.",
      long_description=open("./README.rst", "r").read(),
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Environment :: Console",
          "Intended Audience :: End Users/Desktop",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3.2",
          "Programming Language :: Python :: 3.3",
          "Programming Language :: Python :: 3.4",
          "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
          "Topic :: Utilities",
          "License :: OSI Approved :: MIT License",
      ],
      keywords='twitter, command-line tools, stream API',
      author='Vu Nhat Minh',
      author_email='nhatminh179@gmail.com',
      url='http://www.rainbowstream.org/',
      license='MIT License',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      include_package_data=True,
      zip_safe=True,
      install_requires=install_requires,
      entry_points="""
      # -*- Entry points: -*-
      [console_scripts]
      rainbowstream=rainbowstream.rainbow:fly
      """,
      )
<commit_msg>chmod after install by sudo<commit_after>from setuptools import setup, find_packages
import os, os.path, sys

# Bumped version
version = '0.5.2'

# Require
install_requires = [
    "python-dateutil",
    "requests",
    "pyfiglet",
    "SQLAlchemy",
    "twitter",
    "Pillow",
]

# Python 3 doesn't hava pysqlite
if sys.version[0] == "2":
    install_requires += ["pysqlite"]

# Copy default config if not exists
default = os.path.expanduser("~") + os.sep + '.rainbow_config.json'
if not os.path.isfile(default):
    cmd = 'cp rainbowstream/colorset/config ' + default
    os.system(cmd)
    cmd = 'chmod 777 ' + default
    os.system(cmd)

# Setup
setup(name='rainbowstream',
      version=version,
      description="A smart and nice Twitter client on terminal.",
      long_description=open("./README.rst", "r").read(),
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Environment :: Console",
          "Intended Audience :: End Users/Desktop",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3.2",
          "Programming Language :: Python :: 3.3",
          "Programming Language :: Python :: 3.4",
          "Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
          "Topic :: Utilities",
          "License :: OSI Approved :: MIT License",
      ],
      keywords='twitter, command-line tools, stream API',
      author='Vu Nhat Minh',
      author_email='nhatminh179@gmail.com',
      url='http://www.rainbowstream.org/',
      license='MIT License',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      include_package_data=True,
      zip_safe=True,
      install_requires=install_requires,
      entry_points="""
      # -*- Entry points: -*-
      [console_scripts]
      rainbowstream=rainbowstream.rainbow:fly
      """,
      )
<|endoftext|>


<commit_before>from setuptools import setup

with open('README.md') as file:
    long_description = file.read()

setup(
    name='sed_vis',
    version='0.1',
    description='Visualization tools for sound event detection research.',
    author='Toni Heittola',
    author_email='toni.heittola@gmail.com',
    url='',
    packages=['sed_vis'],
    long_description=long_description,
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        'Development Status :: 5 - Production/Stable',
        "Intended Audience :: Developers",
        "Topic :: Multimedia :: Sound/Audio :: Analysis",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
    ],
    keywords=['audio analysis', 'sound event detection', 'dsp'],
    license='MIT',
    install_requires=[
        'numpy >= 1.7.0',
        'scipy >= 0.9.0',
        'matplotlib >= 1.4.3',
        'librosa >= 0.4.0',
        'pyaudio >= 0.2.8',
    ],
)
<commit_msg>add url<commit_after>from setuptools import setup

with open('README.md') as f:
    long_description = f.read()

setup(
    name='sed_vis',
    version='0.1',
    description='Visualization tools for sound event detection research.',
    author='Toni Heittola',
    author_email='toni.heittola@gmail.com',
    url='https://github.com/TUT-ARG/sed_vis/',
    packages=['sed_vis'],
    long_description=long_description,
    classifiers=[
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        'Development Status :: 5 - Production/Stable',
        "Intended Audience :: Developers",
        "Topic :: Multimedia :: Sound/Audio :: Analysis",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
    ],
    keywords=['audio analysis', 'sound event detection', 'dsp'],
    license='MIT',
    install_requires=[
        'numpy >= 1.7.0',
        'scipy >= 0.9.0',
        'matplotlib >= 1.4.3',
        'librosa >= 0.4.0',
        'pyaudio >= 0.2.8',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
from fastapp import __version__ as version

setup(name='django-fastapp',
	version=version,
	description='Reusable Django app for prototyping',
	long_description='django-fastapp is a reusable Django app which lets you prototype apps in the browser with client- and server-side elements.',
	url="https://github.com/fatrix/django-fastapp",
	author="Philip Sahli",
	author_email="philip@sahli.net",
    install_requires=['dropbox==1.6',
		'requests==2.0.1',
		'django_extensions==1.3.5',
		'pusher==0.8',
		'mongoengine==0.8.6',
		'pymongo==2.6.3',
		'bunch==1.0.1',
		'gevent==1.0',
		'pika==0.9.13',
		'jsonfield==0.9.22'
		'pyflakes==0.8.1'
	],
    packages = find_packages(),
    package_data = {'fastapp': ['fastapp/templates/*']},
    include_package_data=True,
    license ='MIT'
)
<commit_msg>Update setup.py<commit_after>from setuptools import setup, find_packages
from fastapp import __version__ as version

setup(name='django-fastapp',
	version=version,
	description='Reusable Django app for prototyping',
	long_description='django-fastapp is a reusable Django app which lets you prototype apps in the browser with client- and server-side elements.',
	url="https://github.com/fatrix/django-fastapp",
	author="Philip Sahli",
	author_email="philip@sahli.net",
    install_requires=['dropbox==1.6',
		'requests==2.0.1',
		'django_extensions==1.3.5',
		'pusher==0.8',
		'mongoengine==0.8.6',
		'pymongo==2.6.3',
		'bunch==1.0.1',
		'gevent==1.0',
		'pika==0.9.13',
		'jsonfield==0.9.22',
		'pyflakes==0.8.1'
	],
    packages = find_packages(),
    package_data = {'fastapp': ['fastapp/templates/*']},
    include_package_data=True,
    license ='MIT'
)<|endoftext|>