<commit_before>import os
import platform

from setuptools import find_packages, setup

from eventsourcing import __version__

is_pypy = platform.python_implementation() == "PyPy"

# Read the docs doesn't need to build the Cassandra driver (and can't).
if "READTHEDOCS" in os.environ:
    os.environ["CASS_DRIVER_NO_CYTHON"] = "1"

install_requires = [
    "python-dateutil<=2.8.99999",
    "pycryptodome<=3.9.99999",
    "requests<=2.23.99999",
    "readerwriterlock<=1.0.99999",
]

sqlalchemy_requires = ["sqlalchemy<=1.3.99999,>=0.9", "sqlalchemy-utils<=0.36.99999"]

axonserver_requires = ["axonclient<=0.0.99999"]

ray_requires = ["ray<=0.8.5", "psutil", "setproctitle"]

thespian_requires = ["thespian<=3.10.99999"]

cassandra_requires = ["cassandra-driver<=3.23.99999"]

django_requires = ["django<=3.0.99999"]

testing_requires = (
    cassandra_requires
    + sqlalchemy_requires
    + axonserver_requires
    + thespian_requires
    + ray_requires
    + django_requires
    + [
        "mock<=4.0.99999",
        "flask<=1.1.99999",
        "flask_sqlalchemy<=2.4.99",
        "uwsgi<=2.0.99999",
        # "redis<=3.5.99999",
        "celery<=4.4.99999",
        "pymysql<=0.9.99999",
        "mysql-connector-python-rf<=2.2.99999",
        "python-coveralls<=2.9.99999",
        "coverage<5.0.0",  # v5 is incompatible ATM.
        "cryptography",
        # Tests use Django with PostgreSQL.
        "psycopg2cffi<=2.8.99999" if is_pypy else "psycopg2-binary<=2.8.99999",
    ]
)

docs_requires = testing_requires + [
    "Sphinx==1.8.5",
    "python_docs_theme",
    "sphinx_py3doc_enhanced_theme",
    "sphinx_rtd_theme==0.4.3",
    "Alabaster",
    "sphinx-autobuild",
]

dev_requires = docs_requires + ["black", "mypy", "flake8", "flake8-bugbear", "isort"]

long_description = """
A library for event sourcing in Python.

`Package documentation is now available <http://eventsourcing.readthedocs.io/>`_.

`Please raise issues on GitHub <https://github.com/johnbywater/eventsourcing/issues>`_.
"""

packages = find_packages(
    exclude=[
        "docs",
        # "eventsourcing.contrib*",
        # "eventsourcing.tests*"
    ]
)

setup(
    name="eventsourcing",
    version=__version__,
    description="Event sourcing in Python",
    author="John Bywater",
    author_email="john.bywater@appropriatesoftware.net",
    url="https://github.com/johnbywater/eventsourcing",
    license="BSD-3-Clause",
    packages=packages,
    package_data={"eventsourcing": ["py.typed"]},
    install_requires=install_requires,
    extras_require={
        "cassandra": cassandra_requires,
        "sqlalchemy": sqlalchemy_requires,
        "axonserver": axonserver_requires,
        "axon": axonserver_requires,
        "ray": ray_requires,
        "django": django_requires,
        "test": testing_requires,
        "tests": testing_requires,
        "testing": testing_requires,
        "dev": dev_requires,
        "docs": docs_requires,
    },
    zip_safe=False,
    long_description=long_description,
    keywords=[
        "event sourcing",
        "event store",
        "domain driven design",
        "ddd",
        "cqrs",
        "cqs",
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        # 'Programming Language :: Python :: 3.5',   # we use f-strings
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<commit_msg>Bump requests to <= 2.25.99999<commit_after>import os
import platform

from setuptools import find_packages, setup

from eventsourcing import __version__

is_pypy = platform.python_implementation() == "PyPy"

# Read the docs doesn't need to build the Cassandra driver (and can't).
if "READTHEDOCS" in os.environ:
    os.environ["CASS_DRIVER_NO_CYTHON"] = "1"

install_requires = [
    "python-dateutil<=2.8.99999",
    "pycryptodome<=3.9.99999",
    "requests<=2.25.99999",
    "readerwriterlock<=1.0.99999",
]

sqlalchemy_requires = ["sqlalchemy<=1.3.99999,>=0.9", "sqlalchemy-utils<=0.36.99999"]

axonserver_requires = ["axonclient<=0.0.99999"]

ray_requires = ["ray<=0.8.5", "psutil", "setproctitle"]

thespian_requires = ["thespian<=3.10.99999"]

cassandra_requires = ["cassandra-driver<=3.23.99999"]

django_requires = ["django<=3.0.99999"]

testing_requires = (
    cassandra_requires
    + sqlalchemy_requires
    + axonserver_requires
    + thespian_requires
    + ray_requires
    + django_requires
    + [
        "mock<=4.0.99999",
        "flask<=1.1.99999",
        "flask_sqlalchemy<=2.4.99",
        "uwsgi<=2.0.99999",
        # "redis<=3.5.99999",
        "celery<=4.4.99999",
        "pymysql<=0.9.99999",
        "mysql-connector-python-rf<=2.2.99999",
        "python-coveralls<=2.9.99999",
        "coverage<5.0.0",  # v5 is incompatible ATM.
        "cryptography",
        # Tests use Django with PostgreSQL.
        "psycopg2cffi<=2.8.99999" if is_pypy else "psycopg2-binary<=2.8.99999",
    ]
)

docs_requires = testing_requires + [
    "Sphinx==1.8.5",
    "python_docs_theme",
    "sphinx_py3doc_enhanced_theme",
    "sphinx_rtd_theme==0.4.3",
    "Alabaster",
    "sphinx-autobuild",
]

dev_requires = docs_requires + ["black", "mypy", "flake8", "flake8-bugbear", "isort"]

long_description = """
A library for event sourcing in Python.

`Package documentation is now available <http://eventsourcing.readthedocs.io/>`_.

`Please raise issues on GitHub <https://github.com/johnbywater/eventsourcing/issues>`_.
"""

packages = find_packages(
    exclude=[
        "docs",
        # "eventsourcing.contrib*",
        # "eventsourcing.tests*"
    ]
)

setup(
    name="eventsourcing",
    version=__version__,
    description="Event sourcing in Python",
    author="John Bywater",
    author_email="john.bywater@appropriatesoftware.net",
    url="https://github.com/johnbywater/eventsourcing",
    license="BSD-3-Clause",
    packages=packages,
    package_data={"eventsourcing": ["py.typed"]},
    install_requires=install_requires,
    extras_require={
        "cassandra": cassandra_requires,
        "sqlalchemy": sqlalchemy_requires,
        "axonserver": axonserver_requires,
        "axon": axonserver_requires,
        "ray": ray_requires,
        "django": django_requires,
        "test": testing_requires,
        "tests": testing_requires,
        "testing": testing_requires,
        "dev": dev_requires,
        "docs": docs_requires,
    },
    zip_safe=False,
    long_description=long_description,
    keywords=[
        "event sourcing",
        "event store",
        "domain driven design",
        "ddd",
        "cqrs",
        "cqs",
    ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        # 'Programming Language :: Python :: 3.5',   # we use f-strings
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
)
<|endoftext|>


<commit_before>import os
from setuptools import setup
from pip.req import parse_requirements

# Utility function to read the README file.  Used for the long_description.
# It's nice, because now 1) we have a top level README file and 2) it's easier
# to type in the README file than to put a raw string in below.
def read(fname):
    with open(os.path.join(os.path.dirname(__file__), fname)) as f:
        return f.read()

setup(
    name="ceilometer-publisher-rabbitmq",
    version="0.0.4",
    description="A publisher plugin for Ceilometer that outputs to RabbitMQ",
    author="Oswyn Brent",
    author_email="oswyn.brent@anchor.com.au",
    maintainer_email="engineering@anchor.net.au",
    url="https://github.com/anchor/ceilometer-publisher-rabbitmq",
    zip_safe=False,
    packages=[
        "ceilometer_publisher_rabbitmq",
    ],
    package_data={
        "ceilometer_publisher_rabbitmq" : ["README.md"],
    },
    long_description=read("README"),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Topic :: Utilities",
        "License :: OSI Approved :: Apache Software License",
    ],
    entry_points = {
        "ceilometer.publisher": [
            "rabbitmq = ceilometer_publisher_rabbitmq.queue:QueuePublisher",
        ],
    },
    install_requires=[str(req.req) for req in parse_requirements("requirements.txt")],
    include_package_data=True
)
<commit_msg>version bump<commit_after>import os
from setuptools import setup
from pip.req import parse_requirements

# Utility function to read the README file.  Used for the long_description.
# It's nice, because now 1) we have a top level README file and 2) it's easier
# to type in the README file than to put a raw string in below.
def read(fname):
    with open(os.path.join(os.path.dirname(__file__), fname)) as f:
        return f.read()

setup(
    name="ceilometer-publisher-rabbitmq",
    version="0.0.5",
    description="A publisher plugin for Ceilometer that outputs to RabbitMQ",
    author="Oswyn Brent",
    author_email="oswyn.brent@anchor.com.au",
    maintainer_email="engineering@anchor.net.au",
    url="https://github.com/anchor/ceilometer-publisher-rabbitmq",
    zip_safe=False,
    packages=[
        "ceilometer_publisher_rabbitmq",
    ],
    package_data={
        "ceilometer_publisher_rabbitmq" : ["README.md"],
    },
    long_description=read("README"),
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Topic :: Utilities",
        "License :: OSI Approved :: Apache Software License",
    ],
    entry_points = {
        "ceilometer.publisher": [
            "rabbitmq = ceilometer_publisher_rabbitmq.queue:QueuePublisher",
        ],
    },
    install_requires=[str(req.req) for req in parse_requirements("requirements.txt")],
    include_package_data=True
)
<|endoftext|>


<commit_before>import os.path
import pip
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand

import lambda_tools

requirements = pip.req.parse_requirements(
    'requirements.txt', session=pip.download.PipSession(),
)
pip_requirements = [str(r.req) for r in requirements]

version = lambda_tools.VERSION

class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

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

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

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main([self.pytest_args])
        sys.exit(errno)

setup(
    name='lambda_tools',
    packages=['lambda_tools'],
    version=version,
    description='A toolkit for creating and deploying Python code to AWS Lambda',
    author='James McKay',
    author_email='code@jamesmckay.net',
    keywords=['aws-lambda', 'aws'],
    url='https://github.com/jammycakes/lambda-tools',
    download_url = 'https://github.com/jammycakes/lambda-tools/archive/{0}.tar.gz'.format(version),
    license='MIT',
    install_requires=pip_requirements,
    zip_safe=False,
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3.6',
    ],
    entry_points={
        'console_scripts': [
            'ltools=lambda_tools.command:main'
        ]
    },
    tests_require=['pytest'],
    cmdclass = {'test': PyTest},
)<commit_msg>Tag as alpha rather than as prealpha, rename to lambda-tools<commit_after>import os.path
import pip
import sys

from setuptools import setup
from setuptools.command.test import test as TestCommand

import lambda_tools

requirements = pip.req.parse_requirements(
    'requirements.txt', session=pip.download.PipSession(),
)
pip_requirements = [str(r.req) for r in requirements]

version = lambda_tools.VERSION

class PyTest(TestCommand):
    user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]

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

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

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest
        errno = pytest.main([self.pytest_args])
        sys.exit(errno)

setup(
    name='lambda-tools',
    packages=['lambda_tools'],
    version=version,
    description='A toolkit for creating and deploying Python code to AWS Lambda',
    author='James McKay',
    author_email='code@jamesmckay.net',
    keywords=['aws-lambda', 'aws'],
    url='https://github.com/jammycakes/lambda-tools',
    download_url = 'https://github.com/jammycakes/lambda-tools/archive/{0}.tar.gz'.format(version),
    license='MIT',
    install_requires=pip_requirements,
    zip_safe=False,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 3.6',
    ],
    entry_points={
        'console_scripts': [
            'ltools=lambda_tools.command:main'
        ]
    },
    tests_require=['pytest'],
    cmdclass = {'test': PyTest},
)<|endoftext|>


<commit_before>#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
#
# Standard imports
#
import glob
import os
import sys
#
# setuptools' sdist command ignores MANIFEST.in
#
from distutils.command.sdist import sdist as DistutilsSdist
from setuptools import setup, find_packages
#
# DESI support code.
#
from desiutil.setup import DesiTest, DesiVersion, get_version
#
# Begin setup
#
setup_keywords = dict()
#
# THESE SETTINGS NEED TO BE CHANGED FOR EVERY PRODUCT.
#
setup_keywords['name'] = 'desispec'
setup_keywords['description'] = 'DESI Spectroscopic Tools'
setup_keywords['author'] = 'DESI Collaboration'
setup_keywords['author_email'] = 'desi-data@desi.lbl.gov'
setup_keywords['license'] = 'BSD'
setup_keywords['url'] = 'https://github.com/desihub/desispec'
#
# END OF SETTINGS THAT NEED TO BE CHANGED.
#
setup_keywords['version'] = get_version(setup_keywords['name'])
#
# Use README.rst as long_description.
#
setup_keywords['long_description'] = ''
if os.path.exists('README.rst'):
    with open('README.rst') as readme:
        setup_keywords['long_description'] = readme.read()
#
# Set other keywords for the setup function.  These are automated, & should
# be left alone unless you are an expert.
#
# Treat everything in bin/ except *.rst as a script to be installed.
#
if os.path.isdir('bin'):
    setup_keywords['scripts'] = [fname for fname in glob.glob(os.path.join('bin', '*'))
        if not os.path.basename(fname).endswith('.rst')]
setup_keywords['provides'] = [setup_keywords['name']]
setup_keywords['requires'] = ['Python (>2.7.0)']
# setup_keywords['install_requires'] = ['Python (>2.7.0)']
setup_keywords['zip_safe'] = False
setup_keywords['use_2to3'] = False
setup_keywords['packages'] = find_packages('py')
setup_keywords['package_dir'] = {'':'py'}
setup_keywords['cmdclass'] = {'version': DesiVersion, 'test': DesiTest, 'sdist': DistutilsSdist}
setup_keywords['test_suite']='{name}.test.{name}_test_suite.{name}_test_suite'.format(**setup_keywords)
#
# Autogenerate command-line scripts.
#
# setup_keywords['entry_points'] = {'console_scripts':['desiInstall = desiutil.install.main:main']}
#
# Add internal data directories.
#
setup_keywords['package_data'] = {'desispec': ['data/db/*',
                                               'data/ccd/*',
                                               'data/arc_lines/*',
                                               'data/params/*',
                                               'data/quicklook/*',]}
#
# Run setup command.
#
setup(**setup_keywords)
<commit_msg>Add spec-sky.dat data file to list of package data in setup.py.<commit_after>#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
#
# Standard imports
#
import glob
import os
import sys
#
# setuptools' sdist command ignores MANIFEST.in
#
from distutils.command.sdist import sdist as DistutilsSdist
from setuptools import setup, find_packages
#
# DESI support code.
#
from desiutil.setup import DesiTest, DesiVersion, get_version
#
# Begin setup
#
setup_keywords = dict()
#
# THESE SETTINGS NEED TO BE CHANGED FOR EVERY PRODUCT.
#
setup_keywords['name'] = 'desispec'
setup_keywords['description'] = 'DESI Spectroscopic Tools'
setup_keywords['author'] = 'DESI Collaboration'
setup_keywords['author_email'] = 'desi-data@desi.lbl.gov'
setup_keywords['license'] = 'BSD'
setup_keywords['url'] = 'https://github.com/desihub/desispec'
#
# END OF SETTINGS THAT NEED TO BE CHANGED.
#
setup_keywords['version'] = get_version(setup_keywords['name'])
#
# Use README.rst as long_description.
#
setup_keywords['long_description'] = ''
if os.path.exists('README.rst'):
    with open('README.rst') as readme:
        setup_keywords['long_description'] = readme.read()
#
# Set other keywords for the setup function.  These are automated, & should
# be left alone unless you are an expert.
#
# Treat everything in bin/ except *.rst as a script to be installed.
#
if os.path.isdir('bin'):
    setup_keywords['scripts'] = [fname for fname in glob.glob(os.path.join('bin', '*'))
        if not os.path.basename(fname).endswith('.rst')]
setup_keywords['provides'] = [setup_keywords['name']]
setup_keywords['requires'] = ['Python (>2.7.0)']
# setup_keywords['install_requires'] = ['Python (>2.7.0)']
setup_keywords['zip_safe'] = False
setup_keywords['use_2to3'] = False
setup_keywords['packages'] = find_packages('py')
setup_keywords['package_dir'] = {'':'py'}
setup_keywords['cmdclass'] = {'version': DesiVersion, 'test': DesiTest, 'sdist': DistutilsSdist}
setup_keywords['test_suite']='{name}.test.{name}_test_suite.{name}_test_suite'.format(**setup_keywords)
#
# Autogenerate command-line scripts.
#
# setup_keywords['entry_points'] = {'console_scripts':['desiInstall = desiutil.install.main:main']}
#
# Add internal data directories.
#
setup_keywords['package_data'] = {'desispec': ['data/db/*',
                                               'data/ccd/*',
                                               'data/arc_lines/*',
                                               'data/params/*',
                                               'data/quicklook/*',
                                               'data/spec-sky.dat',]}
#
# Run setup command.
#
setup(**setup_keywords)
<|endoftext|>


<commit_before>"""
Package configuration
"""
# pylint:disable=no-name-in-module, import-error
from distutils.core import setup
from setuptools import find_packages

setup(
    name='IXWSAuth',
    version='0.1.1',
    author='Infoxchanhe Australia dev team',
    author_email='devs@infoxchange.net.au',
    packages=find_packages(),
    url='http://pypi.python.org/pypi/IXWSAuth/',
    license='MIT',
    description='Authentication libraries for IX web services',
    long_description=open('README').read(),
    install_requires=(
        'Django >= 1.4.0',
        'django-tastypie',
        'IXDjango >= 0.1.1',
    ),
    tests_require=(
        'aloe',
        'mock',
        'pep8',
        'pylint',
        'pylint-mccabe',
    )
)
<commit_msg>Downgrade tastypie to test-only dependency<commit_after>"""
Package configuration
"""
# pylint:disable=no-name-in-module, import-error
from distutils.core import setup
from setuptools import find_packages

setup(
    name='IXWSAuth',
    version='0.1.1',
    author='Infoxchanhe Australia dev team',
    author_email='devs@infoxchange.net.au',
    packages=find_packages(),
    url='http://pypi.python.org/pypi/IXWSAuth/',
    license='MIT',
    description='Authentication libraries for IX web services',
    long_description=open('README').read(),
    install_requires=(
        'Django >= 1.4.0',
        'IXDjango >= 0.1.1',
    ),
    tests_require=(
        'aloe',
        'django-tastypie',
        'mock',
        'pep8',
        'pylint',
        'pylint-mccabe',
    )
)
<|endoftext|>


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

import os.path
from setuptools import setup, find_packages

version = '0.1.9'

requirements = []
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fp:
    requirements = [req.strip() for req in fp.readlines()]

setup(name='pyrql',
      version=version,
      description="RQL parsing and query generator",
      packages=find_packages(exclude=['tests']),
      zip_safe=False,
      install_requires=requirements,
      )
<commit_msg>Bump version<commit_after># -*- coding: utf-8 -*-

import os.path
from setuptools import setup, find_packages

version = '0.1.10'

requirements = []
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as fp:
    requirements = [req.strip() for req in fp.readlines()]

setup(name='pyrql',
      version=version,
      description="RQL parsing and query generator",
      packages=find_packages(exclude=['tests']),
      zip_safe=False,
      install_requires=requirements,
      )
<|endoftext|>


<commit_before>#
# Copyright 2014  Infoxchange Australia
#
# 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.

"""
Setup script.
"""

from setuptools import setup, find_packages
from sys import version_info

assert version_info >= (3,), "Python 3 is required."

setup(
    name='docker-forklift',
    version='0.2.13',
    description='Utility for running a container',
    author='Infoxchange Australia development team',
    author_email='devs@infoxchange.net.au',
    url='https://github.com/infoxchange/docker-forklift',
    license='Apache 2.0',
    long_description=open('README.md').read(),

    packages=find_packages(exclude=['tests']),
    package_data={
        'forklift': ['README.md'],
    },
    entry_points={
        'console_scripts': [
            'forklift = forklift:main',
        ],
    },

    install_requires=[
        'pyxdg',
        'pyyaml',
    ],

    test_suite='tests',
    tests_require=[
        'pep8',
        'pylint',
        'pylint-mccabe',
    ],
)
<commit_msg>Version bump<commit_after>#
# Copyright 2014  Infoxchange Australia
#
# 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.

"""
Setup script.
"""

from setuptools import setup, find_packages
from sys import version_info

assert version_info >= (3,), "Python 3 is required."

setup(
    name='docker-forklift',
    version='0.2.14',
    description='Utility for running a container',
    author='Infoxchange Australia development team',
    author_email='devs@infoxchange.net.au',
    url='https://github.com/infoxchange/docker-forklift',
    license='Apache 2.0',
    long_description=open('README.md').read(),

    packages=find_packages(exclude=['tests']),
    package_data={
        'forklift': ['README.md'],
    },
    entry_points={
        'console_scripts': [
            'forklift = forklift:main',
        ],
    },

    install_requires=[
        'pyxdg',
        'pyyaml',
    ],

    test_suite='tests',
    tests_require=[
        'pep8',
        'pylint',
        'pylint-mccabe',
    ],
)
<|endoftext|>


<commit_before>from distutils.core import setup
from setuptools import find_packages

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

setup(
    name='sendwithus',
    version='1.3.1',
    author='sendwithus',
    author_email='us@sendwithus.com',
    packages=find_packages(),
    scripts=[],
    url='https://github.com/sendwithus/sendwithus_python',
    license='LICENSE.txt',
    description='Python API client for sendwithus.com',
    long_description=long_description,
    test_suite="sendwithus.test",
    install_requires=[
        "requests >= 1.1.0",
        "six >= 1.8.0"
    ],
    classifiers=[
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "License :: OSI Approved :: Apache Software License",
        "Development Status :: 5 - Production/Stable",
        "Topic :: Communications :: Email"
    ]
)
<commit_msg>Bump version and reqs.<commit_after>from distutils.core import setup
from setuptools import find_packages

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

setup(
    name='sendwithus',
    version='1.4.0',
    author='sendwithus',
    author_email='us@sendwithus.com',
    packages=find_packages(),
    scripts=[],
    url='https://github.com/sendwithus/sendwithus_python',
    license='LICENSE.txt',
    description='Python API client for sendwithus.com',
    long_description=long_description,
    test_suite="sendwithus.test",
    install_requires=[
        "requests >= 1.1.0",
        "six >= 1.9.0"
    ],
    classifiers=[
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "License :: OSI Approved :: Apache Software License",
        "Development Status :: 5 - Production/Stable",
        "Topic :: Communications :: Email"
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import os

version = '1.0'

setup(name='sparc.db',
      version=version,
      description="",
      long_description=open("README.md").read() + "\n" +
                       open(os.path.join("docs", "HISTORY.txt")).read(),
      # Get more strings from
      # http://pypi.python.org/pypi?:action=list_classifiers
      classifiers=[
        "Programming Language :: Python",
        ],
      keywords='',
      author='',
      author_email='',
      url='http://svn.plone.org/svn/collective/',
      license='GPL',
      packages=find_packages(exclude=['ez_setup']),
      namespace_packages=['sparc'],
      include_package_data=True,
      zip_safe=False,
      install_requires=[
          'setuptools',
          'SQLAlchemy',
          'z3c.saconfig',
          'sparc.common'
          # -*- Extra requirements: -*-
      ],
      entry_points="""
      # -*- Entry points: -*-
      """,
      )
<commit_msg>update setup tools config<commit_after>from setuptools import setup, find_packages
import os

version = '0.0.1'

setup(name='sparc.db',
      version=version,
      description="",
      long_description=open("README.md").read() + "\n" +
                       open(os.path.join("docs", "HISTORY.txt")).read(),
      # Get more strings from
      # http://pypi.python.org/pypi?:action=list_classifiers
      classifiers=[
        "Programming Language :: Python",
        ],
      keywords='',
      author='',
      author_email='',
      url='https://github.com/davisd50/sparc.db',
      license='GPL',
      packages=find_packages(exclude=['ez_setup']),
      namespace_packages=['sparc'],
      include_package_data=True,
      zip_safe=False,
      install_requires=[
          'setuptools',
          'SQLAlchemy',
          'z3c.saconfig',
          'sparc.common'
          # -*- Extra requirements: -*-
      ],
      entry_points="""
      # -*- Entry points: -*-
      """,
      )
<|endoftext|>


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

"""
Parts of this file were taken from Pandas project,
(https://github.com/pandas-dev/pandas)
which have released under BSD 3-clause "New" or "Revised" License.

"""

from distutils.core import setup
import os
import pkg_resources
from setuptools.command import sdist
from setuptools import find_packages

from distutils.extension import Extension

description = """
Collection of Deep Learning Computer Vision Algorithms implemented in Chainer
"""

setup_requires = ['numpy']
install_requires = [
    'chainer>=3.2',
    'Pillow'
]

ext_data = {
    'utils.bbox._nms_gpu_post': {'pyxfile': 'utils/bbox/_nms_gpu_post'}
}

try:
    from Cython.Distutils import build_ext as _build_ext
    use_cython = True
except ImportError:
    from distutils.command.build_ext import build_ext as _build_ext
    use_cython = False

for name, data in ext_data.items():
    src = os.path.join('chainercv', data['pyxfile'] + '.pyx')
    if not os.path.exists(src):
        use_cython = False
        break

suffix = '.pyx' if use_cython else '.c'

extensions = []
for name, data in ext_data.items():
    sources = [os.path.join('chainercv', data['pyxfile'] + suffix)]

    extensions.append(
        Extension('chainercv.{}'.format(name),
                  sources=sources)
    )

class CheckingBuildExt(_build_ext):

    def check_cython_extensions(self, extensions):
        for ext in extensions:
            for src in ext.sources:
                if not os.path.exists(src):
                    print("{}: -> [{}]".format(ext.name, ext.sources))
                    raise Exception("""Cython-generated file '{}' not found.
                Cython is required to compile chainercv from a development
                branch. Please install Cython or
                download a release package of chainercv.
                """.format(src))

    def build_extensions(self):
        self.check_cython_extensions(self.extensions)

        # Include NumPy
        numpy_incl = pkg_resources.resource_filename('numpy', 'core/include')
        for ext in self.extensions:
            if (hasattr(ext, 'include_dirs') and
                    numpy_incl not in ext.include_dirs):
                ext.include_dirs.append(numpy_incl)
        _build_ext.build_extensions(self)

class Sdist(sdist.sdist):

    def __init__(self, *args, **kwargs):
        assert use_cython

        from Cython.Build import cythonize

        for e in extensions:
            for src in e.sources:
                cythonize(src)

        super(sdist.sdist, self).__init__(*args, **kwargs)

cmdclass = {
    'build_ext': CheckingBuildExt,
    'sdist': Sdist,
}

setup(
    name='chainercv',
    version='0.8.0',
    packages=find_packages(),
    author='Yusuke Niitani',
    author_email='yuyuniitani@gmail.com',
    license='MIT',
    description=description,
    setup_requires=setup_requires,
    install_requires=install_requires,
    include_package_data=True,
    ext_modules=extensions,
    cmdclass=cmdclass,
)
<commit_msg>update setup.py<commit_after>#!/usr/bin/env python

"""
Parts of this file were taken from Pandas project,
(https://github.com/pandas-dev/pandas)
which have released under BSD 3-clause "New" or "Revised" License.

"""

from distutils.core import setup
import os
import pkg_resources
from setuptools.command import sdist
from setuptools import find_packages

from distutils.extension import Extension

description = """
Collection of Deep Learning Computer Vision Algorithms implemented in Chainer
"""

setup_requires = ['numpy']
install_requires = [
    'chainer>=4.0',
    'Pillow'
]

ext_data = {
    'utils.bbox._nms_gpu_post': {'pyxfile': 'utils/bbox/_nms_gpu_post'}
}

try:
    from Cython.Distutils import build_ext as _build_ext
    use_cython = True
except ImportError:
    from distutils.command.build_ext import build_ext as _build_ext
    use_cython = False

for name, data in ext_data.items():
    src = os.path.join('chainercv', data['pyxfile'] + '.pyx')
    if not os.path.exists(src):
        use_cython = False
        break

suffix = '.pyx' if use_cython else '.c'

extensions = []
for name, data in ext_data.items():
    sources = [os.path.join('chainercv', data['pyxfile'] + suffix)]

    extensions.append(
        Extension('chainercv.{}'.format(name),
                  sources=sources)
    )

class CheckingBuildExt(_build_ext):

    def check_cython_extensions(self, extensions):
        for ext in extensions:
            for src in ext.sources:
                if not os.path.exists(src):
                    print("{}: -> [{}]".format(ext.name, ext.sources))
                    raise Exception("""Cython-generated file '{}' not found.
                Cython is required to compile chainercv from a development
                branch. Please install Cython or
                download a release package of chainercv.
                """.format(src))

    def build_extensions(self):
        self.check_cython_extensions(self.extensions)

        # Include NumPy
        numpy_incl = pkg_resources.resource_filename('numpy', 'core/include')
        for ext in self.extensions:
            if (hasattr(ext, 'include_dirs') and
                    numpy_incl not in ext.include_dirs):
                ext.include_dirs.append(numpy_incl)
        _build_ext.build_extensions(self)

class Sdist(sdist.sdist):

    def __init__(self, *args, **kwargs):
        assert use_cython

        from Cython.Build import cythonize

        for e in extensions:
            for src in e.sources:
                cythonize(src)

        super(sdist.sdist, self).__init__(*args, **kwargs)

cmdclass = {
    'build_ext': CheckingBuildExt,
    'sdist': Sdist,
}

setup(
    name='chainercv',
    version='0.8.0',
    packages=find_packages(),
    author='Yusuke Niitani',
    author_email='yuyuniitani@gmail.com',
    license='MIT',
    description=description,
    setup_requires=setup_requires,
    install_requires=install_requires,
    include_package_data=True,
    ext_modules=extensions,
    cmdclass=cmdclass,
)
<|endoftext|>


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

from distutils.core import setup

setup(name='redis-dump-load',
    version='0.1.0',
    description='Dump and load redis databases',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/redis-dump-load',
    py_modules=['redisdl'],
)
<commit_msg>Update version to have accurate packages on pypi<commit_after>#!/usr/bin/env python

from distutils.core import setup

setup(name='redis-dump-load',
    version='0.1.1',
    description='Dump and load redis databases',
    author='Oleg Pudeyev',
    author_email='oleg@bsdpower.com',
    url='http://github.com/p/redis-dump-load',
    py_modules=['redisdl'],
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name = 'CAI',
    packages = ["CAI"],
    version = '0.1.7',
    description = 'Python implementation of codon adaptation index',
    author = 'Benjamin Lee',
    author_email = 'benjamin_lee@college.harvard.edu',
    url = 'https://github.com/Benjamin-Lee/CodonAdaptationIndex', # use the URL to the github repo
    classifiers = ["Intended Audience :: Science/Research",
                   "Topic :: Scientific/Engineering :: Bio-Informatics",
                   "Programming Language :: Python"],
    install_requires=['scipy'],
    license="MIT",
    use_2to3=True
)<commit_msg>update verison number<commit_after>from setuptools import setup

setup(
    name = 'CAI',
    packages = ["CAI"],
    version = '0.1.8',
    description = 'Python implementation of codon adaptation index',
    author = 'Benjamin Lee',
    author_email = 'benjamin_lee@college.harvard.edu',
    url = 'https://github.com/Benjamin-Lee/CodonAdaptationIndex', # use the URL to the github repo
    classifiers = ["Intended Audience :: Science/Research",
                   "Topic :: Scientific/Engineering :: Bio-Informatics",
                   "Programming Language :: Python"],
    install_requires=['scipy'],
    license="MIT",
    use_2to3=True
)<|endoftext|>


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

import yarr_client

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

with open('README.md') as f:
    readme = f.read()
with open('HISTORY.md') as f:
    history = f.read()
with open('LICENSE') as f:
    license = f.read()

setup(
    name=yarr_client.__title__,
    description='Web-based client for Yarr!',
    long_description=readme,
    version=yarr_client.__version__,
    author_email='hello@bluecap.se',
    url='https://github.com/bluecap-se/yarr.client',
    license=license,
    zip_safe=False,
    packages=['yarr_client'],
    scripts=['bin/yarr.client']
)
<commit_msg>Pre-release fixes to setup<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import yarr_client

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

with open('README.md') as f:
    readme = f.read()
with open('HISTORY.md') as f:
    history = f.read()

setup(
    name=yarr_client.__title__,
    description='Web-based client for Yarr!',
    long_description=readme,
    version=yarr_client.__version__,
    author='bluecap-se',
    author_email='hello@bluecap.se',
    url='https://github.com/bluecap-se/yarr.client',
    license=yarr_client.__license__,
    zip_safe=False,
    platforms='any',
    packages=['yarr_client'],
    scripts=['bin/yarr.client'],
    keywords=['yarr', 'the pirate bay', 'web based', 'client'],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Web Environment",
        "Framework :: Flask",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Operating System :: MacOS",
        "Operating System :: POSIX",
        "Programming Language :: Python :: 2 :: Only",
        "Topic :: Internet :: WWW/HTTP :: Indexing/Search"
    ]
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
from __future__ import division, print_function
from os.path import dirname, realpath, join, exists, normpath, expanduser, splitext
import os
import sys
# Hotspotter
from hscom import helpers

HOME = os.path.expanduser('~')
# Allows other python modules (like hesaff) to find hotspotter modules
sys.path.append(dirname(__file__))

INSTALL_REQUIRES = [
    'numpy>=1.5.0',
    'scipy>=0.7.2',
    'PIL>=1.1.7'
    'argparse>=1.2.1'
    'ipython>=1.1.0'
    'pylru>=1.0.6'
    'pandas>=0.12.0',
    'python-qt>=.50',
    'matplotlib>=1.3.1',
    'scikit-image>=0.9dev'
    'scikit-learn>=0.14a1'
]

MODULES = [
    'sip',
    'PyQt4',
    'PyQt4.Qt',
    'PIL.Image',
    'PIL.PngImagePlugin',
    'PIL.JpegImagePlugin',
    'PIL.GifImagePlugin',
    'PIL.PpmImagePlugin',
    'matplotlib',
    'numpy',
    'scipy',
    'PIL'
]

#'parse'
INSTALL_OPTIONAL = [
    #'pyvlfeat>=0.1.1a3'
]

INSTALL_OTHER = [
    'boost-python>=1.52',
    'Cython>=.18',
    'ipython>=.13.1'
]

INSTALL_BUILD = [
    'Cython'
]

INSTALL_DEV =  [
    'py2exe>=0.6.10dev',
    'pyflakes>=0.6.1',
    'pylint>=0.27.0',
    'RunSnakeRun>=2.0.2b1',
    'maliae>=0.4.0.final.0',
    'pycallgraph>=0.5.1'
    'coverage>=3.6'
]

CLASSIFIERS = '''\
Development Status :: 1 - Alpha
Intended Audience :: Education
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: GPL License
Programming Language :: Python
Operating System :: Microsoft :: Windows
Operating System :: Unix
Operating System :: MacOS
'''
NAME                = 'HotSpotter'
AUTHOR              = 'Jonathan Crall, RPI'
AUTHOR_EMAIL        = 'hotspotter.ir@gmail.com'
MAINTAINER          = AUTHOR
MAINTAINER_EMAIL    = AUTHOR_EMAIL
DESCRIPTION         = 'Image Search for Large Animal Databases.'
LONG_DESCRIPTION    = open('_doc/DESCRIPTION.txt').read()
URL                 = 'http://www.cs.rpi.edu/~cralljp'
DOWNLOAD_URL        = 'https://github.com/Erotemic/hotspotter/archive/release.zip'
LICENSE             = 'Apache'
PLATFORMS           = ['Windows', 'Linux', 'Mac OS-X']
MAJOR               = 0
MINOR               = 0
MICRO               = 0
SUFFIX              = ''  # Should be blank except for rc's, betas, etc.
ISRELEASED          = False
VERSION             = '%d.%d.%d%s' % (MAJOR, MINOR, MICRO, SUFFIX)

def _cd(dpath, verbose=True):
    if verbose:
        print('[setup] change dir to: %r' % dpath)
    os.chdir(dpath)

def _cmd(args, verbose=True, sudo=False):
    sys.stdout.flush()
    import subprocess
    #import shlex
    #if isinstance(args, str):
        #if os.name == 'posix':
            #args = [args]
        #else:
            #args = shlex.split(args)
    if sudo is True and sys.platform != 'win32':
        args = 'sudo ' + args
    PIPE = subprocess.PIPE
    # DANGEROUS: shell=True. Grats hackers.
    print('[setup] Running: %r' % args)
    proc = subprocess.Popen(args, stdout=PIPE, stderr=PIPE, shell=True)
    if verbose:
        ''' KNOWN PYTHON 2.x BUG
        #http://stackoverflow.com/questions/803265/
        #getting-realtime-output-using-subprocess
        for line in proc.stdout.readlines(): '''
        logged_list = []
        append = logged_list.append
        write = sys.stdout.write
        flush = sys.stdout.flush
        while True:
            line = proc.stdout.readline()
            if not line:
                break
            write(line)
            flush()
            append(line)
        out = '\n'.join(logged_list)
        (out_, err) = proc.communicate()
        print(err)
    else:
        # Surpress output
        (out, err) = proc.communicate()
    # Make sure process if finished
    ret = proc.wait()
    return out, err, ret

if sys.platform == 'win32':
    buildscript_fmt = 'mingw_%s_build.bat'
else:
    buildscript_fmt = 'unix_%s_build.sh'

def build_pyinstaller():
    cwd = normpath(realpath(dirname(__file__)))
    print('[setup] Current working directory: %r' % cwd)
    build_dir = join(cwd, 'build')
    dist_dir = join(cwd, 'dist')
    helpers.delete(dist_dir)
    helpers.delete(build_dir)
    assert exists('setup.py'), 'must be run in hotspotter source directory'
    assert exists('../hotspotter/setup.py'), 'must be run in hotspotter source directory'
    assert exists('../hotspotter/hotspotter'), 'must be run in hotspotter source directory'
    assert exists('_setup'), 'must be run in hotspotter source directory'
    # Run the pyinstaller command (does all the work)
    _cmd('pyinstaller _setup/pyinstaller-hotspotter.spec')
    # Perform some post processing steps on the mac
    if sys.platform == 'darwin' and exists("dist/HotSpotter.app/Contents/"):
        copy_list = [
            ('hsicon.icns', 'Resources/icon-windowed.icns'),
            ('Info.plist', 'Info.plist'),
        ]
        srcdir = '_setup'
        dstdir = 'dist/HotSpotter.app/Contents/'
        for srcname, dstname in copy_list:
            src = join(srcdir, srcname)
            dst = join(dstdir, dstname)
            helpers.copy(src, dst)

def build_mac_dmg():
    _cmd("./_setup/mac_dmg_builder.sh")

def build_win32_inno_installer():
    inno_dir = r'C:\Program Files (x86)\Inno Setup 5'
    inno_fname = 'ISCC.exe'
    inno_fpath = join(inno_dir, inno_fname)
    iss_script = join('hotspotter', '_setup', 'wininstallerscript.iss')
    if not exists(inno_fpath):
        msg = '[setup] Inno not found and is needed for the win32 installer'
        print(msg)
        raise Exception(msg)
    args = [inno_fpath, iss_script]
    _cmd(args)

def compile_ui():
    'Compiles the qt designer *.ui files into python code'
    pyuic4_cmd = {'win32':  'C:\Python27\Lib\site-packages\PyQt4\pyuic4',
                  'linux2': 'pyuic4',
                  'darwin': 'pyuic4'}[sys.platform]
    widget_dir = join(dirname(realpath(__file__)), 'hotspotter/_frontend')
    print('[setup] Compiling qt designer files in %r' % widget_dir)
    for widget_ui in helpers.glob(widget_dir, '*.ui'):
        widget_py = os.path.splitext(widget_ui)[0] + '.py'
        cmd = ' '.join([pyuic4_cmd, '-x', widget_ui, '-o', widget_py])
        print('[setup] compile_ui()>' + cmd)
        os.system(cmd)

def clean():
    assert exists('setup.py'), 'must be run in hotspotter directory'
    assert exists('../hotspotter/setup.py'), 'must be run in hotspotter directory'
    assert exists('../hotspotter/hotspotter'), 'must be run in hotspotter directory'
    assert exists('_setup'), 'must be run in hotspotter directory'
    cwd = normpath(realpath(dirname(__file__)))
    print('[setup] Current working directory: %r' % cwd)
    helpers.remove_files_in_dir(cwd, '*.pyc', recursive=True)
    helpers.remove_files_in_dir(cwd, '*.prof', recursive=True)
    helpers.remove_files_in_dir(cwd, '*.prof.txt', recursive=True)
    helpers.remove_files_in_dir(cwd, '*.lprof', recursive=True)
    helpers.remove_files_in_dir(cwd, 'HotSpotterApp.*.pkg', recursive=False)
    helpers.remove_files_in_dir(cwd + '/hotspotter', '*.so', recursive=False)
    helpers.remove_files_in_dir(cwd + '/hotspotter', '*.c', recursive=False)
    helpers.delete(join(cwd, 'dist'))
    helpers.delete(join(cwd, 'build'))
    helpers.delete(join(cwd, "'"))  # idk where this file comes from

def fix_tpl_permissions():
    os.system('chmod +x hotspotter/_tpl/extern_feat/*.mac')
    os.system('chmod +x hotspotter/_tpl/extern_feat/*.ln')

def make_install_pyhesaff():
    dpath = normpath(HOME + '/code/hesaff')
    cmd = join(dpath, buildscript_fmt % 'hesaff')
    _cmd(cmd, sudo=True)

def make_install_pyflann():
    dpath = normpath(HOME + '/code/flann')
    cmd = join(dpath, buildscript_fmt % 'flann')
    _cmd(cmd, sudo=True)
    pass

def make_install_opencv():
    dpath = normpath(HOME + '/code/opencv')
    cmd = join(dpath, buildscript_fmt % 'opencv')
    _cmd(cmd, sudo=True)
    pass

def inrepo(func):
    def wrapper(repo, *args, **kwargs):
        repo_dpath = join(expanduser('~'), 'code', repo)
        cwd = os.getcwd()
        _cd(repo_dpath, False)
        result = func(repo, *args, **kwargs)
        _cd(cwd, False)
        print('')
        return result
    return wrapper

@inrepo
def pull(repo, branch=None):
    if repo == 'hotspotter':
        _cmd('git pull origin')
        _cmd('git pull github')
    else:
        _cmd('git pull')
    if branch is not None:
        _cmd('git checkout ' + branch)
        _cmd('git pull')

@inrepo
def push(repo):
    if repo == 'hotspotter':
        _cmd('git push origin')
        _cmd('git push github')
    else:
        _cmd('git push')

@inrepo
def status(repo):
    print('[helpers] ---- status(%r) ----' % repo)
    with helpers.Indenter('[%s]' % repo):
        _cmd('git status')

def compile_cython(fpath):
    pyinclude = '-I/usr/include/python2.7'
    gcc_flags = ' '.join(['-shared', '-pthread', '-fPIC', '-fwrapv', '-O2',
                          '-Wall', '-fno-strict-aliasing', pyinclude])
    fname, ext = splitext(fpath)
    fname_so = fname + '.so'
    fname_c  = fname + '.c'
    _cmd('cython ' + fpath)
    _cmd('gcc ' + gcc_flags + ' -o ' + fname_so + ' ' + fname_c)

def build_cython():
    compile_cython('hotspotter/spatial_verification2.py')
    compile_cython('hotspotter/matching_functions.py')

if __name__ == '__main__':
    print('[setup] Entering HotSpotter setup')
    for cmd in iter(sys.argv[1:]):
        if cmd in ['clean']:
            clean()
            sys.exit(0)
        if cmd in ['buildui', 'ui', 'compile_ui']:
            compile_ui()
            sys.exit(0)
        if cmd in ['installer', 'pyinstaller', 'build_pyinstaller', 'build_installer']:
            build_pyinstaller()
        if cmd in ['inno', 'win32inno']:
            build_win32_inno_installer()
        if cmd in ['dmg', 'macdmg']:
            build_mac_dmg()
        if cmd in ['flann', 'pyflann']:
            make_install_pyflann()
        if cmd in ['hesaff', 'pyhesaff']:
            make_install_pyhesaff()
        if cmd in ['opencv']:
            make_install_opencv()
        if cmd in ['pull']:
            pull('opencv')
            pull('hesaff')
            pull('flann')
            pull('hotspotter')
        if cmd in ['status']:
            status('opencv')
            status('hesaff')
            status('flann')
            status('hotspotter')
        if cmd in ['push']:
            #push('opencv')
            #push('hesaff')
            #push('flann')
            push('hotspotter')

        if cmd in ['update']:
            pull('opencv', 'hsbranch248')
            pull('hesaff', 'hotspotter_hesaff')
            pull('flann', 'hotspotter_flann')
            pull('hotspotter', 'jon')

        if cmd in ['cython']:
            build_cython()
<commit_msg>Added otool script to setup<commit_after>#!/usr/bin/env python
from __future__ import division, print_function
from os.path import dirname, realpath, join, exists, normpath, expanduser, splitext
import os
import sys
# Hotspotter
from hscom import helpers

HOME = os.path.expanduser('~')
# Allows other python modules (like hesaff) to find hotspotter modules
sys.path.append(dirname(__file__))

INSTALL_REQUIRES = [
    'numpy>=1.5.0',
    'scipy>=0.7.2',
    'PIL>=1.1.7'
    'argparse>=1.2.1'
    'ipython>=1.1.0'
    'pylru>=1.0.6'
    'pandas>=0.12.0',
    'python-qt>=.50',
    'matplotlib>=1.3.1',
    'scikit-image>=0.9dev'
    'scikit-learn>=0.14a1'
]

MODULES = [
    'sip',
    'PyQt4',
    'PyQt4.Qt',
    'PIL.Image',
    'PIL.PngImagePlugin',
    'PIL.JpegImagePlugin',
    'PIL.GifImagePlugin',
    'PIL.PpmImagePlugin',
    'matplotlib',
    'numpy',
    'scipy',
    'PIL'
]

#'parse'
INSTALL_OPTIONAL = [
    #'pyvlfeat>=0.1.1a3'
]

INSTALL_OTHER = [
    'boost-python>=1.52',
    'Cython>=.18',
    'ipython>=.13.1'
]

INSTALL_BUILD = [
    'Cython'
]

INSTALL_DEV =  [
    'py2exe>=0.6.10dev',
    'pyflakes>=0.6.1',
    'pylint>=0.27.0',
    'RunSnakeRun>=2.0.2b1',
    'maliae>=0.4.0.final.0',
    'pycallgraph>=0.5.1'
    'coverage>=3.6'
]

CLASSIFIERS = '''\
Development Status :: 1 - Alpha
Intended Audience :: Education
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: GPL License
Programming Language :: Python
Operating System :: Microsoft :: Windows
Operating System :: Unix
Operating System :: MacOS
'''
NAME                = 'HotSpotter'
AUTHOR              = 'Jonathan Crall, RPI'
AUTHOR_EMAIL        = 'hotspotter.ir@gmail.com'
MAINTAINER          = AUTHOR
MAINTAINER_EMAIL    = AUTHOR_EMAIL
DESCRIPTION         = 'Image Search for Large Animal Databases.'
LONG_DESCRIPTION    = open('_doc/DESCRIPTION.txt').read()
URL                 = 'http://www.cs.rpi.edu/~cralljp'
DOWNLOAD_URL        = 'https://github.com/Erotemic/hotspotter/archive/release.zip'
LICENSE             = 'Apache'
PLATFORMS           = ['Windows', 'Linux', 'Mac OS-X']
MAJOR               = 0
MINOR               = 0
MICRO               = 0
SUFFIX              = ''  # Should be blank except for rc's, betas, etc.
ISRELEASED          = False
VERSION             = '%d.%d.%d%s' % (MAJOR, MINOR, MICRO, SUFFIX)

def _cd(dpath, verbose=True):
    if verbose:
        print('[setup] change dir to: %r' % dpath)
    os.chdir(dpath)

def _cmd(args, verbose=True, sudo=False):
    sys.stdout.flush()
    import subprocess
    #import shlex
    #if isinstance(args, str):
        #if os.name == 'posix':
            #args = [args]
        #else:
            #args = shlex.split(args)
    if sudo is True and sys.platform != 'win32':
        args = 'sudo ' + args
    PIPE = subprocess.PIPE
    # DANGEROUS: shell=True. Grats hackers.
    print('[setup] Running: %r' % args)
    proc = subprocess.Popen(args, stdout=PIPE, stderr=PIPE, shell=True)
    if verbose:
        ''' KNOWN PYTHON 2.x BUG
        #http://stackoverflow.com/questions/803265/
        #getting-realtime-output-using-subprocess
        for line in proc.stdout.readlines(): '''
        logged_list = []
        append = logged_list.append
        write = sys.stdout.write
        flush = sys.stdout.flush
        while True:
            line = proc.stdout.readline()
            if not line:
                break
            write(line)
            flush()
            append(line)
        out = '\n'.join(logged_list)
        (out_, err) = proc.communicate()
        print(err)
    else:
        # Surpress output
        (out, err) = proc.communicate()
    # Make sure process if finished
    ret = proc.wait()
    return out, err, ret

if sys.platform == 'win32':
    buildscript_fmt = 'mingw_%s_build.bat'
else:
    buildscript_fmt = 'unix_%s_build.sh'

def build_pyinstaller():
    cwd = normpath(realpath(dirname(__file__)))
    print('[setup] Current working directory: %r' % cwd)
    build_dir = join(cwd, 'build')
    dist_dir = join(cwd, 'dist')
    helpers.delete(dist_dir)
    helpers.delete(build_dir)
    assert exists('setup.py'), 'must be run in hotspotter source directory'
    assert exists('../hotspotter/setup.py'), 'must be run in hotspotter source directory'
    assert exists('../hotspotter/hotspotter'), 'must be run in hotspotter source directory'
    assert exists('_setup'), 'must be run in hotspotter source directory'
    # Run the pyinstaller command (does all the work)
    _cmd('pyinstaller _setup/pyinstaller-hotspotter.spec')
    # Perform some post processing steps on the mac
    if sys.platform == 'darwin' and exists("dist/HotSpotter.app/Contents/"):
        copy_list = [
            ('hsicon.icns', 'Resources/icon-windowed.icns'),
            ('Info.plist', 'Info.plist'),
        ]
        srcdir = '_setup'
        dstdir = 'dist/HotSpotter.app/Contents/'
        for srcname, dstname in copy_list:
            src = join(srcdir, srcname)
            dst = join(dstdir, dstname)
            helpers.copy(src, dst)

def build_mac_dmg():
    _cmd("./_setup/mac_dmg_builder.sh")

def fix_mac_otool():
    import _setup.fix_lib_otool
    hesaff_dylib  = expanduser('~/code/hotspotter/hstpl/extern_feat/libhesaff.dylib')
    _setup.fix_lib_otool.make_distributable_dylib(hesaff_dylib)

def build_win32_inno_installer():
    inno_dir = r'C:\Program Files (x86)\Inno Setup 5'
    inno_fname = 'ISCC.exe'
    inno_fpath = join(inno_dir, inno_fname)
    iss_script = join('hotspotter', '_setup', 'wininstallerscript.iss')
    if not exists(inno_fpath):
        msg = '[setup] Inno not found and is needed for the win32 installer'
        print(msg)
        raise Exception(msg)
    args = [inno_fpath, iss_script]
    _cmd(args)

def compile_ui():
    'Compiles the qt designer *.ui files into python code'
    pyuic4_cmd = {'win32':  'C:\Python27\Lib\site-packages\PyQt4\pyuic4',
                  'linux2': 'pyuic4',
                  'darwin': 'pyuic4'}[sys.platform]
    widget_dir = join(dirname(realpath(__file__)), 'hotspotter/_frontend')
    print('[setup] Compiling qt designer files in %r' % widget_dir)
    for widget_ui in helpers.glob(widget_dir, '*.ui'):
        widget_py = os.path.splitext(widget_ui)[0] + '.py'
        cmd = ' '.join([pyuic4_cmd, '-x', widget_ui, '-o', widget_py])
        print('[setup] compile_ui()>' + cmd)
        os.system(cmd)

def clean():
    assert exists('setup.py'), 'must be run in hotspotter directory'
    assert exists('../hotspotter/setup.py'), 'must be run in hotspotter directory'
    assert exists('../hotspotter/hotspotter'), 'must be run in hotspotter directory'
    assert exists('_setup'), 'must be run in hotspotter directory'
    cwd = normpath(realpath(dirname(__file__)))
    print('[setup] Current working directory: %r' % cwd)
    helpers.remove_files_in_dir(cwd, '*.pyc', recursive=True)
    helpers.remove_files_in_dir(cwd, '*.prof', recursive=True)
    helpers.remove_files_in_dir(cwd, '*.prof.txt', recursive=True)
    helpers.remove_files_in_dir(cwd, '*.lprof', recursive=True)
    helpers.remove_files_in_dir(cwd, 'HotSpotterApp.*.pkg', recursive=False)
    helpers.remove_files_in_dir(cwd + '/hotspotter', '*.so', recursive=False)
    helpers.remove_files_in_dir(cwd + '/hotspotter', '*.c', recursive=False)
    helpers.delete(join(cwd, 'dist'))
    helpers.delete(join(cwd, 'build'))
    helpers.delete(join(cwd, "'"))  # idk where this file comes from

def fix_tpl_permissions():
    os.system('chmod +x hotspotter/_tpl/extern_feat/*.mac')
    os.system('chmod +x hotspotter/_tpl/extern_feat/*.ln')

def make_install_pyhesaff():
    dpath = normpath(HOME + '/code/hesaff')
    cmd = join(dpath, buildscript_fmt % 'hesaff')
    _cmd(cmd, sudo=True)

def make_install_pyflann():
    dpath = normpath(HOME + '/code/flann')
    cmd = join(dpath, buildscript_fmt % 'flann')
    _cmd(cmd, sudo=True)
    pass

def make_install_opencv():
    dpath = normpath(HOME + '/code/opencv')
    cmd = join(dpath, buildscript_fmt % 'opencv')
    _cmd(cmd, sudo=True)
    pass

def inrepo(func):
    def wrapper(repo, *args, **kwargs):
        repo_dpath = join(expanduser('~'), 'code', repo)
        cwd = os.getcwd()
        _cd(repo_dpath, False)
        result = func(repo, *args, **kwargs)
        _cd(cwd, False)
        print('')
        return result
    return wrapper

@inrepo
def pull(repo, branch=None):
    if repo == 'hotspotter':
        _cmd('git pull origin')
        _cmd('git pull github')
    else:
        _cmd('git pull')
    if branch is not None:
        _cmd('git checkout ' + branch)
        _cmd('git pull')

@inrepo
def push(repo):
    if repo == 'hotspotter':
        _cmd('git push origin')
        _cmd('git push github')
    else:
        _cmd('git push')

@inrepo
def status(repo):
    print('[helpers] ---- status(%r) ----' % repo)
    with helpers.Indenter('[%s]' % repo):
        _cmd('git status')

def compile_cython(fpath):
    pyinclude = '-I/usr/include/python2.7'
    gcc_flags = ' '.join(['-shared', '-pthread', '-fPIC', '-fwrapv', '-O2',
                          '-Wall', '-fno-strict-aliasing', pyinclude])
    fname, ext = splitext(fpath)
    fname_so = fname + '.so'
    fname_c  = fname + '.c'
    _cmd('cython ' + fpath)
    _cmd('gcc ' + gcc_flags + ' -o ' + fname_so + ' ' + fname_c)

def build_cython():
    compile_cython('hotspotter/spatial_verification2.py')
    compile_cython('hotspotter/matching_functions.py')

if __name__ == '__main__':
    print('[setup] Entering HotSpotter setup')
    for cmd in iter(sys.argv[1:]):
        if cmd in ['clean']:
            clean()
            sys.exit(0)
        if cmd in ['buildui', 'ui', 'compile_ui']:
            compile_ui()
            sys.exit(0)
        if cmd in ['installer', 'pyinstaller', 'build_pyinstaller', 'build_installer']:
            build_pyinstaller()
        if cmd in ['inno', 'win32inno']:
            build_win32_inno_installer()
        if cmd in ['otool']:
            fix_mac_otool()
        if cmd in ['dmg', 'macdmg']:
            build_mac_dmg()
        if cmd in ['flann', 'pyflann']:
            make_install_pyflann()
        if cmd in ['hesaff', 'pyhesaff']:
            make_install_pyhesaff()
        if cmd in ['opencv']:
            make_install_opencv()
        if cmd in ['pull']:
            pull('opencv')
            pull('hesaff')
            pull('flann')
            pull('hotspotter')
        if cmd in ['status']:
            status('opencv')
            status('hesaff')
            status('flann')
            status('hotspotter')
        if cmd in ['push']:
            #push('opencv')
            #push('hesaff')
            #push('flann')
            push('hotspotter')

        if cmd in ['update']:
            pull('opencv', 'hsbranch248')
            pull('hesaff', 'hotspotter_hesaff')
            pull('flann', 'hotspotter_flann')
            pull('hotspotter', 'jon')

        if cmd in ['cython']:
            build_cython()
<|endoftext|>


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

version = '0.1.4.dev0'

setup(
    name="tasa",
    version=version,
    description="A simple framework for distributed task workflow using redis.",
    long_description=open("README.rst").read(),
    url='https://github.com/PaulMcMillan/tasa',
    license="Simplified BSD",
    author="Paul McMillan",
    author_email="paul@mcmillan.ws",

    entry_points={
        'console_scripts': [
            'tasa = tasa.cli:run',
            'tasa-log = tasa.cli:log',
            ],
        },

    install_requires=[
        "redis",
        ],
    extras_require={
        "tests": [
            "pep8",
            "pylint",
            "pytest",
            "pytest-cov",
            ],
        },
    tests_require=[
        "pep8",
        "pytest",
        "pytest-cov",
        ],

    packages=find_packages(),

    classifiers=[
        "Environment :: Console",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: POSIX",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
    ])

<commit_msg>Preparing release 0.1.4<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages

version = '0.1.4'

setup(
    name="tasa",
    version=version,
    description="A simple framework for distributed task workflow using redis.",
    long_description=open("README.rst").read(),
    url='https://github.com/PaulMcMillan/tasa',
    license="Simplified BSD",
    author="Paul McMillan",
    author_email="paul@mcmillan.ws",

    entry_points={
        'console_scripts': [
            'tasa = tasa.cli:run',
            'tasa-log = tasa.cli:log',
            ],
        },

    install_requires=[
        "redis",
        ],
    extras_require={
        "tests": [
            "pep8",
            "pylint",
            "pytest",
            "pytest-cov",
            ],
        },
    tests_require=[
        "pep8",
        "pytest",
        "pytest-cov",
        ],

    packages=find_packages(),

    classifiers=[
        "Environment :: Console",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: POSIX",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
    ])

<|endoftext|>


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

setup(
    name='cle',
    description='CLE Loads Everything (at least, may binary formats!) and provides a Pythonic interface to analyze what they are and what they would look like in memory.',
    version='4.6.5.27',
    packages=['cle', 'cle.backends', 'cle.relocations'],
    install_requires=[ "pyelftools", "cffi", "idalink", "archinfo", "pyvex", "pefile" ]
)
<commit_msg>ticked version number to 4.6.6.28<commit_after>try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

setup(
    name='cle',
    description='CLE Loads Everything (at least, may binary formats!) and provides a Pythonic interface to analyze what they are and what they would look like in memory.',
    version='4.6.6.28',
    packages=['cle', 'cle.backends', 'cle.relocations'],
    install_requires=[ "pyelftools", "cffi", "idalink", "archinfo", "pyvex", "pefile" ]
)
<|endoftext|>


<commit_before>import site
import platform
import distutils
import distutils.core
from shutil import move, copy2
from os import path, mkdir
from appdirs import user_config_dir, user_data_dir

def readme():
    """Return the readme file"""
    with open("README.md") as f:
        return f.read()

distutils.core.setup(name="iridaUploader",
    version="0.1",
    url="http://irida.corefacility.ca/gitlab/rcamba/iridauploader.git",
    author='Kevin Camba',
    author_email='kevin.camba@phac-aspc.gc.ca',
    packages=["API", "Exceptions", "GUI", "Model", "Parsers", "Validation"],
    install_requires=["mock", "rauth", "selenium", "pep8"],
    zip_safe=False
)

config_dest = user_config_dir("iridaUploader")
if not path.isdir(config_dest):
    mkdir(config_dest)

copy2("./config.conf", config_dest)

img_dest = path.join(user_data_dir("iridaUploader"), "images")
distutils.dir_util.copy_tree("./GUI/images", img_dest)
<commit_msg>replaced user_config_dir with user_cache_dir the directory returned by user_config_dir requires permission to write to the config file the directory returned by user_cache_dir doesn't<commit_after>import site
import platform
import distutils
import distutils.core
from shutil import move, copy2
from os import path, mkdir
from appdirs import user_cache_dir

def readme():
    """Return the readme file"""
    with open("README.md") as f:
        return f.read()

distutils.core.setup(name="iridaUploader",
    version="0.1",
    url="http://irida.corefacility.ca/gitlab/rcamba/iridauploader.git",
    author='Kevin Camba',
    author_email='kevin.camba@phac-aspc.gc.ca',
    packages=["API", "Exceptions", "GUI", "Model", "Parsers", "Validation"],
    install_requires=["mock", "rauth", "selenium", "pep8"],
    zip_safe=False
)

config_dest = user_cache_dir("iridaUploader")
# if config file alreay exists do not copy
if not path.exists(path.join(config_dest, "config.conf")):
    if not path.isdir(config_dest):
        mkdir(config_dest)

    copy2("./config.conf", config_dest)

img_dest = path.join(user_cache_dir("iridaUploader"), "images")
distutils.dir_util.copy_tree("./GUI/images", img_dest)
<|endoftext|>


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

__copyright__ = "Copyright (c) 2012, Chris Drake"
__license__ = "All rights reserved."

# standard library
from distutils.core import setup

# pyeda
from pyeda import __version__

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

with open("LICENSE") as fin:
    LICENSE = fin.read()

PACKAGES = ["pyeda"]

setup(
    name="pyeda",
    version=__version__,
    description="Python Electronic Design Automation",
    long_description=README,
    author="Chris Drake",
    author_email="cjdrake AT gmail DOT com",
    url="https://github.com/cjdrake/pyeda",
    license=LICENSE,
    packages=PACKAGES
)
<commit_msg>Add classifiers to setup file<commit_after># -*- coding: utf-8 -*-

__copyright__ = "Copyright (c) 2012, Chris Drake"
__license__ = "All rights reserved."

# standard library
from distutils.core import setup

# pyeda
import pyeda

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

with open("LICENSE") as fin:
    LICENSE = fin.read()

PACKAGES = ["pyeda"]

CLASSIFIERS = [
    "License :: OSI Approved :: BSD License",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 2.7",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.2",
    "Topic :: Scientific/Engineering",
    "Topic :: Scientific/Engineering :: Mathematics",
]

setup(
    name="pyeda",
    version=pyeda.__version__,
    description="Python Electronic Design Automation",
    long_description=README,
    author="Chris Drake",
    author_email="cjdrake AT gmail DOT com",
    url="https://github.com/cjdrake/pyeda",
    license=LICENSE,
    packages=PACKAGES,
    classifiers=CLASSIFIERS
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name = 'PyFVCOM',
    packages = ['PyFVCOM'],
    version = '2.1.0',
    description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
    author = 'Pierre Cazenave',
    author_email = 'pica@pml.ac.uk',
    url = 'https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
    download_url = 'http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
    keywords = ['fvcom', 'unstructured grid', 'mesh'],
    license = 'MIT',
    platforms = 'any',
    install_requires = ['jdcal', 'lxml', 'matplotlib', 'netCDF4', 'networkx', 'numpy>=1.13.0', 'pandas', 'pyproj', 'pytz', 'scipy', 'pyshp', 'UTide', 'shapely'],
    classifiers = []
)

<commit_msg>Fix spacing in the setup.py script to conform to PEP8.<commit_after>from setuptools import setup

setup(
    name='PyFVCOM',
    packages=['PyFVCOM'],
    version='2.1.0',
    description=("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."),
    author='Pierre Cazenave',
    author_email='pica@pml.ac.uk',
    url='https://gitlab.ecosystem-modelling.pml.ac.uk/fvcom/PyFVCOM',
    download_url='http://gitlab.em.pml.ac.uk/fvcom/PyFVCOM/repository/archive.tar.gz?ref=2.1.0',
    keywords=['fvcom', 'unstructured grid', 'mesh'],
    license='MIT',
    platforms='any',
    install_requires=['jdcal', 'lxml', 'matplotlib', 'netCDF4', 'networkx', 'numpy>=1.13.0', 'pandas', 'pyproj', 'pytz', 'scipy', 'pyshp', 'UTide', 'shapely'],
    classifiers=[]
)

<|endoftext|>


<commit_before>#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# Distributed under the terms of the MIT License
#-------------------------------------------------------------------------
import os
import setuptools

from distutils.core import setup, Extension
from Cython.Build import cythonize

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

classifiers = [
    'Development Status :: 3 - Alpha',
    'Environment :: Win32 (MS Windows)',
    'License :: OSI Approved :: MIT License',
    'Natural Language :: English',
    'Operating System :: OS Independent',
    'Operating System :: Microsoft :: Windows',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3.5',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3 :: Only',
    'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
    'Topic :: Multimedia :: Sound/Audio :: Players',
    'Topic :: Multimedia :: Sound/Audio :: Speech',
    'Topic :: Text Processing :: Linguistic',
]

setup_cfg = dict(
    name='projectoxford',
    version='0.3.2',
    description='Python module for using Project Oxford APIs',
    long_description=long_description,
    author='Microsoft Corporation',
    author_email='python@microsoft.com',
    url='http://github.com/zooba/projectoxford',
    packages=['projectoxford', 'projectoxford.tests'],
    ext_modules=cythonize('projectoxford/_audio_win32.pyx'),
    install_requires=['requests'],
    classifiers=classifiers,
)

setup(**setup_cfg)
<commit_msg>setup.py cythonize on windows system added<commit_after>#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# Distributed under the terms of the MIT License
#-------------------------------------------------------------------------
import os
import platform
import setuptools

from distutils.core import setup, Extension
from Cython.Build import cythonize

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

classifiers = [
    'Development Status :: 3 - Alpha',
    'Environment :: Win32 (MS Windows)',
    'License :: OSI Approved :: MIT License',
    'Natural Language :: English',
    'Operating System :: OS Independent',
    'Operating System :: Microsoft :: Windows',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3.5',
    'Programming Language :: Python :: 3.4',
    'Programming Language :: Python :: 3 :: Only',
    'Topic :: Multimedia :: Sound/Audio :: Capture/Recording',
    'Topic :: Multimedia :: Sound/Audio :: Players',
    'Topic :: Multimedia :: Sound/Audio :: Speech',
    'Topic :: Text Processing :: Linguistic',
]

setup_cfg = dict(
    name='projectoxford',
    version='0.3.2',
    description='Python module for using Project Oxford APIs',
    long_description=long_description,
    author='Microsoft Corporation',
    author_email='python@microsoft.com',
    url='http://github.com/zooba/projectoxford',
    packages=['projectoxford', 'projectoxford.tests'],
    ext_modules=cythonize('projectoxford/_audio_win32.pyx') if platform.system()=='Windows' else None,
    install_requires=['requests'],
    classifiers=classifiers,
)

setup(**setup_cfg)
<|endoftext|>


<commit_before>import os
import sys

from setuptools import setup, find_packages

try:
    from babel.messages import frontend as babel
except ImportError:
    print "Babel is not installed, you can't localize this package"
    cmdclass = {}
else:
    cmdclass = {
        'compile_catalog': babel.compile_catalog,
        'extract_messages': babel.extract_messages,
        'init_catalog': babel.init_catalog,
        'update_catalog': babel.update_catalog
    }

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

version = '0.4.5b0'

requires = [
    'eduid_am >= 0.6.0-dev, < 0.7.0',
    'vccs_client >= 0.4.1, < 0.5.0',
    'wsgi_ratelimit >= 0.1',
    'eduid_userdb >= 0.0.0, < 0.1.0',

    'pymongo >= 2.8.0, < 3.0.0',
    'pyramid == 1.5.4',
    'pyramid_beaker == 0.8',
    'pyramid_debugtoolbar == 2.3',
    'pyramid_jinja2 == 2.3.3',
    'pyramid_mailer == 0.14',
    'pyramid_tm == 0.11',
    'pyramid_sna == 0.3.1',
    'waitress == 0.8.9',
    'recaptcha-client == 1.0.6',
    'pwgen == 0.4',
    'proquint == 0.1.0',
    'gunicorn == 19.3.0',
]

if sys.version_info[0] < 3:
    # Babel does not work with Python 3
    requires.append('Babel==1.3')

test_requires = [
    'WebTest==1.4.3',
    'mock==1.0.1',
    'eduid_signup_amp>=0.2.9b0',
]

docs_extras = [
    'Sphinx==1.1.3'
]

testing_extras = test_requires + [
    'nose==1.2.1',
    'coverage==3.6',
    'nosexcover==1.0.8',
]

waitress_extras = requires + [
    'waitress==0.8.2',
]

setup(
    name='eduid_signup',
    version=version,
    description='eduID Sign Up application',
    long_description=README + '\n\n' + CHANGES,
    # TODO: add classifiers
    classifiers=[
        # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
    ],
    keywords='identity federation saml',
    author='NORDUnet A/S',
    url='https://github.com/SUNET/eduid-signup',
    license='BSD',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=requires,
    tests_require=test_requires,
    extras_require={
        'testing': testing_extras,
        'docs': docs_extras,
        'waitress': waitress_extras,
    },
    test_suite='eduid_signup',
    entry_points="""\
    [paste.app_factory]
    main = eduid_signup:main
    """,
)
<commit_msg>fix eduid-am version<commit_after>import os
import sys

from setuptools import setup, find_packages

try:
    from babel.messages import frontend as babel
except ImportError:
    print "Babel is not installed, you can't localize this package"
    cmdclass = {}
else:
    cmdclass = {
        'compile_catalog': babel.compile_catalog,
        'extract_messages': babel.extract_messages,
        'init_catalog': babel.init_catalog,
        'update_catalog': babel.update_catalog
    }

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()

version = '0.4.5b0'

requires = [
    'eduid_am >= 0.6.0b0, < 0.7.0',
    'vccs_client >= 0.4.1, < 0.5.0',
    'wsgi_ratelimit >= 0.1',
    'eduid_userdb >= 0.0.0, < 0.1.0',

    'pymongo >= 2.8.0, < 3.0.0',
    'pyramid == 1.5.4',
    'pyramid_beaker == 0.8',
    'pyramid_debugtoolbar == 2.3',
    'pyramid_jinja2 == 2.3.3',
    'pyramid_mailer == 0.14',
    'pyramid_tm == 0.11',
    'pyramid_sna == 0.3.1',
    'waitress == 0.8.9',
    'recaptcha-client == 1.0.6',
    'pwgen == 0.4',
    'proquint == 0.1.0',
    'gunicorn == 19.3.0',
]

if sys.version_info[0] < 3:
    # Babel does not work with Python 3
    requires.append('Babel==1.3')

test_requires = [
    'WebTest==1.4.3',
    'mock==1.0.1',
    'eduid_signup_amp>=0.2.9b0',
]

docs_extras = [
    'Sphinx==1.1.3'
]

testing_extras = test_requires + [
    'nose==1.2.1',
    'coverage==3.6',
    'nosexcover==1.0.8',
]

waitress_extras = requires + [
    'waitress==0.8.2',
]

setup(
    name='eduid_signup',
    version=version,
    description='eduID Sign Up application',
    long_description=README + '\n\n' + CHANGES,
    # TODO: add classifiers
    classifiers=[
        # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
    ],
    keywords='identity federation saml',
    author='NORDUnet A/S',
    url='https://github.com/SUNET/eduid-signup',
    license='BSD',
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=requires,
    tests_require=test_requires,
    extras_require={
        'testing': testing_extras,
        'docs': docs_extras,
        'waitress': waitress_extras,
    },
    test_suite='eduid_signup',
    entry_points="""\
    [paste.app_factory]
    main = eduid_signup:main
    """,
)
<|endoftext|>


<commit_before>from distutils.core import setup
setup(
    name = "pyDatalog",
    packages = ["pyDatalog"],
    version = "0.3.0",
    description = "pyDatalog embeds a subset of prolog in python using SLG algorithm with memoization",
    author = "Pierre Carbonnelle",
    author_email = "pierre.carbonnelle@gmail.com",
    url = "https://bitbucket.org/pcarbonn/pydatalog/wiki/Home",
    download_url = "http://pypi.python.org/pypi?name=pyDatalog&:action=display",
    classifiers = [
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "Programming Language :: Other Scripting Engines",
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        ],
    long_description = """\
pyDatalog brings logic programming to python.  Assert facts and insert logic clauses directly in your python code,
and use the inference engine to resolve complex, recursive queries fast.

Datalog is a subset of prolog that is best at simulating intelligent behavior (e.g. in games),
at performing recursive algorithms (e.g. in graph analysis)
or at managing large sets of related information (e.g. in the semantic web).

Datalog statements can be specified in any order, eliminating the need for sequence diagrams and the associated risk of tricky errors.
Datalog programs are often shorter than their python equivalent.
""",
    setup_requires = ["six"],
    install_requires = ["six"]
)<commit_msg>setup : 0.3.1<commit_after>from distutils.core import setup
setup(
    name = "pyDatalog",
    packages = ["pyDatalog"],
    version = "0.3.1",
    description = "pyDatalog embeds a subset of prolog in python using SLG algorithm with memoization",
    author = "Pierre Carbonnelle",
    author_email = "pierre.carbonnelle@gmail.com",
    url = "https://bitbucket.org/pcarbonn/pydatalog/wiki/Home",
    download_url = "http://pypi.python.org/pypi?name=pyDatalog&:action=display",
    classifiers = [
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "Programming Language :: Other Scripting Engines",
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
        "Operating System :: OS Independent",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Scientific/Engineering :: Artificial Intelligence",
        ],
    long_description = """\
pyDatalog brings logic programming to python.  Assert facts and insert logic clauses directly in your python code,
and use the inference engine to resolve complex, recursive queries fast.

Datalog is a subset of prolog that is best at simulating intelligent behavior (e.g. in games),
at performing recursive algorithms (e.g. in graph analysis)
or at managing large sets of related information (e.g. in the semantic web).

Datalog statements can be specified in any order, eliminating the need for sequence diagrams and the associated risk of tricky errors.
Datalog programs are often shorter than their python equivalent.
""",
    setup_requires = ["six"],
    install_requires = ["six"]
)<|endoftext|>


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

import os
import sys
from setuptools import setup

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

_install_requires = [
    "cobble>=0.1.3,<0.2",
]

if sys.version_info[:2] <= (2, 6):
    _install_requires.append("argparse>=1.1,<2.0")

setup(
    name='mammoth',
    version='1.4.3',
    description='Convert Word documents from docx to simple and clean HTML and Markdown',
    long_description=read("README"),
    author='Michael Williamson',
    author_email='mike@zwobble.org',
    url='http://github.com/mwilliamson/python-mammoth',
    packages=['mammoth', 'mammoth.docx', 'mammoth.html', 'mammoth.styles', 'mammoth.styles.parser', 'mammoth.writers'],
    entry_points={
        "console_scripts": [
            "mammoth=mammoth.cli:main"
        ]
    },
    keywords="docx word office clean html markdown md",
    install_requires=_install_requires,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
)

<commit_msg>Bump version to 1.4.4<commit_after>#!/usr/bin/env python

import os
import sys
from setuptools import setup

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

_install_requires = [
    "cobble>=0.1.3,<0.2",
]

if sys.version_info[:2] <= (2, 6):
    _install_requires.append("argparse>=1.1,<2.0")

setup(
    name='mammoth',
    version='1.4.4',
    description='Convert Word documents from docx to simple and clean HTML and Markdown',
    long_description=read("README"),
    author='Michael Williamson',
    author_email='mike@zwobble.org',
    url='http://github.com/mwilliamson/python-mammoth',
    packages=['mammoth', 'mammoth.docx', 'mammoth.html', 'mammoth.styles', 'mammoth.styles.parser', 'mammoth.writers'],
    entry_points={
        "console_scripts": [
            "mammoth=mammoth.cli:main"
        ]
    },
    keywords="docx word office clean html markdown md",
    install_requires=_install_requires,
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
)

<|endoftext|>


<commit_before>from setuptools import setup
import os
import sys

long_description = ''
long_description_fname = 'README.rst'

if os.path.exists(long_description_fname):
    with open(long_description_fname, 'r') as infile:
        long_description = infile.read()

install_requires = []
install_requires_fname = 'requirements.txt'

if os.path.exists(install_requires_fname):
    with open(install_requires_fname, 'r') as infile:
        install_requires = infile.read().split()

if sys.version_info[0] < 3:
    install_requires.append("future>=0.14.0")

version = '0.2'

setup(
    name='i2psocket',
    description='I2P socket module',
    long_description=long_description,
    author='Jeff',
    author_email='ampernand@gmail.com',
    url='https://github.com/majestrate/i2p.socket',
    download_url='https://github.com/majestrate/i2p.socket/tarball/{}'.format(version),
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: Public Domain',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet',
    ],
    license='MIT',
    version=version,
    install_requires=install_requires,
    packages=['i2p', 'i2p.socket', 'i2p.socket.sam'],
    keywords=['i2p', 'socket'],
)
<commit_msg>update package name<commit_after>from setuptools import setup
import os
import sys

long_description = ''
long_description_fname = 'README.rst'

if os.path.exists(long_description_fname):
    with open(long_description_fname, 'r') as infile:
        long_description = infile.read()

install_requires = []
install_requires_fname = 'requirements.txt'

if os.path.exists(install_requires_fname):
    with open(install_requires_fname, 'r') as infile:
        install_requires = infile.read().split()

if sys.version_info[0] < 3:
    install_requires.append("future>=0.14.0")

version = '0.2'

setup(
    name='i2p.socket',
    description='I2P socket module',
    long_description=long_description,
    author='Jeff',
    author_email='ampernand@gmail.com',
    url='https://github.com/majestrate/i2p.socket',
    download_url='https://github.com/majestrate/i2p.socket/tarball/{}'.format(version),
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: Public Domain',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet',
    ],
    license='MIT',
    version=version,
    install_requires=install_requires,
    packages=['i2p', 'i2p.socket', 'i2p.socket.sam'],
    keywords=['i2p', 'socket'],
)
<|endoftext|>


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

# The MIT License (MIT)

# Copyright (c) 2016 CNRS

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

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

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

# AUTHORS
# Hervé BREDIN - http://herve.niderb.fr

import versioneer

from setuptools import setup, find_packages

setup(

    # package
    namespace_packages=['pyannote'],
    packages=find_packages(),
    install_requires=[
        'pyannote.core >= 0.13',
        'pyannote.database >= 0.11'
    ],
    # versioneer
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),

    # PyPI
    name='pyannote.generators',
    description=('Generators'),
    author='Hervé Bredin',
    author_email='bredin@limsi.fr',
    url='http://herve.niderb.fr/',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Topic :: Scientific/Engineering"
    ],
)
<commit_msg>chore: add support for py36<commit_after>#!/usr/bin/env python
# encoding: utf-8

# The MIT License (MIT)

# Copyright (c) 2016-2017 CNRS

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

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

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

# AUTHORS
# Hervé BREDIN - http://herve.niderb.fr

import versioneer

from setuptools import setup, find_packages

setup(

    # package
    namespace_packages=['pyannote'],
    packages=find_packages(),
    install_requires=[
        'pyannote.core >= 0.13',
        'pyannote.database >= 0.11'
    ],
    # versioneer
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),

    # PyPI
    name='pyannote.generators',
    description=('Generators'),
    author='Hervé Bredin',
    author_email='bredin@limsi.fr',
    url='http://herve.niderb.fr/',
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "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 :: Scientific/Engineering"
    ],
)
<|endoftext|>


<commit_before>import sys

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

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

# http://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
class Tox(TestCommand):
    user_options = [('tox-args=', 'a', "Arguments to pass to tox")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.tox_args = None

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

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)

setup(
    name='cordwainer',
    version='0.0.1',
    packages=find_packages(),
    url='https://github.com/caktus/cordwainer',
    license='APL2',
    author='Dan Poirier',
    author_email='dpoirier@caktusgroup.com',
    description='Django package to help import data from CSV files',
    install_requires=[
        'six>=1.7',
    ],
    tests_require=[
        'tox>=1.7',
        # Other test requirements are installed in each venv,
        #  per `tox.ini` file.
    ],
    cmdclass={'test': Tox},
    long_description=long_description,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Software Development :: Libraries',
    ],
)
<commit_msg>Fix description - v0.0.2<commit_after>import sys

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

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

# http://tox.readthedocs.org/en/latest/example/basic.html#integration-with-setuptools-distribute-test-commands
class Tox(TestCommand):
    user_options = [('tox-args=', 'a', "Arguments to pass to tox")]

    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.tox_args = None

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

    def run_tests(self):
        # import here, cause outside the eggs aren't loaded
        import tox
        import shlex
        errno = tox.cmdline(args=shlex.split(self.tox_args))
        sys.exit(errno)

setup(
    name='cordwainer',
    version='0.0.2',
    packages=find_packages(),
    url='https://github.com/caktus/cordwainer',
    license='APL2',
    author='Dan Poirier',
    author_email='dpoirier@caktusgroup.com',
    description='A better CSV module',
    install_requires=[
        'six>=1.7',
    ],
    tests_require=[
        'tox>=1.7',
        # Other test requirements are installed in each venv,
        #  per `tox.ini` file.
    ],
    cmdclass={'test': Tox},
    long_description=long_description,
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Software Development :: Libraries',
    ],
)
<|endoftext|>