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

"""
This script supports publishing Pystache to PyPI.

This docstring contains instructions to Pystache maintainers on how
to release a new version of Pystache.

(1) Prepare the release.

Make sure the code is finalized and merged to master.  Bump the version
number in setup.py, update the release date in the HISTORY file, etc.

Generate the reStructuredText long_description using--

    $ python setup.py prep

and be sure this new version is checked in.  You must have pandoc installed
to do this step:

    http://johnmacfarlane.net/pandoc/

It helps to review this auto-generated file on GitHub prior to uploading
because the long description will be sent to PyPI and appear there after
publishing.  PyPI attempts to convert this string to HTML before displaying
it on the PyPI project page.  If PyPI finds any issues, it will render it
instead as plain-text, which we do not want.

To check in advance that PyPI will accept and parse the reST file as HTML,
you can use the rst2html program installed by the docutils package
(http://docutils.sourceforge.net/).  To install docutils:

    $ pip install docutils

To check the file, run the following command and confirm that it reports
no warnings:

    $ python setup.py --long-description | rst2html.py -v --no-raw > out.html

See here for more information:

    http://docs.python.org/distutils/uploading.html#pypi-package-display

(2) Push to PyPI.  To release a new version of Pystache to PyPI--

    http://pypi.python.org/pypi/pystache

create a PyPI user account if you do not already have one.  The user account
will need permissions to push to PyPI.  A current "Package Index Owner" of
Pystache can grant you those permissions.

When you have permissions, run the following:

    python setup.py publish

If you get an error like the following--

    Upload failed (401): You must be identified to edit package information

then add a file called .pyirc to your home directory with the following
contents:

    [server-login]
    username: <PyPI username>
    password: <PyPI password>

as described here, for example:

    http://docs.python.org/release/2.5.2/dist/pypirc.html

(3) Tag the release on GitHub.  Here are some commands for tagging.

List current tags:

    git tag -l -n3

Create an annotated tag:

    git tag -a -m "Version 0.5.1" "v0.5.1"

Push a tag to GitHub:

    git push --tags defunkt v0.5.1

"""

import os
import shutil
import sys

py_version = sys.version_info

# distutils does not seem to support the following setup() arguments.
# It displays a UserWarning when setup() is passed those options:
#
#  * entry_points
#  * install_requires
#
# distribute works with Python 2.3.5 and above:
#
#   http://packages.python.org/distribute/setuptools.html#building-and-distributing-packages-with-distribute
#
if py_version < (2, 3, 5):
    # TODO: this might not work yet.
    import distutils as dist
    from distutils import core
    setup = core.setup
else:
    import setuptools as dist
    setup = dist.setup

VERSION = '0.5.3'  # Also change in pystache/__init__.py.

FILE_ENCODING = 'utf-8'

README_PATH = 'README.md'
HISTORY_PATH = 'HISTORY.md'
LICENSE_PATH = 'LICENSE'

RST_DESCRIPTION_PATH = 'setup_description.rst'

TEMP_EXTENSION = '.temp'

PREP_COMMAND = 'prep'

CLASSIFIERS = (
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: MIT License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.4',
    'Programming Language :: Python :: 2.5',
    'Programming Language :: Python :: 2.6',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3',
    'Programming Language :: Python :: 3.1',
    'Programming Language :: Python :: 3.2',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: Implementation :: PyPy',
)

# Comments in reST begin with two dots.
RST_LONG_DESCRIPTION_INTRO = """\
.. Do not edit this file.  This file is auto-generated for PyPI by setup.py
.. using pandoc, so edits should go in the source files rather than here.
"""

def read(path):
    """
    Read and return the contents of a text file as a unicode string.

    """
    # This function implementation was chosen to be compatible across Python 2/3.
    f = open(path, 'rb')
    # We avoid use of the with keyword for Python 2.4 support.
    try:
        b = f.read()
    finally:
        f.close()

    return b.decode(FILE_ENCODING)

def write(u, path):
    """
    Write a unicode string to a file (as utf-8).

    """
    print("writing to: %s" % path)
    # This function implementation was chosen to be compatible across Python 2/3.
    f = open(path, "wb")
    try:
        b = u.encode(FILE_ENCODING)
        f.write(b)
    finally:
        f.close()

def make_temp_path(path, new_ext=None):
    """
    Arguments:

      new_ext: the new file extension, including the leading dot.
        Defaults to preserving the existing file extension.

    """
    root, ext = os.path.splitext(path)
    if new_ext is None:
        new_ext = ext
    temp_path = root + TEMP_EXTENSION + new_ext
    return temp_path

def strip_html_comments(text):
    """Strip HTML comments from a unicode string."""
    lines = text.splitlines(True)  # preserve line endings.

    # Remove HTML comments (which we only allow to take a special form).
    new_lines = filter(lambda line: not line.startswith("<!--"), lines)

    return "".join(new_lines)

# We write the converted file to a temp file to simplify debugging and
# to avoid removing a valid pre-existing file on failure.
def convert_md_to_rst(md_path, rst_temp_path):
    """
    Convert the contents of a file from Markdown to reStructuredText.

    Returns the converted text as a Unicode string.

    Arguments:

      md_path: a path to a UTF-8 encoded Markdown file to convert.

      rst_temp_path: a temporary path to which to write the converted contents.

    """
    # Pandoc uses the UTF-8 character encoding for both input and output.
    command = "pandoc --write=rst --output=%s %s" % (rst_temp_path, md_path)
    print("converting with pandoc: %s to %s\n-->%s" % (md_path, rst_temp_path,
                                                       command))

    if os.path.exists(rst_temp_path):
        os.remove(rst_temp_path)

    os.system(command)

    if not os.path.exists(rst_temp_path):
        s = ("Error running: %s\n"
             "  Did you install pandoc per the %s docstring?" % (command,
                                                                 __file__))
        sys.exit(s)

    return read(rst_temp_path)

# The long_description needs to be formatted as reStructuredText.
# See the following for more information:
#
#   http://docs.python.org/distutils/setupscript.html#additional-meta-data
#   http://docs.python.org/distutils/uploading.html#pypi-package-display
#
def make_long_description():
    """
    Generate the reST long_description for setup() from source files.

    Returns the generated long_description as a unicode string.

    """
    readme_path = README_PATH

    # Remove our HTML comments because PyPI does not allow it.
    # See the setup.py docstring for more info on this.
    readme_md = strip_html_comments(read(readme_path))
    history_md = strip_html_comments(read(HISTORY_PATH))
    license_md = """\
License
=======

""" + read(LICENSE_PATH)

    sections = [readme_md, history_md, license_md]
    md_description = '\n\n'.join(sections)

    # Write the combined Markdown file to a temp path.
    md_ext = os.path.splitext(readme_path)[1]
    md_description_path = make_temp_path(RST_DESCRIPTION_PATH, new_ext=md_ext)
    write(md_description, md_description_path)

    rst_temp_path = make_temp_path(RST_DESCRIPTION_PATH)
    long_description = convert_md_to_rst(md_path=md_description_path,
                                         rst_temp_path=rst_temp_path)

    return "\n".join([RST_LONG_DESCRIPTION_INTRO, long_description])

def prep():
    """Update the reST long_description file."""
    long_description = make_long_description()
    write(long_description, RST_DESCRIPTION_PATH)

def publish():
    """Publish this package to PyPI (aka "the Cheeseshop")."""
    long_description = make_long_description()

    if long_description != read(RST_DESCRIPTION_PATH):
        print("""\
Description file not up-to-date: %s
Run the following command and commit the changes--

    python setup.py %s
""" % (RST_DESCRIPTION_PATH, PREP_COMMAND))
        sys.exit()

    print("Description up-to-date: %s" % RST_DESCRIPTION_PATH)

    answer = raw_input("Are you sure you want to publish to PyPI (yes/no)?")

    if answer != "yes":
        exit("Aborted: nothing published")

    os.system('python setup.py sdist upload')

# We use the package simplejson for older Python versions since Python
# does not contain the module json before 2.6:
#
#   http://docs.python.org/library/json.html
#
# Moreover, simplejson stopped officially support for Python 2.4 in version 2.1.0:
#
#   https://github.com/simplejson/simplejson/blob/master/CHANGES.txt
#
requires = []
if py_version < (2, 5):
    requires.append('simplejson<2.1')
elif py_version < (2, 6):
    requires.append('simplejson')

INSTALL_REQUIRES = requires

# TODO: decide whether to use find_packages() instead.  I'm not sure that
#   find_packages() is available with distutils, for example.
PACKAGES = [
    'pystache',
    'pystache.commands',
    # The following packages are only for testing.
    'pystache.tests',
    'pystache.tests.data',
    'pystache.tests.data.locator',
    'pystache.tests.examples',
]

# The purpose of this function is to follow the guidance suggested here:
#
#   http://packages.python.org/distribute/python3.html#note-on-compatibility-with-setuptools
#
# The guidance is for better compatibility when using setuptools (e.g. with
# earlier versions of Python 2) instead of Distribute, because of new
# keyword arguments to setup() that setuptools may not recognize.
def get_extra_args():
    """
    Return a dictionary of extra args to pass to setup().

    """
    extra = {}
    # TODO: it might be more correct to check whether we are using
    #   Distribute instead of setuptools, since use_2to3 doesn't take
    #   effect when using Python 2, even when using Distribute.
    if py_version >= (3, ):
        # Causes 2to3 to be run during the build step.
        extra['use_2to3'] = True

    return extra

def main(sys_argv):

    # TODO: use the logging module instead of printing.
    # TODO: include the following in a verbose mode.
    print("pystache: using: version %s of %s" % (repr(dist.__version__), repr(dist)))

    command = sys_argv[-1]

    if command == 'publish':
        publish()
        sys.exit()
    elif command == PREP_COMMAND:
        prep()
        sys.exit()

    long_description = read(RST_DESCRIPTION_PATH)
    template_files = ['*.mustache', '*.txt']
    extra_args = get_extra_args()

    setup(name='pystache',
          version=VERSION,
          license='MIT',
          description='Mustache for Python',
          long_description=long_description,
          author='Chris Wanstrath',
          author_email='chris@ozmm.org',
          maintainer='Chris Jerdonek',
          maintainer_email='chris.jerdonek@gmail.com',
          url='http://github.com/defunkt/pystache',
          install_requires=INSTALL_REQUIRES,
          packages=PACKAGES,
          package_data = {
              # Include template files so tests can be run.
              'pystache.tests.data': template_files,
              'pystache.tests.data.locator': template_files,
              'pystache.tests.examples': template_files,
          },
          entry_points = {
            'console_scripts': [
                'pystache=pystache.commands.render:main',
                'pystache-test=pystache.commands.test:main',
            ],
          },
          classifiers = CLASSIFIERS,
          **extra_args
    )

if __name__=='__main__':
    main(sys.argv)
<commit_msg>Make setup.py print to stderr instead of stdout in at least one case.<commit_after>#!/usr/bin/env python
# coding: utf-8

"""
This script supports publishing Pystache to PyPI.

This docstring contains instructions to Pystache maintainers on how
to release a new version of Pystache.

(1) Prepare the release.

Make sure the code is finalized and merged to master.  Bump the version
number in setup.py, update the release date in the HISTORY file, etc.

Generate the reStructuredText long_description using--

    $ python setup.py prep

and be sure this new version is checked in.  You must have pandoc installed
to do this step:

    http://johnmacfarlane.net/pandoc/

It helps to review this auto-generated file on GitHub prior to uploading
because the long description will be sent to PyPI and appear there after
publishing.  PyPI attempts to convert this string to HTML before displaying
it on the PyPI project page.  If PyPI finds any issues, it will render it
instead as plain-text, which we do not want.

To check in advance that PyPI will accept and parse the reST file as HTML,
you can use the rst2html program installed by the docutils package
(http://docutils.sourceforge.net/).  To install docutils:

    $ pip install docutils

To check the file, run the following command and confirm that it reports
no warnings:

    $ python setup.py --long-description | rst2html.py -v --no-raw > out.html

See here for more information:

    http://docs.python.org/distutils/uploading.html#pypi-package-display

(2) Push to PyPI.  To release a new version of Pystache to PyPI--

    http://pypi.python.org/pypi/pystache

create a PyPI user account if you do not already have one.  The user account
will need permissions to push to PyPI.  A current "Package Index Owner" of
Pystache can grant you those permissions.

When you have permissions, run the following:

    python setup.py publish

If you get an error like the following--

    Upload failed (401): You must be identified to edit package information

then add a file called .pyirc to your home directory with the following
contents:

    [server-login]
    username: <PyPI username>
    password: <PyPI password>

as described here, for example:

    http://docs.python.org/release/2.5.2/dist/pypirc.html

(3) Tag the release on GitHub.  Here are some commands for tagging.

List current tags:

    git tag -l -n3

Create an annotated tag:

    git tag -a -m "Version 0.5.1" "v0.5.1"

Push a tag to GitHub:

    git push --tags defunkt v0.5.1

"""

import os
import shutil
import sys

py_version = sys.version_info

# distutils does not seem to support the following setup() arguments.
# It displays a UserWarning when setup() is passed those options:
#
#  * entry_points
#  * install_requires
#
# distribute works with Python 2.3.5 and above:
#
#   http://packages.python.org/distribute/setuptools.html#building-and-distributing-packages-with-distribute
#
if py_version < (2, 3, 5):
    # TODO: this might not work yet.
    import distutils as dist
    from distutils import core
    setup = core.setup
else:
    import setuptools as dist
    setup = dist.setup

VERSION = '0.5.3'  # Also change in pystache/__init__.py.

FILE_ENCODING = 'utf-8'

README_PATH = 'README.md'
HISTORY_PATH = 'HISTORY.md'
LICENSE_PATH = 'LICENSE'

RST_DESCRIPTION_PATH = 'setup_description.rst'

TEMP_EXTENSION = '.temp'

PREP_COMMAND = 'prep'

CLASSIFIERS = (
    'Development Status :: 4 - Beta',
    'License :: OSI Approved :: MIT License',
    'Programming Language :: Python',
    'Programming Language :: Python :: 2',
    'Programming Language :: Python :: 2.4',
    'Programming Language :: Python :: 2.5',
    'Programming Language :: Python :: 2.6',
    'Programming Language :: Python :: 2.7',
    'Programming Language :: Python :: 3',
    'Programming Language :: Python :: 3.1',
    'Programming Language :: Python :: 3.2',
    'Programming Language :: Python :: 3.3',
    'Programming Language :: Python :: Implementation :: PyPy',
)

# Comments in reST begin with two dots.
RST_LONG_DESCRIPTION_INTRO = """\
.. Do not edit this file.  This file is auto-generated for PyPI by setup.py
.. using pandoc, so edits should go in the source files rather than here.
"""

def read(path):
    """
    Read and return the contents of a text file as a unicode string.

    """
    # This function implementation was chosen to be compatible across Python 2/3.
    f = open(path, 'rb')
    # We avoid use of the with keyword for Python 2.4 support.
    try:
        b = f.read()
    finally:
        f.close()

    return b.decode(FILE_ENCODING)

def write(u, path):
    """
    Write a unicode string to a file (as utf-8).

    """
    print("writing to: %s" % path)
    # This function implementation was chosen to be compatible across Python 2/3.
    f = open(path, "wb")
    try:
        b = u.encode(FILE_ENCODING)
        f.write(b)
    finally:
        f.close()

def make_temp_path(path, new_ext=None):
    """
    Arguments:

      new_ext: the new file extension, including the leading dot.
        Defaults to preserving the existing file extension.

    """
    root, ext = os.path.splitext(path)
    if new_ext is None:
        new_ext = ext
    temp_path = root + TEMP_EXTENSION + new_ext
    return temp_path

def strip_html_comments(text):
    """Strip HTML comments from a unicode string."""
    lines = text.splitlines(True)  # preserve line endings.

    # Remove HTML comments (which we only allow to take a special form).
    new_lines = filter(lambda line: not line.startswith("<!--"), lines)

    return "".join(new_lines)

# We write the converted file to a temp file to simplify debugging and
# to avoid removing a valid pre-existing file on failure.
def convert_md_to_rst(md_path, rst_temp_path):
    """
    Convert the contents of a file from Markdown to reStructuredText.

    Returns the converted text as a Unicode string.

    Arguments:

      md_path: a path to a UTF-8 encoded Markdown file to convert.

      rst_temp_path: a temporary path to which to write the converted contents.

    """
    # Pandoc uses the UTF-8 character encoding for both input and output.
    command = "pandoc --write=rst --output=%s %s" % (rst_temp_path, md_path)
    print("converting with pandoc: %s to %s\n-->%s" % (md_path, rst_temp_path,
                                                       command))

    if os.path.exists(rst_temp_path):
        os.remove(rst_temp_path)

    os.system(command)

    if not os.path.exists(rst_temp_path):
        s = ("Error running: %s\n"
             "  Did you install pandoc per the %s docstring?" % (command,
                                                                 __file__))
        sys.exit(s)

    return read(rst_temp_path)

# The long_description needs to be formatted as reStructuredText.
# See the following for more information:
#
#   http://docs.python.org/distutils/setupscript.html#additional-meta-data
#   http://docs.python.org/distutils/uploading.html#pypi-package-display
#
def make_long_description():
    """
    Generate the reST long_description for setup() from source files.

    Returns the generated long_description as a unicode string.

    """
    readme_path = README_PATH

    # Remove our HTML comments because PyPI does not allow it.
    # See the setup.py docstring for more info on this.
    readme_md = strip_html_comments(read(readme_path))
    history_md = strip_html_comments(read(HISTORY_PATH))
    license_md = """\
License
=======

""" + read(LICENSE_PATH)

    sections = [readme_md, history_md, license_md]
    md_description = '\n\n'.join(sections)

    # Write the combined Markdown file to a temp path.
    md_ext = os.path.splitext(readme_path)[1]
    md_description_path = make_temp_path(RST_DESCRIPTION_PATH, new_ext=md_ext)
    write(md_description, md_description_path)

    rst_temp_path = make_temp_path(RST_DESCRIPTION_PATH)
    long_description = convert_md_to_rst(md_path=md_description_path,
                                         rst_temp_path=rst_temp_path)

    return "\n".join([RST_LONG_DESCRIPTION_INTRO, long_description])

def prep():
    """Update the reST long_description file."""
    long_description = make_long_description()
    write(long_description, RST_DESCRIPTION_PATH)

def publish():
    """Publish this package to PyPI (aka "the Cheeseshop")."""
    long_description = make_long_description()

    if long_description != read(RST_DESCRIPTION_PATH):
        print("""\
Description file not up-to-date: %s
Run the following command and commit the changes--

    python setup.py %s
""" % (RST_DESCRIPTION_PATH, PREP_COMMAND))
        sys.exit()

    print("Description up-to-date: %s" % RST_DESCRIPTION_PATH)

    answer = raw_input("Are you sure you want to publish to PyPI (yes/no)?")

    if answer != "yes":
        exit("Aborted: nothing published")

    os.system('python setup.py sdist upload')

# We use the package simplejson for older Python versions since Python
# does not contain the module json before 2.6:
#
#   http://docs.python.org/library/json.html
#
# Moreover, simplejson stopped officially support for Python 2.4 in version 2.1.0:
#
#   https://github.com/simplejson/simplejson/blob/master/CHANGES.txt
#
requires = []
if py_version < (2, 5):
    requires.append('simplejson<2.1')
elif py_version < (2, 6):
    requires.append('simplejson')

INSTALL_REQUIRES = requires

# TODO: decide whether to use find_packages() instead.  I'm not sure that
#   find_packages() is available with distutils, for example.
PACKAGES = [
    'pystache',
    'pystache.commands',
    # The following packages are only for testing.
    'pystache.tests',
    'pystache.tests.data',
    'pystache.tests.data.locator',
    'pystache.tests.examples',
]

# The purpose of this function is to follow the guidance suggested here:
#
#   http://packages.python.org/distribute/python3.html#note-on-compatibility-with-setuptools
#
# The guidance is for better compatibility when using setuptools (e.g. with
# earlier versions of Python 2) instead of Distribute, because of new
# keyword arguments to setup() that setuptools may not recognize.
def get_extra_args():
    """
    Return a dictionary of extra args to pass to setup().

    """
    extra = {}
    # TODO: it might be more correct to check whether we are using
    #   Distribute instead of setuptools, since use_2to3 doesn't take
    #   effect when using Python 2, even when using Distribute.
    if py_version >= (3, ):
        # Causes 2to3 to be run during the build step.
        extra['use_2to3'] = True

    return extra

def main(sys_argv):

    # TODO: use the logging module instead of printing.
    # TODO: include the following in a verbose mode.
    sys.stderr.write("pystache: using: version %s of %s\n" % (repr(dist.__version__), repr(dist)))

    command = sys_argv[-1]

    if command == 'publish':
        publish()
        sys.exit()
    elif command == PREP_COMMAND:
        prep()
        sys.exit()

    long_description = read(RST_DESCRIPTION_PATH)
    template_files = ['*.mustache', '*.txt']
    extra_args = get_extra_args()

    setup(name='pystache',
          version=VERSION,
          license='MIT',
          description='Mustache for Python',
          long_description=long_description,
          author='Chris Wanstrath',
          author_email='chris@ozmm.org',
          maintainer='Chris Jerdonek',
          maintainer_email='chris.jerdonek@gmail.com',
          url='http://github.com/defunkt/pystache',
          install_requires=INSTALL_REQUIRES,
          packages=PACKAGES,
          package_data = {
              # Include template files so tests can be run.
              'pystache.tests.data': template_files,
              'pystache.tests.data.locator': template_files,
              'pystache.tests.examples': template_files,
          },
          entry_points = {
            'console_scripts': [
                'pystache=pystache.commands.render:main',
                'pystache-test=pystache.commands.test:main',
            ],
          },
          classifiers = CLASSIFIERS,
          **extra_args
    )

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


<commit_before>from __future__ import print_function
from os import sys, path

try:
    from skbuild import setup
except ImportError:
    print('scikit-build is required to build from source.', file=sys.stderr)
    print('Please run:', file=sys.stderr)
    print('', file=sys.stderr)
    print('  python -m pip install scikit-build')
    sys.exit(1)

setup(
    name='itk-texturefeatures',
    version='2.0.0',
    author='Insight Software Consortium',
    author_email='community@itk.org',
    packages=['itk'],
    package_dir={'itk': 'itk'},
    download_url=r'https://github.com/InsightSoftwareConsortium/ITKTextureFeatures',
    description=r'An ITK module to compute N-dimension grayscale texture feature images',
    long_description='ITK is an open-source, cross-platform library that '
                     'provides developers with an extensive suite of software '
                     'tools for image analysis. Developed through extreme '
                     'programming methodologies, ITK employs leading-edge '
                     'algorithms for registering and segmenting '
                     'multidimensional scientific images.',
    classifiers=[
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: C++",
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Healthcare Industry",
        "Intended Audience :: Science/Research",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Medical Science Apps.",
        "Topic :: Scientific/Engineering :: Information Analysis",
        "Topic :: Software Development :: Libraries",
        "Operating System :: Android",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX",
        "Operating System :: Unix",
        "Operating System :: MacOS"
        ],
    license='Apache',
    keywords='ITK InsightToolkit glcm texture features image imaging',
    url=r'https://itk.org/',
    install_requires=[
        r'itk'
    ]
    )
<commit_msg>ENH: New minor version<commit_after>from __future__ import print_function
from os import sys, path

try:
    from skbuild import setup
except ImportError:
    print('scikit-build is required to build from source.', file=sys.stderr)
    print('Please run:', file=sys.stderr)
    print('', file=sys.stderr)
    print('  python -m pip install scikit-build')
    sys.exit(1)

setup(
    name='itk-texturefeatures',
    version='2.1.0',
    author='Insight Software Consortium',
    author_email='community@itk.org',
    packages=['itk'],
    package_dir={'itk': 'itk'},
    download_url=r'https://github.com/InsightSoftwareConsortium/ITKTextureFeatures',
    description=r'An ITK module to compute N-dimension grayscale texture feature images',
    long_description='ITK is an open-source, cross-platform library that '
                     'provides developers with an extensive suite of software '
                     'tools for image analysis. Developed through extreme '
                     'programming methodologies, ITK employs leading-edge '
                     'algorithms for registering and segmenting '
                     'multidimensional scientific images.',
    classifiers=[
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: C++",
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: Healthcare Industry",
        "Intended Audience :: Science/Research",
        "Topic :: Scientific/Engineering",
        "Topic :: Scientific/Engineering :: Medical Science Apps.",
        "Topic :: Scientific/Engineering :: Information Analysis",
        "Topic :: Software Development :: Libraries",
        "Operating System :: Android",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX",
        "Operating System :: Unix",
        "Operating System :: MacOS"
        ],
    license='Apache',
    keywords='ITK InsightToolkit glcm texture features image imaging',
    url=r'https://itk.org/',
    install_requires=[
        r'itk'
    ]
    )
<|endoftext|>


<commit_before>import subprocess

from setuptools import setup

pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'],
                          stdout=subprocess.PIPE)

rst_readme = pandoc.communicate()[0]

setup(
    name="notedown",
    version="1.2.8",
    description="Convert markdown to IPython notebook.",
    long_description=rst_readme,
    packages=['notedown'],
    author="Aaron O'Leary",
    author_email='dev@aaren.me',
    license='BSD 2-Clause',
    url='http://github.com/aaren/notedown',
    install_requires=['ipython < 3.0a', 'jinja2', 'pandoc-attributes'],
    entry_points={'console_scripts': ['notedown = notedown:cli', ]},
    package_dir={'notedown': 'notedown'},
    package_data={'notedown': ['templates/markdown.tpl']},
    include_package_data=True,
)
<commit_msg>release 1.2.9<commit_after>import subprocess

from setuptools import setup

pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'],
                          stdout=subprocess.PIPE)

rst_readme = pandoc.communicate()[0]

setup(
    name="notedown",
    version="1.2.9",
    description="Convert markdown to IPython notebook.",
    long_description=rst_readme,
    packages=['notedown'],
    author="Aaron O'Leary",
    author_email='dev@aaren.me',
    license='BSD 2-Clause',
    url='http://github.com/aaren/notedown',
    install_requires=['ipython < 3.0a', 'jinja2', 'pandoc-attributes'],
    entry_points={'console_scripts': ['notedown = notedown:cli', ]},
    package_dir={'notedown': 'notedown'},
    package_data={'notedown': ['templates/markdown.tpl']},
    include_package_data=True,
)
<|endoftext|>


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

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

__version__ = "2022.04"

classes = """
    Development Status :: 5 - Production/Stable
    License :: OSI Approved :: BSD License
    Topic :: Scientific/Engineering :: Bio-Informatics
    Topic :: Software Development :: Libraries :: Application Frameworks
    Topic :: Software Development :: Libraries :: Python Modules
    Programming Language :: Python
    Programming Language :: Python :: 3.6
    Programming Language :: Python :: Implementation :: CPython
    Operating System :: POSIX :: Linux
    Operating System :: MacOS :: MacOS X
"""

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

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

setup(name='qiita-spots',
      version=__version__,
      long_description=long_description,
      license="BSD",
      description='Qiita: Spot Patterns',
      author="Qiita development team",
      author_email="qiita.help@gmail.com",
      url='https://github.com/biocore/qiita',
      test_suite='nose.collector',
      packages=['qiita_core',
                'qiita_db',
                'qiita_db/handlers',
                'qiita_db/metadata_template',
                'qiita_pet',
                'qiita_pet/handlers',
                'qiita_pet/handlers/study_handlers',
                'qiita_pet/handlers/api_proxy',
                'qiita_ware'
                ],
      include_package_data=True,
      package_data={
          'qiita_core': [
              'support_files/config_test.cfg'
              'support_files/server.crt',
              'support_files/server.csr',
              'support_files/server.key'
            ],
          'qiita_db': [
              'support_files/*.sql',
              'support_files/patches/*.sql',
              'support_files/patches/python_patches/*.py',
              'support_files/test_data/preprocessed_data/*',
              'support_files/test_data/processed_data/*',
              'support_files/test_data/raw_data/*',
              'support_files/test_data/analysis/*',
              'support_files/test_data/reference/*',
              'support_files/test_data/job/*.txt',
              'support_files/test_data/job/2_test_folder/*',
              'support_files/test_data/uploads/1/a_folder/*.txt',
              'support_files/test_data/uploads/1/.hidden_file.txt',
              'support_files/test_data/uploads/1/uploaded_file.txt',
              'support_files/test_data/templates/*',
              'support_files/work_data/*'],
          'qiita_pet': [
              'static/css/*.css', 'static/img/*.png',
              'static/img/*.gif', 'static/img/*.ico',
              'static/js/*.js', 'static/vendor/css/*.css',
              'static/vendor/css/images/*.png',
              'static/vendor/css/*.png',
              'static/vendor/fonts/glyphicons*.*',
              'static/vendor/images/*.png',
              'static/vendor/js/*.js',
              'results/admin/jobname/*.html',
              'templates/*.html',
              'support_files/config_portal.cfg',
              'support_files/doc/Makefile',
              'support_files/doc/README.md',
              'support_files/doc/source/conf.py',
              'support_files/doc/source/*.rst',
              'support_files/doc/source/tutorials/*.rst',
              'support_files/doc/source/admin/*.rst',
              'support_files/doc/source/dev/*.rst',
              'support_files/doc/source/qiita-philosophy/*.rst',
              'support_files/doc/source/admin/images/*.png',
              'support_files/doc/source/tutorials/images/*.png',
              'support_files/doc/source/qiita-philosophy/images/*.png',
              'support_files/doc/source/_static/*.png'
              ]},
      scripts=glob('scripts/*'),
      # making sure that numpy is installed before biom
      setup_requires=['numpy', 'cython'],
      install_requires=['psycopg2', 'click', 'bcrypt', 'pandas',
                        'biom-format', 'tornado<6.0', 'toredis', 'redis',
                        'scp', 'pyparsing', 'h5py',  'natsort', 'nose', 'pep8',
                        'networkx', 'humanize', 'wtforms<3.0.0', 'nltk',
                        'openpyxl', 'sphinx-bootstrap-theme', 'Sphinx<3.0',
                        'gitpython', 'redbiom', 'pyzmq', 'sphinx_rtd_theme',
                        'paramiko', 'seaborn',  'matplotlib', 'scipy', 'nose',
                        'flake8', 'six', 'qiita-files @ https://github.com/'
                        'qiita-spots/qiita-files/archive/master.zip', 'mock',
                        'python-jose', 'markdown2', 'iteration_utilities',
                        'supervisor @ https://github.com/Supervisor/'
                        'supervisor/archive/master.zip', 'joblib'],
      classifiers=classifiers
      )
<commit_msg>add future to setup.py<commit_after>#!/usr/bin/env python

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

__version__ = "2022.04"

classes = """
    Development Status :: 5 - Production/Stable
    License :: OSI Approved :: BSD License
    Topic :: Scientific/Engineering :: Bio-Informatics
    Topic :: Software Development :: Libraries :: Application Frameworks
    Topic :: Software Development :: Libraries :: Python Modules
    Programming Language :: Python
    Programming Language :: Python :: 3.6
    Programming Language :: Python :: Implementation :: CPython
    Operating System :: POSIX :: Linux
    Operating System :: MacOS :: MacOS X
"""

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

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

setup(name='qiita-spots',
      version=__version__,
      long_description=long_description,
      license="BSD",
      description='Qiita: Spot Patterns',
      author="Qiita development team",
      author_email="qiita.help@gmail.com",
      url='https://github.com/biocore/qiita',
      test_suite='nose.collector',
      packages=['qiita_core',
                'qiita_db',
                'qiita_db/handlers',
                'qiita_db/metadata_template',
                'qiita_pet',
                'qiita_pet/handlers',
                'qiita_pet/handlers/study_handlers',
                'qiita_pet/handlers/api_proxy',
                'qiita_ware'
                ],
      include_package_data=True,
      package_data={
          'qiita_core': [
              'support_files/config_test.cfg'
              'support_files/server.crt',
              'support_files/server.csr',
              'support_files/server.key'
            ],
          'qiita_db': [
              'support_files/*.sql',
              'support_files/patches/*.sql',
              'support_files/patches/python_patches/*.py',
              'support_files/test_data/preprocessed_data/*',
              'support_files/test_data/processed_data/*',
              'support_files/test_data/raw_data/*',
              'support_files/test_data/analysis/*',
              'support_files/test_data/reference/*',
              'support_files/test_data/job/*.txt',
              'support_files/test_data/job/2_test_folder/*',
              'support_files/test_data/uploads/1/a_folder/*.txt',
              'support_files/test_data/uploads/1/.hidden_file.txt',
              'support_files/test_data/uploads/1/uploaded_file.txt',
              'support_files/test_data/templates/*',
              'support_files/work_data/*'],
          'qiita_pet': [
              'static/css/*.css', 'static/img/*.png',
              'static/img/*.gif', 'static/img/*.ico',
              'static/js/*.js', 'static/vendor/css/*.css',
              'static/vendor/css/images/*.png',
              'static/vendor/css/*.png',
              'static/vendor/fonts/glyphicons*.*',
              'static/vendor/images/*.png',
              'static/vendor/js/*.js',
              'results/admin/jobname/*.html',
              'templates/*.html',
              'support_files/config_portal.cfg',
              'support_files/doc/Makefile',
              'support_files/doc/README.md',
              'support_files/doc/source/conf.py',
              'support_files/doc/source/*.rst',
              'support_files/doc/source/tutorials/*.rst',
              'support_files/doc/source/admin/*.rst',
              'support_files/doc/source/dev/*.rst',
              'support_files/doc/source/qiita-philosophy/*.rst',
              'support_files/doc/source/admin/images/*.png',
              'support_files/doc/source/tutorials/images/*.png',
              'support_files/doc/source/qiita-philosophy/images/*.png',
              'support_files/doc/source/_static/*.png'
              ]},
      scripts=glob('scripts/*'),
      # making sure that numpy is installed before biom
      setup_requires=['numpy', 'cython'],
      install_requires=['psycopg2', 'click', 'bcrypt', 'pandas', 'future',
                        'biom-format', 'tornado<6.0', 'toredis', 'redis',
                        'scp', 'pyparsing', 'h5py',  'natsort', 'nose', 'pep8',
                        'networkx', 'humanize', 'wtforms<3.0.0', 'nltk',
                        'openpyxl', 'sphinx-bootstrap-theme', 'Sphinx<3.0',
                        'gitpython', 'redbiom', 'pyzmq', 'sphinx_rtd_theme',
                        'paramiko', 'seaborn',  'matplotlib', 'scipy', 'nose',
                        'flake8', 'six', 'qiita-files @ https://github.com/'
                        'qiita-spots/qiita-files/archive/master.zip', 'mock',
                        'python-jose', 'markdown2', 'iteration_utilities',
                        'supervisor @ https://github.com/Supervisor/'
                        'supervisor/archive/master.zip', 'joblib'],
      classifiers=classifiers
      )
<|endoftext|>


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

from setuptools import setup

try:
    from pypandoc import convert
    long_description = convert('README.md', 'rst')
except IOError:
    print("warning: README.md not found")
    long_description = ""
except (ImportError, OSError):
    print("warning: pypandoc module not found, could not convert Markdown to RST")
    long_description = ""

setup(
    name="pybossa-pbs",
    version="2.4.7",
    author="Scifabric LTD",
    author_email="info@scifabric.com",
    description="PYBOSSA command line client",
    long_description=long_description,
    license="AGPLv3",
    url="https://github.com/Scifabric/pbs",
    classifiers = ['Development Status :: 4 - Beta',
                   'Environment :: Console',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',],
    py_modules=['pbs', 'helpers', 'pbsexceptions'],
    install_requires=['Click>=7.0, <7.1', 'pybossa-client>=3.0.0, <3.1.0', 'requests', 'nose', 'mock', 'coverage',
                      'rednose', 'pypandoc', 'simplejson', 'jsonschema', 'polib', 'watchdog', 'openpyxl'],
    entry_points='''
        [console_scripts]
        pbs=pbs:cli
    '''
)
<commit_msg>chore(version): bump version.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup

try:
    from pypandoc import convert
    long_description = convert('README.md', 'rst')
except IOError:
    print("warning: README.md not found")
    long_description = ""
except (ImportError, OSError):
    print("warning: pypandoc module not found, could not convert Markdown to RST")
    long_description = ""

setup(
    name="pybossa-pbs",
    version="3.0.0",
    author="Scifabric LTD",
    author_email="info@scifabric.com",
    description="PYBOSSA command line client",
    long_description=long_description,
    license="AGPLv3",
    url="https://github.com/Scifabric/pbs",
    classifiers = ['Development Status :: 4 - Beta',
                   'Environment :: Console',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',],
    py_modules=['pbs', 'helpers', 'pbsexceptions'],
    install_requires=['Click>=7.0, <7.1', 'pybossa-client>=3.0.0, <3.1.0', 'requests', 'nose', 'mock', 'coverage',
                      'rednose', 'pypandoc', 'simplejson', 'jsonschema', 'polib', 'watchdog', 'openpyxl'],
    entry_points='''
        [console_scripts]
        pbs=pbs:cli
    '''
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

long_description = (open('README.rst').read() +
                    open('CHANGES.rst').read() +
                    open('TODO.rst').read())

setup(
    name='django-model-utils',
    version='1.2.0',
    description='Django model mixins and utilities',
    long_description=long_description,
    author='Carl Meyer',
    author_email='carl@dirtcircle.com',
    url='http://bitbucket.org/carljm/django-model-utils/',
    packages=find_packages(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
    zip_safe=False,
    tests_require=["Django>=1.1"],
    test_suite='runtests.runtests'
)
<commit_msg>Bump version for dev.<commit_after>from setuptools import setup, find_packages

long_description = (open('README.rst').read() +
                    open('CHANGES.rst').read() +
                    open('TODO.rst').read())

setup(
    name='django-model-utils',
    version='1.2.0.post1',
    description='Django model mixins and utilities',
    long_description=long_description,
    author='Carl Meyer',
    author_email='carl@dirtcircle.com',
    url='http://bitbucket.org/carljm/django-model-utils/',
    packages=find_packages(),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
    ],
    zip_safe=False,
    tests_require=["Django>=1.1"],
    test_suite='runtests.runtests'
)
<|endoftext|>


<commit_before>
__author__    = "Ole Christian Weidner"
__copyright__ = "Copyright 2012, The SAGA Project"
__license__   = "MIT"

''' SAGA Setup script.
'''

import os
import sys
import shutil
import fileinput

from distutils.core                 import setup
from distutils.command.install_data import install_data
from distutils.command.sdist        import sdist

version = "latest"

try:
    fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'saga/VERSION')
    version = open(fn).read().strip()
except IOError:
    from subprocess import Popen, PIPE, STDOUT
    import re

    VERSION_MATCH = re.compile(r'\d+\.\d+\.\d+(\w|-)*')

    try:
        p = Popen(['git', 'describe', '--tags', '--always'], stdout=PIPE, stderr=STDOUT)
        out = p.communicate()[0]

        if (not p.returncode) and out:
            v = VERSION_MATCH.search(out)
            if v:
                version = v.group()
    except OSError:
        pass

scripts = [] # ["bin/bliss-run"]

import sys
if sys.hexversion < 0x02050000:
    raise RuntimeError, "SAGA requires Python 2.5 or higher"

class our_install_data(install_data):

    def finalize_options(self):
        self.set_undefined_options('install',
            ('install_lib', 'install_dir'),
        )
        install_data.finalize_options(self)

    def run(self):
        install_data.run(self)
        # ensure there's a bliss/VERSION file
        fn = os.path.join(self.install_dir, 'saga', 'VERSION')
        open(fn, 'w').write(version)
        self.outfiles.append(fn)

class our_sdist(sdist):

    def make_release_tree(self, base_dir, files):
        sdist.make_release_tree(self, base_dir, files)
        # ensure there's a air/VERSION file
        fn = os.path.join(base_dir, 'saga', 'VERSION')
        open(fn, 'w').write(version)

setup_args = {
    'name': "saga",
    'version': version,
    'description': "A native Python implementation of the OGF SAGA standard (GFD.90).",
    'long_description': "SAGA-Python (a.k.a bliss) is a pragmatic and light-weight implementation of the OGF GFD.90 SAGA standard. SAGA-Python is written 100% in Python and focuses on usability and ease of deployment.",
    'author': "Ole Christian Weidner, et al.",
    'author_email': "ole.weidner@rutgers.edu",
    'maintainer': "Ole Christian Weidner",
    'maintainer_email': "ole.weidner@rutgers.edu",
    'url': "http://saga-project.github.com/saga-python/",
    'license': "MIT",
    'classifiers': [
        'Development Status :: 5 - Production/Stable',
        'Environment :: No Input/Output (Daemon)',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'License :: OSI Approved :: MIT License',
        'Topic :: System :: Distributed Computing',
        'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: AIX',
        'Operating System :: POSIX :: BSD',
        'Operating System :: POSIX :: BSD :: BSD/OS',
        'Operating System :: POSIX :: BSD :: FreeBSD',
        'Operating System :: POSIX :: BSD :: NetBSD',
        'Operating System :: POSIX :: BSD :: OpenBSD',
        'Operating System :: POSIX :: GNU Hurd',
        'Operating System :: POSIX :: HP-UX',
        'Operating System :: POSIX :: IRIX',
        'Operating System :: POSIX :: Linux',
        'Operating System :: POSIX :: Other',
        'Operating System :: POSIX :: SCO',
        'Operating System :: POSIX :: SunOS/Solaris',
        'Operating System :: Unix'
        ],

    'packages': [
        "saga",
        "saga.job",
        "saga.filesystem",
        "saga.replica",
        "saga.advert",
        "saga.adaptors",
        "saga.adaptors.cpi",
        "saga.adaptors.cpi.job",
        "saga.adaptors.cpi.filesystem",
        "saga.adaptors.cpi.replica",
        "saga.adaptors.cpi.advert",
        "saga.adaptors.context",
        "saga.adaptors.local",
        "saga.adaptors.redis",
        "saga.adaptors.ssh",
        "saga.adaptors.irods",
        "saga.engine",
        "saga.utils",
        "saga.utils.contrib",
        "saga.utils.cmdlinewrapper",
        "saga.utils.logger",
        "saga.utils.config",
        "saga.utils.job"
    ],
    'scripts': scripts,
    # mention data_files, even if empty, so install_data is called and
    # VERSION gets copied
    'data_files': [("saga", [])],
    'cmdclass': {
        'install_data': our_install_data,
        'sdist': our_sdist
        }
    }

# set zip_safe to false to force Windows installs to always unpack eggs
# into directories, which seems to work better --
# see http://buildbot.net/trac/ticket/907
if sys.platform == "win32":
    setup_args['zip_safe'] = False

try:
    # If setuptools is installed, then we'll add setuptools-specific arguments
    # to the setup args.
    import setuptools #@UnusedImport
except ImportError:
    pass
else:
    setup_args['install_requires'] = [
        'colorama',
        'pexpect'
    ]

    if os.getenv('SAGA_NO_INSTALL_REQS'):
        setup_args['install_requires'] = None

##
## PROCESS SETUP OPTIONS FOR DIFFERENT BACKENDS
##

# process AIR_AMQP_HOSTNAME and AIR_AMQP_PORT
#air_amqp_hostname = os.getenv('AIR_AMQP_HOST')
#air_amqp_port = os.getenv('AIR_AMQP_PORT')
#
#if not air_amqp_hostname:
#   air_amqp_hostname = "localhost"
#
#print "setting default amqp hostname to '%s' in air/scripts/config.py" % air_amqp_hostname
#
#if not air_amqp_port:
#   air_amqp_port = "5672"
#
#print "setting default amqp port to '%s' in air/scripts/config.py" % air_amqp_port
#
#
#shutil.copyfile("./air/scripts/config.py.in", "./air/scripts/config.py")

#s = open("./air/scripts/config.py.in").read()
#s = s.replace('###REPLACE_WITH_AMQP_HOSTNAME###', str(air_amqp_hostname))
#s = s.replace('###REPLACE_WITH_AMQP_PORT###', str(air_amqp_port))
#f = open("./air/scripts/config.py", 'w')
#f.write(s)
#f.close()

setup(**setup_args)

# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

<commit_msg>cleaned up installer<commit_after># vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4

__author__    = "Ole Christian Weidner"
__copyright__ = "Copyright 2012-2013, The SAGA Project"
__license__   = "MIT"

''' Setup script.

    This script is used by pip and easy_install.
'''

import os
import sys

from distutils.core import setup
from distutils.command.install_data import install_data
from distutils.command.sdist import sdist

# figure out the current version. saga-python's
# version is defined in saga/VERSION
version = "latest"

try:
    cwd = os.path.dirname(os.path.abspath(__file__))
    fn = os.path.join(cwd, 'saga/VERSION')
    version = open(fn).read().strip()
except IOError:
    from subprocess import Popen, PIPE, STDOUT
    import re

    VERSION_MATCH = re.compile(r'\d+\.\d+\.\d+(\w|-)*')

    try:
        p = Popen(['git', 'describe', '--tags', '--always'],
            stdout=PIPE, stderr=STDOUT)
        out = p.communicate()[0]

        if (not p.returncode) and out:
            v = VERSION_MATCH.search(out)
            if v:
                version = v.group()
    except OSError:
        pass

scripts = []  # ["bin/bliss-run"]

# check python version. we need > 2.5
if sys.hexversion < 0x02050000:
    raise RuntimeError("SAGA requires Python 2.5 or higher")

class our_install_data(install_data):

    def finalize_options(self):
        self.set_undefined_options('install',
            ('install_lib', 'install_dir'),
        )
        install_data.finalize_options(self)

    def run(self):
        install_data.run(self)
        # ensure there's a bliss/VERSION file
        fn = os.path.join(self.install_dir, 'saga', 'VERSION')
        open(fn, 'w').write(version)
        self.outfiles.append(fn)

class our_sdist(sdist):

    def make_release_tree(self, base_dir, files):
        sdist.make_release_tree(self, base_dir, files)
        # ensure there's a air/VERSION file
        fn = os.path.join(base_dir, 'saga', 'VERSION')
        open(fn, 'w').write(version)

setup_args = {
    'name': "saga",
    'version': version,
    'description': "A native Python implementation of the OGF SAGA standard (GFD.90).",
    'long_description': "SAGA-Python (a.k.a bliss) is a pragmatic and light-weight implementation of the OGF GFD.90 SAGA standard. SAGA-Python is written 100% in Python and focuses on usability and ease of deployment.",
    'author': "Ole Christian Weidner, et al.",
    'author_email': "ole.weidner@rutgers.edu",
    'maintainer': "Ole Christian Weidner",
    'maintainer_email': "ole.weidner@rutgers.edu",
    'url': "http://saga-project.github.com/saga-python/",
    'license': "MIT",
    'classifiers': [
        'Development Status :: 5 - Production/Stable',
        'Environment :: No Input/Output (Daemon)',
        'Intended Audience :: Developers',
        'Programming Language :: Python',
        'License :: OSI Approved :: MIT License',
        'Topic :: System :: Distributed Computing',
        'Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator',
        'Operating System :: MacOS :: MacOS X',
        'Operating System :: POSIX',
        'Operating System :: POSIX :: AIX',
        'Operating System :: POSIX :: BSD',
        'Operating System :: POSIX :: BSD :: BSD/OS',
        'Operating System :: POSIX :: BSD :: FreeBSD',
        'Operating System :: POSIX :: BSD :: NetBSD',
        'Operating System :: POSIX :: BSD :: OpenBSD',
        'Operating System :: POSIX :: GNU Hurd',
        'Operating System :: POSIX :: HP-UX',
        'Operating System :: POSIX :: IRIX',
        'Operating System :: POSIX :: Linux',
        'Operating System :: POSIX :: Other',
        'Operating System :: POSIX :: SCO',
        'Operating System :: POSIX :: SunOS/Solaris',
        'Operating System :: Unix'
        ],
    'packages': [
        "saga",
        "saga.job",
        "saga.filesystem",
        "saga.replica",
        "saga.advert",
        "saga.adaptors",
        "saga.adaptors.cpi",
        "saga.adaptors.cpi.job",
        "saga.adaptors.cpi.filesystem",
        "saga.adaptors.cpi.replica",
        "saga.adaptors.cpi.advert",
        "saga.adaptors.context",
        "saga.adaptors.local",
        "saga.adaptors.redis",
        "saga.adaptors.ssh",
        "saga.adaptors.irods",
        "saga.engine",
        "saga.utils",
        "saga.utils.contrib",
        "saga.utils.cmdlinewrapper",
        "saga.utils.logger",
        "saga.utils.config",
        "saga.utils.job"
    ],
    'scripts': scripts,
    # mention data_files, even if empty, so install_data is called and
    # VERSION gets copied
    'data_files': [("saga", [])],
    'cmdclass': {
        'install_data': our_install_data,
        'sdist': our_sdist
        }
    }

# set zip_safe to false to force Windows installs to always unpack eggs
# into directories, which seems to work better --
# see http://buildbot.net/trac/ticket/907
if sys.platform == "win32":
    setup_args['zip_safe'] = False

else:
    setup_args['install_requires'] = [
        'colorama',
        'pexpect'
    ]

setup(**setup_args)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

with open('requirements.txt', 'r') as f:
    requirements = f.readlines()

setup(
    name='resultsdb-updater',
    version='8.1.0',
    description=('A micro-service that listens for messages on the message '
                 'bus and updates ResultsDB'),
    license='GPLv2+',
    author='Matt Prahl',
    author_email='mprahl@redhat.com',
    url='https://github.com/release-engineering/resultsdb-updater',
    install_requires=requirements,
    packages=find_packages(),
    entry_points="""
    [moksha.consumer]
    ciconsumer = resultsdbupdater.consumer:CIConsumer
    """,
)
<commit_msg>Release v8.2.0<commit_after>from setuptools import setup, find_packages

with open('requirements.txt', 'r') as f:
    requirements = f.readlines()

setup(
    name='resultsdb-updater',
    version='8.2.0',
    description=('A micro-service that listens for messages on the message '
                 'bus and updates ResultsDB'),
    license='GPLv2+',
    author='Matt Prahl',
    author_email='mprahl@redhat.com',
    url='https://github.com/release-engineering/resultsdb-updater',
    install_requires=requirements,
    packages=find_packages(),
    entry_points="""
    [moksha.consumer]
    ciconsumer = resultsdbupdater.consumer:CIConsumer
    """,
)
<|endoftext|>


<commit_before>import sys
from setuptools import setup

setup(name='smappdragon',
	packages=['smappdragon', 'smappdragon.collection', 'smappdragon.tools'],
	version='0.0.14',
	description='smappdragon is a set of tools for working with twitter data',
	author='yvan',
	author_email='yns207@nyu.edu',
	url='https://github.com/SMAPPNYU/smappdragon',
	keywords='twitter parse smappdragon',
	license='MIT',
	install_requires=[
	  'pymongo>=3.2.1',
      'unicodecsv>=0.14.1'
	]
)<commit_msg>vbump<commit_after>import sys
from setuptools import setup

setup(name='smappdragon',
	packages=['smappdragon', 'smappdragon.collection', 'smappdragon.tools'],
	version='0.0.15',
	description='smappdragon is a set of tools for working with twitter data',
	author='yvan',
	author_email='yns207@nyu.edu',
	url='https://github.com/SMAPPNYU/smappdragon',
	keywords='twitter parse smappdragon',
	license='MIT',
	install_requires=[
	  'pymongo>=3.2.1',
      'unicodecsv>=0.14.1'
	]
)<|endoftext|>


<commit_before>"""
WKB-Raster
----------

Read WKB rasters to Numpy arrays.

Links
`````

* `Docs <https://github.com/nathancahill/wkb-raster>`_
* `Raster WKB RFC
  <http://trac.osgeo.org/postgis/browser/trunk/raster/doc/RFC2-WellKnownBinaryFormat>`_
* `GitHub <https://github.com/nathancahill/wkb-raster>`_

"""
from setuptools import setup

setup(
    name='WKB-Raster',
    version='0.4',
    url='https://github.com/nathancahill/wkb-raster',
    license='MIT',
    author='Nathan Cahill',
    author_email='nathan@nathancahill.com',
    description='Read WKB rasters to Numpy arrays.',
    long_description=__doc__,
    py_modules=['wkb_raster'],
    install_requires=['numpy']
)
<commit_msg>version 0.5<commit_after>"""
WKB-Raster
----------

Read WKB rasters to Numpy arrays.

Links
`````

* `Docs <https://github.com/nathancahill/wkb-raster>`_
* `Raster WKB RFC
  <http://trac.osgeo.org/postgis/browser/trunk/raster/doc/RFC2-WellKnownBinaryFormat>`_
* `GitHub <https://github.com/nathancahill/wkb-raster>`_

"""
from setuptools import setup

setup(
    name='WKB-Raster',
    version='0.5',
    url='https://github.com/nathancahill/wkb-raster',
    license='MIT',
    author='Nathan Cahill',
    author_email='nathan@nathancahill.com',
    description='Read WKB rasters to Numpy arrays.',
    long_description=__doc__,
    py_modules=['wkb_raster'],
    install_requires=['numpy']
)
<|endoftext|>


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

from distutils.core import setup
setup(
	name = 'xkcdpassword',
	packages = ['xkcdpassword'],
	version = '0.1',
	description = 'A generator of xkcd-style passwords',
	author = 'Doug Walter',
	author_email = 'dougwritescode@gmail.com',
	url = 'https://github.com/dougwritescode/xkcdpassword',
	download_url = 'https://github.com/dougwritescode/xkcdpassword/tarball/0.1',
	keywords = 'python xkcd utilities security',
	classifiers = ['Development Status :: 3 - Alpha',
		'Environment :: Console',
		'License :: OSI Approved :: MIT License',
		'Natural Language :: English',
		'Programming Language :: Python :: 2.7',
		'Topic :: Security',
		'Topic :: Utilities',],
	scripts=['xkcdpassword/xkcdpassword.py'],
)
<commit_msg>rolled to 0.2<commit_after>#!/usr/bin/env python

from distutils.core import setup
setup(
	name = 'xkcdpassword',
	packages = ['xkcdpassword'],
	version = '0.2',
	description = 'A generator of xkcd-style passwords',
	author = 'Doug Walter',
	author_email = 'dougwritescode@gmail.com',
	url = 'https://github.com/dougwritescode/xkcdpassword',
	download_url = 'https://github.com/dougwritescode/xkcdpassword/tarball/0.2',
	keywords = 'python xkcd utilities security',
	classifiers = ['Development Status :: 3 - Alpha',
		'Environment :: Console',
		'License :: OSI Approved :: MIT License',
		'Natural Language :: English',
		'Programming Language :: Python :: 2.7',
		'Topic :: Security',
		'Topic :: Utilities',],
	scripts=['xkcdpassword/xkcdpassword.py'],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
import vet_cond

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

setup(
    name='VetCond',
    version=vet_cond.__version__,
    author='Matthew Einhorn',
    author_email='moiein2000@gmail.com',
    url='http://matham.github.io/vet_cond/',
    license='MIT',
    description='Vet school conditioning experiment.',
    long_description=long_description,
    classifiers=['License :: OSI Approved :: MIT License',
                 'Topic :: Scientific/Engineering',
                 'Topic :: System :: Hardware',
                 'Programming Language :: Python :: 2.7',
                 'Programming Language :: Python :: 3.3',
                 'Programming Language :: Python :: 3.4',
                 'Programming Language :: Python :: 3.5',
                 'Operating System :: Microsoft :: Windows',
                 'Intended Audience :: Developers'],
    packages=find_packages(),
    install_requires=['moa', 'pybarst', 'ffpyplayer', 'cplcom'],
    setup_requires=['moa', 'pybarst', 'ffpyplayer', 'cplcom'],
    package_data={'vet_cond': ['data/*', '*.kv']},
    entry_points={'console_scripts': ['vet_cond=vet_cond.main:run_app']},
    )
<commit_msg>Moa is now PyMoa.<commit_after>from setuptools import setup, find_packages
import vet_cond

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

setup(
    name='VetCond',
    version=vet_cond.__version__,
    author='Matthew Einhorn',
    author_email='moiein2000@gmail.com',
    url='http://matham.github.io/vet_cond/',
    license='MIT',
    description='Vet school conditioning experiment.',
    long_description=long_description,
    classifiers=['License :: OSI Approved :: MIT License',
                 'Topic :: Scientific/Engineering',
                 'Topic :: System :: Hardware',
                 'Programming Language :: Python :: 2.7',
                 'Programming Language :: Python :: 3.3',
                 'Programming Language :: Python :: 3.4',
                 'Programming Language :: Python :: 3.5',
                 'Operating System :: Microsoft :: Windows',
                 'Intended Audience :: Developers'],
    packages=find_packages(),
    install_requires=['pymoa', 'pybarst', 'ffpyplayer', 'cplcom'],
    package_data={'vet_cond': ['data/*', '*.kv']},
    entry_points={'console_scripts': ['vet_cond=vet_cond.main:run_app']},
)
<|endoftext|>


<commit_before>import os
import setuptools

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

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

VERSION = open(os.path.join(script_dir, 'archivebox', 'VERSION'), 'r').read().strip()
try:
    GIT_HEAD = open(os.path.join(script_dir, '.git', 'HEAD'), 'r').read().strip().split(': ')[1]
    GIT_SHA = open(os.path.join(script_dir, '.git', GIT_HEAD), 'r').read().strip()[:9]
    PYPI_VERSION = "{}+{}".format(VERSION, GIT_SHA)
except:
    PYPI_VERSION = VERSION

with open(os.path.join(script_dir, 'archivebox', 'VERSION'), 'w+') as f:
    f.write(PYPI_VERSION)

setuptools.setup(
    name="archivebox",
    version=PYPI_VERSION,
    author="Nick Sweeting",
    author_email="git@nicksweeting.com",
    description="The self-hosted internet archive.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/pirate/ArchiveBox",
    project_urls={
        'Documentation': 'https://github.com/pirate/ArchiveBox/Wiki',
        'Community': 'https://github.com/pirate/ArchiveBox/wiki/Web-Archiving-Community',
        'Source': 'https://github.com/pirate/ArchiveBox',
        'Bug Tracker': 'https://github.com/pirate/ArchiveBox/issues',
        'Roadmap': 'https://github.com/pirate/ArchiveBox/wiki/Roadmap',
        'Changelog': 'https://github.com/pirate/ArchiveBox/wiki/Changelog',
        'Patreon': 'https://github.com/pirate/ArchiveBox/wiki/Donations',
    },
    packages=setuptools.find_packages(),
    python_requires='>=3.6',
    install_requires=[
        "dataclasses==0.6",
        "mypy-extensions==0.4.1",
        "base32-crockford==0.3.0",
        "django==2.2",
        "django-extensions==2.1.6",
        "python-crontab==2.3.6",
        "youtube-dl",
        "ipython",

        # Some/all of these will likely be added in the future:
        # wpull
        # pywb
        # pyppeteer
        # archivenow
        # requests

    ],
    entry_points={
        'console_scripts': [
            'archivebox = archivebox.__main__:main',
        ],
    },
    package_data={
        'archivebox': [
            # Manifest.ini must correspond 1:1 with this list
            'VERSION',
            'themes/*',
            'themes/static/*',
            'themes/admin/*'
            'themes/default/*'
            'themes/default/static/*'
            'themes/legacy/*',
            'themes/legacy/static/*',
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",

        "Topic :: Utilities",
        "Topic :: System :: Archiving",
        "Topic :: System :: Archiving :: Backup",
        "Topic :: System :: Recovery Tools",
        "Topic :: Sociology :: History",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
        "Topic :: Software Development :: Libraries :: Python Modules",

        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: End Users/Desktop",
        "Intended Audience :: Information Technology",
        "Intended Audience :: Legal Industry",
        "Intended Audience :: System Administrators",

        "Environment :: Console",
        "Environment :: Web Environment",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        'Framework :: Django',
        "Typing :: Typed",

        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
    ],
)
<commit_msg>just use simple version instead of git hash<commit_after>import os
import setuptools

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

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

VERSION = open(os.path.join(script_dir, 'archivebox', 'VERSION'), 'r').read().strip()

setuptools.setup(
    name="archivebox",
    version=VERSION,
    author="Nick Sweeting",
    author_email="git@nicksweeting.com",
    description="The self-hosted internet archive.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/pirate/ArchiveBox",
    project_urls={
        'Documentation': 'https://github.com/pirate/ArchiveBox/Wiki',
        'Community': 'https://github.com/pirate/ArchiveBox/wiki/Web-Archiving-Community',
        'Source': 'https://github.com/pirate/ArchiveBox',
        'Bug Tracker': 'https://github.com/pirate/ArchiveBox/issues',
        'Roadmap': 'https://github.com/pirate/ArchiveBox/wiki/Roadmap',
        'Changelog': 'https://github.com/pirate/ArchiveBox/wiki/Changelog',
        'Patreon': 'https://github.com/pirate/ArchiveBox/wiki/Donations',
    },
    packages=setuptools.find_packages(),
    python_requires='>=3.6',
    install_requires=[
        "dataclasses==0.6",
        "mypy-extensions==0.4.1",
        "base32-crockford==0.3.0",
        "django==2.2",
        "django-extensions==2.1.6",
        "python-crontab==2.3.6",
        "youtube-dl",
        "ipython",

        # Some/all of these will likely be added in the future:
        # wpull
        # pywb
        # pyppeteer
        # archivenow
        # requests

    ],
    entry_points={
        'console_scripts': [
            'archivebox = archivebox.__main__:main',
        ],
    },
    package_data={
        'archivebox': [
            # Manifest.ini must correspond 1:1 with this list
            'VERSION',
            'themes/*',
            'themes/static/*',
            'themes/admin/*'
            'themes/default/*'
            'themes/default/static/*'
            'themes/legacy/*',
            'themes/legacy/static/*',
        ],
    },
    classifiers=[
        "Development Status :: 4 - Beta",

        "Topic :: Utilities",
        "Topic :: System :: Archiving",
        "Topic :: System :: Archiving :: Backup",
        "Topic :: System :: Recovery Tools",
        "Topic :: Sociology :: History",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
        "Topic :: Software Development :: Libraries :: Python Modules",

        "Intended Audience :: Developers",
        "Intended Audience :: Education",
        "Intended Audience :: End Users/Desktop",
        "Intended Audience :: Information Technology",
        "Intended Audience :: Legal Industry",
        "Intended Audience :: System Administrators",

        "Environment :: Console",
        "Environment :: Web Environment",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        'Framework :: Django',
        "Typing :: Typed",

        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
    ],
)
<|endoftext|>


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

requirement_list = [r.strip() for r in open('requirements.txt', 'r').readlines() if r]

setup(
        name='iwant',
        version='1.0.0',
        install_requires= requirement_list,
        author='Nirvik Ghosh',
        author_email='nirvik1993@gmail.com',
        packages = find_packages(),
        include_package_data = True,
        data_files = [('/home/'+os.getenv('SUDO_USER'), ['iwant/iwant.conf'])],
        entry_points = {
            'console_scripts':[
                'iwanto-start=iwant.main:main',
                'iwanto=iwant.ui:main'
                ],
        },
        url="https://github.com/nirvik/iWant",
        description="CLI based decentralized peer to peer file sharing"
)

<commit_msg>editing setup to use renamed .iwant.conf<commit_after>import os
try:
    from setuptools import setup, find_packages
except ImportError:
    from distutils.core import setup

requirement_list = [r.strip() for r in open('requirements.txt', 'r').readlines() if r]

setup(
        name='iwant',
        version='1.0.0',
        install_requires= requirement_list,
        author='Nirvik Ghosh',
        author_email='nirvik1993@gmail.com',
        packages = find_packages(),
        include_package_data = True,
        data_files = [('/home/'+os.getenv('SUDO_USER'), ['iwant/.iwant.conf'])],
        entry_points = {
            'console_scripts':[
                'iwanto-start=iwant.main:main',
                'iwanto=iwant.ui:main'
                ],
        },
        url="https://github.com/nirvik/iWant",
        description="CLI based decentralized peer to peer file sharing"
)

<|endoftext|>


<commit_before>import sys
from setuptools import setup, find_packages

def read(fname):
    """ Return file content. """
    with open(fname) as f:
        content = f.read()

    return content

description = 'PyVegan is a simple Python CLI to browse vegan recipes'
try:
    long_description = read('README.rst')
except IOError:
    long_description = description

author_name = 'Patrick Mazulo'
author_email = 'pmazulo@gmail.com'
dependencies = [
    'curses-menu==0.5.0',
    'requests==2.18.1',
    'tqdm==4.14.0',
]

if sys.version_info.major == 2:
    dependencies.append('futures==3.0.5')

setup(
    name='PyVegan',
    version='0.1',
    description=description,
    long_description=long_description,
    url='https://github.com/mazulo/pyvegan',
    author=author_name,
    author_email=author_email,
    maintainer=author_name,
    maintainer_email=author_email,
    license='MIT',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: System :: Shells',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    keywords='pyvegan cli shell vegan',
    download_url='https://github.com/mazulo/pyvegan/archive/master.zip',
    packages=find_packages(exclude=['tests*']),
    install_requires=dependencies,
    entry_points={'console_scripts': ['pyvegan = pyvegan.pyvegan:main']},
    platforms='windows linux',
)

<commit_msg>Update setup.py<commit_after>import sys
from setuptools import setup, find_packages

def read(fname):
    """ Return file content. """
    with open(fname) as f:
        content = f.read()

    return content

description = 'PyVegan is a simple Python CLI to browse vegan recipes'
try:
    long_description = read('README.rst')
except IOError:
    long_description = description

author_name = 'Patrick Mazulo'
author_email = 'pmazulo@gmail.com'
dependencies = [
    'curses-menu==0.5.0',
    'requests==2.18.1',
    'tqdm==4.14.0',
]

if sys.version_info.major == 2:
    dependencies.append('futures==3.0.5')

setup(
    name='PyVegan',
    version='0.1',
    description=description,
    long_description=long_description,
    url='https://github.com/mazulo/pyvegan',
    author=author_name,
    author_email=author_email,
    maintainer=author_name,
    maintainer_email=author_email,
    license='MIT',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: System :: Shells',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
    ],
    keywords='pyvegan cli shell vegan',
    download_url='https://github.com/mazulo/pyvegan/archive/master.zip',
    packages=find_packages(exclude=['tests*']),
    install_requires=dependencies,
    entry_points={'console_scripts': ['pyvegan = pyvegan:main']},
    platforms='windows linux',
)
<|endoftext|>


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

setup(
    name='pillowfluff',
    version='0.0.4',
    description='Map over CouchDB changes feed built to run on Pillowtop',
    author='Dimagi',
    author_email='information@dimagi.com',
    url='http://www.dimagi.com/',
    packages=['fluff','fluff.fluff_filter'],
    include_package_data=True,
    test_suite='tests',
    test_loader='unittest2:TestLoader',
    install_requires=[
        'jsonobject-couchdbkit>=0.6.5.2',
        'pillowtop>=0.1.7',
        'dimagi-utils>=1.2.1',
        'pytz',
        'SQLAlchemy==0.8.2',
        'alembic==0.6.0'
    ],
    tests_require=[
        'django==1.7.10',
        'unittest2',
        'fakecouch>=0.0.6',
        'psycopg2>=2.4.1',
    ]
)
<commit_msg>pin dimagi utils<commit_after>#!/usr/bin/env python
from setuptools import setup

setup(
    name='pillowfluff',
    version='0.0.4',
    description='Map over CouchDB changes feed built to run on Pillowtop',
    author='Dimagi',
    author_email='information@dimagi.com',
    url='http://www.dimagi.com/',
    packages=['fluff','fluff.fluff_filter'],
    include_package_data=True,
    test_suite='tests',
    test_loader='unittest2:TestLoader',
    install_requires=[
        'jsonobject-couchdbkit>=0.6.5.2',
        'pillowtop>=0.1.7',
        'dimagi-utils==1.2.2',
        'pytz',
        'SQLAlchemy==0.8.2',
        'alembic==0.6.0'
    ],
    tests_require=[
        'django==1.7.10',
        'unittest2',
        'fakecouch>=0.0.6',
        'psycopg2>=2.4.1',
    ]
)
<|endoftext|>


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

from setuptools import setup
import invewrapper

long_desc = '''Python Env Wrapper (also called Invewrapper) is a set of tools to manage multiple virtual environments. The tools can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in a single (configurable) location.

Invewrapper makes it easier to work on more than one project at a time without introducing conflicts in their dependencies. It is written in pure python and leverages inve: the idea/alternative implementation of a better activate script.

The advantage is that invewrapper doesn't hook into a shell, but is only a set of commands that is thus completely shell-agnostic:

It works on bash, zsh, fish, powershell, etc.

For the documentation, you might want to read here:
https://github.com/berdario/invewrapper#usage'''

setup(
    name='pew',
    version='0.1.7',
    description='tools to manage multiple virtualenvs written in pure python, '
    'a virtualenvwrapper rewrite',
    long_description=long_desc,
    author='Dario Bertini',
    author_email='berdario+pypi@gmail.com',
    url='https://github.com/berdario/invewrapper',
    license='MIT License',
    packages=['invewrapper'],
    install_requires=['virtualenv', 'virtualenv-clone'],
    dependency_links=
        ['https://github.com/berdario/virtualenv-clone/tarball/c302ca84e524cb22f88c834cccb23dd410cced97#egg=virtualenv-clone'],
    package_data={'invewrapper': ['inve', 'complete_scripts/complete*']},
    entry_points={
        'console_scripts':
        ["pew-{0} = invewrapper.invewrapper:{0}_cmd".format(cmd[:-4])
         for cmd in dir(invewrapper.invewrapper) if cmd.endswith("_cmd")] +
        ['pew = invewrapper.invewrapper:pew']},
    classifiers=[
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Intended Audience :: Developers',
        'Environment :: Console']
)
<commit_msg>0.1.8 bump<commit_after>#! /usr/bin/env python

from setuptools import setup
import invewrapper

long_desc = '''Python Env Wrapper (also called Invewrapper) is a set of tools to manage multiple virtual environments. The tools can create, delete and copy your environments, using a single command to switch to them wherever you are, while keeping them in a single (configurable) location.

Invewrapper makes it easier to work on more than one project at a time without introducing conflicts in their dependencies. It is written in pure python and leverages inve: the idea/alternative implementation of a better activate script.

The advantage is that invewrapper doesn't hook into a shell, but is only a set of commands that is thus completely shell-agnostic:

It works on bash, zsh, fish, powershell, etc.

For the documentation, you might want to read here:
https://github.com/berdario/invewrapper#usage'''

setup(
    name='pew',
    version='0.1.8',
    description='tools to manage multiple virtualenvs written in pure python, '
    'a virtualenvwrapper rewrite',
    long_description=long_desc,
    author='Dario Bertini',
    author_email='berdario+pypi@gmail.com',
    url='https://github.com/berdario/invewrapper',
    license='MIT License',
    packages=['invewrapper'],
    install_requires=['virtualenv', 'virtualenv-clone'],
    dependency_links=
        ['https://github.com/berdario/virtualenv-clone/tarball/c302ca84e524cb22f88c834cccb23dd410cced97#egg=virtualenv-clone'],
    package_data={'invewrapper': ['inve', 'complete_scripts/complete*']},
    entry_points={
        'console_scripts':
        ["pew-{0} = invewrapper.invewrapper:{0}_cmd".format(cmd[:-4])
         for cmd in dir(invewrapper.invewrapper) if cmd.endswith("_cmd")] +
        ['pew = invewrapper.invewrapper:pew']},
    classifiers=[
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Intended Audience :: Developers',
        'Environment :: Console']
)
<|endoftext|>


<commit_before>"""setup.py file."""

import uuid

from setuptools import setup, find_packages
from pip.req import parse_requirements

__author__ = 'David Barroso <dbarrosop@dravetech.com>'

install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in install_reqs]

setup(
    name="napalm-eos",
    version="0.5.3",
    packages=find_packages(),
    author="David Barroso, Mircea Ulinic",
    author_email="dbarrosop@dravetech.com, mircea@cloudflare.com",
    description="Network Automation and Programmability Abstraction Layer with Multivendor support",
    classifiers=[
        'Topic :: Utilities',
        'Programming Language :: Python',
        'Operating System :: POSIX :: Linux',
        'Operating System :: MacOS',
    ],
    url="https://github.com/napalm-automation/napalm-eos",
    include_package_data=True,
    install_requires=reqs,
)
<commit_msg>Version 0.5.4<commit_after>"""setup.py file."""

import uuid

from setuptools import setup, find_packages
from pip.req import parse_requirements

__author__ = 'David Barroso <dbarrosop@dravetech.com>'

install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in install_reqs]

setup(
    name="napalm-eos",
    version="0.5.4",
    packages=find_packages(),
    author="David Barroso, Mircea Ulinic",
    author_email="dbarrosop@dravetech.com, mircea@cloudflare.com",
    description="Network Automation and Programmability Abstraction Layer with Multivendor support",
    classifiers=[
        'Topic :: Utilities',
        'Programming Language :: Python',
        'Operating System :: POSIX :: Linux',
        'Operating System :: MacOS',
    ],
    url="https://github.com/napalm-automation/napalm-eos",
    include_package_data=True,
    install_requires=reqs,
)
<|endoftext|>


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

import sys
from setuptools import setup

PROJECT = 'pypinksign'
VERSION = '0.2.3'
URL = 'http://github.com/bandoche/PyPinkSign'
AUTHOR = 'Sangjun Jung'
AUTHOR_EMAIL = 'spamcoffee+pypinksign@gmail.com'
DESC = "Basic NPKI module."
LONG_DESC = "See https://github.com/bandoche/PyPinkSign"  # read_file('README.rst')

EXTRAS = {}

if sys.version_info > (3,):
    EXTRAS['use_2to3'] = True

setup(
    name=PROJECT,
    version=VERSION,
    description=DESC,
    long_description=LONG_DESC,
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    url=URL,
    license='MIT',
    packages=['pypinksign'],
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        'pycrypto==2.6.1',
        'pkcs1==0.9.5',
        'pyasn1==0.1.7',
        'cryptography==1.5',
        'bitarray==0.8.1',
        'pyOpenSSL==16.2.0',
        'future',
        # 'PBKDF==1.0'
    ],
    keywords='npki 공인인증서 korean pki certificate',
    platforms='OS Independent',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7'
    ],
    **EXTRAS
)
<commit_msg>typo for version<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from setuptools import setup

PROJECT = 'pypinksign'
VERSION = '0.3'
URL = 'http://github.com/bandoche/PyPinkSign'
AUTHOR = 'Sangjun Jung'
AUTHOR_EMAIL = 'spamcoffee+pypinksign@gmail.com'
DESC = "Basic NPKI module."
LONG_DESC = "See https://github.com/bandoche/PyPinkSign"  # read_file('README.rst')

EXTRAS = {}

if sys.version_info > (3,):
    EXTRAS['use_2to3'] = True

setup(
    name=PROJECT,
    version=VERSION,
    description=DESC,
    long_description=LONG_DESC,
    author=AUTHOR,
    author_email=AUTHOR_EMAIL,
    url=URL,
    license='MIT',
    packages=['pypinksign'],
    include_package_data=True,
    zip_safe=False,
    install_requires=[
        'pycrypto==2.6.1',
        'pkcs1==0.9.5',
        'pyasn1==0.1.7',
        'cryptography==1.5',
        'bitarray==0.8.1',
        'pyOpenSSL==16.2.0',
        'future',
        # 'PBKDF==1.0'
    ],
    keywords='npki 공인인증서 korean pki certificate',
    platforms='OS Independent',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7'
    ],
    **EXTRAS
)
<|endoftext|>


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

from setuptools import setup

def get_version():
    with open('flake8_indexed_format.py') as f:
        for line in f:
            if line.startswith('__version__'):
                return eval(line.split('=')[-1])

def get_long_description():
    with codecs.open('README.rst', 'r', 'utf-8') as f:
        return f.read()

setup(
    name='flake8-indexed-format',
    version=get_version(),
    description='unindexed format parameter checker, plugin for flake8',
    long_description=get_long_description(),
    keywords='flake8 format',
    install_requires=['flake8'],
    maintainer='Fabian Neundorf',
    maintainer_email='CommodoreFabianus@gmx.de',
    url='https://github.com/xZise/flake8-indexed-format',
    license='MIT License',
    py_modules=['flake8_indexed_format'],
    zip_safe=False,
    entry_points={
        'flake8.extension': [
            'flake8-indexed-format = flake8_indexed_format:UnindexedParameterChecker',
        ],
    },
    test_suite='test_flake8_indexed_format',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: Quality Assurance',
    ],
)
<commit_msg>[FIX] Renamed script and repository<commit_after># -*- coding: utf-8 -*-
import codecs

from setuptools import setup

def get_version():
    with open('flake8_indexed_format.py') as f:
        for line in f:
            if line.startswith('__version__'):
                return eval(line.split('=')[-1])

def get_long_description():
    with codecs.open('README.rst', 'r', 'utf-8') as f:
        return f.read()

setup(
    name='flake8-string-format',
    version=get_version(),
    description='unindexed format parameter checker, plugin for flake8',
    long_description=get_long_description(),
    keywords='flake8 format',
    install_requires=['flake8'],
    maintainer='Fabian Neundorf',
    maintainer_email='CommodoreFabianus@gmx.de',
    url='https://github.com/xZise/flake8-string-format',
    license='MIT License',
    py_modules=['flake8_indexed_format'],
    zip_safe=False,
    entry_points={
        'flake8.extension': [
            'flake8-string-format = flake8_indexed_format:UnindexedParameterChecker',
        ],
    },
    test_suite='test_flake8_indexed_format',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Software Development :: Quality Assurance',
    ],
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name="django-service-rating-store",
    version="0.0.1a",
    url='https://github.com/praekelt/django-service-rating-store',
    license='BSD',
    description=(
        "Django app that allows storage and visualisation of Service Rating data posted via REST API"),
    long_description=open('README.rst', 'r').read(),
    author='Praekelt Foundation',
    author_email='devops@praekeltfoundation.org',
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        'Django',
        'django-tastypie',
        'South',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Networking',
    ],
)
<commit_msg>Release version 0.1.0.<commit_after>from setuptools import setup, find_packages

setup(
    name="django-service-rating-store",
    version="0.1.0",
    url='https://github.com/praekelt/django-service-rating-store',
    license='BSD',
    description=(
        "Django app that allows storage and visualisation of Service Rating data posted via REST API"),
    long_description=open('README.rst', 'r').read(),
    author='Praekelt Foundation',
    author_email='devops@praekeltfoundation.org',
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        'Django',
        'django-tastypie',
        'South',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX',
        'Programming Language :: Python',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: System :: Networking',
    ],
)
<|endoftext|>


<commit_before>#!/usr/bin/python
"""
Copyright (c) 2015 Red Hat, Inc
All rights reserved.

This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""

import re

from setuptools import setup, find_packages

data_files = {
    "share/osbs": [
        "inputs/prod.json",
        "inputs/prod_inner.json",
        "inputs/simple.json",
        "inputs/simple_inner.json",
    ],
}

def _get_requirements(path):
    try:
        with open(path) as f:
            packages = f.read().splitlines()
    except (IOError, OSError) as ex:
        raise RuntimeError("Can't open file with requirements: %s", repr(ex))
    return [p.strip() for p in packages if not re.match(r"^\s*#", p)]

def _install_requirements():
    requirements = _get_requirements('requirements.txt')
    return requirements

setup(
    name="osbs",
    description='Python module and command line client for OpenShift Build Service',
    version="0.10",
    author='Tomas Tomecek',
    author_email='ttomecek@redhat.com',
    url='https://github.com/DBuildService/osbs',
    license="BSD",
    packages=find_packages(exclude=["tests"]),
    entry_points={
          'console_scripts': ['osbs=osbs.cli.main:main'],
    },
    install_requires=_install_requirements(),
    data_files=data_files.items(),
)
<commit_msg>setup.py: package prod-without-koji<commit_after>#!/usr/bin/python
"""
Copyright (c) 2015 Red Hat, Inc
All rights reserved.

This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""

import re

from setuptools import setup, find_packages

data_files = {
    "share/osbs": [
        "inputs/prod.json",
        "inputs/prod_inner.json",
        "inputs/prod-without-koji.json",
        "inputs/prod-without-koji_inner.json",
        "inputs/simple.json",
        "inputs/simple_inner.json",
    ],
}

def _get_requirements(path):
    try:
        with open(path) as f:
            packages = f.read().splitlines()
    except (IOError, OSError) as ex:
        raise RuntimeError("Can't open file with requirements: %s", repr(ex))
    return [p.strip() for p in packages if not re.match(r"^\s*#", p)]

def _install_requirements():
    requirements = _get_requirements('requirements.txt')
    return requirements

setup(
    name="osbs",
    description='Python module and command line client for OpenShift Build Service',
    version="0.10",
    author='Tomas Tomecek',
    author_email='ttomecek@redhat.com',
    url='https://github.com/DBuildService/osbs',
    license="BSD",
    packages=find_packages(exclude=["tests"]),
    entry_points={
          'console_scripts': ['osbs=osbs.cli.main:main'],
    },
    install_requires=_install_requirements(),
    data_files=data_files.items(),
)
<|endoftext|>