<commit_before>import re
import os
from setuptools import setup

'''
Helper function to read a file since it's easier to add text to the README file
than to add it here.
'''
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

def get_version():
    m = re.search("^__version__ = [\"](.*?)[\"]", open("blogtool/__version__.py").read())
    if m:
        return m.group(1)
    else:
        raise RuntimeError("Unable to find version string in blogtool/__version__.py")

setup(name = 'blogtool',
      version = get_version(),
      url = 'https://github.com/lama7/blogtool',
      classifiers = [
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'License :: OSI Approved :: MIT License',
          'Intended Audience :: End Users/Desktop',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Topic :: Internet :: WWW/HTTP :: Site Management',
          'Topic :: Text Processing',
          'Topic :: Utilities',
          ],
      long_description = read('README.md'),
      author = 'Gerry LaMontagne',
      author_email = 'gjlama94 [at] gmail [dot] com',
      license = 'MIT',
      description = 'A command line blog client',
      scripts = ['bin/bt'],
      packages = ['blogtool', 'blogtool.xmlproxy'],
      install_requires = ['markdown', 'lxml'],
      zip_safe = False)
<commit_msg>Modified setup.py Based on New Documentation<commit_after>import re
import os
from setuptools import setup

m = re.search("^__version__ = [\"](.*?)[\"]", open("blogtool/__version__.py").read())
if m:
    version_str =  m.group(1)
else:
    raise RuntimeError("Unable to find version string in blogtool/__version__.py")

long_description = \
'''
This is a blog client for Wordpress blogs.  It is command line, rather than GUI,
based and reads markdown formatted text files to post to a web log.  The text
files must also be formatted with a header, see the `usage documentation`_ for
details.

In addition to support for posting, a number of blog related administrative
actions are supported like commenting, comment editting and moderation, post
deletion and so forth.  See the documentation_ for a full description.

.. _usage documentation: http://pythonhosted.org/blogtool/usage.html
.. _documentation: http://pythonhosted.org/blogtool/
'''

setup(name = 'blogtool',
      version = version_str,
      url = 'https://github.com/lama7/blogtool',
      classifiers = [
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'License :: OSI Approved :: MIT License',
          'Intended Audience :: End Users/Desktop',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Topic :: Internet :: WWW/HTTP :: Site Management',
          'Topic :: Text Processing',
          'Topic :: Utilities',
          ],
      long_description = long_description,
      author = 'Gerry LaMontagne',
      author_email = 'gjlama94 [at] gmail [dot] com',
      license = 'MIT',
      description = 'A command line blog client',
      scripts = ['bin/bt'],
      packages = ['blogtool', 'blogtool.xmlproxy'],
      install_requires = ['markdown', 'lxml'],
      zip_safe = False)
<|endoftext|>


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

import restless

setup(
    name='restless',
    version=restless.VERSION,
    description='A lightweight REST miniframework for Python.',
    author='Daniel Lindsley',
    author_email='daniel@toastdriven.com',
    url='http://github.com/toastdriven/restless/',
    long_description=open('README.rst', 'r').read(),
    packages=[
        'restless',
    ],
    requires=[
        'six(>=1.4.0)',
    ],
    install_requires=[
        'six>=1.4.0',
    ],
    tests_require=[
        'mock',
        'tox',
    ],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Flask',
        'Framework :: Pyramid',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: Utilities'
    ],
)
<commit_msg>Add python_requires to help pip<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup

import restless

setup(
    name='restless',
    version=restless.VERSION,
    description='A lightweight REST miniframework for Python.',
    author='Daniel Lindsley',
    author_email='daniel@toastdriven.com',
    url='http://github.com/toastdriven/restless/',
    long_description=open('README.rst', 'r').read(),
    packages=[
        'restless',
    ],
    requires=[
        'six(>=1.4.0)',
    ],
    install_requires=[
        'six>=1.4.0',
    ],
    tests_require=[
        'mock',
        'tox',
    ],
    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Framework :: Flask',
        'Framework :: Pyramid',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: Utilities'
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# django-openid-auth -  OpenID integration for django.contrib.auth
#
# Copyright (C) 2009-2013 Canonical Ltd.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
"""OpenID integration for django.contrib.auth

A library that can be used to add OpenID support to Django applications.
The library integrates with Django's built in authentication system, so
most applications require minimal changes to support OpenID llogin. The
library also includes the following features:
  * Basic user details are transferred from the OpenID server via the
    Simple Registration extension or Attribute Exchange extension.
  * can be configured to use a fixed OpenID server URL, for use in SSO.
  * supports the launchpad.net teams extension to get team membership
    info.
"""

from distutils.core import setup

description, long_description = __doc__.split('\n\n', 1)
VERSION = '0.5'

setup(
    name='django-openid-auth',
    version=VERSION,
    author='Canonical Ltd',
    description=description,
    long_description=long_description,
    license='BSD',
    platforms=['any'],
    url='https://launchpad.net/django-openid-auth',
    download_url=('http://launchpad.net/django-openid-auth/trunk/%s/+download'
                  '/django-openid-auth-%s.tar.gz' % (VERSION, VERSION)),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules'
        ],
    packages=[
        'django_openid_auth',
        'django_openid_auth.management',
        'django_openid_auth.management.commands',
        'django_openid_auth.tests',
        ],
    package_data={
        'django_openid_auth': ['templates/openid/*.html'],
        },
    provides=['django_openid_auth'],
    requires=['django (>=1.1.2)', 'openid (>=2.2.0)'],
    )
<commit_msg>added south to requirements<commit_after>#!/usr/bin/env python
# django-openid-auth -  OpenID integration for django.contrib.auth
#
# Copyright (C) 2009-2013 Canonical Ltd.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
"""OpenID integration for django.contrib.auth

A library that can be used to add OpenID support to Django applications.
The library integrates with Django's built in authentication system, so
most applications require minimal changes to support OpenID llogin. The
library also includes the following features:
  * Basic user details are transferred from the OpenID server via the
    Simple Registration extension or Attribute Exchange extension.
  * can be configured to use a fixed OpenID server URL, for use in SSO.
  * supports the launchpad.net teams extension to get team membership
    info.
"""

from distutils.core import setup

description, long_description = __doc__.split('\n\n', 1)
VERSION = '0.5'

setup(
    name='django-openid-auth',
    version=VERSION,
    author='Canonical Ltd',
    description=description,
    long_description=long_description,
    license='BSD',
    platforms=['any'],
    url='https://launchpad.net/django-openid-auth',
    download_url=('http://launchpad.net/django-openid-auth/trunk/%s/+download'
                  '/django-openid-auth-%s.tar.gz' % (VERSION, VERSION)),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules'
        ],
    packages=[
        'django_openid_auth',
        'django_openid_auth.management',
        'django_openid_auth.management.commands',
        'django_openid_auth.tests',
        ],
    package_data={
        'django_openid_auth': ['templates/openid/*.html'],
        },
    provides=['django_openid_auth'],
    requires=['django (>=1.1.2)', 'openid (>=2.2.0)', 'south'],
    )
<|endoftext|>


<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    :copyright: Copyright 2013 by Łukasz Mierzwa
    :contact: l.mierzwa@gmail.com
"""

from __future__ import unicode_literals

from setuptools import setup, find_packages

setup(
    name='django_bootstrap_breadcrumbs',
    version='0.8.1',
    url='http://prymitive.github.com/bootstrap-breadcrumbs',
    license='MIT',
    description='Django breadcrumbs for Bootstrap 2, 3 or 4',
    long_description='Django template tags used to generate breadcrumbs html '
                     'using bootstrap css classes or custom template',
    author='Łukasz Mierzwa',
    author_email='l.mierzwa@gmail.com',
    packages=find_packages(exclude=['tests']),
    install_requires=[
        'six',
    ],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Intended Audience :: Developers',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    platforms=['any'],
    zip_safe=False,
    include_package_data=True,
)
<commit_msg>0.8.2 release [noci]<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    :copyright: Copyright 2013 by Łukasz Mierzwa
    :contact: l.mierzwa@gmail.com
"""

from __future__ import unicode_literals

from setuptools import setup, find_packages

setup(
    name='django_bootstrap_breadcrumbs',
    version='0.8.2',
    url='http://prymitive.github.com/bootstrap-breadcrumbs',
    license='MIT',
    description='Django breadcrumbs for Bootstrap 2, 3 or 4',
    long_description='Django template tags used to generate breadcrumbs html '
                     'using bootstrap css classes or custom template',
    author='Łukasz Mierzwa',
    author_email='l.mierzwa@gmail.com',
    packages=find_packages(exclude=['tests']),
    install_requires=[
        'six',
    ],
    classifiers=[
        'License :: OSI Approved :: MIT License',
        'Intended Audience :: Developers',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    platforms=['any'],
    zip_safe=False,
    include_package_data=True,
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
    codecs.lookup('mbcs')
except LookupError:
    ascii = codecs.lookup('ascii')
    func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
    codecs.register(func)

setup(
    name='Matador',
    version='1.6.2',
    author='Owen Campbell',
    author_email='owen.campbell@empiria.co.uk',
    entry_points={
        'console_scripts': [
            'matador = matador.management:execute_command',
        ],
    },
    options={
        'build_scripts': {
            'executable': '/usr/bin/env python3',
        },
    },
    url='http://www.empiria.co.uk',
    packages=find_packages(),
    setup_requires=['pytest-runner'],
    tests_require=['pytest'],
    install_requires=['pyyaml', 'dulwich', 'openpyxl'],
    license='The MIT License (MIT)',
    description='Change management for Agresso systems',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English'
        ]
    )
<commit_msg>Add cookiecutter to install reqs<commit_after>from setuptools import setup, find_packages

# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
    codecs.lookup('mbcs')
except LookupError:
    ascii = codecs.lookup('ascii')
    func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
    codecs.register(func)

setup(
    name='Matador',
    version='1.6.2',
    author='Owen Campbell',
    author_email='owen.campbell@empiria.co.uk',
    entry_points={
        'console_scripts': [
            'matador = matador.management:execute_command',
        ],
    },
    options={
        'build_scripts': {
            'executable': '/usr/bin/env python3',
        },
    },
    url='http://www.empiria.co.uk',
    packages=find_packages(),
    setup_requires=['pytest-runner'],
    tests_require=['pytest'],
    install_requires=['pyyaml', 'dulwich', 'openpyxl', 'cookiecutter'],
    license='The MIT License (MIT)',
    description='Change management for Agresso systems',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English'
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

version = '2.1.1'

LONG_DESCRIPTION = """
Using geonode-avatar
===================

Basics
------

To integrate ``geonode-avatar`` with your site, there are relatively few things
that are required.  A minimal integration can work like this:

1.  List this application in the ``INSTALLED_APPS`` portion of your settings
    file.  Your settings file will look something like::

        INSTALLED_APPS = (
            # ...
            'avatar',
        )

2.  Add the pagination urls to the end of your root urlconf.  Your urlconf
    will look something like::

        urlpatterns = patterns('',
            # ...
            (r'^admin/(.*)', admin.site.root),
            (r'^avatar/', include('avatar.urls')),
        )

3.  Somewhere in your template navigation scheme, link to the change avatar
    page::

        Change your avatar

4.  Wherever you want to display an avatar for a user, first load the avatar
    template tags::

        {% load avatar_tags %}

    Then, use the ``avatar`` tag to display an avatar of a default size::

        {% avatar user %}

    Or specify a size (in pixels) explicitly::

        {% avatar user 65 %}

5.  Optionally customize ``avatar/change.html`` and
    ``avatar/confirm_delete.html`` to conform to your site's look and feel.

Views
-----

There are only two views for this application: one for changing a user's avatar,
and another for deleting a user's avatar.

Changing an avatar
~~~~~~~~~~~~~~~~~~

The actual view function is located at ``avatar.views.change``, and this can
be referenced by the url name ``avatar_change``.  It takes two keyword
arguments: ``extra_context`` and ``next_override``.  If ``extra_context`` is
provided, that context will be placed into the template's context.

If ``next_override`` is provided, the user will be redirected to the specified
URL after form submission.  Otherwise the user will be redirected to the URL
specified in the ``next`` parameter in ``request.POST``.  If ``request.POST``
has no ``next`` parameter, ``request.GET`` will be searched.  If ``request.GET``
has no ``next`` parameter, the ``HTTP_REFERER`` header will be inspected.  If
that header does not exist, the user will be redirected back to the current URL.

Deleting an avatar
~~~~~~~~~~~~~~~~~~

The actual view function is located at ``avatar.views.delete``, and this can be
referenced by the url name ``avatar_delete``.  It takes the same two keyword
arguments as ``avatar.views.change`` and follows the same redirection rules
as well.

Template Tags
-------------

To begin using these template tags, you must first load the tags into the
template rendering system:

    {% load avatar_tags %}

``{% avatar_url user [size in pixels] %}``
    Renders the URL of the avatar for the given user.  User can be either a
    ``django.contrib.auth.models.User`` object instance or a username.

``{% avatar user [size in pixels] %}``
    Renders an HTML ``img`` tag for the given user for the specified size.  User
    can be either a ``django.contrib.auth.models.User`` object instance or a
    username.

``{% render_avatar avatar [size in pixels] %}``
    Given an actual ``avatar.models.Avatar`` object instance, renders an HTML
    ``img`` tag to represent that avatar at the requested size.

Global Settings
---------------

There are a number of settings available to easily customize the avatars that
appear on the site.  Listed below are those settings:

AUTO_GENERATE_AVATAR_SIZES
    An iterable of integers representing the sizes of avatars to generate on
    upload.  This can save rendering time later on if you pre-generate the
    resized versions.  Defaults to ``(80,)``

AVATAR_RESIZE_METHOD
    The method to use when resizing images, based on the options available in
    PIL.  Defaults to ``Image.ANTIALIAS``.

AVATAR_STORAGE_DIR
    The directory under ``MEDIA_ROOT`` to store the images.  If using a
    non-filesystem storage device, this will simply be appended to the beginning
    of the file name.

AVATAR_GRAVATAR_BACKUP
    A boolean determining whether to default to the Gravatar service if no
    ``Avatar`` instance is found in the system for the given user.  Defaults to
    True.

AVATAR_DEFAULT_URL
    The default URL to default to if ``AVATAR_GRAVATAR_BACKUP`` is set to False
    and there is no ``Avatar`` instance found in the system for the given user.

Management Commands
-------------------

This application does include one management command: ``rebuild_avatars``.  It
takes no arguments and, when run, re-renders all of the thumbnails for all of
the avatars for the pixel sizes specified in the ``AUTO_GENERATE_AVATAR_SIZES``
setting.
"""

setup(
    name='geonode-avatar',
    version=version,
    description="A fork of django-avatar, for GeoNode",
    long_description=LONG_DESCRIPTION,
    classifiers=[
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Framework :: Django",
        "Environment :: Web Environment",
    ],
    keywords='avatar,django',
    author='Ariel Nunez',
    author_email='ingenieroariel@gmail.com',
    url='http://github.com/ingenieroariel/geonode-avatar/',
    license='BSD',
    packages=find_packages(),
    package_data = {
        'avatar': [
            'templates/avatar/*.html',
            'locale/*/LC_MESSAGES/*',
            'media/avatar/img/default.jpg',
            'testdata/*',
        ],
    },
    include_package_data=True,
    zip_safe=False,
)
<commit_msg>Updated setup.py<commit_after>from setuptools import setup, find_packages

version = '2.1.2'

LONG_DESCRIPTION = """
Using geonode-avatar
===================

Basics
------

To integrate ``geonode-avatar`` with your site, there are relatively few things
that are required.  A minimal integration can work like this:

1.  List this application in the ``INSTALLED_APPS`` portion of your settings
    file.  Your settings file will look something like::

        INSTALLED_APPS = (
            # ...
            'avatar',
        )

2.  Add the pagination urls to the end of your root urlconf.  Your urlconf
    will look something like::

        urlpatterns = patterns('',
            # ...
            (r'^admin/(.*)', admin.site.root),
            (r'^avatar/', include('avatar.urls')),
        )

3.  Somewhere in your template navigation scheme, link to the change avatar
    page::

        Change your avatar

4.  Wherever you want to display an avatar for a user, first load the avatar
    template tags::

        {% load avatar_tags %}

    Then, use the ``avatar`` tag to display an avatar of a default size::

        {% avatar user %}

    Or specify a size (in pixels) explicitly::

        {% avatar user 65 %}

5.  Optionally customize ``avatar/change.html`` and
    ``avatar/confirm_delete.html`` to conform to your site's look and feel.

Views
-----

There are only two views for this application: one for changing a user's avatar,
and another for deleting a user's avatar.

Changing an avatar
~~~~~~~~~~~~~~~~~~

The actual view function is located at ``avatar.views.change``, and this can
be referenced by the url name ``avatar_change``.  It takes two keyword
arguments: ``extra_context`` and ``next_override``.  If ``extra_context`` is
provided, that context will be placed into the template's context.

If ``next_override`` is provided, the user will be redirected to the specified
URL after form submission.  Otherwise the user will be redirected to the URL
specified in the ``next`` parameter in ``request.POST``.  If ``request.POST``
has no ``next`` parameter, ``request.GET`` will be searched.  If ``request.GET``
has no ``next`` parameter, the ``HTTP_REFERER`` header will be inspected.  If
that header does not exist, the user will be redirected back to the current URL.

Deleting an avatar
~~~~~~~~~~~~~~~~~~

The actual view function is located at ``avatar.views.delete``, and this can be
referenced by the url name ``avatar_delete``.  It takes the same two keyword
arguments as ``avatar.views.change`` and follows the same redirection rules
as well.

Template Tags
-------------

To begin using these template tags, you must first load the tags into the
template rendering system:

    {% load avatar_tags %}

``{% avatar_url user [size in pixels] %}``
    Renders the URL of the avatar for the given user.  User can be either a
    ``django.contrib.auth.models.User`` object instance or a username.

``{% avatar user [size in pixels] %}``
    Renders an HTML ``img`` tag for the given user for the specified size.  User
    can be either a ``django.contrib.auth.models.User`` object instance or a
    username.

``{% render_avatar avatar [size in pixels] %}``
    Given an actual ``avatar.models.Avatar`` object instance, renders an HTML
    ``img`` tag to represent that avatar at the requested size.

Global Settings
---------------

There are a number of settings available to easily customize the avatars that
appear on the site.  Listed below are those settings:

AUTO_GENERATE_AVATAR_SIZES
    An iterable of integers representing the sizes of avatars to generate on
    upload.  This can save rendering time later on if you pre-generate the
    resized versions.  Defaults to ``(80,)``

AVATAR_RESIZE_METHOD
    The method to use when resizing images, based on the options available in
    PIL.  Defaults to ``Image.ANTIALIAS``.

AVATAR_STORAGE_DIR
    The directory under ``MEDIA_ROOT`` to store the images.  If using a
    non-filesystem storage device, this will simply be appended to the beginning
    of the file name.

AVATAR_GRAVATAR_BACKUP
    A boolean determining whether to default to the Gravatar service if no
    ``Avatar`` instance is found in the system for the given user.  Defaults to
    True.

AVATAR_DEFAULT_URL
    The default URL to default to if ``AVATAR_GRAVATAR_BACKUP`` is set to False
    and there is no ``Avatar`` instance found in the system for the given user.

Management Commands
-------------------

This application does include one management command: ``rebuild_avatars``.  It
takes no arguments and, when run, re-renders all of the thumbnails for all of
the avatars for the pixel sizes specified in the ``AUTO_GENERATE_AVATAR_SIZES``
setting.
"""

setup(
    name='geonode-avatar',
    version=version,
    description="A fork of django-avatar, for GeoNode",
    long_description=LONG_DESCRIPTION,
    classifiers=[
        "Programming Language :: Python",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Framework :: Django",
        "Environment :: Web Environment",
    ],
    keywords='avatar,django',
    author='Ariel Nunez',
    author_email='ingenieroariel@gmail.com',
    url='http://github.com/GeoNode/geonode-avatar/',
    license='BSD',
    packages=find_packages(),
    package_data = {
        'avatar': [
            'templates/avatar/*.html',
            'locale/*/LC_MESSAGES/*',
            'media/avatar/img/default.jpg',
            'testdata/*',
        ],
    },
    include_package_data=True,
    zip_safe=False,
)
<|endoftext|>


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

import os
import setuptools

setuptools.setup(
  name='localconfig',
  version='0.2.10',

  author='Max Zheng',
  author_email='maxzheng.os @t gmail.com',

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

#  entry_points={
#    'console_scripts': [
#      'script_name = package.module:entry_callable',
#    ],
#  },

  install_requires=[
    'markupsafe',  # readthedocs.org requires this to build doc
  ],

  license='MIT',

  package_dir={'': 'src'},
  packages=setuptools.find_packages('src'),
  include_package_data=True,

  setup_requires=['setuptools-git'],

#  scripts=['bin/cast-example'],

  classifiers=[
    'Development Status :: 5 - Production/Stable',

    'Intended Audience :: Developers',
    'Topic :: Software Development :: Configuration',

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

    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.6',
    'Programming Language :: Python :: 2.7',
  ],

  keywords='configuration config ConfigParser data type support',
)
<commit_msg>Publish version 0.2.11<commit_after>#!/usr/bin/env python

import os
import setuptools

setuptools.setup(
  name='localconfig',
  version='0.2.11',

  author='Max Zheng',
  author_email='maxzheng.os @t gmail.com',

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

#  entry_points={
#    'console_scripts': [
#      'script_name = package.module:entry_callable',
#    ],
#  },

  install_requires=[
    'markupsafe',  # readthedocs.org requires this to build doc
  ],

  license='MIT',

  package_dir={'': 'src'},
  packages=setuptools.find_packages('src'),
  include_package_data=True,

  setup_requires=['setuptools-git'],

#  scripts=['bin/cast-example'],

  classifiers=[
    'Development Status :: 5 - Production/Stable',

    'Intended Audience :: Developers',
    'Topic :: Software Development :: Configuration',

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

    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.6',
    'Programming Language :: Python :: 2.7',
  ],

  keywords='configuration config ConfigParser data type support',
)
<|endoftext|>


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

import os
import shutil
import sys

VERSION = '0.0.1'

setup_info = dict(

    name = 'nimp-cli',
    version = VERSION,
    description = 'Multipurpose build tool',
    long_description = '' +
        'Nimp is a cross-platform tool that helps maintain, compile, cook, ' +
        'and ship game projects. It currently supports Unreal Engine.' +
        '',
    license = 'MIT',

    url = 'https://github.com/dontnod/nimp',
    download_url = 'https://github.com/dontnod/nimp/tarball/master',

    author = 'Dontnod Entertainment',
    author_email = 'root@dont-nod.com',

    packages = [
        'nimp',
        'nimp/commands',
        'nimp',
    ],

    install_requires = [
        'glob2',
    ],

    entry_points = {
        'console_scripts' : [ 'nimp = nimp.nimp_cli:main' ],
    },

    # See list at https://pypi.python.org/pypi?:action=list_classifiers
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Operating System :: MacOS',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Build Tools',
    ],

    keywords = 'build compile unrealengine',
)

setuptools_info = dict(
    zip_safe = True,
)

from setuptools import setup
setup(**setup_info)

<commit_msg>Depend on the magic Python module (for the deploy command).<commit_after>#!/usr/bin/env python

import os
import shutil
import sys

VERSION = '0.0.1'

setup_info = dict(

    name = 'nimp-cli',
    version = VERSION,
    description = 'Multipurpose build tool',
    long_description = '' +
        'Nimp is a cross-platform tool that helps maintain, compile, cook, ' +
        'and ship game projects. It currently supports Unreal Engine.' +
        '',
    license = 'MIT',

    url = 'https://github.com/dontnod/nimp',
    download_url = 'https://github.com/dontnod/nimp/tarball/master',

    author = 'Dontnod Entertainment',
    author_email = 'root@dont-nod.com',

    packages = [
        'nimp',
        'nimp/commands',
        'nimp',
    ],

    install_requires = [
        'glob2',
        'magic',
    ],

    entry_points = {
        'console_scripts' : [ 'nimp = nimp.nimp_cli:main' ],
    },

    # See list at https://pypi.python.org/pypi?:action=list_classifiers
    classifiers = [
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Operating System :: MacOS',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Build Tools',
    ],

    keywords = 'build compile unrealengine',
)

setuptools_info = dict(
    zip_safe = True,
)

from setuptools import setup
setup(**setup_info)

<|endoftext|>


<commit_before>from setuptools import setup

from nandy.meta import version

setup(
    name="nandy",
    version="version",
    author="james absalon",
    author_email="james.absalon@rackspace.com",
    packages=['nandy'],
    package_data={'nandy': ['nandy/*']},
    long_description="Tool for retrieving resource usage information.",
    data_files=[('/etc/nandy', ['nandy.yaml'])],
    scripts=['bin/nandy'],
    install_requires=[
        'python-novaclient',
        'python-keystoneclient',
        'sqlalchemy==1.0.11',
        'MySQL-python'
    ]
)
<commit_msg>Working on packaging<commit_after>from setuptools import setup

from nandy.meta import version

setup(
    name="nandy",
    version="version",
    author="james absalon",
    author_email="james.absalon@rackspace.com",
    packages=['nandy'],
    package_data={'nandy': ['nandy/*']},
    long_description="Tool for retrieving resource usage information.",
    data_files=[('/etc/nandy', ['nandy.yaml'])],
    scripts=['bin/nandy'],
    install_requires=[
    #    'python-novaclient',
    #    'python-keystoneclient',
    #    'sqlalchemy==1.0.11',
    #    'MySQL-python'
    ]
)
<|endoftext|>


<commit_before># coding=utf8
from setuptools import setup

setup(
    name='Darbe',
    version='1.0.0',
    author=u'Cenk Altı',
    author_email='cenkalti@gmail.com',
    keywords='mysql rds migration database replication slave',
    url='https://github.com/cenk/darbe',
    py_modules=['darbe'],
    install_requires=[
        'boto3',
        'mysql-connector',
    ],
    description='RDS MySQL replication setup tool',
    entry_points={
        'console_scripts': [
            'darbe = darbe',
        ],
    },
)
<commit_msg>bump version<commit_after># coding=utf8
from setuptools import setup

setup(
    name='Darbe',
    version='1.0.1',
    author=u'Cenk Altı',
    author_email='cenkalti@gmail.com',
    keywords='mysql rds migration database replication slave',
    url='https://github.com/cenk/darbe',
    py_modules=['darbe'],
    install_requires=[
        'boto3',
        'mysql-connector',
    ],
    description='RDS MySQL replication setup tool',
    entry_points={
        'console_scripts': [
            'darbe = darbe',
        ],
    },
)
<|endoftext|>


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

from setuptools import setup

setup(
    name='pulsar-postgresql',
    version='0.1.0',
    author='Dmitriy Vlasov',
    author_email='scailer@yandex.ru',

    packages=['pg_store'],
    include_package_data=True,
    install_requires=['aiopg==0.9.2'],
    requires=['aiopg', 'pulsar (>= 1.4.0)'],

    url='https://github.com/scailer/pulsar-postgresql',
    license='MIT license',
    description='Pulsar store for postgresql database based on aiopg',

    classifiers=(
        'Development Status :: 5 - Production/Stable',
        'Environment :: Plugins',
        'Framework :: Pulsar',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Natural Language :: English',
    ),
)
<commit_msg>fix setup<commit_after># -*- coding: utf-8 -*-

from setuptools import setup

setup(
    name='pulsar-postgresql',
    version='0.1.0',
    author='Dmitriy Vlasov',
    author_email='scailer@yandex.ru',

    packages=['pg_store'],
    include_package_data=True,
    install_requires=['aiopg==0.9.2'],
    requires=['aiopg', 'pulsar (>= 1.5.4)'],

    url='https://github.com/scailer/pulsar-postgresql',
    license='MIT license',
    description='Pulsar store for postgresql database based on aiopg',

    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Plugins',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# This file is part of Tryton.  The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

from setuptools import setup, Command
import re
import os
import ConfigParser
import unittest
import sys

class SQLiteTest(Command):
    """
    Run the tests on SQLite
    """
    description = "Run tests on SQLite"

    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        os.environ['TRYTOND_DATABASE_URI'] = "sqlite://"
        os.environ['DB_NAME'] = ':memory:'

        from tests import suite
        test_result = unittest.TextTestRunner(verbosity=3).run(suite())

        if test_result.wasSuccessful():
            sys.exit(0)
        sys.exit(-1)

class XMLTests(Command):
    """Runs the tests and save the result to an XML file

    Running this requires unittest-xml-reporting which can
    be installed using::

    pip install unittest-xml-reporting

    """
    description = "Run tests with coverage and produce jUnit style report"

    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import coverage
        import xmlrunner
        cov = coverage.coverage(source=["trytond.modules.shipping_endicia"])
        cov.start()
        from tests import suite
        xmlrunner.XMLTestRunner(output="xml-test-results").run(suite())
        cov.stop()
        cov.save()
        cov.xml_report(outfile="coverage.xml")

class RunAudit(Command):
    """Audits source code using PyFlakes for following issues:
        - Names which are used but not defined or used before they are defined.
        - Names which are redefined without having been used.
    """
    description = "Audit source code with PyFlakes"
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import sys
        try:
            import pyflakes.scripts.pyflakes as flakes
        except ImportError:
            print "Audit requires PyFlakes installed in your system."
            sys.exit(-1)

        warns = 0
        # Define top-level directories
        dirs = ('.')
        for dir in dirs:
            for root, _, files in os.walk(dir):
                if root.startswith(('./build')):
                    continue
                for file in files:
                    if file != '__init__.py' and file.endswith('.py'):
                        warns += flakes.checkPath(os.path.join(root, file))
        if warns > 0:
            print "Audit finished with total %d warnings." % warns
        else:
            print "No problems found in sourcecode."

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

config = ConfigParser.ConfigParser()
config.readfp(open('tryton.cfg'))
info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
    if key in info:
        info[key] = info[key].strip().splitlines()
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)

requires = [
    'endicia >= 0.5'
]
MODULE2PREFIX = {
    'shipping': 'openlabs',
    'customs_value': 'openlabs',
}

MODULE = "shipping_endicia"
PREFIX = "trytond"
for dep in info.get('depends', []):
    if not re.match(r'(ir|res|webdav)(\W|$)', dep):
        requires.append(
            '%s_%s >= %s.%s, < %s.%s' % (
                MODULE2PREFIX.get(dep, 'trytond'), dep,
                major_version, minor_version, major_version,
                minor_version + 1
            )
        )
requires.append(
    'trytond >= %s.%s, < %s.%s' % (
        major_version, minor_version, major_version, minor_version + 1
    )
)

setup(
    name='%s_%s' % (PREFIX, MODULE),
    version=info.get('version', '0.0.1'),
    description='Integration with USPS via Endicia for Tryton',
    long_description=read('README.rst'),
    author='Fulfil.io Inc, Openlabs Technologies & Consulting (P) Ltd.',
    url='https://github.com/fufilio/trytond-shipping-endicia/',
    package_dir={'trytond.modules.%s' % MODULE: '.'},
    packages=[
        'trytond.modules.%s' % MODULE,
        'trytond.modules.%s.tests' % MODULE,
    ],
    package_data={
        'trytond.modules.%s' % MODULE:
            info.get('xml', []) + [
                'tryton.cfg', 'locale/*.po', 'icons/*.svg', 'view/*xml'
            ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Plugins',
        'Framework :: Tryton',
        'Intended Audience :: Developers',
        'Intended Audience :: Financial and Insurance Industry',
        'Intended Audience :: Legal Industry',
        'Intended Audience :: Manufacturing',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Office/Business',
    ],
    license='BSD',
    install_requires=requires,
    zip_safe=False,
    entry_points="""
    [trytond.modules]
    %s = trytond.modules.%s
    """ % (MODULE, MODULE),
    test_suite='tests',
    test_loader='trytond.test_loader:Loader',
    cmdclass={
        'xmltests': XMLTests,
        'audit': RunAudit,
        'test': SQLiteTest,
    },
)
<commit_msg>Changed prefix to fio<commit_after>#!/usr/bin/env python
# This file is part of Tryton.  The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

from setuptools import setup, Command
import re
import os
import ConfigParser
import unittest
import sys

class SQLiteTest(Command):
    """
    Run the tests on SQLite
    """
    description = "Run tests on SQLite"

    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        os.environ['TRYTOND_DATABASE_URI'] = "sqlite://"
        os.environ['DB_NAME'] = ':memory:'

        from tests import suite
        test_result = unittest.TextTestRunner(verbosity=3).run(suite())

        if test_result.wasSuccessful():
            sys.exit(0)
        sys.exit(-1)

class XMLTests(Command):
    """Runs the tests and save the result to an XML file

    Running this requires unittest-xml-reporting which can
    be installed using::

    pip install unittest-xml-reporting

    """
    description = "Run tests with coverage and produce jUnit style report"

    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import coverage
        import xmlrunner
        cov = coverage.coverage(source=["trytond.modules.shipping_endicia"])
        cov.start()
        from tests import suite
        xmlrunner.XMLTestRunner(output="xml-test-results").run(suite())
        cov.stop()
        cov.save()
        cov.xml_report(outfile="coverage.xml")

class RunAudit(Command):
    """Audits source code using PyFlakes for following issues:
        - Names which are used but not defined or used before they are defined.
        - Names which are redefined without having been used.
    """
    description = "Audit source code with PyFlakes"
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import sys
        try:
            import pyflakes.scripts.pyflakes as flakes
        except ImportError:
            print "Audit requires PyFlakes installed in your system."
            sys.exit(-1)

        warns = 0
        # Define top-level directories
        dirs = ('.')
        for dir in dirs:
            for root, _, files in os.walk(dir):
                if root.startswith(('./build')):
                    continue
                for file in files:
                    if file != '__init__.py' and file.endswith('.py'):
                        warns += flakes.checkPath(os.path.join(root, file))
        if warns > 0:
            print "Audit finished with total %d warnings." % warns
        else:
            print "No problems found in sourcecode."

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

config = ConfigParser.ConfigParser()
config.readfp(open('tryton.cfg'))
info = dict(config.items('tryton'))
for key in ('depends', 'extras_depend', 'xml'):
    if key in info:
        info[key] = info[key].strip().splitlines()
major_version, minor_version, _ = info.get('version', '0.0.1').split('.', 2)
major_version = int(major_version)
minor_version = int(minor_version)

requires = [
    'endicia >= 0.5'
]
MODULE2PREFIX = {
    'shipping': 'openlabs',
    'customs_value': 'openlabs',
}

MODULE = "shipping_endicia"
PREFIX = "fio"
for dep in info.get('depends', []):
    if not re.match(r'(ir|res|webdav)(\W|$)', dep):
        requires.append(
            '%s_%s >= %s.%s, < %s.%s' % (
                MODULE2PREFIX.get(dep, 'trytond'), dep,
                major_version, minor_version, major_version,
                minor_version + 1
            )
        )
requires.append(
    'trytond >= %s.%s, < %s.%s' % (
        major_version, minor_version, major_version, minor_version + 1
    )
)

setup(
    name='%s_%s' % (PREFIX, MODULE),
    version=info.get('version', '0.0.1'),
    description='Integration with USPS via Endicia for Tryton',
    long_description=read('README.rst'),
    author='Fulfil.io Inc, Openlabs Technologies & Consulting (P) Ltd.',
    url='https://github.com/fufilio/trytond-shipping-endicia/',
    package_dir={'trytond.modules.%s' % MODULE: '.'},
    packages=[
        'trytond.modules.%s' % MODULE,
        'trytond.modules.%s.tests' % MODULE,
    ],
    package_data={
        'trytond.modules.%s' % MODULE:
            info.get('xml', []) + [
                'tryton.cfg', 'locale/*.po', 'icons/*.svg', 'view/*xml'
            ],
    },
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Plugins',
        'Framework :: Tryton',
        'Intended Audience :: Developers',
        'Intended Audience :: Financial and Insurance Industry',
        'Intended Audience :: Legal Industry',
        'Intended Audience :: Manufacturing',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Topic :: Office/Business',
    ],
    license='BSD',
    install_requires=requires,
    zip_safe=False,
    entry_points="""
    [trytond.modules]
    %s = trytond.modules.%s
    """ % (MODULE, MODULE),
    test_suite='tests',
    test_loader='trytond.test_loader:Loader',
    cmdclass={
        'xmltests': XMLTests,
        'audit': RunAudit,
        'test': SQLiteTest,
    },
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
"""Setup script for the project."""

from __future__ import print_function

import codecs
import os
import sys
from distutils import core

from setuptools import setup

class DumpRequirements(core.Command):
    """Write requirements.txt file for tox."""

    description = 'Write requirements.txt file for tox.'
    user_options = [('outfile=', 'o', 'File path to write to or stderr if "-".')]

    def initialize_options(self):
        """Required by distutils. Using setattr() instead of self. due to PyCharm inspections."""
        setattr(self, 'outfile', None)

    def finalize_options(self):
        """Required by distutils."""
        outfile = os.path.realpath(getattr(self, 'outfile') or 'requirements.txt')
        setattr(self, 'outfile', outfile)

    def run(self):
        """Write to file or standard err (distutils pollutes stdout)."""
        dist = getattr(core, '_setup_distribution')
        requirements = '\n'.join(sorted(set(dist.install_requires + dist.tests_require)))
        outfile = getattr(self, 'outfile')
        if outfile.endswith('-'):
            return print(requirements, file=sys.stderr)
        try:
            with open(outfile, 'w') as handle:
                handle.write(requirements)
        except IOError:
            raise SystemExit('Unable to write to {0}'.format(outfile))
        print('Wrote to {0}'.format(outfile))

def safe_read(path):
    """Try to read file or return empty string if failed.

    :param str path: Relative file path to read.

    :return: File contents.
    :rtype: str
    """
    abspath, file_handle = os.path.join(os.path.abspath(os.path.dirname(__file__)), path), None
    try:
        file_handle = codecs.open(abspath, encoding='utf-8')
        return file_handle.read(131072)
    except IOError:
        return ''
    finally:
        getattr(file_handle, 'close', lambda: None)()

setup(
    author='@Robpol86',
    author_email='robpol86@gmail.com',
    classifiers=[
        'Private :: Do Not Upload',
    ],
    cmdclass=dict(requirements=DumpRequirements),
    description='Download artifacts from AppVeyor builds of the same commit/pull request.',
    entry_points={'console_scripts': ['appveyor-artifacts = appveyor_artifacts:entry_point']},
    install_requires=['docopt', 'requests'],
    keywords='appveyor artifacts travis coverage coveralls',
    license='MIT',
    long_description=safe_read('README.rst'),
    name='appveyor-artifacts',
    py_modules=['appveyor_artifacts'],
    tests_require=['pytest-capturelog', 'pytest-cov', 'pytest-httpretty'],
    url='https://github.com/Robpol86/appveyor-artifacts',
    version='0.0.1',
    zip_safe=True,
)
<commit_msg>Kicking off renamed repo tests.<commit_after>#!/usr/bin/env python
"""Setup script for the project."""

from __future__ import print_function

import codecs
import os
import sys
from distutils import core

from setuptools import setup

class DumpRequirements(core.Command):
    """Write requirements.txt file for tox."""

    description = 'Write requirements.txt file for tox.'
    user_options = [('outfile=', 'o', 'File path to write to or stderr if "-".')]

    def initialize_options(self):
        """Required by distutils. Using setattr() instead of self. due to PyCharm inspections."""
        setattr(self, 'outfile', None)

    def finalize_options(self):
        """Required by distutils."""
        outfile = os.path.realpath(getattr(self, 'outfile') or 'requirements.txt')
        setattr(self, 'outfile', outfile)

    def run(self):
        """Write to file or standard err (distutils pollutes stdout)."""
        dist = getattr(core, '_setup_distribution')
        requirements = '\n'.join(sorted(set(dist.install_requires + dist.tests_require)))
        outfile = getattr(self, 'outfile')
        if outfile.endswith('-'):
            return print(requirements, file=sys.stderr)
        try:
            with open(outfile, 'w') as handle:
                handle.write(requirements)
        except IOError:
            raise SystemExit('Unable to write to {0}'.format(outfile))
        print('Wrote to {0}'.format(outfile))

def safe_read(path):
    """Try to read file or return empty string if failed.

    :param str path: Relative file path to read.

    :return: File contents.
    :rtype: str
    """
    abspath, file_handle = os.path.join(os.path.abspath(os.path.dirname(__file__)), path), None
    try:
        file_handle = codecs.open(abspath, encoding='utf-8')
        return file_handle.read(131072)
    except IOError:
        return ''
    finally:
        getattr(file_handle, 'close', lambda: None)()

setup(
    author='@Robpol86',
    author_email='robpol86@gmail.com',
    classifiers=[
        'Private :: Do Not Upload',
    ],
    cmdclass=dict(requirements=DumpRequirements),
    description='Download artifacts from AppVeyor builds of the same commit/pull request.',
    entry_points={'console_scripts': ['appveyor-artifacts = appveyor_artifacts:entry_point']},
    install_requires=['docopt', 'requests'],
    keywords='appveyor artifacts travis coverage coveralls',
    license='MIT',
    long_description=safe_read('README.rst'),
    name='appveyor-artifacts',
    py_modules=['appveyor_artifacts'],
    tests_require=['pytest-capturelog', 'pytest-cov', 'pytest-httpretty'],
    url='https://github.com/Robpol86/appveyor-artifacts',
    version='0.0.2',
    zip_safe=True,
)
<|endoftext|>


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

# Copyright 2016 rpaas authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import codecs

from setuptools import setup, find_packages

README = codecs.open('README.rst', encoding='utf-8').read()

setup(
    name="tsuru-rpaas",
    version="0.2.6",
    description="Reverse proxy as-a-service API for Tsuru PaaS",
    long_description=README,
    author="Tsuru",
    author_email="tsuru@corp.globo.com",
    classifiers=[
        "Programming Language :: Python :: 2.7",
    ],
    packages=find_packages(exclude=["docs", "tests"]),
    include_package_data=True,
    install_requires=[
        "cffi==1.8.3",
        "cryptography==1.6",
        "pyOpenSSL==17.2.0",
        "Flask==0.12.4",
        "Werkzeug==0.11.15",
        "requests==2.18.4",
        "gevent==1.1b6",
        "gunicorn==0.17.2",
        "tsuru-hm==0.6.12",
        "celery[redis]==3.1.23",
        "flower==0.9.1",
        "GloboNetworkAPI==0.8.1",
        "python-consul==0.6.1",
        "raven==4.2.3",
        "blinker==1.4",
        "acme==0.9.3",
        "letsencrypt==0.7.0",
        "certbot==0.9.3",
        "certifi==2016.9.26",
        "pbr==3.1.1",
        "Babel==2.3.4",
        "zope.interface==4.3.3",
        "parsedatetime==2.1",
    ],
    extras_require={
        'tests': [
            "mock==2.0.0",
            "flake8==2.1.0",
            "coverage==3.7.1",
            "freezegun==0.3.7",
        ]
    },
)
<commit_msg>bump to 0.2.7<commit_after># -*- coding: utf-8 -*-

# Copyright 2016 rpaas authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import codecs

from setuptools import setup, find_packages

README = codecs.open('README.rst', encoding='utf-8').read()

setup(
    name="tsuru-rpaas",
    version="0.2.7",
    description="Reverse proxy as-a-service API for Tsuru PaaS",
    long_description=README,
    author="Tsuru",
    author_email="tsuru@corp.globo.com",
    classifiers=[
        "Programming Language :: Python :: 2.7",
    ],
    packages=find_packages(exclude=["docs", "tests"]),
    include_package_data=True,
    install_requires=[
        "cffi==1.8.3",
        "cryptography==1.6",
        "pyOpenSSL==17.2.0",
        "Flask==0.12.4",
        "Werkzeug==0.11.15",
        "requests==2.18.4",
        "gevent==1.1b6",
        "gunicorn==0.17.2",
        "tsuru-hm==0.6.12",
        "celery[redis]==3.1.23",
        "flower==0.9.1",
        "GloboNetworkAPI==0.8.1",
        "python-consul==0.6.1",
        "raven==4.2.3",
        "blinker==1.4",
        "acme==0.9.3",
        "letsencrypt==0.7.0",
        "certbot==0.9.3",
        "certifi==2016.9.26",
        "pbr==3.1.1",
        "Babel==2.3.4",
        "zope.interface==4.3.3",
        "parsedatetime==2.1",
    ],
    extras_require={
        'tests': [
            "mock==2.0.0",
            "flake8==2.1.0",
            "coverage==3.7.1",
            "freezegun==0.3.7",
        ]
    },
)
<|endoftext|>


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

from setuptools import setup

setup(name='quickfind',
      version="0.1.0.0",
      description='Fuzzy find for the terminal',
      url="https://github.com/Refefer/quickfind",
      packages=['quickfind', 'quickfind/source'],
      license="LICENSE",
      scripts=['bin/qf'],
      author='Andrew Stanton',
      author_email='Andrew Stanton',
      install_requires=['python-ctags'],
      classifiers=[
       "License :: OSI Approved :: Apache Software License",
       "Programming Language :: Python :: 2.6",
       "Operating System :: OS Independent"
      ])
<commit_msg>Ups version<commit_after># !/usr/bin/env python

from setuptools import setup

setup(name='quickfind',
      version="0.1.0.1",
      description='Fuzzy find for the terminal',
      url="https://github.com/Refefer/quickfind",
      packages=['quickfind', 'quickfind/source'],
      license="LICENSE",
      scripts=['bin/qf'],
      author='Andrew Stanton',
      author_email='Andrew Stanton',
      install_requires=['python-ctags'],
      classifiers=[
       "License :: OSI Approved :: Apache Software License",
       "Programming Language :: Python :: 2.6",
       "Operating System :: OS Independent"
      ])
<|endoftext|>


<commit_before>#----------------------------------------------------------------------------
#
#  Copyright (c) 2014, Enthought, Inc.
#  All rights reserved.
#
#  This software is provided without warranty under the terms of the BSD
#  license included in /LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#
#  Thanks for using Enthought open source!
#
#----------------------------------------------------------------------------

from setuptools import setup, find_packages

setup(
    name='trait_documenter',
    version='1.0.0',
    author='Enthought, Inc',
    author_email='info@enthought.com',
    url='https://github.com/enthought/trait-documenter',
    description='Autodoc extention for documenting traits',
    long_description=open('README.rst').read(),
    packages=find_packages())
<commit_msg>update setup.py<commit_after>from setuptools import setup, find_packages

setup(
    name='trait_documenter',
    version='1.0.0',
    author='Enthought, Inc',
    author_email='info@enthought.com',
    maintainer='Ioannis Tziakos',
    maintainer_email='info@enthought.com',

    url='https://github.com/enthought/trait-documenter',
    description='Autodoc extention for documenting traits',
    long_description=open('README.rst').read(),
    license="BSD",
    classifiers=[
        "Programming Language :: Python :: 2.6",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3.2",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Framework :: Sphinx :: Extension",
        "Topic :: Documentation :: Sphinx",
    ],
    packages=['trait_documenter', 'trait_documenter.test'])
<|endoftext|>


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

from distutils.core import setup

setup(
    name='PyMata',
    packages=['PyMata'],
    version='1.4',
    description="A Python Protocol Abstraction Library For Arduino Firmata",
    author='Alan Yorinks',
    author_email='MisterYsLab@gmail.com',
    install_requires=['pyserial'],
    url='https://github.com/MrYsLab/PyMata',
    download_url = ' https://github.com/MrYsLab/PyMata/tarball/1.4',
    keywords = ['Firmata', 'Arduino', 'Protocol'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Other Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Utilities',
        'Topic :: Home Automation',
    ],
)
<commit_msg>fixed import<commit_after>#!/usr/bin/env python

from distutils.core import setup

setup(
    name='PyMata',
    packages=['PyMata'],
    version='1.5',
    description="A Python Protocol Abstraction Library For Arduino Firmata",
    author='Alan Yorinks',
    author_email='MisterYsLab@gmail.com',
    install_requires=['pyserial'],
    url='https://github.com/MrYsLab/PyMata',
    download_url = ' https://github.com/MrYsLab/PyMata/tarball/1.5',
    keywords = ['Firmata', 'Arduino', 'Protocol'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Other Environment',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Topic :: Utilities',
        'Topic :: Home Automation',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(name='tst',
      version='0.9a18',
      description='TST Student Testing',
      url='http://github.com/daltonserey/tst',
      author='Dalton Serey',
      author_email='daltonserey@gmail.com',
      license='MIT',
      packages=find_packages(),
      include_package_data=True,
      scripts=[
        'bin/runjava',
        'bin/tst',
        'commands/tst-test',
        'commands/tst-completion',
        'commands/tst-config',
        'commands/tst-status',
        'commands/tst-checkout',
        'commands/tst-checkout2',
        'commands/tst-commit',
        'commands/tst-delete',
        'commands/tst-login',
        'commands/tst-new',
      ],
      install_requires=[
        'pyyaml',
        'requests'
      ],
      entry_points = {
        'console_scripts': [
            'tst=tst.commands:main',
        ]
      },
      zip_safe=False)
<commit_msg>Add cache dependency to improve web requests<commit_after>from setuptools import setup, find_packages

setup(name='tst',
      version='0.9a18',
      description='TST Student Testing',
      url='http://github.com/daltonserey/tst',
      author='Dalton Serey',
      author_email='daltonserey@gmail.com',
      license='MIT',
      packages=find_packages(),
      include_package_data=True,
      scripts=[
        'bin/runjava',
        'bin/tst',
        'commands/tst-test',
        'commands/tst-completion',
        'commands/tst-config',
        'commands/tst-status',
        'commands/tst-checkout',
        'commands/tst-checkout2',
        'commands/tst-commit',
        'commands/tst-delete',
        'commands/tst-login',
        'commands/tst-new',
      ],
      install_requires=[
        'pyyaml',
        'requests',
        'cachecontrol[filecache]'
      ],
      entry_points = {
        'console_scripts': [
            'tst=tst.commands:main',
        ]
      },
      zip_safe=False)
<|endoftext|>


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

import os
from setuptools import setup, find_packages

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

def parse_requirements(filename):
    return [line.strip()
            for line in read(filename).strip().split('\n')
            if line.strip()]

pkg = {}
exec(read('pydash/__pkg__.py'), pkg)

readme = read('README.rst')
changelog = read('CHANGELOG.rst')
requirements = parse_requirements('requirements.txt')

setup(
    name=pkg['__package_name__'],
    version=pkg['__version__'],
    url=pkg['__url__'],
    license=pkg['__license__'],
    author=pkg['__author__'],
    author_email=pkg['__email__'],
    description=pkg['__description__'],
    long_description=readme + '\n\n' + changelog,
    packages=find_packages(exclude=['tests', 'tasks']),
    install_requires=requirements,
    keywords='utility functional lodash underscore',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'License :: OSI Approved :: MIT License',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
        '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',
    ]
)
<commit_msg>Update Python version support in setup.py to exclude 2.6, 3.2, and 3.3.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from setuptools import setup, find_packages

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

def parse_requirements(filename):
    return [line.strip()
            for line in read(filename).strip().split('\n')
            if line.strip()]

pkg = {}
exec(read('pydash/__pkg__.py'), pkg)

readme = read('README.rst')
changelog = read('CHANGELOG.rst')
requirements = parse_requirements('requirements.txt')

setup(
    name=pkg['__package_name__'],
    version=pkg['__version__'],
    url=pkg['__url__'],
    license=pkg['__license__'],
    author=pkg['__author__'],
    author_email=pkg['__email__'],
    description=pkg['__description__'],
    long_description=readme + '\n\n' + changelog,
    packages=find_packages(exclude=['tests', 'tasks']),
    install_requires=requirements,
    keywords='utility functional lodash underscore',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'License :: OSI Approved :: MIT License',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5'
    ]
)
<|endoftext|>


<commit_before>"""
SunPy: Python for Solar Physics

The SunPy project is an effort to create an open-source software library for
solar physics using the Python programming language.
"""
DOCLINES = __doc__.split("\n")

CLASSIFIERS = [
    'Development Status :: 3 - Alpha',
    'Intended Audience :: Science/Research',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3',
    'Topic :: Software Development',
    'Topic :: Scientific/Engineering',
    'Topic :: Scientific/Engineering :: Physics',
    'Operating System :: Microsoft :: Windows',
    'Operating System :: POSIX',
    'Operating System :: Unix',
    'Operating System :: MacOS'
]

VERSION = '0.5.0'

def git_description():
    import subprocess
    try:
        out = subprocess.Popen(['git', 'describe', '--tags'], stdout = subprocess.PIPE).communicate()[0]
        description = out.strip().decode('ascii')
    except OSError:
        description = 'Error: could not run git'
    return description

def write_version_py():
    import os
    if os.path.exists('.git'):
        GIT_DESCRIPTION = git_description()
    else:
        GIT_DESCRIPTION = 'N/A'

    out = open('sunpy/version.py', 'w')
    template = """# This file is automatically generated by SunPy's setup.py
version = '%(version)s'
git_description = '%(git_description)s'
"""
    try:
        out.write(template % {'version': VERSION,
                              'git_description': GIT_DESCRIPTION})
    finally:
        out.close()

def install(setup): #pylint: disable=W0621
    from setuptools import find_packages
    #Crotate Module
    from distutils.core import Extension
    from os.path import dirname, join
    cwd = dirname(__file__)
    try:
        import numpy as np
    except ImportError:
        print("SunPy WARNING: NumPy must be installed first to build the C extension")

    if 'np' in locals():
        libs = ['m']
        gcc_args = ['-std=c99', '-O3']

        module_ana = 'sunpy.io._pyana'
        sourcefiles_ana = [join(cwd, 'sunpy', 'io', 'src', 'ana', 'anacompress.c'),
                       join(cwd, 'sunpy', 'io', 'src', 'ana', 'anadecompress.c'),
                       join(cwd, 'sunpy', 'io', 'src', 'ana', 'anarw.c'),
                       join(cwd, 'sunpy', 'io', 'src', 'ana', 'testrw.c'),
                       join(cwd, 'sunpy', 'io', 'src', 'ana', '_pyana.c')]

        ana = Extension(module_ana,
                            sources = sourcefiles_ana,
                            libraries = libs,
                            extra_compile_args = gcc_args,
                            include_dirs =
                            [np.get_include(), join(cwd, 'sunpy', 'io', 'src')]
                            )
    ext_modules = []
    if 'crotate' in locals():
        ext_modules.append(crotate)
    if 'ana' in locals():
        ext_modules.append(ana)

    write_version_py()

    # Define the extra requirements in a sensible manner.
    extras_require = {'database': ["sqlalchemy"],
                      'image': ["scikit-image"],
                      'jpeg2000': ["glymur"],
                      'net': ["suds", "beautifulsoup4", "requests"]}
    # All is everything except glymur.
    extras_require['all'] = extras_require['database'] + extras_require['image'] + extras_require['net']

    setup(
	author="Steven Christe, Russell Hewett, Keith Hughitt, Jack Ireland, Florian Mayer, Stuart Mumford,  Albert Shih, David Perez-Suarez et. al",
        author_email="sunpy@googlegroups.com",
        classifiers=CLASSIFIERS,
        description=DOCLINES[0],
        install_requires=[
            'numpy>1.7.1',
            'astropy>=0.3.0',
            'scipy',
            'pandas>=0.12.1',
            'matplotlib>=1.1',
            'sqlalchemy',
        ],
        extra_requires=extras_require,
        license="BSD",
        long_description="\n".join(DOCLINES[2:]),
        maintainer="SunPy Developers",
        maintainer_email="sunpy@googlegroups.com",
        name="sunpy",
        packages=find_packages(),
        package_data={'': ['*.fits', '*.fit', 'sunpyrc']},
        platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
        provides=['sunpy'],
        url="http://www.sunpy.org/",
        use_2to3=True,
        include_package_data=True,
        version=VERSION,
        ext_modules = ext_modules
    )

if __name__ == '__main__':
    from distribute_setup import use_setuptools
    use_setuptools()
    from setuptools import setup
    install(setup)
<commit_msg>Fixes to setup.py<commit_after>"""
SunPy: Python for Solar Physics

The SunPy project is an effort to create an open-source software library for
solar physics using the Python programming language.
"""
DOCLINES = __doc__.split("\n")

CLASSIFIERS = [
    'Development Status :: 3 - Alpha',
    'Intended Audience :: Science/Research',
    'Intended Audience :: Developers',
    'License :: OSI Approved :: BSD License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 3',
    'Topic :: Software Development',
    'Topic :: Scientific/Engineering',
    'Topic :: Scientific/Engineering :: Physics',
    'Operating System :: Microsoft :: Windows',
    'Operating System :: POSIX',
    'Operating System :: Unix',
    'Operating System :: MacOS'
]

VERSION = '0.5.0'

def git_description():
    import subprocess
    try:
        out = subprocess.Popen(['git', 'describe', '--tags'], stdout = subprocess.PIPE).communicate()[0]
        description = out.strip().decode('ascii')
    except OSError:
        description = 'Error: could not run git'
    return description

def write_version_py():
    import os
    if os.path.exists('.git'):
        GIT_DESCRIPTION = git_description()
    else:
        GIT_DESCRIPTION = 'N/A'

    out = open('sunpy/version.py', 'w')
    template = """# This file is automatically generated by SunPy's setup.py
version = '%(version)s'
git_description = '%(git_description)s'
"""
    try:
        out.write(template % {'version': VERSION,
                              'git_description': GIT_DESCRIPTION})
    finally:
        out.close()

def install(setup): #pylint: disable=W0621
    from setuptools import find_packages
    #Crotate Module
    from distutils.core import Extension
    from os.path import dirname, join

    try:
        import numpy as np
    except ImportError:
        print("SunPy WARNING: NumPy must be installed first to build the C extension")

    if 'np' in locals():
        libs = ['m']
        gcc_args = ['-std=c99', '-O3']

        module_ana = 'sunpy.io._pyana'
        sourcefiles_ana = [join('.', 'sunpy', 'io', 'src', 'ana', 'anacompress.c'),
                           join('.', 'sunpy', 'io', 'src', 'ana', 'anadecompress.c'),
                           join('.', 'sunpy', 'io', 'src', 'ana', 'anarw.c'),
                           join('.', 'sunpy', 'io', 'src', 'ana', 'testrw.c'),
                           join('.', 'sunpy', 'io', 'src', 'ana', '_pyana.c')]

        ana = Extension(module_ana,
                            sources = sourcefiles_ana,
                            libraries = libs,
                            extra_compile_args = gcc_args,
                            include_dirs =
                            [np.get_include(), join('.', 'sunpy', 'io', 'src')]
                            )
    ext_modules = []
    if 'ana' in locals():
        ext_modules.append(ana)

    write_version_py()

    # Define the extra requirements in a sensible manner.
    extras_require = {'database': ["sqlalchemy"],
                      'image': ["scikit-image"],
                      'jpeg2000': ["glymur"],
                      'net': ["suds", "beautifulsoup4", "requests"]}
    # All is everything except glymur.
    extras_require['all'] = extras_require['database'] + extras_require['image'] + extras_require['net']

    setup(
	author="Steven Christe, Russell Hewett, Keith Hughitt, Jack Ireland, Florian Mayer, Stuart Mumford,  Albert Shih, David Perez-Suarez et. al",
        author_email="sunpy@googlegroups.com",
        classifiers=CLASSIFIERS,
        description=DOCLINES[0],
        install_requires=[
            'numpy>1.7.1',
            'astropy>=0.3.1',
            'scipy',
            'pandas>=0.12.1',
            'matplotlib>=1.1',
        ],
        extras_require=extras_require,
        license="BSD",
        long_description="\n".join(DOCLINES[2:]),
        maintainer="SunPy Developers",
        maintainer_email="sunpy@googlegroups.com",
        name="sunpy",
        packages=find_packages(),
        package_data={'': ['*.fits', '*.fit', 'sunpyrc']},
        platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
        provides=['sunpy'],
        url="http://www.sunpy.org/",
        use_2to3=True,
        include_package_data=True,
        zip_safe=False,
        version=VERSION,
        ext_modules = ext_modules
    )

if __name__ == '__main__':
    from distribute_setup import use_setuptools
    use_setuptools()
    from setuptools import setup
    install(setup)
<|endoftext|>


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

from setuptools import Command, find_packages, setup

install_requires = ['requests>=1.0.3']
tests_require = ['pytest', 'mock']

class PyTest(Command):
    description = 'Runs the test suite.'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import pytest
        pytest.main('test')

setup(name='camplight',
      version='0.8',
      author='Mathias Lafeldt',
      author_email='mathias.lafeldt@gmail.com',
      url='https://github.com/mlafeldt/camplight',
      license='MIT',
      description='Python implementation of the Campfire API',
      long_description=open('README.md').read() + '\n\n' +
                       open('HISTORY.md').read(),
      classifiers=['Development Status :: 4 - Beta',
                   'Intended Audience :: Developers',
                   'Natural Language :: English',
                   'License :: OSI Approved :: MIT License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python'],
      packages=find_packages(),
      zip_safe=False,
      setup_requires=[],
      install_requires=install_requires,
      tests_require=tests_require,
      extras_require={'test': tests_require},
      entry_points="""
      # -*- Entry points: -*-
      [console_scripts]
      camplight=camplight.cli:main
      """,
      cmdclass={'test': PyTest})
<commit_msg>Fix exit status of `python setup.py test`<commit_after># -*- coding: utf-8 -*-

from setuptools import Command, find_packages, setup
import sys

install_requires = ['requests>=1.0.3']
tests_require = ['pytest', 'mock']

class PyTest(Command):
    description = 'Runs the test suite.'
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        import pytest
        errno = pytest.main('test')
        sys.exit(errno)

setup(name='camplight',
      version='0.8',
      author='Mathias Lafeldt',
      author_email='mathias.lafeldt@gmail.com',
      url='https://github.com/mlafeldt/camplight',
      license='MIT',
      description='Python implementation of the Campfire API',
      long_description=open('README.md').read() + '\n\n' +
                       open('HISTORY.md').read(),
      classifiers=['Development Status :: 4 - Beta',
                   'Intended Audience :: Developers',
                   'Natural Language :: English',
                   'License :: OSI Approved :: MIT License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python'],
      packages=find_packages(),
      zip_safe=False,
      setup_requires=[],
      install_requires=install_requires,
      tests_require=tests_require,
      extras_require={'test': tests_require},
      entry_points="""
      # -*- Entry points: -*-
      [console_scripts]
      camplight=camplight.cli:main
      """,
      cmdclass={'test': PyTest})
<|endoftext|>


<commit_before>import os
from setuptools import setup, find_packages

VERSION = "1.7.0"

src_dir = os.path.dirname(__file__)

install_requires = [
    "future",
    "troposphere>=1.9.0",
    'botocore>=1.12.111',  # matching boto3 requirement
    "boto3>=1.9.111<2.0",
    "PyYAML>=3.13b1",
    "awacs>=0.6.0",
    "gitpython>=2.0,<3.0",
    "jinja2>=2.7,<3.0a",
    "schematics>=2.0.1,<2.1.0",
    "formic2",
    "python-dateutil>=2.0,<3.0",
    "MarkupSafe<2.0", # 2.0 dropped python 2.7, 3.5 support - temporary
    "more-itertools<6.0.0", # 6.0.0 dropped python 2.7 support - temporary
]

setup_requires = ['pytest-runner']

tests_require = [
    "pytest~=4.3",
    "pytest-cov~=2.6",
    "mock~=2.0",
    "moto~=1.3.7",
    "testfixtures~=4.10.0",
    "flake8-future-import",
]

scripts = [
    "scripts/compare_env",
    "scripts/docker-stacker",
    "scripts/stacker.cmd",
    "scripts/stacker",
]

def read(filename):
    full_path = os.path.join(src_dir, filename)
    with open(full_path) as fd:
        return fd.read()

if __name__ == "__main__":
    setup(
        name="stacker",
        version=VERSION,
        author="Michael Barrett",
        author_email="loki77@gmail.com",
        license="New BSD license",
        url="https://github.com/cloudtools/stacker",
        description="AWS CloudFormation Stack manager",
        long_description=read("README.rst"),
        packages=find_packages(),
        scripts=scripts,
        install_requires=install_requires,
        tests_require=tests_require,
        setup_requires=setup_requires,
        extras_require=dict(testing=tests_require),
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "Environment :: Console",
            "License :: OSI Approved :: BSD License",
            "Programming Language :: Python :: 2.7",
            "Programming Language :: Python :: 3.5",
            "Programming Language :: Python :: 3.6",
        ],
    )
<commit_msg>specify dependency for boto3 in the correct way for multiple version specifiers (#761)<commit_after>import os
from setuptools import setup, find_packages

VERSION = "1.7.0"

src_dir = os.path.dirname(__file__)

install_requires = [
    "future",
    "troposphere>=1.9.0",
    'botocore>=1.12.111',  # matching boto3 requirement
    "boto3>=1.9.111,<2.0",
    "PyYAML>=3.13b1",
    "awacs>=0.6.0",
    "gitpython>=2.0,<3.0",
    "jinja2>=2.7,<3.0a",
    "schematics>=2.0.1,<2.1.0",
    "formic2",
    "python-dateutil>=2.0,<3.0",
    "MarkupSafe<2.0", # 2.0 dropped python 2.7, 3.5 support - temporary
    "more-itertools<6.0.0", # 6.0.0 dropped python 2.7 support - temporary
]

setup_requires = ['pytest-runner']

tests_require = [
    "pytest~=4.3",
    "pytest-cov~=2.6",
    "mock~=2.0",
    "moto~=1.3.7",
    "testfixtures~=4.10.0",
    "flake8-future-import",
]

scripts = [
    "scripts/compare_env",
    "scripts/docker-stacker",
    "scripts/stacker.cmd",
    "scripts/stacker",
]

def read(filename):
    full_path = os.path.join(src_dir, filename)
    with open(full_path) as fd:
        return fd.read()

if __name__ == "__main__":
    setup(
        name="stacker",
        version=VERSION,
        author="Michael Barrett",
        author_email="loki77@gmail.com",
        license="New BSD license",
        url="https://github.com/cloudtools/stacker",
        description="AWS CloudFormation Stack manager",
        long_description=read("README.rst"),
        packages=find_packages(),
        scripts=scripts,
        install_requires=install_requires,
        tests_require=tests_require,
        setup_requires=setup_requires,
        extras_require=dict(testing=tests_require),
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "Environment :: Console",
            "License :: OSI Approved :: BSD License",
            "Programming Language :: Python :: 2.7",
            "Programming Language :: Python :: 3.5",
            "Programming Language :: Python :: 3.6",
        ],
    )
<|endoftext|>


<commit_before>name = 'muLAn'

import sys
import os

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

extensions = [
              Extension("muLAn/models/vbb/vbb",
                        sources=["muLAn/models/vbb/vbb.pyx"],
                        language="c++")
              ]

setup(
      name = name,
      ext_modules = cythonize(extensions),
      data_files=[('lib/python2.7/site-packages/muLAn/models/espl_inputs', ['muLAn/models/espl_inputs/tab_Bo.p', 'muLAn/models/espl_inputs/tab_B1.p'])]
      )

pjoin = os.path.join
here = os.path.abspath(os.path.dirname(__file__))

packages = []
for d, _, _ in os.walk(pjoin(here, name)):
    if os.path.exists(pjoin(d, '__init__.py')):
        packages.append(d[len(here)+1:].replace(os.path.sep, '.'))

version_ns = {}
with open(pjoin(here, name, '_version.py')) as f:
    exec(f.read(), {}, version_ns)

setup_args = dict(
    name            = name,
    version         = version_ns['__version__'],
    packages        = packages,
    description     = "muLAn: gravitational MICROlensing Analysis code",
    long_description= "muLAn: gravitational MICROlensing Analysis code",
    author          = 'Clement Ranc, Arnaud Cassan',
    author_email    = 'clement.ranc@nasa.gov, cassan@iap.fr',
    url             = 'https://github.com/muLAn-project/muLAn.git',
    license         = 'MIT',
    platforms       = "Linux, Mac OS X, Windows",
    keywords        = ['Astronomy', 'Microlensing', 'Science'],
    classifiers     = [
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
                       ],
)

if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
    import setuptools

setuptools_args = {}

install_requires = setuptools_args['install_requires'] = [
                                                          'scikit-learn>=0.19.0',
                                                          'argparse>=1.1',
                                                          'astropy>=1.3.2',
                                                          'bokeh>=0.12.4',
                                                          'configparser>=3.5.0',
                                                          'Cython==0.27.3',
                                                          'emcee>=2.2.1',
                                                          'GetDist==0.2.6',
                                                          'matplotlib>=2.1.2',
                                                          'numpy>=1.12.1',
                                                          'pandas>=0.18.1',
                                                          'PyAstronomy>=0.10.1',
                                                          'scipy>=0.18.1'
]

extras_require = setuptools_args['extras_require'] = {
}

if 'setuptools' in sys.modules:
    setup_args.update(setuptools_args)

if __name__ == '__main__':
    setup(**setup_args)
<commit_msg>Add platform dependencies to link correct C++ library. Fix bug with Cython.<commit_after>name = 'muLAn'

import sys
import os
import platform

from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import setuptools

if platform.system() == 'Darwin':
    macosv = platform.mac_ver()[0]
    macosv_full = [int(a) for a in macosv.split('.')]
    if (macosv_full[0] >= 10) & (macosv_full[1] > 9):
        txt = "-mmacosx-version-min={:d}.{:d}".format(macosv_full[0], macosv_full[1])
        txt = "-mmacosx-version-min=10.9"
        extensions = [Extension(name="muLAn.models.vbb.vbb",
                                sources=["muLAn/models/vbb/vbb.pyx"],
                                language="c++",
                                extra_link_args=["-stdlib=libc++", txt])]
    else:
        extensions = [Extension(name="muLAn.models.vbb.vbb",
                                sources=["muLAn/models/vbb/vbb.pyx"],
                                language="c++")]
else:
        extensions = [Extension(name="muLAn.models.vbb.vbb",
                            sources=["muLAn/models/vbb/vbb.pyx"],
                            language="c++")]

setup(
      name = name,
      ext_modules = cythonize(extensions),
      data_files=[('lib/python2.7/site-packages/muLAn/models/espl_inputs', ['muLAn/models/espl_inputs/tab_Bo.p', 'muLAn/models/espl_inputs/tab_B1.p'])]
      )

pjoin = os.path.join
here = os.path.abspath(os.path.dirname(__file__))

packages = []
for d, _, _ in os.walk(pjoin(here, name)):
    if os.path.exists(pjoin(d, '__init__.py')):
        packages.append(d[len(here)+1:].replace(os.path.sep, '.'))

version_ns = {}
with open(pjoin(here, name, '_version.py')) as f:
    exec(f.read(), {}, version_ns)

setup_args = dict(
    name            = name,
    version         = version_ns['__version__'],
    packages        = packages,
    description     = "muLAn: gravitational MICROlensing Analysis code",
    long_description= "muLAn: gravitational MICROlensing Analysis code",
    author          = 'Clement Ranc, Arnaud Cassan',
    author_email    = 'clement.ranc@nasa.gov, cassan@iap.fr',
    url             = 'https://github.com/muLAn-project/muLAn.git',
    license         = 'MIT',
    platforms       = "Linux, Mac OS X, Windows",
    keywords        = ['Astronomy', 'Microlensing', 'Science'],
    classifiers     = [
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
                       ],
)

if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
    import setuptools

setuptools_args = {}

install_requires = setuptools_args['install_requires'] = [
                                                          'scikit-learn>=0.19.0',
                                                          'argparse>=1.1',
                                                          'astropy>=1.3.2',
                                                          'bokeh>=0.12.4',
                                                          'configparser>=3.5.0',
                                                          'Cython==0.27.3',
                                                          'emcee>=2.2.1',
                                                          'GetDist==0.2.6',
                                                          'matplotlib>=2.1.2',
                                                          'numpy>=1.12.1',
                                                          'pandas>=0.18.1',
                                                          'PyAstronomy>=0.10.1',
                                                          'scipy>=0.18.1'
]

extras_require = setuptools_args['extras_require'] = {
}

if 'setuptools' in sys.modules:
    setup_args.update(setuptools_args)

if __name__ == '__main__':
    setup(**setup_args)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='telwoord',
    description="Convert numbers into their Dutch written form",
    version='0.3',
    author="Wouter Bolsterlee",
    author_email="uws@xs4all.nl",
    packages=['telwoord'],
    url='https://github.com/wbolster/telwoord',
    license="BSD",
    classifiers=[
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: BSD License",
        "Natural Language :: Dutch",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "Topic :: Software Development :: Internationalization",
        "Topic :: Text Processing :: Filters",
        "Topic :: Text Processing :: Linguistic",
    ],
)
<commit_msg>Post-release version bump<commit_after>from setuptools import setup

setup(
    name='telwoord',
    description="Convert numbers into their Dutch written form",
    version='0.4dev',
    author="Wouter Bolsterlee",
    author_email="uws@xs4all.nl",
    packages=['telwoord'],
    url='https://github.com/wbolster/telwoord',
    license="BSD",
    classifiers=[
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: BSD License",
        "Natural Language :: Dutch",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 3",
        "Topic :: Software Development :: Internationalization",
        "Topic :: Text Processing :: Filters",
        "Topic :: Text Processing :: Linguistic",
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(name='pudzu',
      version='0.9.0',
      description='Various dataviz-oriented utilities',
      long_description='Various utility functions, mostly geared towards dataviz and used to create the data visualisations at https://www.flickr.com/photos/zarfo/albums (most of which have been posted to reddit at some point by /u/Udzu).',
      keywords='visualization pillow',
      url='https://github.com/Udzu/pudzu/',
      author='Uri Granta',
      author_email='uri.granta+python@gmail.com',
      license='MIT',
      classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
      ],
      package_dir={'pudzu': '.'},
      py_modules=['pudzu.utils', 'pudzu.dates', 'pudzu.pillar', 'pudzu.bamboo', 'pudzu.tureen', 'pudzu.charts'],
      python_requires='~=3.6',
      install_requires=[ 'toolz', 'pillow', 'numpy', 'pandas', 'beautifulsoup4' ]
)
<commit_msg>[setup] increment version number<commit_after>from setuptools import setup

setup(name='pudzu',
      version='0.9.1',
      description='Various dataviz-oriented utilities',
      long_description='Various utility functions, mostly geared towards dataviz and used to create the data visualisations at https://www.flickr.com/photos/zarfo/albums (most of which have been posted to reddit at some point by /u/Udzu).',
      keywords='visualization pillow',
      url='https://github.com/Udzu/pudzu/',
      author='Uri Granta',
      author_email='uri.granta+python@gmail.com',
      license='MIT',
      classifiers=[
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
      ],
      package_dir={'pudzu': '.'},
      py_modules=['pudzu.utils', 'pudzu.dates', 'pudzu.pillar', 'pudzu.bamboo', 'pudzu.tureen', 'pudzu.charts'],
      python_requires='~=3.6',
      install_requires=[ 'toolz', 'pillow', 'numpy', 'pandas', 'beautifulsoup4' ]
)
<|endoftext|>


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

with open('README.md', 'r') as fh:
    long_description = fh.read()

setup(
    name='monkeylearn',
    version='3.2.0',
    author='MonkeyLearn',
    author_email='hello@monkeylearn.com',
    description='Official Python client for the MonkeyLearn API',
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://github.com/monkeylearn/monkeylearn-python',
    download_url='https://github.com/monkeylearn/monkeylearn-python/tarball/v3.2.0',
    keywords=['monkeylearn', 'machine learning', 'python'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
    ],
    package_dir={'': '.'},
    packages=find_packages('.'),
    install_requires=[
        # use "pip install requests[security]" for taking out the warnings
        'requests>=2.8.1',
        'six>=1.10.0',
    ],
)
<commit_msg>Version bump<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

with open('README.md', 'r') as fh:
    long_description = fh.read()

setup(
    name='monkeylearn',
    version='3.2.1',
    author='MonkeyLearn',
    author_email='hello@monkeylearn.com',
    description='Official Python client for the MonkeyLearn API',
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://github.com/monkeylearn/monkeylearn-python',
    download_url='https://github.com/monkeylearn/monkeylearn-python/tarball/v3.2.1',
    keywords=['monkeylearn', 'machine learning', 'python'],
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'License :: OSI Approved :: MIT License',
    ],
    package_dir={'': '.'},
    packages=find_packages('.'),
    install_requires=[
        # use "pip install requests[security]" for taking out the warnings
        'requests>=2.8.1',
        'six>=1.10.0',
    ],
)
<|endoftext|>


<commit_before>from distutils.core import setup
import redismodel

setup(
    name='subconscious',
    version=redismodel.__version__,
    packages=['subconscious',
              ],
    url='',
    license='',
    author='gipsygopinathan',
    author_email='',
    description='',
    install_requires=['aioredis']
)
<commit_msg>bug fix<commit_after>from distutils.core import setup
import subconscious

setup(
    name='subconscious',
    version=subconscious.__version__,
    packages=['subconscious',
              ],
    url='',
    license='',
    author='gipsygopinathan',
    author_email='',
    description='',
    install_requires=['aioredis']
)
<|endoftext|>