<commit_before># -*- coding: utf-8 -*-
from __future__ import print_function

import os
import sys
import imp
import subprocess

## Python 2.6 subprocess.check_output compatibility. Thanks Greg Hewgill!
if 'check_output' not in dir(subprocess):
    def check_output(cmd_args, *args, **kwargs):
        proc = subprocess.Popen(
            cmd_args, *args,
            stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
        out, err = proc.communicate()
        if proc.returncode != 0:
            raise subprocess.CalledProcessError(args)
        return out
    subprocess.check_output = check_output

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from distutils import spawn

try:
    import colorama
    colorama.init()  # Initialize colorama on Windows
except ImportError:
    # Don't require colorama just for running paver tasks. This allows us to
    # run `paver install' without requiring the user to first have colorama
    # installed.
    pass

# Add the current directory to the module search path.
sys.path.insert(0, os.path.abspath('.'))

## Constants
CODE_DIRECTORY = 'messenger'
DOCS_DIRECTORY = 'docs'
TESTS_DIRECTORY = 'tests'
PYTEST_FLAGS = ['--doctest-modules']

# Import metadata. Normally this would just be:
#
#     from messenger import metadata
#
# However, when we do this, we also import `messenger/__init__.py'. If this
# imports names from some other modules and these modules have third-party
# dependencies that need installing (which happens after this file is run), the
# script will crash. What we do instead is to load the metadata module by path
# instead, effectively side-stepping the dependency problem. Please make sure
# metadata has no dependencies, otherwise they will need to be added to
# the setup_requires keyword.
metadata = imp.load_source(
    'metadata', os.path.join(CODE_DIRECTORY, 'metadata.py'))

## Miscellaneous helper functions

def get_project_files():
    """Retrieve a list of project files, ignoring hidden files.

    :return: sorted list of project files
    :rtype: :class:`list`
    """
    if is_git_project() and has_git():
        return get_git_project_files()

    project_files = []
    for top, subdirs, files in os.walk('.'):
        for subdir in subdirs:
            if subdir.startswith('.'):
                subdirs.remove(subdir)

        for f in files:
            if f.startswith('.'):
                continue
            project_files.append(os.path.join(top, f))

    return project_files

def is_git_project():
    return os.path.isdir('.git')

def has_git():
    return bool(spawn.find_executable("git"))

def get_git_project_files():
    """Retrieve a list of all non-ignored files, including untracked files,
    excluding deleted files.

    :return: sorted list of git project files
    :rtype: :class:`list`
    """
    cached_and_untracked_files = git_ls_files(
        '--cached',  # All files cached in the index
        '--others',  # Untracked files
        # Exclude untracked files that would be excluded by .gitignore, etc.
        '--exclude-standard')
    uncommitted_deleted_files = git_ls_files('--deleted')

    # Since sorting of files in a set is arbitrary, return a sorted list to
    # provide a well-defined order to tools like flake8, etc.
    return sorted(cached_and_untracked_files - uncommitted_deleted_files)

def git_ls_files(*cmd_args):
    """Run ``git ls-files`` in the top-level project directory. Arguments go
    directly to execution call.

    :return: set of file names
    :rtype: :class:`set`
    """
    cmd = ['git', 'ls-files']
    cmd.extend(cmd_args)
    return set(subprocess.check_output(cmd).splitlines())

def print_success_message(message):
    """Print a message indicating success in green color to STDOUT.

    :param message: the message to print
    :type message: :class:`str`
    """
    try:
        import colorama
        print(colorama.Fore.GREEN + message + colorama.Fore.RESET)
    except ImportError:
        print(message)

def print_failure_message(message):
    """Print a message indicating failure in red color to STDERR.

    :param message: the message to print
    :type message: :class:`str`
    """
    try:
        import colorama
        print(colorama.Fore.RED + message + colorama.Fore.RESET,
              file=sys.stderr)
    except ImportError:
        print(message, file=sys.stderr)

def read(filename):
    """Return the contents of a file.

    :param filename: file path
    :type filename: :class:`str`
    :return: the file's content
    :rtype: :class:`str`
    """
    with open(os.path.join(os.path.dirname(__file__), filename)) as f:
        return f.read()

def _lint():
    """Run lint and return an exit code."""
    # Flake8 doesn't have an easy way to run checks using a Python function, so
    # just fork off another process to do it.

    # Python 3 compat:
    # - The result of subprocess call outputs are byte strings, meaning we need
    #   to pass a byte string to endswith.
    project_python_files = [filename for filename in get_project_files()
                            if filename.endswith(b'.py')]
    retcode = subprocess.call(
        ['flake8', '--max-complexity=10'] + project_python_files)
    if retcode == 0:
        print_success_message('No style errors')
    return retcode

def _test():
    """Run the unit tests.

    :return: exit code
    """
    # Make sure to import pytest in this function. For the reason, see here:
    # <http://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands>  # NOPEP8
    import pytest
    # This runs the unit tests.
    # It also runs doctest, but only on the modules in TESTS_DIRECTORY.
    return pytest.main(PYTEST_FLAGS + [TESTS_DIRECTORY])

def _test_all():
    """Run lint and tests.

    :return: exit code
    """
    return _lint() + _test()

# The following code is to allow tests to be run with `python setup.py test'.
# The main reason to make this possible is to allow tests to be run as part of
# Setuptools' automatic run of 2to3 on the source code. The recommended way to
# run tests is still `paver test_all'.
# See <http://pythonhosted.org/setuptools/python3.html>
# Code based on <http://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands>  # NOPEP8
class TestAllCommand(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        # These are fake, and just set to appease distutils and setuptools.
        self.test_suite = True
        self.test_args = []

    def run_tests(self):
        raise SystemExit(_test_all())

# define install_requires for specific Python versions
python_version_specific_requires = []

# as of Python >= 2.7 and >= 3.2, the argparse module is maintained within
# the Python standard library, otherwise we install it as a separate package
if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 3):
    python_version_specific_requires.append('argparse')

# See here for more options:
# <http://pythonhosted.org/setuptools/setuptools.html>
setup_dict = dict(
    name=metadata.package,
    version=metadata.version,
    author=metadata.authors[0],
    author_email=metadata.emails[0],
    maintainer=metadata.authors[0],
    maintainer_email=metadata.emails[0],
    url=metadata.url,
    description=metadata.description,
    long_description=read('README.rst'),
    # Find a list of classifiers here:
    # <http://pypi.python.org/pypi?%3Aaction=list_classifiers>
    classifiers=[
        'Development Status :: 1 - Planning',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Documentation',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Installation/Setup',
        'Topic :: System :: Software Distribution',
    ],
    packages=find_packages(exclude=(TESTS_DIRECTORY,)),
    install_requires=[
        # your module dependencies
    ] + python_version_specific_requires,
    # Allow tests to be run with `python setup.py test'.
    tests_require=[
        'pytest==2.5.1',
        'mock==1.0.1',
        'flake8==2.1.0',
    ],
    cmdclass={'test': TestAllCommand},
    zip_safe=False,  # don't use eggs
    entry_points={
        'console_scripts': [
            'messenger_cli = messenger.main:entry_point'
        ],
        # if you have a gui, use this
        # 'gui_scripts': [
        #     'messenger_gui = messenger.gui:entry_point'
        # ]
    }
)

def main():
    setup(**setup_dict)

if __name__ == '__main__':
    main()
<commit_msg>update setup.py _test_all() to not run linter. This is due to sublimes method for spacing causing linter to fail.<commit_after># -*- coding: utf-8 -*-
from __future__ import print_function

import os
import sys
import imp
import subprocess

## Python 2.6 subprocess.check_output compatibility. Thanks Greg Hewgill!
if 'check_output' not in dir(subprocess):
    def check_output(cmd_args, *args, **kwargs):
        proc = subprocess.Popen(
            cmd_args, *args,
            stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
        out, err = proc.communicate()
        if proc.returncode != 0:
            raise subprocess.CalledProcessError(args)
        return out
    subprocess.check_output = check_output

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from distutils import spawn

try:
    import colorama
    colorama.init()  # Initialize colorama on Windows
except ImportError:
    # Don't require colorama just for running paver tasks. This allows us to
    # run `paver install' without requiring the user to first have colorama
    # installed.
    pass

# Add the current directory to the module search path.
sys.path.insert(0, os.path.abspath('.'))

## Constants
CODE_DIRECTORY = 'messenger'
DOCS_DIRECTORY = 'docs'
TESTS_DIRECTORY = 'tests'
PYTEST_FLAGS = ['--doctest-modules']

# Import metadata. Normally this would just be:
#
#     from messenger import metadata
#
# However, when we do this, we also import `messenger/__init__.py'. If this
# imports names from some other modules and these modules have third-party
# dependencies that need installing (which happens after this file is run), the
# script will crash. What we do instead is to load the metadata module by path
# instead, effectively side-stepping the dependency problem. Please make sure
# metadata has no dependencies, otherwise they will need to be added to
# the setup_requires keyword.
metadata = imp.load_source(
    'metadata', os.path.join(CODE_DIRECTORY, 'metadata.py'))

## Miscellaneous helper functions

def get_project_files():
    """Retrieve a list of project files, ignoring hidden files.

    :return: sorted list of project files
    :rtype: :class:`list`
    """
    if is_git_project() and has_git():
        return get_git_project_files()

    project_files = []
    for top, subdirs, files in os.walk('.'):
        for subdir in subdirs:
            if subdir.startswith('.'):
                subdirs.remove(subdir)

        for f in files:
            if f.startswith('.'):
                continue
            project_files.append(os.path.join(top, f))

    return project_files

def is_git_project():
    return os.path.isdir('.git')

def has_git():
    return bool(spawn.find_executable("git"))

def get_git_project_files():
    """Retrieve a list of all non-ignored files, including untracked files,
    excluding deleted files.

    :return: sorted list of git project files
    :rtype: :class:`list`
    """
    cached_and_untracked_files = git_ls_files(
        '--cached',  # All files cached in the index
        '--others',  # Untracked files
        # Exclude untracked files that would be excluded by .gitignore, etc.
        '--exclude-standard')
    uncommitted_deleted_files = git_ls_files('--deleted')

    # Since sorting of files in a set is arbitrary, return a sorted list to
    # provide a well-defined order to tools like flake8, etc.
    return sorted(cached_and_untracked_files - uncommitted_deleted_files)

def git_ls_files(*cmd_args):
    """Run ``git ls-files`` in the top-level project directory. Arguments go
    directly to execution call.

    :return: set of file names
    :rtype: :class:`set`
    """
    cmd = ['git', 'ls-files']
    cmd.extend(cmd_args)
    return set(subprocess.check_output(cmd).splitlines())

def print_success_message(message):
    """Print a message indicating success in green color to STDOUT.

    :param message: the message to print
    :type message: :class:`str`
    """
    try:
        import colorama
        print(colorama.Fore.GREEN + message + colorama.Fore.RESET)
    except ImportError:
        print(message)

def print_failure_message(message):
    """Print a message indicating failure in red color to STDERR.

    :param message: the message to print
    :type message: :class:`str`
    """
    try:
        import colorama
        print(colorama.Fore.RED + message + colorama.Fore.RESET,
              file=sys.stderr)
    except ImportError:
        print(message, file=sys.stderr)

def read(filename):
    """Return the contents of a file.

    :param filename: file path
    :type filename: :class:`str`
    :return: the file's content
    :rtype: :class:`str`
    """
    with open(os.path.join(os.path.dirname(__file__), filename)) as f:
        return f.read()

def _lint():
    """Run lint and return an exit code."""
    # Flake8 doesn't have an easy way to run checks using a Python function, so
    # just fork off another process to do it.

    # Python 3 compat:
    # - The result of subprocess call outputs are byte strings, meaning we need
    #   to pass a byte string to endswith.
    project_python_files = [filename for filename in get_project_files()
                            if filename.endswith(b'.py')]
    retcode = subprocess.call(
        ['flake8', '--max-complexity=10'] + project_python_files)
    if retcode == 0:
        print_success_message('No style errors')
    return retcode

def _test():
    """Run the unit tests.

    :return: exit code
    """
    # Make sure to import pytest in this function. For the reason, see here:
    # <http://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands>  # NOPEP8
    import pytest
    # This runs the unit tests.
    # It also runs doctest, but only on the modules in TESTS_DIRECTORY.
    return pytest.main(PYTEST_FLAGS + [TESTS_DIRECTORY])

def _test_all():
    """Run lint and tests.

    :return: exit code
    """
    # return _lint() + _test()
    # commented out becuase linter fails b/c of sublime spacing style
    return _test()

# The following code is to allow tests to be run with `python setup.py test'.
# The main reason to make this possible is to allow tests to be run as part of
# Setuptools' automatic run of 2to3 on the source code. The recommended way to
# run tests is still `paver test_all'.
# See <http://pythonhosted.org/setuptools/python3.html>
# Code based on <http://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands>  # NOPEP8
class TestAllCommand(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        # These are fake, and just set to appease distutils and setuptools.
        self.test_suite = True
        self.test_args = []

    def run_tests(self):
        raise SystemExit(_test_all())

# define install_requires for specific Python versions
python_version_specific_requires = []

# as of Python >= 2.7 and >= 3.2, the argparse module is maintained within
# the Python standard library, otherwise we install it as a separate package
if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 3):
    python_version_specific_requires.append('argparse')

# See here for more options:
# <http://pythonhosted.org/setuptools/setuptools.html>
setup_dict = dict(
    name=metadata.package,
    version=metadata.version,
    author=metadata.authors[0],
    author_email=metadata.emails[0],
    maintainer=metadata.authors[0],
    maintainer_email=metadata.emails[0],
    url=metadata.url,
    description=metadata.description,
    long_description=read('README.rst'),
    # Find a list of classifiers here:
    # <http://pypi.python.org/pypi?%3Aaction=list_classifiers>
    classifiers=[
        'Development Status :: 1 - Planning',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: Implementation :: PyPy',
        'Topic :: Documentation',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Installation/Setup',
        'Topic :: System :: Software Distribution',
    ],
    packages=find_packages(exclude=(TESTS_DIRECTORY,)),
    install_requires=[
        # your module dependencies
    ] + python_version_specific_requires,
    # Allow tests to be run with `python setup.py test'.
    tests_require=[
        'pytest==2.5.1',
        'mock==1.0.1',
        'flake8==2.1.0',
    ],
    cmdclass={'test': TestAllCommand},
    zip_safe=False,  # don't use eggs
    entry_points={
        'console_scripts': [
            'messenger_cli = messenger.main:entry_point'
        ],
        # if you have a gui, use this
        # 'gui_scripts': [
        #     'messenger_gui = messenger.gui:entry_point'
        # ]
    }
)

def main():
    setup(**setup_dict)

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


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

with open(os.path.join(os.path.dirname(__file__), 'green', 'VERSION')) as version_file:
    version = version_file.read().strip()

with open('README-pypi.rst') as readme_file:
    long_description = readme_file.read()

# Calculate dependencies
dependencies = [
    'colorama',
    'python-termstyle',
]
if sys.version_info[0] == 2:
    dependencies.append('mock')

# Actual setup call
setup(
    name = 'green',
    packages = find_packages(),
    package_data = {'green' : ['VERSION', 'shell_completion.sh']},
    version = version,
    install_requires = dependencies,
    entry_points = {
        'console_scripts' : [
            'green = green:main',
            'green%d = green:main' % sys.version_info[:1],    # green2 or green3
            'green%d.%d = green:main' % sys.version_info[:2], # green3.4 etc.
            ],
    },
    test_suite='green.test',
    description = 'Green is a clean, colorful test runner for Python unit tests.  Compare it to trial or nose.',
    long_description = long_description,
    author = 'Nathan Stocks',
    author_email = 'nathan.stocks@gmail.com',
    license = 'MIT',
    url = 'https://github.com/CleanCut/green',
    download_url = 'https://github.com/CleanCut/green/tarball/' + version,
    keywords = ['nose', 'nose2', 'trial', 'pytest', 'py.test', 'tox', 'green',
        'tdd', 'test', 'tests', 'functional', 'system', 'unit', 'unittest',
        'color', 'tabular', 'clean', 'red', 'rednose', 'regression', 'runner',
        'integration','smoke', 'white', 'black', 'box', 'incremental', 'end',
        'end-to-end', 'sanity', 'acceptance', 'load', 'stress', 'performance',
        'usability', 'install', 'uninstall', 'recovery', 'security',
        'comparison', 'alpha', 'beta', 'non-functional', 'destructive',
        'accessibility', 'internationalization', 'i18n', 'localization', 'l10n',
        'development', 'a/b', 'concurrent', 'conformance', 'verification',
        'validation', 'quality', 'assurance', 'ad-hoc', 'agile', 'api',
        'automated', 'all', 'pairs', 'pairwise', 'boundary', 'value', 'branch',
        'browser', 'condition', 'coverage', 'dynamic', 'exploratory',
        'equivalence', 'partitioning', 'fuzz', 'gui', 'glass', 'gorilla',
        'interface', 'keyword', 'penetration', 'retesting', 'risk', 'based',
        'scalability', 'soak', 'volume', 'vulnerability'],
    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: Linux',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Software Development :: Testing',
        'Topic :: Utilities'],
)
<commit_msg>Removed another unnecessary reference to trial and nose.<commit_after>from setuptools import setup, find_packages
import os
import sys

with open(os.path.join(os.path.dirname(__file__), 'green', 'VERSION')) as version_file:
    version = version_file.read().strip()

with open('README-pypi.rst') as readme_file:
    long_description = readme_file.read()

# Calculate dependencies
dependencies = [
    'colorama',
    'python-termstyle',
]
if sys.version_info[0] == 2:
    dependencies.append('mock')

# Actual setup call
setup(
    name = 'green',
    packages = find_packages(),
    package_data = {'green' : ['VERSION', 'shell_completion.sh']},
    version = version,
    install_requires = dependencies,
    entry_points = {
        'console_scripts' : [
            'green = green:main',
            'green%d = green:main' % sys.version_info[:1],    # green2 or green3
            'green%d.%d = green:main' % sys.version_info[:2], # green3.4 etc.
            ],
    },
    test_suite='green.test',
    description = 'Green is a clean, colorful test runner for Python unit tests.',
    long_description = long_description,
    author = 'Nathan Stocks',
    author_email = 'nathan.stocks@gmail.com',
    license = 'MIT',
    url = 'https://github.com/CleanCut/green',
    download_url = 'https://github.com/CleanCut/green/tarball/' + version,
    keywords = ['nose', 'nose2', 'trial', 'pytest', 'py.test', 'tox', 'green',
        'tdd', 'test', 'tests', 'functional', 'system', 'unit', 'unittest',
        'color', 'tabular', 'clean', 'red', 'rednose', 'regression', 'runner',
        'integration','smoke', 'white', 'black', 'box', 'incremental', 'end',
        'end-to-end', 'sanity', 'acceptance', 'load', 'stress', 'performance',
        'usability', 'install', 'uninstall', 'recovery', 'security',
        'comparison', 'alpha', 'beta', 'non-functional', 'destructive',
        'accessibility', 'internationalization', 'i18n', 'localization', 'l10n',
        'development', 'a/b', 'concurrent', 'conformance', 'verification',
        'validation', 'quality', 'assurance', 'ad-hoc', 'agile', 'api',
        'automated', 'all', 'pairs', 'pairwise', 'boundary', 'value', 'branch',
        'browser', 'condition', 'coverage', 'dynamic', 'exploratory',
        'equivalence', 'partitioning', 'fuzz', 'gui', 'glass', 'gorilla',
        'interface', 'keyword', 'penetration', 'retesting', 'risk', 'based',
        'scalability', 'soak', 'volume', 'vulnerability'],
    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: Linux',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Quality Assurance',
        'Topic :: Software Development :: Testing',
        'Topic :: Utilities'],
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(name='lmm', version='1.0', author='Peter Schulam')
<commit_msg>Fix setup bug.<commit_after>from setuptools import setup, find_packages()

setup(name='lmm',
      version='1.0',
      author='Peter Schulam',
      author_email='pschulam@gmail.com',
      packages=find_packages()
)
<|endoftext|>


<commit_before># This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys

import setuptools

import shuup_setup_utils as utils

TOPDIR = os.path.abspath(os.path.dirname(__file__))
LONG_DESCRIPTION_FILE = os.path.join(TOPDIR, 'README.rst')
VERSION_FILE = os.path.join(TOPDIR, 'shuup', '_version.py')

# Release instructions
#
#  1. Update the Change Log (doc/changelog.rst)
#      - Make sure all relevant changes since last release are listed
#      - Remove the instruction bullet point ("List all changes after
#        x.x.x here...")
#      - Change the "Unreleased" header to appropriate version header.
#        See header of the last release for example.
#  2. Create/update Release Notes (doc/release_notes/<VERSION>.rst) and
#     add it to index (doc/release_notes/index.rst)
#  3. Update VERSION variable here: Increase and drop .post0.dev suffix
#  4. Update version and release variables in doc/conf.py
#  5. Commit changes of steps 1--4
#  6. Tag the commit (of step 5) with
#        git tag -a -m "Shuup X.Y.Z" vX.Y.Z
#     where X.Y.Z is the new version number (must be same as VERSION
#     variable here)
#  7. Check the tag is OK and push it with
#        git push origin refs/tags/vX.Y.Z
#  8. Do a post-release commit:
#      - Add new "Unreleased" header and instruction bullet point to
#        Change Log
#      - Add ".post0.dev" suffix to VERSION variable here

NAME = 'shuup'
VERSION = '1.2.0a2'
DESCRIPTION = 'E-Commerce Platform'
AUTHOR = 'Shoop Commerce Ltd.'
AUTHOR_EMAIL = 'shuup@shuup.com'
URL = 'http://shuup.com/'
DOWNLOAD_URL_TEMPLATE = (
    'https://github.com/shuup/shuup/releases/download/'
    'v{version}/shuup-{version}-py2.py3-none-any.whl')
LICENSE = 'OSL-3.0'  # https://spdx.org/licenses/
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved
Natural Language :: English
Natural Language :: Chinese (Simplified)
Natural Language :: Finnish
Natural Language :: Japanese
Natural Language :: Portuguese (Brazilian)
Programming Language :: JavaScript
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Office/Business
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
""".strip().splitlines()

EXCLUDED_PACKAGES = [
    'shuup_tests', 'shuup_tests.*',
]

utils.add_exclude_patters([
    'build', 'doc', 'var',
    'LC_MESSAGES',
    'local_settings.py',
])

REQUIRES = [
    'pillow>=3.4.2,<4',
    'Babel>=2.2,<3',
    'cryptography==1.7.1',
    'Django>=1.8,<1.10',
    'django-bootstrap3>=6.1,<7',
    'django-countries>=3.3,<4',
    'django-enumfields>=0.7.2,<0.8',
    'django-filer>=1.0,<2',
    'django-filter>=1.0,<1.1',
    'django-jinja>=1.4,<2',
    'django-mptt>=0.8.0,<0.9',
    'django-parler>=1.5,<1.6.3',
    'django-parler-rest>=1.3a1,<2',
    'django-polymorphic>=0.8.0,<0.10',
    'django-registration-redux>=1.2,<2',
    'django-timezone-field>=1.2,<2',
    'djangorestframework>=3.5,<3.6',
    'djangorestframework-jwt>=1.9,<2',
    'django_rest_swagger==2.1.0',
    'factory-boy==2.7.0',
    'fake-factory>=0.5.0,<0.5.4',
    'Jinja2>=2.8,<2.9',
    'jsonfield>=1.0,<2',
    'keyring==10.2',
    'keyrings.alt==2.0',
    'Markdown>=2.6,<3',
    'openpyxl==2.3.5',
    'python-dateutil==2.6.0',
    'pytoml>=0.1.0,<0.2',
    'pytz>=2015.4',
    'requests>=2.7,<3',
    'secretstorage==2.3.1',
    'six>=1.9,<2',
    'unicodecsv==0.14.1',
    'xlrd==1.0.0'
]

REQUIRES_FOR_PYTHON2_ONLY = [
    # enum34 1.1 or newer does not currently work. See
    # https://github.com/hzdg/django-enumfields/pull/44
    'enum34>=1.0,<1.1',
]

EXTRAS_REQUIRE = {
    ':python_version=="2.7"': REQUIRES_FOR_PYTHON2_ONLY,
    'docs': [
        'Sphinx>=1.3,<2',
    ],
    'testing': utils.get_test_requirements_from_tox_ini(TOPDIR),
    'coding-style': [
        'flake8>=2.4,<3',
        'flake8-print>=2.0.2,<3',
        'pep8-naming>=0.2,<1',
    ],
}
EXTRAS_REQUIRE['everything'] = list(
    set(sum(EXTRAS_REQUIRE.values(), [])) -  # All extras, but not...
    set(REQUIRES_FOR_PYTHON2_ONLY)  # the Python 2 compatibility things
)

if __name__ == '__main__':
    if 'upload' in sys.argv:
        raise EnvironmentError('Uploading is blacklisted')

    version = utils.get_version(VERSION, TOPDIR, VERSION_FILE)
    utils.write_version_to_file(version, VERSION_FILE)

    setuptools.setup(
        name=NAME,
        version=version,
        description=DESCRIPTION,
        long_description=utils.get_long_description(LONG_DESCRIPTION_FILE),
        url=URL,
        download_url=DOWNLOAD_URL_TEMPLATE.format(version=version),
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        install_requires=REQUIRES,
        tests_require=EXTRAS_REQUIRE['testing'],
        extras_require=EXTRAS_REQUIRE,
        packages=utils.find_packages(exclude=EXCLUDED_PACKAGES),
        include_package_data=True,
        cmdclass=utils.COMMANDS,
    )
<commit_msg>Post-release update for Shuup 1.2.0a2<commit_after># This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import os
import sys

import setuptools

import shuup_setup_utils as utils

TOPDIR = os.path.abspath(os.path.dirname(__file__))
LONG_DESCRIPTION_FILE = os.path.join(TOPDIR, 'README.rst')
VERSION_FILE = os.path.join(TOPDIR, 'shuup', '_version.py')

# Release instructions
#
#  1. Update the Change Log (doc/changelog.rst)
#      - Make sure all relevant changes since last release are listed
#      - Remove the instruction bullet point ("List all changes after
#        x.x.x here...")
#      - Change the "Unreleased" header to appropriate version header.
#        See header of the last release for example.
#  2. Create/update Release Notes (doc/release_notes/<VERSION>.rst) and
#     add it to index (doc/release_notes/index.rst)
#  3. Update VERSION variable here: Increase and drop .post0.dev suffix
#  4. Update version and release variables in doc/conf.py
#  5. Commit changes of steps 1--4
#  6. Tag the commit (of step 5) with
#        git tag -a -m "Shuup X.Y.Z" vX.Y.Z
#     where X.Y.Z is the new version number (must be same as VERSION
#     variable here)
#  7. Check the tag is OK and push it with
#        git push origin refs/tags/vX.Y.Z
#  8. Do a post-release commit:
#      - Add new "Unreleased" header and instruction bullet point to
#        Change Log
#      - Add ".post0.dev" suffix to VERSION variable here

NAME = 'shuup'
VERSION = '1.2.0a2.post0.dev'
DESCRIPTION = 'E-Commerce Platform'
AUTHOR = 'Shoop Commerce Ltd.'
AUTHOR_EMAIL = 'shuup@shuup.com'
URL = 'http://shuup.com/'
DOWNLOAD_URL_TEMPLATE = (
    'https://github.com/shuup/shuup/releases/download/'
    'v{version}/shuup-{version}-py2.py3-none-any.whl')
LICENSE = 'OSL-3.0'  # https://spdx.org/licenses/
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved
Natural Language :: English
Natural Language :: Chinese (Simplified)
Natural Language :: Finnish
Natural Language :: Japanese
Natural Language :: Portuguese (Brazilian)
Programming Language :: JavaScript
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: Site Management
Topic :: Office/Business
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
""".strip().splitlines()

EXCLUDED_PACKAGES = [
    'shuup_tests', 'shuup_tests.*',
]

utils.add_exclude_patters([
    'build', 'doc', 'var',
    'LC_MESSAGES',
    'local_settings.py',
])

REQUIRES = [
    'pillow>=3.4.2,<4',
    'Babel>=2.2,<3',
    'cryptography==1.7.1',
    'Django>=1.8,<1.10',
    'django-bootstrap3>=6.1,<7',
    'django-countries>=3.3,<4',
    'django-enumfields>=0.7.2,<0.8',
    'django-filer>=1.0,<2',
    'django-filter>=1.0,<1.1',
    'django-jinja>=1.4,<2',
    'django-mptt>=0.8.0,<0.9',
    'django-parler>=1.5,<1.6.3',
    'django-parler-rest>=1.3a1,<2',
    'django-polymorphic>=0.8.0,<0.10',
    'django-registration-redux>=1.2,<2',
    'django-timezone-field>=1.2,<2',
    'djangorestframework>=3.5,<3.6',
    'djangorestframework-jwt>=1.9,<2',
    'django_rest_swagger==2.1.0',
    'factory-boy==2.7.0',
    'fake-factory>=0.5.0,<0.5.4',
    'Jinja2>=2.8,<2.9',
    'jsonfield>=1.0,<2',
    'keyring==10.2',
    'keyrings.alt==2.0',
    'Markdown>=2.6,<3',
    'openpyxl==2.3.5',
    'python-dateutil==2.6.0',
    'pytoml>=0.1.0,<0.2',
    'pytz>=2015.4',
    'requests>=2.7,<3',
    'secretstorage==2.3.1',
    'six>=1.9,<2',
    'unicodecsv==0.14.1',
    'xlrd==1.0.0'
]

REQUIRES_FOR_PYTHON2_ONLY = [
    # enum34 1.1 or newer does not currently work. See
    # https://github.com/hzdg/django-enumfields/pull/44
    'enum34>=1.0,<1.1',
]

EXTRAS_REQUIRE = {
    ':python_version=="2.7"': REQUIRES_FOR_PYTHON2_ONLY,
    'docs': [
        'Sphinx>=1.3,<2',
    ],
    'testing': utils.get_test_requirements_from_tox_ini(TOPDIR),
    'coding-style': [
        'flake8>=2.4,<3',
        'flake8-print>=2.0.2,<3',
        'pep8-naming>=0.2,<1',
    ],
}
EXTRAS_REQUIRE['everything'] = list(
    set(sum(EXTRAS_REQUIRE.values(), [])) -  # All extras, but not...
    set(REQUIRES_FOR_PYTHON2_ONLY)  # the Python 2 compatibility things
)

if __name__ == '__main__':
    if 'upload' in sys.argv:
        raise EnvironmentError('Uploading is blacklisted')

    version = utils.get_version(VERSION, TOPDIR, VERSION_FILE)
    utils.write_version_to_file(version, VERSION_FILE)

    setuptools.setup(
        name=NAME,
        version=version,
        description=DESCRIPTION,
        long_description=utils.get_long_description(LONG_DESCRIPTION_FILE),
        url=URL,
        download_url=DOWNLOAD_URL_TEMPLATE.format(version=version),
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        install_requires=REQUIRES,
        tests_require=EXTRAS_REQUIRE['testing'],
        extras_require=EXTRAS_REQUIRE,
        packages=utils.find_packages(exclude=EXCLUDED_PACKAGES),
        include_package_data=True,
        cmdclass=utils.COMMANDS,
    )
<|endoftext|>


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

# -----------------------------------------------------------------------------
# Copyright (c) 2013, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------

__version__ = "0.1.0-dev"

from setuptools import setup
from glob import glob

classes = """
    Development Status :: 4 - Beta
    License :: OSI Approved :: BSD License
    Topic :: Scientific/Engineering :: Bio-Informatics
    Topic :: Software Development :: Libraries :: Application Frameworks
    Topic :: Software Development :: Libraries :: Python Modules
    Programming Language :: Python
    Programming Language :: Python :: 2.7
    Programming Language :: Python :: Implementation :: CPython
    Operating System :: OS Independent
    Operating System :: POSIX :: Linux
    Operating System :: MacOS :: MacOS X
"""

long_description = """American Gut participant UI"""

classifiers = [s.strip() for s in classes.split('\n') if s]

setup(name='American Gut participant UI',
      version=__version__,
      long_description=long_description,
      license="BSD",
      description='American Gut Project',
      author="American Gut Project",
      author_email="mcdonadt@colorado.edu",
      url='http://www.microbio.me/AmericanGut',
      test_suite='nose.collector',
      packages=['amgut'],
      package_data={'amgut': [],
                    'amgut.db': ['patches/*.sql'],
                    'amgut.lib': [],
                    'amgut.lib.data_access': [],
                    'amgut.handlers': []},
      scripts=glob('scripts/*'),
      extras_require={
          'test': [
              'mock',
              'nose >= 0.10.1',
              'pep8',
              'flake8'
          ]
      },
      install_requires=[
          'click==3.3',
          'future==0.13.1',
          'open-humans-tornado-oauth2==2.0.0',
          'passlib==1.6.2',
          'psycopg2',
          'pycrypto==2.6.1',
          'redis',
          'requests',
          'tornado==3.2.2',
          'WTForms==2.0.1',
          'natsort'
      ],
      classifiers=classifiers)
<commit_msg>more changes<commit_after>#!/usr/bin/env python

# -----------------------------------------------------------------------------
# Copyright (c) 2013, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------

__version__ = "0.1.0-dev"

from setuptools import setup
from glob import glob

classes = """
    Development Status :: 4 - Beta
    License :: OSI Approved :: BSD License
    Topic :: Scientific/Engineering :: Bio-Informatics
    Topic :: Software Development :: Libraries :: Application Frameworks
    Topic :: Software Development :: Libraries :: Python Modules
    Programming Language :: Python
    Programming Language :: Python :: 2.7
    Programming Language :: Python :: Implementation :: CPython
    Operating System :: OS Independent
    Operating System :: POSIX :: Linux
    Operating System :: MacOS :: MacOS X
"""

long_description = """American Gut participant UI"""

classifiers = [s.strip() for s in classes.split('\n') if s]

setup(name='American Gut participant UI',
      version=__version__,
      long_description=long_description,
      license="BSD",
      description='American Gut Project',
      author="American Gut Project",
      author_email="mcdonadt@colorado.edu",
      url='http://www.microbio.me/AmericanGut',
      test_suite='nose.collector',
      packages=['amgut'],
      package_data={'amgut': [
          'static/css/*.css', 'static/img/*.*', 'static/js/*.js',
          'static/vendor/css/*.css', 'static/vendor/css/*.png',
          'amgut/static/vendor/css/ui-lightness/*.css',
          'amgut/static/vendor/css/ui-lightness/images/*.png',
          'static/vendor/data/*', 'static/vendor/js/*.js',
          'static/vendor/licences/*', 'db/*.*', 'db/patches/*.sql',
          'handlers/*', 'lib/*.*', 'lib/data_access/*', 'lib/locale_data/*',
          'templates/*.html', 'test/*.py'
      ]},
      scripts=glob('scripts/*'),
      extras_require={
          'test': [
              'mock',
              'nose >= 0.10.1',
              'pep8',
              'flake8'
          ]
      },
      install_requires=[
          'click==3.3',
          'future==0.13.1',
          'open-humans-tornado-oauth2==2.0.0',
          'passlib==1.6.2',
          'psycopg2',
          'pycrypto==2.6.1',
          'redis',
          'requests',
          'tornado==3.2.2',
          'WTForms==2.0.1',
          'natsort'
      ],
      classifiers=classifiers)
<|endoftext|>


<commit_before>from setuptools import setup

long_desc = open('README.md').read()

setup(
    name='lenscap',
    version='0.2.0',
    url='',
    install_requires=[
        'misaka==1.0.2',
        'jinja2==2.7.3',
        'pillow==2.6.1',
        'pyyaml==4.2b1'
    ],
    description='static photo story generator',
    long_description=long_desc,
    author='Honza Pokorny',
    author_email='me@honza.ca',
    maintainer='Honza Pokorny',
    maintainer_email='me@honza.ca',
    packages=['lenscap'],
    include_package_data=True,
    scripts=['bin/lenscap']
)
<commit_msg>Bump version<commit_after>from setuptools import setup

long_desc = open('README.md').read()

setup(
    name='lenscap',
    version='0.2.1',
    url='',
    install_requires=[
        'misaka==1.0.2',
        'jinja2==2.7.3',
        'pillow==2.6.1',
        'pyyaml==4.2b1'
    ],
    description='static photo story generator',
    long_description=long_desc,
    author='Honza Pokorny',
    author_email='me@honza.ca',
    maintainer='Honza Pokorny',
    maintainer_email='me@honza.ca',
    packages=['lenscap'],
    include_package_data=True,
    scripts=['bin/lenscap']
)
<|endoftext|>


<commit_before>from os.path import join
import sys

from neuroimaging import packages, __version__, __doc__

py_modules = ['fff2']

def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration

    config = Configuration(None, parent_package, top_path)
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)
    # The quiet=True option will silence all of the name setting warnings:
    # Ignoring attempt to set 'name' (from 'neuroimaging.core' to
    #    'neuroimaging.core.image')
    # Robert Kern recommends setting quiet=True on the numpy list, stating
    # these messages are probably only used in debugging numpy distutils.

    config.get_version('neuroimaging/version.py') # sets config.version

    config.add_subpackage('neuroimaging', 'neuroimaging')

    return config

def main(packages):
    from numpy.distutils.core import setup
    from neuroimaging.version import version
    #packages = ['']+list(packages)

    setup( name = 'neuroimaging',
           version = version, # will be overwritten by configuration version
           description = 'This is a neuroimaging python package',
           author = 'Various',
           author_email = 'nipy-devel@neuroimaging.scipy.org',
           #ext_package = 'neuroimaging',
           #packages=packages,
           #package_dir = package_dir,
           py_modules = py_modules,
           url = 'http://neuroimaging.scipy.org',
           long_description = __doc__,
           configuration = configuration)

if __name__ == "__main__":
    main(packages)
<commit_msg>Make a separate fff2 setup, so that only users who actually need fff2 get it.<commit_after>#!/usr/bin/env python
from os.path import join
import sys

from neuroimaging import packages, __version__, __doc__

def configuration(parent_package='',top_path=None):
    from numpy.distutils.misc_util import Configuration

    config = Configuration(None, parent_package, top_path)
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)
    # The quiet=True option will silence all of the name setting warnings:
    # Ignoring attempt to set 'name' (from 'neuroimaging.core' to
    #    'neuroimaging.core.image')
    # Robert Kern recommends setting quiet=True on the numpy list, stating
    # these messages are probably only used in debugging numpy distutils.

    config.get_version('neuroimaging/version.py') # sets config.version

    config.add_subpackage('neuroimaging', 'neuroimaging')

    return config

def main(packages):
    from numpy.distutils.core import setup
    from neuroimaging.version import version
    #packages = ['']+list(packages)

    setup( name = 'neuroimaging',
           version = version, # will be overwritten by configuration version
           description = 'This is a neuroimaging python package',
           author = 'Various',
           author_email = 'nipy-devel@neuroimaging.scipy.org',
           #ext_package = 'neuroimaging',
           #packages=packages,
           #package_dir = package_dir,
           url = 'http://neuroimaging.scipy.org',
           long_description = __doc__,
           configuration = configuration)

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


<commit_before>from setuptools import setup

setup(
    name='Code Debt Metrics',
    version='0.1',
    packages=['git_code_debt', 'git_code_debt_server', 'git_code_debt_util'],
    install_requires=[
        'flask',
        'mako',
        'simplejson',
    ],
)
<commit_msg>Setup more correct<commit_after>from setuptools import setup

setup(
    name='Code Debt Metrics',
    version='0.1.1',
    packages=[
       'git_code_debt',
       'git_code_debt.metrics',
       'git_code_debt_server',
       'git_code_debt_server.logic',
       'git_code_debt_server.servlets',
       'git_code_debt_util',
    ],
    install_requires=[
        'flask',
        'mako',
        'simplejson',
    ],
)
<|endoftext|>


<commit_before># coding=utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""setuptools install script"""

from setuptools import find_packages
from setuptools import setup

EXTRAS = {
    "test": [
        "codecov==2.0.15",
        "coverage>=4.5.4,<4.6",
        "distro>=1.3.0",
        "flake8==3.7.8",
        "flake8-commas==2.0.0",
        "flake8-isort==2.7.0",
        "flake8-quotes==2.1.0",
        "isort==4.3.21",
        "pylint==2.4.1",
        "pytest>=5.2.1,<5.3",
        "pytest-cov>=2.8.1,<2.9",
        "pytest-flake8>=1.0.4,<1.1",
        "pytest-pylint>=0.14.0,<0.15",
    ]}

if __name__ == "__main__":
    setup(name="funfuzz",
          version="0.7.0a1",
          entry_points={
              "console_scripts": ["funfuzz = funfuzz.bot:main"],
          },
          package_data={"funfuzz": [
              "autobisectjs/*",
              "ccoverage/*",
              "js/*",
              "js/jsfunfuzz/*",
              "js/shared/*",
              "util/*",
          ]},
          package_dir={"": "src"},
          packages=find_packages(where="src"),
          install_requires=[
              "boto>=2.49.0",
              "fasteners>=0.14.1,<0.15",
              # https://www.mercurial-scm.org/wiki/SupportedPythonVersions#Python_3.x_support
              # "mercurial>=4.7.2",  # Mercurial does not support Python 3 yet
              "requests>=2.20.1",
          ],
          extras_require=EXTRAS,
          python_requires=">=3.6",
          zip_safe=False)
<commit_msg>Bump pylint to 2.4.2<commit_after># coding=utf-8
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

"""setuptools install script"""

from setuptools import find_packages
from setuptools import setup

EXTRAS = {
    "test": [
        "codecov==2.0.15",
        "coverage>=4.5.4,<4.6",
        "distro>=1.3.0",
        "flake8==3.7.8",
        "flake8-commas==2.0.0",
        "flake8-isort==2.7.0",
        "flake8-quotes==2.1.0",
        "isort==4.3.21",
        "pylint==2.4.2",
        "pytest>=5.2.1,<5.3",
        "pytest-cov>=2.8.1,<2.9",
        "pytest-flake8>=1.0.4,<1.1",
        "pytest-pylint>=0.14.0,<0.15",
    ]}

if __name__ == "__main__":
    setup(name="funfuzz",
          version="0.7.0a1",
          entry_points={
              "console_scripts": ["funfuzz = funfuzz.bot:main"],
          },
          package_data={"funfuzz": [
              "autobisectjs/*",
              "ccoverage/*",
              "js/*",
              "js/jsfunfuzz/*",
              "js/shared/*",
              "util/*",
          ]},
          package_dir={"": "src"},
          packages=find_packages(where="src"),
          install_requires=[
              "boto>=2.49.0",
              "fasteners>=0.14.1,<0.15",
              # https://www.mercurial-scm.org/wiki/SupportedPythonVersions#Python_3.x_support
              # "mercurial>=4.7.2",  # Mercurial does not support Python 3 yet
              "requests>=2.20.1",
          ],
          extras_require=EXTRAS,
          python_requires=">=3.6",
          zip_safe=False)
<|endoftext|>


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

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

import os
import re
import sys

from setuptools import setup, find_packages, Extension
import pkg_resources

import bndl

install_requires = [
    'sortedcontainers',
    'cycloudpickle',
    'cyhll',
    'cytoolz',
    'numpy',
    'scipy',
    'pandas',
    'flask',
    'mmh3',
    'psutil>=4.4',
    'tblib',
    'marisa_trie',
    'yappi<=0.93',
    'lz4',
    'cyheapq',
]

if sys.version_info < (3, 5):
    install_requires.append('scandir')

if sys.version_info >= (3, 5):
    install_requires.append('uvloop')

dev_requires = [
    'cython>=0.25.2',
    'pytest',
    'pytest-cov',
    'pylint',
    'flake8',
    'sphinx',
    'sphinx-autobuild',
    'sphinx-rtd-theme',
    'sphinxcontrib-programoutput',
]

def get_distributions(requirements):
    packages = set(p.name for p in pkg_resources.parse_requirements(requirements))
    for p in packages:
        yield pkg_resources.get_distribution(p)

def print_distributions(requirements):
    dists = sorted(get_distributions(requirements), key=lambda d: d.project_name)
    for dist in dists:
        print(dist.project_name.ljust(30), dist.version)

ext = re.compile(r'\.pyx$')

extensions = [
    Extension(
        '.'.join((root.replace(os.sep, '.'), ext.sub('', f))),
        [os.path.join(root, f)]
    )
    for root, dirs, files in os.walk('bndl')
    for f in files
    if not root.endswith('tests')
    if ext.search(f)
]

try:
    from Cython.Build import cythonize
    extensions = cythonize(extensions, compiler_directives={
        'language_level': 3
    })
except ImportError:
    pass

if __name__ == '__main__':
    setup(
        name='bndl',
        version=bndl.__version__,
        url='https://stash.tgho.nl/projects/THCLUSTER/repos/bndl/browse',
        description='Bundle compute resources with BNDL',
        long_description=open('README.rst').read(),
        author='Frens Jan Rumph',
        author_email='mail@frensjan.nl',

        packages=(
            find_packages()
        ),

        data_files=[
            (
                os.path.join('docs/bndl', root.replace('docs/build/', '')),
                [os.path.join(root, f) for f in files]
            )
            for root, dirs, files in os.walk('docs/build/html')
        ],

        include_package_data=True,
        zip_safe=False,

        install_requires=install_requires,
        extras_require=dict(
            dev=dev_requires,
        ),

        ext_modules=extensions,

        entry_points=dict(
            console_scripts=[
                'bndl-compute-shell = bndl.compute.shell:main',
                'bndl-compute-worker = bndl.compute.worker:main',
            ],
        ),

        classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Developers',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
        ],
    )
<commit_msg>add pandas and msgpack for tests<commit_after>#!/usr/bin/env python

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

import os
import re
import sys

from setuptools import setup, find_packages, Extension
import pkg_resources

import bndl

install_requires = [
    'sortedcontainers',
    'cycloudpickle',
    'cyhll',
    'cytoolz',
    'numpy',
    'scipy',
    'pandas',
    'flask',
    'mmh3',
    'psutil>=4.4',
    'tblib',
    'marisa_trie',
    'yappi<=0.93',
    'lz4',
    'cyheapq',
]

if sys.version_info < (3, 5):
    install_requires.append('scandir')

if sys.version_info >= (3, 5):
    install_requires.append('uvloop')

dev_requires = [
    'cython>=0.25.2',
    'pytest',
    'pytest-cov',
    'pylint',
    'flake8',
    'sphinx',
    'sphinx-autobuild',
    'sphinx-rtd-theme',
    'sphinxcontrib-programoutput',
    'pandas',
    'msgpack',
]

def get_distributions(requirements):
    packages = set(p.name for p in pkg_resources.parse_requirements(requirements))
    for p in packages:
        yield pkg_resources.get_distribution(p)

def print_distributions(requirements):
    dists = sorted(get_distributions(requirements), key=lambda d: d.project_name)
    for dist in dists:
        print(dist.project_name.ljust(30), dist.version)

ext = re.compile(r'\.pyx$')

extensions = [
    Extension(
        '.'.join((root.replace(os.sep, '.'), ext.sub('', f))),
        [os.path.join(root, f)]
    )
    for root, dirs, files in os.walk('bndl')
    for f in files
    if not root.endswith('tests')
    if ext.search(f)
]

try:
    from Cython.Build import cythonize
    extensions = cythonize(extensions, compiler_directives={
        'language_level': 3
    })
except ImportError:
    pass

if __name__ == '__main__':
    setup(
        name='bndl',
        version=bndl.__version__,
        url='https://stash.tgho.nl/projects/THCLUSTER/repos/bndl/browse',
        description='Bundle compute resources with BNDL',
        long_description=open('README.rst').read(),
        author='Frens Jan Rumph',
        author_email='mail@frensjan.nl',

        packages=(
            find_packages()
        ),

        data_files=[
            (
                os.path.join('docs/bndl', root.replace('docs/build/', '')),
                [os.path.join(root, f) for f in files]
            )
            for root, dirs, files in os.walk('docs/build/html')
        ],

        include_package_data=True,
        zip_safe=False,

        install_requires=install_requires,
        extras_require=dict(
            dev=dev_requires,
        ),

        ext_modules=extensions,

        entry_points=dict(
            console_scripts=[
                'bndl-compute-shell = bndl.compute.shell:main',
                'bndl-compute-worker = bndl.compute.worker:main',
            ],
        ),

        classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: Developers',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Programming Language :: Python :: 3.4',
            'Programming Language :: Python :: 3.5',
        ],
    )
<|endoftext|>


<commit_before># Copyright (c) 2014. Mount Sinai School of Medicine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os

readme_filename = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme_filename, 'r') as f:
  readme = f.read()

try:
  import pypandoc
  readme = pypandoc.convert(readme, to='rst', format='md')
except:
  #print "Conversion of long_description from markdown to reStructuredText failed, skipping..."
  pass

from setuptools import setup

if __name__ == '__main__':
    setup(
        name='datacache',
        version="0.3.3",
        description="Helpers for transparently downloading datasets",
        author="Alex Rubinsteyn",
        author_email="alex {dot} rubinsteyn {at} mssm {dot} edu",
        url="https://github.com/hammerlab/datacache",
	      license="http://www.apache.org/licenses/LICENSE-2.0.html",
        classifiers=[
            'Development Status :: 3 - Alpha',
            'Environment :: Console',
            'Operating System :: OS Independent',
            'Intended Audience :: Science/Research',
	          'License :: OSI Approved :: Apache Software License',
            'Programming Language :: Python',
            'Topic :: Scientific/Engineering :: Bio-Informatics',
             ],
        install_requires=['pandas', 'appdirs', 'progressbar', 'biopython', 'requests'],
        long_description=readme,
        packages=['datacache'],
    )
<commit_msg>version bump<commit_after># Copyright (c) 2014. Mount Sinai School of Medicine
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os

readme_filename = os.path.join(os.path.dirname(__file__), 'README.md')
with open(readme_filename, 'r') as f:
  readme = f.read()

try:
  import pypandoc
  readme = pypandoc.convert(readme, to='rst', format='md')
except:
  #print "Conversion of long_description from markdown to reStructuredText failed, skipping..."
  pass

from setuptools import setup

if __name__ == '__main__':
    setup(
        name='datacache',
        version="0.3.4",
        description="Helpers for transparently downloading datasets",
        author="Alex Rubinsteyn",
        author_email="alex {dot} rubinsteyn {at} mssm {dot} edu",
        url="https://github.com/hammerlab/datacache",
	      license="http://www.apache.org/licenses/LICENSE-2.0.html",
        classifiers=[
            'Development Status :: 3 - Alpha',
            'Environment :: Console',
            'Operating System :: OS Independent',
            'Intended Audience :: Science/Research',
	          'License :: OSI Approved :: Apache Software License',
            'Programming Language :: Python',
            'Topic :: Scientific/Engineering :: Bio-Informatics',
             ],
        install_requires=['pandas', 'appdirs', 'progressbar', 'biopython', 'requests'],
        long_description=readme,
        packages=['datacache'],
    )
<|endoftext|>


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

from setuptools import setup

setup_args = dict(
    name                = 'jupyterlmod',
    packages            = ['jupyterlmod', 'lmod'],
    package_data        = {'jupyterlmod' : ['static/*']},
    version             = "1.1.0",
    description         = "jupyterlmod: A custom handler to use lmod through Jupyter.",
    long_description    = "",
    author              = "Félix-Antoine Fortin",
    author_email        = "felix-antoine.fortin@calculquebec.ca",
    url                 = "http://www.calculquebec.ca",
    license             = "MIT",
    platforms           = "Linux, Mac OS X",
    keywords            = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Lmod'],
    classifiers         = [
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
    ],
    install_requires   = [
    'jupyter>=1.0.0',
    ],
)

def main():
    setup(**setup_args)

if __name__ == '__main__':
    main()
<commit_msg>Bump version number<commit_after>#!/usr/bin/env python
# coding: utf-8

from setuptools import setup

setup_args = dict(
    name                = 'jupyterlmod',
    packages            = ['jupyterlmod', 'lmod'],
    package_data        = {'jupyterlmod' : ['static/*']},
    version             = "1.1.1",
    description         = "jupyterlmod: A custom handler to use lmod through Jupyter.",
    long_description    = "",
    author              = "Félix-Antoine Fortin",
    author_email        = "felix-antoine.fortin@calculquebec.ca",
    url                 = "http://www.calculquebec.ca",
    license             = "MIT",
    platforms           = "Linux, Mac OS X",
    keywords            = ['Interactive', 'Interpreter', 'Shell', 'Web', 'Lmod'],
    classifiers         = [
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
    ],
    install_requires   = [
    'jupyter>=1.0.0',
    ],
)

def main():
    setup(**setup_args)

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


<commit_before>try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

CLASSIFIERS=[
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: BSD License',
    'Framework :: Django',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.5',
    'Topic :: Internet :: WWW/HTTP',
]

setup(
    name='django-pyodbc-azure',
    version='1.9.0.0',
    description='Django backend for Microsoft SQL Server and Azure SQL Database using pyodbc',
    long_description=open('README.rst').read(),
    author='Michiya Takahashi',
    author_email='michiya.takahashi@gmail.com',
    url='https://github.com/michiya/django-pyodbc-azure',
    license='BSD',
    packages=['sql_server', 'sql_server.pyodbc'],
    install_requires=[
        'Django>=1.9.,<1.10',
        'pyodbc>=3.0',
    ],
    classifiers=CLASSIFIERS,
    keywords='azure django',
)
<commit_msg>bump the version number<commit_after>try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

CLASSIFIERS=[
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: BSD License',
    'Framework :: Django',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3.5',
    'Topic :: Internet :: WWW/HTTP',
]

setup(
    name='django-pyodbc-azure',
    version='1.9.0.1',
    description='Django backend for Microsoft SQL Server and Azure SQL Database using pyodbc',
    long_description=open('README.rst').read(),
    author='Michiya Takahashi',
    author_email='michiya.takahashi@gmail.com',
    url='https://github.com/michiya/django-pyodbc-azure',
    license='BSD',
    packages=['sql_server', 'sql_server.pyodbc'],
    install_requires=[
        'Django>=1.9.,<1.10',
        'pyodbc>=3.0',
    ],
    classifiers=CLASSIFIERS,
    keywords='azure django',
)
<|endoftext|>


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

DESCRIPTION = "A simple lightweight python wrapper for the Azure Bing Search API."
VERSION = '0.2.3'
LONG_DESCRIPTION = None
try:
    LONG_DESCRIPTION = open('README.md').read()
except:
    pass

CLASSIFIERS = [
    'Development Status :: 4 - Beta',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    "Programming Language :: Python :: 2",
    "Programming Language :: Python :: 3",
    'Topic :: Software Development :: Libraries :: Python Modules',
]

KEYWORDS = ['Azure', 'Bing', 'API', 'Search']

INSTALL_REQUIRES = [
    'requests',
]

setup(
    name='py-bing-search',
    #packages = ['py_bing_search'],
    packages = find_packages(),
    version=VERSION,
    author=u'Tristan Tao',
    author_email='tristan@teamleada.com',
    url='https://github.com/tristantao/py-bing-search',
    license='MIT',
    keywords=KEYWORDS,
    description=DESCRIPTION,
    long_description=LONG_DESCRIPTION,
    classifiers=CLASSIFIERS,
    install_requires=INSTALL_REQUIRES,
)
<commit_msg>had to bump version<commit_after>from setuptools import setup, find_packages
import os
import platform

DESCRIPTION = "A simple lightweight python wrapper for the Azure Bing Search API."
VERSION = '0.2.4'
LONG_DESCRIPTION = None
try:
    LONG_DESCRIPTION = open('README.md').read()
except:
    pass

CLASSIFIERS = [
    'Development Status :: 4 - Beta',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: MIT License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    "Programming Language :: Python :: 2",
    "Programming Language :: Python :: 3",
    'Topic :: Software Development :: Libraries :: Python Modules',
]

KEYWORDS = ['Azure', 'Bing', 'API', 'Search']

INSTALL_REQUIRES = [
    'requests',
]

setup(
    name='py-bing-search',
    #packages = ['py_bing_search'],
    packages = find_packages(),
    version=VERSION,
    author=u'Tristan Tao',
    author_email='tristan@teamleada.com',
    url='https://github.com/tristantao/py-bing-search',
    license='MIT',
    keywords=KEYWORDS,
    description=DESCRIPTION,
    long_description=LONG_DESCRIPTION,
    classifiers=CLASSIFIERS,
    install_requires=INSTALL_REQUIRES,
)
<|endoftext|>


<commit_before># -*- coding:utf-8 -*-
"""Setup for att-bill-splitter."""

import configparser
import os
from urllib import request
import zipfile
from setuptools import find_packages, setup
from setuptools.command.install import install

CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
CHROMEDRIVER_ZIP_PATH = os.path.join(CURRENT_DIR, 'chromedriver.zip')
CHROMEDRIVER_PATH = os.path.join(CURRENT_DIR, 'chromedriver')
CONFIG_PATH = os.path.expanduser('~/.attbillsplitter.conf')

def save_config():
    """Save current path to config file."""
    config = configparser.ConfigParser()
    config['settings'] = {}
    config['settings']['project_path'] = CURRENT_DIR
    with open(CONFIG_PATH, 'w') as configfile:
        config.write(configfile)

def download_chrome_driver():
    """Download chromedriver 2.24 for mac os from
    http://chromedriver.storage.googleapis.com/2.24/chromedriver_mac64.zip
    """
    url = ('http://chromedriver.storage.googleapis.com/2.24/'
           'chromedriver_mac64.zip')
    print('Start dowloading chromedriver...')
    req = request.urlopen(url)
    with open(CHROMEDRIVER_ZIP_PATH, 'wb') as f:
        f.write(req.read())
    print('chromedriver.zip downloaded.')

def unzip_chrome_driver():
    """Unzip chromedriver.zip."""
    # unzip
    print('Start installing chromedriver.zip...')
    zf = zipfile.ZipFile(CHROMEDRIVER_ZIP_PATH)
    with open(CHROMEDRIVER_PATH, 'wb') as f:
        f.write(zf.read('chromedriver'))
    # delete the .zip file
    os.remove(CHROMEDRIVER_ZIP_PATH)
    # change permission on the executable
    os.chmod(CHROMEDRIVER_PATH, 0o755)
    print('chromedriver installed.')
    print('chromedriver.zip deleted.')

class InstallChromedriver(install):
    """Customized setuptools install command - download and install
    chromedriver.
    """
    def run(self):
        download_chrome_driver()
        unzip_chrome_driver()
        save_config()
        install.run(self)

setup(
    name='att-bill-splitter',
    description='Parse AT&T bill and split wireless charges among users.',
    version='0.1',
    author='Brian Zhang',
    author_email='leapingzhang@gmail.com',
    install_requires=[
        'peewee>=2.8.4',
        'python-slugify>=1.2.1',
        'selenium>=2.40.0',
        'Unidecode>=0.4.19',
        'twilio>=5.6.0',
        'click>=6.6'
    ],
    packages=find_packages(),
    extras_require={
        'testing': [
            'pytest>=2.9.2'
        ]
    },
    entry_points={
        'console_scripts': [
            'att-split-bill=attbillsplitter.entrypoints:split_bill',
            'att-print-summary=attbillsplitter.entrypoints:print_summary',
            'att-print-details=attbillsplitter.entrypoints:print_details',
            'att-notify-users=attbillsplitter.entrypoints:notify_users',
            'att-init-twilio=attbillsplitter.entrypoints:init_twilio',
            'att-init-payment-msg=attbillsplitter.entrypoints:init_payment_msg'
        ],
    },
    cmdclass={
        'install': InstallChromedriver
    },
    zip_safe=False
)
<commit_msg>replace install.run(self) with install.do_egg_install()<commit_after># -*- coding:utf-8 -*-
"""Setup for att-bill-splitter."""

import configparser
import os
from urllib import request
import zipfile
from setuptools import find_packages, setup
from setuptools.command.install import install

CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
CHROMEDRIVER_ZIP_PATH = os.path.join(CURRENT_DIR, 'chromedriver.zip')
CHROMEDRIVER_PATH = os.path.join(CURRENT_DIR, 'chromedriver')
CONFIG_PATH = os.path.expanduser('~/.attbillsplitter.conf')

def save_config():
    """Save current path to config file."""
    config = configparser.ConfigParser()
    config['settings'] = {}
    config['settings']['project_path'] = CURRENT_DIR
    with open(CONFIG_PATH, 'w') as configfile:
        config.write(configfile)

def download_chrome_driver():
    """Download chromedriver 2.24 for mac os from
    http://chromedriver.storage.googleapis.com/2.24/chromedriver_mac64.zip
    """
    url = ('http://chromedriver.storage.googleapis.com/2.24/'
           'chromedriver_mac64.zip')
    print('Start dowloading chromedriver...')
    req = request.urlopen(url)
    with open(CHROMEDRIVER_ZIP_PATH, 'wb') as f:
        f.write(req.read())
    print('chromedriver.zip downloaded.')

def unzip_chrome_driver():
    """Unzip chromedriver.zip."""
    # unzip
    print('Start installing chromedriver.zip...')
    zf = zipfile.ZipFile(CHROMEDRIVER_ZIP_PATH)
    with open(CHROMEDRIVER_PATH, 'wb') as f:
        f.write(zf.read('chromedriver'))
    # delete the .zip file
    os.remove(CHROMEDRIVER_ZIP_PATH)
    # change permission on the executable
    os.chmod(CHROMEDRIVER_PATH, 0o755)
    print('chromedriver installed.')
    print('chromedriver.zip deleted.')

class InstallChromedriver(install):
    """Customized setuptools install command - download and install
    chromedriver.
    """
    def run(self):
        download_chrome_driver()
        unzip_chrome_driver()
        save_config()
        install.do_egg_install(self)

setup(
    name='att-bill-splitter',
    description='Parse AT&T bill and split wireless charges among users.',
    version='0.1',
    author='Brian Zhang',
    author_email='leapingzhang@gmail.com',
    install_requires=[
        'peewee>=2.8.4',
        'python-slugify>=1.2.1',
        'selenium>=2.40.0',
        'Unidecode>=0.4.19',
        'twilio>=5.6.0',
        'click>=6.6'
    ],
    packages=find_packages(),
    extras_require={
        'testing': [
            'pytest>=2.9.2'
        ]
    },
    entry_points={
        'console_scripts': [
            'att-split-bill=attbillsplitter.entrypoints:split_bill',
            'att-print-summary=attbillsplitter.entrypoints:print_summary',
            'att-print-details=attbillsplitter.entrypoints:print_details',
            'att-notify-users=attbillsplitter.entrypoints:notify_users',
            'att-init-twilio=attbillsplitter.entrypoints:init_twilio',
            'att-init-payment-msg=attbillsplitter.entrypoints:init_payment_msg'
        ],
    },
    cmdclass={
        'install': InstallChromedriver
    },
    zip_safe=False
)
<|endoftext|>


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

from distutils.core import setup

setup(
    name='bctools',
    version='0.0.1',
    description='A set of tools for handling barcodes in NGS data.',
    author='Daniel Maticzka',
    author_email='maticzkd@informatik.uni-freiburg.de',
    url='https://github.com/tzk/bctools',
    long_description=open('README.md').read(),
    scripts=[
        "bin/extract_bcs.py",
        "bin/extract_aln_ends.py",
        "bin/convert_bc_to_binary_RY.py",
        "bin/coords2clnt.py",
        "bin/merge_pcr_duplicates.py",
        "bin/remove_tail.py",
        "bin/rm_spurious_events.py",
    ],
    install_requires=[
        "scripttest",
        "argparse",
        "biopython",
        "pandas>=0.14.1",
        "pybedtools>=0.6.6",
    ]
)
<commit_msg>switch to setuptools<commit_after>#!/usr/bin/env python

from setuptools import setup

setup(
    name='bctools',
    version='0.0.1',
    description='A set of tools for handling barcodes in NGS data.',
    author='Daniel Maticzka',
    author_email='maticzkd@informatik.uni-freiburg.de',
    url='https://github.com/tzk/bctools',
    long_description=open('README.md').read(),
    scripts=[
        "bin/extract_bcs.py",
        "bin/extract_aln_ends.py",
        "bin/convert_bc_to_binary_RY.py",
        "bin/coords2clnt.py",
        "bin/merge_pcr_duplicates.py",
        "bin/remove_tail.py",
        "bin/rm_spurious_events.py",
    ],
    install_requires=[
        "scripttest",
        "argparse",
        "biopython",
        "pandas>=0.14.1",
        "pybedtools>=0.6.6",
    ]
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
"""
Sentry
======

Sentry is a realtime event logging and aggregation platform. At it's core it
specializes in monitoring errors and extracting all the information needed
to do a proper post-mortum without any of the hassle of the standard user
feedback loop.

Sentry is a Server
------------------

The Sentry package at its core is just a simply server and web UI. It will
handle authentication clients (such as `Raven <https://github.com/dcramer/raven>`_)
and all of the logic behind storage and aggregation.

The said, Sentry is not limited to Python. The primary implementation is in
Python, but it contains a full API for sending events from any language, in
any application.
"""

import sys

try:
    from setuptools import setup, find_packages, Command
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()
    from setuptools import setup, find_packages, Command

tests_require = [
    'nose==1.1.2',
    'django-nose==0.1.3',

    # celery
    'django-celery',
]

install_requires = [
    'Django>=1.2,<1.4',
    'django-bitfield',
    'django-paging>=0.2.4',
    'django-indexer>=0.3.0',
    'django-templatetag-sugar>=0.1.0',
    'raven>=2.0.0',
    'python-daemon>=1.6',
    'eventlet>=0.9.15',
    'South>=0.7',
]

if sys.version_info[:2] < (2, 5):
    install_requires.append('uuid')

setup(
    name='sentry',
    version='2.0.0-Alpha1',
    author='David Cramer',
    author_email='dcramer@gmail.com',
    url='http://github.com/dcramer/sentry',
    description='A realtime logging an aggregation server.',
    long_description=__doc__,
    packages=find_packages(exclude=("example_project", "tests")),
    zip_safe=False,
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require={'test': tests_require},
    test_suite='runtests.runtests',
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'sentry = sentry.scripts.runner:main',
        ],
    },
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<commit_msg>No longer support Python 2.4<commit_after>#!/usr/bin/env python
"""
Sentry
======

Sentry is a realtime event logging and aggregation platform. At it's core it
specializes in monitoring errors and extracting all the information needed
to do a proper post-mortum without any of the hassle of the standard user
feedback loop.

Sentry is a Server
------------------

The Sentry package at its core is just a simply server and web UI. It will
handle authentication clients (such as `Raven <https://github.com/dcramer/raven>`_)
and all of the logic behind storage and aggregation.

The said, Sentry is not limited to Python. The primary implementation is in
Python, but it contains a full API for sending events from any language, in
any application.
"""
from setuptools import setup, find_packages

tests_require = [
    'nose==1.1.2',
    'django-nose==0.1.3',

    # celery
    'django-celery',
]

install_requires = [
    'Django>=1.2,<1.4',
    'django-bitfield',
    'django-paging>=0.2.4',
    'django-indexer>=0.3.0',
    'django-templatetag-sugar>=0.1.0',
    'raven>=2.0.0',
    'python-daemon>=1.6',
    'eventlet>=0.9.15',
    'South>=0.7',
]

setup(
    name='sentry',
    version='2.0.0-Alpha1',
    author='David Cramer',
    author_email='dcramer@gmail.com',
    url='http://github.com/dcramer/sentry',
    description='A realtime logging an aggregation server.',
    long_description=__doc__,
    packages=find_packages(exclude=("example_project", "tests")),
    zip_safe=False,
    install_requires=install_requires,
    tests_require=tests_require,
    extras_require={'test': tests_require},
    test_suite='runtests.runtests',
    include_package_data=True,
    entry_points={
        'console_scripts': [
            'sentry = sentry.scripts.runner:main',
        ],
    },
    classifiers=[
        'Framework :: Django',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development'
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

requirements = [
    'boto>=2.8.0,<3.0',
]

setup(
    name='celery-s3',
    version='1.0.0',
    description='An S3 result store backend for Celery',
    long_description=open('README.md').read(),
    author='Rob Golding',
    author_email='rob@robgolding.com',
    license='BSD',
    url='https://github.com/robgolding63/celery-s3',
    download_url='https://github.com/robgolding63/celery-s3/downloads',
    packages=find_packages(),
    include_package_data=True,
    install_requires=requirements,
    tests_require=requirements + [
        'celery==4.1.0',
    ],
    test_suite='celery_s3.tests',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        'License :: OSI Approved :: BSD License',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Distributed Computing',
        'Programming Language :: Python',
        'Operating System :: OS Independent',
    ],
)
<commit_msg>Bump version to 1.0.1<commit_after>from setuptools import setup, find_packages

requirements = [
    'boto>=2.8.0,<3.0',
]

setup(
    name='celery-s3',
    version='1.0.1',
    description='An S3 result store backend for Celery',
    long_description=open('README.md').read(),
    author='Rob Golding',
    author_email='rob@robgolding.com',
    license='BSD',
    url='https://github.com/robgolding63/celery-s3',
    download_url='https://github.com/robgolding63/celery-s3/downloads',
    packages=find_packages(),
    include_package_data=True,
    install_requires=requirements,
    tests_require=requirements + [
        'celery==4.1.0',
    ],
    test_suite='celery_s3.tests',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Programming Language :: Python',
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        'License :: OSI Approved :: BSD License',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Distributed Computing',
        'Programming Language :: Python',
        'Operating System :: OS Independent',
    ],
)
<|endoftext|>


<commit_before>import os
from setuptools import setup

PROJECT_NAME = 'actionslog'
ROOT = os.path.abspath(os.path.dirname(__file__))
VENV = os.path.join(ROOT, '.venv')
VENV_LINK = os.path.join(VENV, 'local')

install_requires = [
    'Django>=1.8',
    'django-jsonfield>=0.9.15',
]

project = __import__(PROJECT_NAME)

root_dir = os.path.dirname(__file__)

if root_dir:
    os.chdir(root_dir)

data_files = []
for dirpath, dirnames, filenames in os.walk(PROJECT_NAME):
    for i, dirname in enumerate(dirnames):
        if dirname.startswith('.'):
            del dirnames[i]
    if '__init__.py' in filenames:
        continue
    elif filenames:
        for f in filenames:
            data_files.append(os.path.join(
                dirpath[len(PROJECT_NAME) + 1:], f))

with open(os.path.join(root_dir, 'README.rst')) as readme:
    README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='django-actions-logger',
    version=project.get_version(),
    packages=['actionslog'],
    include_package_data=True,
    url='https://github.com/shtalinberg/django-actions-logger',
    license='MIT',
    author='Oleksandr Shtalinberg',
    author_email='shtalinberg@ukr.net',
    description='A Django app that keeps a log of user actions or changes in objects',
    long_description=README,
    keywords='django actions log action logger',
    install_requires=install_requires,
    package_data={PROJECT_NAME: data_files},
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Utilities',
    ],
    zip_safe=False,
)
<commit_msg>try fix setup<commit_after>import os
from setuptools import setup

PROJECT_NAME = 'actionslog'
ROOT = os.path.abspath(os.path.dirname(__file__))
VENV = os.path.join(ROOT, '.venv')
VENV_LINK = os.path.join(VENV, 'local')

install_requires = [
    'Django>=1.8',
    'django-jsonfield>=0.9.15',
]

project = __import__(PROJECT_NAME)

root_dir = os.path.dirname(__file__)

if root_dir:
    os.chdir(root_dir)

data_files = []
for dirpath, dirnames, filenames in os.walk(PROJECT_NAME):
    for i, dirname in enumerate(dirnames):
        if dirname.startswith('.'):
            del dirnames[i]
    if '__init__.py' in filenames:
        continue
    elif filenames:
        for f in filenames:
            data_files.append(os.path.join(
                dirpath[len(PROJECT_NAME) + 1:], f))

with open(os.path.join(root_dir, 'README.rst')) as readme:
    README = readme.read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

setup(
    name='django-actions-logger',
    version=project.get_version(),
    packages=['actionslog', 'actionslog.migrations'],
    include_package_data=True,
    url='https://github.com/shtalinberg/django-actions-logger',
    license='MIT',
    author='Oleksandr Shtalinberg',
    author_email='shtalinberg@ukr.net',
    description='A Django app that keeps a log of user actions or changes in objects',
    long_description=README,
    keywords='django actions log action logger',
    install_requires=install_requires,
    package_data={PROJECT_NAME: data_files},
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Utilities',
    ],
    zip_safe=False,
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
import re
import sys
from setuptools import setup, find_packages
import unittest
from setuptools.command.test import test as TestCommand

REQUIRES = [
    '-e git+https://github.com/rliebz/python-client-sword2.git#egg=sword2',
    'bleach==1.2.2',
    'requests==2.2.1',
    'lxml==3.2.5',
]

TEST_REQUIRES = [

]

def read(fname):
    with open(fname) as fp:
        content = fp.read()
    return content

setup(
    name='dataverse',
    version='0.1',
    description='Python client for Dataverse version 3.X',
    long_description=read("README.md"),
    author='Dataverse',
    author_email='rliebz@gmail.com',
    url='https://github.com/rliebz/dvn-client-python',
    packages=find_packages(),
    package_dir={'dvn-client-python': 'dataverse'},
    include_package_data=True,
    install_requires=REQUIRES,
    license=read("LICENSE"),
    zip_safe=False,
    keywords='dataverse',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    test_suite='dataverse/test',
    tests_require=TEST_REQUIRES,
    cmdclass={'test': unittest}

)<commit_msg>Fixes setup issue.<commit_after># -*- coding: utf-8 -*-
import re
import sys
from setuptools import setup, find_packages
import unittest
from setuptools.command.test import test as TestCommand

REQUIRES = [
    '-e git+https://github.com/rliebz/python-client-sword2.git#egg=sword2',
    'bleach==1.2.2',
    'requests==2.2.1',
    'lxml==3.2.5',
]

TEST_REQUIRES = [

]

def read(fname):
    with open(fname) as fp:
        content = fp.read()
    return content

setup(
    name='dataverse',
    version='0.1',
    description='Python client for Dataverse version 3.X',
    long_description=read("readme.md"),
    author='Dataverse',
    author_email='rliebz@gmail.com',
    url='https://github.com/rliebz/dvn-client-python',
    packages=find_packages(),
    package_dir={'dvn-client-python': 'dataverse'},
    include_package_data=True,
    install_requires=REQUIRES,
    license=read("LICENSE"),
    zip_safe=False,
    keywords='dataverse',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
    ],
    test_suite='dataverse/test',
    tests_require=TEST_REQUIRES,
    cmdclass={'test': unittest}

)<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='django-birdflight',
    version='0.1',
    description='A Django project to help you name your Django project after \
        a famous jazz musician, reference, slang.',
    author='Kevin Fricovsky',
    author_email='kfricovsky@gmail.com',
    license='BSD',
    url='http://github.com/montylounge/django-mingus/tree',
    packages=[
        'birdflight',
    ],
    classifiers=[
        'Development Status :: 1 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
)
<commit_msg>updated url<commit_after>from distutils.core import setup

setup(
    name='django-birdflight',
    version='0.1',
    description='A Django project to help you name your Django project after \
        a famous jazz musician, reference, slang.',
    author='Kevin Fricovsky',
    author_email='kfricovsky@gmail.com',
    license='BSD',
    url='http://github.com/montylounge/django-birdflight/tree/master',
    packages=[
        'birdflight',
    ],
    classifiers=[
        'Development Status :: 1 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup

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

setup(
    name="pyecs",
    version="0.0.7",
    description="Python Entity Component System Framework inspired from Unity",
    long_description=readme(),
    url="http://github.com/xaedes/pyecs",
    author="xaedes",
    author_email="xaedes@gmail.com",
    license="MIT",
    packages=["pyecs","pyecs.components"],
    dependency_links=["https://github.com/xaedes/testing/tarball/master"],
    tests_require=["pytest","testing"],
    install_requires=[
        "funcy","pytest-runner"
    ],
    include_package_data=True,
    zip_safe=False
    )
<commit_msg>updated version number<commit_after>from setuptools import setup

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

setup(
    name="pyecs",
    version="0.0.8",
    description="Python Entity Component System Framework inspired from Unity",
    long_description=readme(),
    url="http://github.com/xaedes/pyecs",
    author="xaedes",
    author_email="xaedes@gmail.com",
    license="MIT",
    packages=["pyecs","pyecs.components"],
    dependency_links=["https://github.com/xaedes/testing/tarball/master"],
    tests_require=["pytest","pytest-mock","testing"],
    install_requires=[
        "funcy","pytest-runner"
    ],
    include_package_data=True,
    zip_safe=False
    )
<|endoftext|>


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

import os
import sys
from setuptools import setup

extra = {}
if sys.version_info >= (3, 0):
    extra["use_2to3"] = True

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

setup(
    name='whack',
    version='0.7.0',
    description='Utility for installing binaries from source with a single command',
    long_description=read("README"),
    author='Michael Williamson',
    url='http://github.com/mwilliamson/whack',
    scripts=["scripts/whack"],
    packages=['whack'],
    install_requires=[
        'mayo>=0.2.1,<0.3',
        'requests>=1,<2',
        "catchy>=0.2.0,<0.3",
        "beautifulsoup4>=4.1.3,<5",
        "spur.local>=0.3.6,<0.4",
        "dodge>=0.1.4,<0.2",
        "six>=1.4.1,<2.0"
    ],
    **extra
)
<commit_msg>Update dodge.py for better support for versions of Python other than 2.7<commit_after>#!/usr/bin/env python

import os
import sys
from setuptools import setup

extra = {}
if sys.version_info >= (3, 0):
    extra["use_2to3"] = True

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

setup(
    name='whack',
    version='0.7.0',
    description='Utility for installing binaries from source with a single command',
    long_description=read("README"),
    author='Michael Williamson',
    url='http://github.com/mwilliamson/whack',
    scripts=["scripts/whack"],
    packages=['whack'],
    install_requires=[
        'mayo>=0.2.1,<0.3',
        'requests>=1,<2',
        "catchy>=0.2.0,<0.3",
        "beautifulsoup4>=4.1.3,<5",
        "spur.local>=0.3.6,<0.4",
        "dodge>=0.1.5,<0.2",
        "six>=1.4.1,<2.0"
    ],
    **extra
)
<|endoftext|>