<commit_before># -*- python -*-

# pylogsparser - Logs parsers python library
#
# Copyright (C) 2011 Wallix SARL
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

import os
import glob
from distutils.core import setup

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

data = glob.glob('normalizers/*.xml')
data.extend(glob.glob('normalizers/*.template'))
data.extend(glob.glob('normalizers/*.dtd'))
fr_trans = glob.glob('logsparser/i18n/fr_FR/LC_MESSAGES/normalizer.*')

setup(
    name = "pylogsparser",
    version = "0.6",
    author = "Wallix",
    author_email = "opensource@wallix.org",
    description = ("A log parser library packaged with a set of ready to use parsers (DHCPd, Squid, Apache, ...)"),
    license = "LGPL",
    keywords = "log parser xml library python",
    url = "http://www.wallix.org/pylogsparser-project/",
    package_dir={'logsparser.tests':'tests'},
    packages=['logsparser', 'logsparser.tests', 'logsparser.extras'],
    data_files=[('share/logsparser/normalizers', data),
                ('share/logsparser/i18n/fr_FR/LC_MESSAGES/', fr_trans),],
    requires=['lxml', 'pytz'],
    long_description=read('README.rst'),
    # http://pypi.python.org/pypi?:action=list_classifiers
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: System :: Logging",
        "Topic :: Software Development :: Libraries",
        "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
    ],
)
<commit_msg>Version increase<commit_after># -*- python -*-

# pylogsparser - Logs parsers python library
#
# Copyright (C) 2011 Wallix SARL
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version.
#
# This library is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

import os
import glob
from distutils.core import setup

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

data = glob.glob('normalizers/*.xml')
data.extend(glob.glob('normalizers/*.template'))
data.extend(glob.glob('normalizers/*.dtd'))
fr_trans = glob.glob('logsparser/i18n/fr_FR/LC_MESSAGES/normalizer.*')

setup(
    name = "pylogsparser",
    version = "0.7",
    author = "Wallix",
    author_email = "opensource@wallix.org",
    description = ("A log parser library packaged with a set of ready to use parsers (DHCPd, Squid, Apache, ...)"),
    license = "LGPL",
    keywords = "log parser xml library python",
    url = "http://www.wallix.org/pylogsparser-project/",
    package_dir={'logsparser.tests':'tests'},
    packages=['logsparser', 'logsparser.tests', 'logsparser.extras'],
    data_files=[('share/logsparser/normalizers', data),
                ('share/logsparser/i18n/fr_FR/LC_MESSAGES/', fr_trans),],
    requires=['lxml', 'pytz'],
    long_description=read('README.rst'),
    # http://pypi.python.org/pypi?:action=list_classifiers
    classifiers=[
        "Development Status :: 4 - Beta",
        "Topic :: System :: Logging",
        "Topic :: Software Development :: Libraries",
        "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
    ],
)
<|endoftext|>


<commit_before>import os
import platform

from setuptools import find_packages, setup

from eventsourcing import __version__

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

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

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

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

axonserver_requires = ["axonclient<=0.0.99999"]

grpc_requires = ["grpc<=1.29.99999"]

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

thespian_requires = ["thespian<=3.10.99999"]

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

django_requires = ["django<=3.0.99999"]

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

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

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

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

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

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

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

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

from setuptools import find_packages, setup

from eventsourcing import __version__

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

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

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

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

axonserver_requires = ["axonclient<=0.0.99999"]

grpc_requires = ["grpcio<=1.29.99999"]

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

thespian_requires = ["thespian<=3.10.99999"]

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

django_requires = ["django<=3.0.99999"]

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

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

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

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

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

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

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

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


<commit_before># -*- encoding: UTF-8 -*
from setuptools import setup

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

setup(
    name='steeve',
    version='0.1',
    author='Sviatoslav Abakumov',
    author_email='dust.harvesting@gmail.com',
    description=u'Tiny GNU Stow–based package manager',
    long_description=README,
    url='https://github.com/Perlence/steeve',
    download_url='https://github.com/Perlence/steeve/archive/master.zip',
    py_modules=['steeve'],
    zip_safe=False,
    entry_points={
        'console_scripts': [
            'steeve = steeve:cli',
        ],
    },
    install_requires=[
        'click>=5,<6',
        'whichcraft',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Topic :: System :: Installation/Setup',
        'Topic :: System :: Systems Administration',
        'Topic :: Utilities',
    ]
)
<commit_msg>Bump version to 0.1.1<commit_after># -*- encoding: UTF-8 -*
from setuptools import setup

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

setup(
    name='steeve',
    version='0.1.1',
    author='Sviatoslav Abakumov',
    author_email='dust.harvesting@gmail.com',
    description=u'Tiny GNU Stow–based package manager',
    long_description=README,
    url='https://github.com/Perlence/steeve',
    download_url='https://github.com/Perlence/steeve/archive/master.zip',
    py_modules=['steeve'],
    zip_safe=False,
    entry_points={
        'console_scripts': [
            'steeve = steeve:cli',
        ],
    },
    install_requires=[
        'click>=5,<6',
        'whichcraft',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'License :: OSI Approved :: BSD License',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Topic :: System :: Installation/Setup',
        'Topic :: System :: Systems Administration',
        'Topic :: Utilities',
    ]
)
<|endoftext|>


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

from setuptools import setup, find_packages, Extension

cledadamap = Extension('cledadamap', sources=['cledadamap.c'])

setup(
    name = "ledadamap",
    version = "0.2",
    #packages = find_packages(),
    scripts = [],
    ext_modules = [cledadamap],
    py_modules = ['ledadagen', 'ledadamap'],

    install_requires = [],

    package_data = {
    },

    author = "Branislav Gajdos",
    author_email = "branislav.gajdos@asmira.com",
    description = "Shared memory hash map",
    license = "Asmira license",
    keywords = "",
    url = "",
)
<commit_msg>setup.py: bump version to 0.2.1<commit_after># -*- coding: utf-8 -*-

from setuptools import setup, find_packages, Extension

cledadamap = Extension('cledadamap', sources=['cledadamap.c'])

setup(
    name = "ledadamap",
    version = "0.2.1",
    #packages = find_packages(),
    scripts = [],
    ext_modules = [cledadamap],
    py_modules = ['ledadagen', 'ledadamap'],

    install_requires = [],

    package_data = {
    },

    author = "Branislav Gajdos",
    author_email = "branislav.gajdos@asmira.com",
    description = "Shared memory hash map",
    license = "Asmira license",
    keywords = "",
    url = "",
)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
                        print_function)
from builtins import *
from setuptools import setup, Command
import glob
import shutil

class CleanCommand(Command):
    """Custom clean command to tidy up the project root."""
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        shutil.rmtree("build")
        shutil.rmtree("dist")
        shutil.rmtree("nolds.egg-info")

with open("README.rst", "r", encoding="utf-8") as f:
    readme = f.read()
version = '0.3.1'
setup(
    name='nolds',
    packages=['nolds'],
    version=version,
    description='Nonlinear measures for dynamical systems '
                + '(based on one-dimensional time series)',
    long_description=readme,
    author='Christopher Schölzel',
    author_email='christopher.schoelzel@gmx.net',
    url='https://github.com/CSchoel/nolds',
    download_url='https://github.com/CSchoel/nolds/tarball/' + version,
    keywords=[
        'nonlinear', 'dynamical system', 'chaos',
        'lyapunov', 'hurst', 'hurst exponent', 'rescaled range', 'DFA',
        'detrended fluctuation analysis', 'sample entropy',
        'correlation dimension'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4'
    ],
    test_suite='nolds.test_measures',
    install_requires=[
        'numpy',
        'future',
        'setuptools'
    ],
    extras_require={
        'RANSAC': ['sklearn']
    },
    cmdclass={
        'clean': CleanCommand
    }
)
<commit_msg>specifies platform and license<commit_after># -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
                        print_function)
from builtins import *
from setuptools import setup, Command
import glob
import shutil

class CleanCommand(Command):
    """Custom clean command to tidy up the project root."""
    user_options = []

    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        shutil.rmtree("build")
        shutil.rmtree("dist")
        shutil.rmtree("nolds.egg-info")

with open("README.rst", "r", encoding="utf-8") as f:
    readme = f.read()
version = '0.3.1'
setup(
    name='nolds',
    packages=['nolds'],
    version=version,
    platforms="any",
    license="MIT",
    description='Nonlinear measures for dynamical systems '
                + '(based on one-dimensional time series)',
    long_description=readme,
    author='Christopher Schölzel',
    author_email='christopher.schoelzel@gmx.net',
    url='https://github.com/CSchoel/nolds',
    download_url='https://github.com/CSchoel/nolds/tarball/' + version,
    keywords=[
        'nonlinear', 'dynamical system', 'chaos',
        'lyapunov', 'hurst', 'hurst exponent', 'rescaled range', 'DFA',
        'detrended fluctuation analysis', 'sample entropy',
        'correlation dimension'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4'
    ],
    test_suite='nolds.test_measures',
    install_requires=[
        'numpy',
        'future',
        'setuptools'
    ],
    extras_require={
        'RANSAC': ['sklearn']
    },
    cmdclass={
        'clean': CleanCommand
    }
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name = 'cc_dynamodb',
    packages=find_packages(),
    install_requires=[
        'bunch>=1.0.1',
        'boto>=2.31.1',
        'PyYAML==3.10',
    ],
    tests_require=['pytest', 'mock', 'factory_boy'],
    version = '0.3.0',
    description = 'A dynamodb common configuration abstraction',
    author='Paul Craciunoiu',
    author_email='pcraciunoiu@clearcareonline.com',
    url='https://github.com/clearcare/cc_dynamodb',
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Operating System :: OS Independent',
        'Development Status :: 1 - Planning',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Topic :: System :: Distributed Computing',
    ]
)
<commit_msg>Bump version<commit_after>from setuptools import setup, find_packages

setup(
    name = 'cc_dynamodb',
    packages=find_packages(),
    install_requires=[
        'bunch>=1.0.1',
        'boto>=2.31.1',
        'PyYAML==3.10',
    ],
    tests_require=['pytest', 'mock', 'factory_boy'],
    version = '0.4.0',
    description = 'A dynamodb common configuration abstraction',
    author='Paul Craciunoiu',
    author_email='pcraciunoiu@clearcareonline.com',
    url='https://github.com/clearcare/cc_dynamodb',
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'License :: OSI Approved :: GNU General Public License (GPL)',
        'Operating System :: OS Independent',
        'Development Status :: 1 - Planning',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Topic :: System :: Distributed Computing',
    ]
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
"""
Install wagtailinvoices using setuptools
"""

from wagtailinvoices import __version__

with open('README.rst', 'r') as f:
    readme = f.read()

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

setup(
    name='wagtailinvoices',
    version=__version__,
    description='Invoice mod for the Wagtail CMS',
    long_description=readme,
    author='Liam Brenner',
    author_email='liam.brenner@gmail.com',
    url='https://bitbucket.org/sablewalnut/wagtailinvoices',

    install_requires=[
        'wagtail>=1.0',
        'weasyprint>=0.28',
        'django-uuidfield==0.5.0',
        'braintree>=3.13.0'
    ],
    zip_safe=False,
    license='BSD License',

    packages=find_packages(),

    include_package_data=True,
    package_data={},

    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
        'License :: OSI Approved :: BSD License',
    ],
)
<commit_msg>update setup url arg<commit_after>#!/usr/bin/env python
"""
Install wagtailinvoices using setuptools
"""

from wagtailinvoices import __version__

with open('README.rst', 'r') as f:
    readme = f.read()

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

setup(
    name='wagtailinvoices',
    version=__version__,
    description='Invoice mod for the Wagtail CMS',
    long_description=readme,
    author='Liam Brenner',
    author_email='liam.brenner@gmail.com',
    url='https://github.com/SableWalnut/wagtailinvoices',

    install_requires=[
        'wagtail>=1.0',
        'weasyprint>=0.28',
        'django-uuidfield==0.5.0',
        'braintree>=3.13.0'
    ],
    zip_safe=False,
    license='BSD License',

    packages=find_packages(),

    include_package_data=True,
    package_data={},

    classifiers=[
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Framework :: Django',
        'License :: OSI Approved :: BSD License',
    ],
)
<|endoftext|>


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

# Setup script for the `vcs-repo-mgr' package.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: April 29, 2017
# URL: https://github.com/xolox/python-vcs-repo-mgr

"""
Setup script for the `vcs-repo-mgr` package.

**python setup.py install**
  Install from the working directory into the current Python environment.

**python setup.py sdist**
  Build a source distribution archive.

**python setup.py bdist_wheel**
  Build a wheel distribution archive.
"""

# Standard library modules.
import codecs
import os
import re
import sys

# De-facto standard solution for Python packaging.
from setuptools import find_packages, setup

PY2 = (sys.version_info[0] == 2)
""":data:`True` on Python 2, :data:`False` otherwise."""

PYTHON_TWO_DEPS = ['bzr >= 2.6.0', 'mercurial >= 2.9']
"""
The `vcs-repo-mgr` package depends on Bazaar and Mercurial which don't support
Python 3 (at the time of writing) while `vcs-repo-mgr` does support Python 3.

On the one hand it's nice to pull in recent versions of these dependencies as
installation requirements when possible, it definitely shouldn't make it
impossible to install `vcs-repo-mgr` under Python 3. Because of this the Bazaar
and Mercurial dependencies are conditional; users that are running Python 3 are
expected to install Bazaar and/or Mercurial via e.g. their system package
manager.
"""

def get_contents(*args):
    """Get the contents of a file relative to the source distribution directory."""
    with codecs.open(get_absolute_path(*args), 'r', 'UTF-8') as handle:
        return handle.read()

def get_version(*args):
    """Extract the version number from a Python module."""
    contents = get_contents(*args)
    metadata = dict(re.findall('__([a-z]+)__ = [\'"]([^\'"]+)', contents))
    return metadata['version']

def get_install_requires():
    """Add conditional dependencies for Python 2 (when creating source distributions)."""
    install_requires = get_requirements('requirements.txt')
    if PY2 and 'bdist_wheel' not in sys.argv:
        install_requires.extend(PYTHON_TWO_DEPS)
    return sorted(install_requires)

def get_extras_require():
    """Add conditional dependencies for Python 2 (when creating wheel distributions)."""
    extras_require = {}
    if have_environment_marker_support():
        expression = ':python_version == "2.6" or python_version == "2.7"'
        extras_require[expression] = list(PYTHON_TWO_DEPS)
    return extras_require

def get_requirements(*args):
    """Get requirements from pip requirement files."""
    requirements = set()
    with open(get_absolute_path(*args)) as handle:
        for line in handle:
            # Strip comments.
            line = re.sub(r'^#.*|\s#.*', '', line)
            # Ignore empty lines
            if line and not line.isspace():
                requirements.add(re.sub(r'\s+', '', line))
    return sorted(requirements)

def get_absolute_path(*args):
    """Transform relative pathnames into absolute pathnames."""
    return os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)

def have_environment_marker_support():
    """
    Check whether setuptools has support for PEP-426 environment marker support.

    Based on the ``setup.py`` script of the ``pytest`` package:
    https://bitbucket.org/pytest-dev/pytest/src/default/setup.py
    """
    try:
        from pkg_resources import parse_version
        from setuptools import __version__
        return parse_version(__version__) >= parse_version('0.7.2')
    except Exception:
        return False

# When our installation requirements include Bazaar and Mercurial it is silly
# to also require the Bazaar and Mercurial system packages through stdeb.cfg
# so we overwrite the file to remove these dependencies.
if PY2:
    with open(get_absolute_path('stdeb.cfg'), 'w') as handle:
        handle.write('[vcs-repo-mgr]\n')
        handle.write('Depends: git | git-core\n')

setup(name='vcs-repo-mgr',
      version=get_version('vcs_repo_mgr', '__init__.py'),
      description="Version control repository manager",
      long_description=get_contents('README.rst'),
      url='https://github.com/xolox/python-vcs-repo-mgr',
      author="Peter Odding",
      author_email='peter@peterodding.com',
      packages=find_packages(),
      entry_points=dict(console_scripts=[
          'vcs-tool = vcs_repo_mgr.cli:main',
      ]),
      install_requires=get_install_requires(),
      extras_require=get_extras_require(),
      test_suite='vcs_repo_mgr.tests',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Information Technology',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: MIT License',
          'Operating System :: POSIX',
          'Operating System :: Unix',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Topic :: Software Development :: Version Control',
          'Topic :: System :: Archiving :: Packaging',
          'Topic :: System :: Software Distribution',
          'Topic :: System :: Systems Administration',
          'Topic :: Utilities',
      ])
<commit_msg>Stick to Mercurial < 4.3 on Python 2.6<commit_after>#!/usr/bin/env python

# Setup script for the `vcs-repo-mgr' package.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: March 5, 2018
# URL: https://github.com/xolox/python-vcs-repo-mgr

"""
Setup script for the `vcs-repo-mgr` package.

**python setup.py install**
  Install from the working directory into the current Python environment.

**python setup.py sdist**
  Build a source distribution archive.

**python setup.py bdist_wheel**
  Build a wheel distribution archive.
"""

# Standard library modules.
import codecs
import os
import re
import sys

# De-facto standard solution for Python packaging.
from setuptools import find_packages, setup

PY2 = (sys.version_info[0] == 2)
""":data:`True` on Python 2, :data:`False` otherwise."""

def get_contents(*args):
    """Get the contents of a file relative to the source distribution directory."""
    with codecs.open(get_absolute_path(*args), 'r', 'UTF-8') as handle:
        return handle.read()

def get_version(*args):
    """Extract the version number from a Python module."""
    contents = get_contents(*args)
    metadata = dict(re.findall('__([a-z]+)__ = [\'"]([^\'"]+)', contents))
    return metadata['version']

def get_install_requires():
    """Add conditional dependencies (when creating source distributions)."""
    install_requires = get_requirements('requirements.txt')
    if 'bdist_wheel' not in sys.argv:
        if sys.version_info[0] == 2:
            # On Python 2.6 and 2.7 we pull in Bazaar.
            install_requires.append('bzr >= 2.6.0')
        if sys.version_info[2:] == (2, 6):
            # On Python 2.6 we have to stick to versions of Mercurial below 4.3
            # because 4.3 drops support for Python 2.6, see the change log:
            # https://www.mercurial-scm.org/wiki/WhatsNew
            install_requires.append('mercurial >= 2.9, < 4.3')
        elif (2, 6) < sys.version_info[:2] < (3, 0):
            # On Python 2.7 we pull in Mercurial.
            install_requires.append('mercurial >= 2.9')
    return sorted(install_requires)

def get_extras_require():
    """Add conditional dependencies (when creating wheel distributions)."""
    extras_require = {}
    if have_environment_marker_support():
        extras_require[':python_version == "2.6"'] = ['bzr >= 2.6.0', 'mercurial >= 2.9, < 4.3']
        extras_require[':python_version == "2.7"'] = ['bzr >= 2.6.0', 'mercurial >= 2.9']
    return extras_require

def get_requirements(*args):
    """Get requirements from pip requirement files."""
    requirements = set()
    with open(get_absolute_path(*args)) as handle:
        for line in handle:
            # Strip comments.
            line = re.sub(r'^#.*|\s#.*', '', line)
            # Ignore empty lines
            if line and not line.isspace():
                requirements.add(re.sub(r'\s+', '', line))
    return sorted(requirements)

def get_absolute_path(*args):
    """Transform relative pathnames into absolute pathnames."""
    return os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)

def have_environment_marker_support():
    """
    Check whether setuptools has support for PEP-426 environment marker support.

    Based on the ``setup.py`` script of the ``pytest`` package:
    https://bitbucket.org/pytest-dev/pytest/src/default/setup.py
    """
    try:
        from pkg_resources import parse_version
        from setuptools import __version__
        return parse_version(__version__) >= parse_version('0.7.2')
    except Exception:
        return False

# When our installation requirements include Bazaar and Mercurial it is silly
# to also require the Bazaar and Mercurial system packages through stdeb.cfg
# so we overwrite the file to remove these dependencies.
if PY2:
    with open(get_absolute_path('stdeb.cfg'), 'w') as handle:
        handle.write('[vcs-repo-mgr]\n')
        handle.write('Depends: git | git-core\n')

setup(name='vcs-repo-mgr',
      version=get_version('vcs_repo_mgr', '__init__.py'),
      description="Version control repository manager",
      long_description=get_contents('README.rst'),
      url='https://github.com/xolox/python-vcs-repo-mgr',
      author="Peter Odding",
      author_email='peter@peterodding.com',
      packages=find_packages(),
      entry_points=dict(console_scripts=[
          'vcs-tool = vcs_repo_mgr.cli:main',
      ]),
      install_requires=get_install_requires(),
      extras_require=get_extras_require(),
      test_suite='vcs_repo_mgr.tests',
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Information Technology',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: MIT License',
          'Operating System :: POSIX',
          'Operating System :: Unix',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Topic :: Software Development :: Libraries :: Python Modules',
          'Topic :: Software Development :: Version Control',
          'Topic :: System :: Archiving :: Packaging',
          'Topic :: System :: Software Distribution',
          'Topic :: System :: Systems Administration',
          'Topic :: Utilities',
      ])
<|endoftext|>


<commit_before>"""OAuth Proxy"""

from setuptools import setup, find_packages

setup(
    name="oauth-proxy",
    version="1.0.4",
    url="http://github.com/mojodna/oauth-proxy",
    license="BSD License",
    description="OAuth HTTP proxy",
    long_description="An OAuth proxy server that signs requests w/ provided tokens and passes them on to their original destination.",
    keywords="oauth proxy twisted",
    packages=find_packages(),
    package_data={
        "twisted": ["plugins/proxy.py"]
    },
    scripts=["bin/oauth-proxy"],
    install_requires=["twisted>=8.2.0", "oauth>=1.0.1"],
    author="Seth Fitzsimmons",
    author_email="seth@mojodna.net",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Topic :: Utilities",
        "Topic :: Internet :: Proxy Servers",
        "License :: OSI Approved :: BSD License",
    ],
)
<commit_msg>add "twisted.plugins" to the list of "packages"<commit_after>"""OAuth Proxy"""

from setuptools import setup, find_packages

setup(
    name="oauth-proxy",
    version="1.0.4",
    url="http://github.com/mojodna/oauth-proxy",
    license="BSD License",
    description="OAuth HTTP proxy",
    long_description="An OAuth proxy server that signs requests w/ provided tokens and passes them on to their original destination.",
    keywords="oauth proxy twisted",
    packages=['oauth_proxy', 'twisted.plugins'],
    package_data={
        "twisted": ["plugins/proxy.py"]
    },
    scripts=["bin/oauth-proxy"],
    install_requires=["twisted>=8.2.0", "oauth>=1.0.1"],
    author="Seth Fitzsimmons",
    author_email="seth@mojodna.net",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Topic :: Utilities",
        "Topic :: Internet :: Proxy Servers",
        "License :: OSI Approved :: BSD License",
    ],
)
<|endoftext|>


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

from setuptools import setup, find_packages

setup(
    name='jenkins_tools',
    version='0.0.53',
    packages=['jenkins_tools'],
    package_dir = {'jenkins_tools':'src/jenkins_tools'},
    scripts = ['scripts/run_chroot_jenkins_now',
               'scripts/run_chroot_jenkins_periodic',
               'scripts/run_chroot_jenkins_vcs',
               'scripts/run_chroot_local',
               'scripts/delete_jenkins',
               'scripts/generate_jenkins_devel',
               'scripts/generate_jenkins_doc',
               'scripts/generate_jenkins_prerelease',
               'scripts/chroot_create.sh',
               'scripts/chroot_update.sh',
               'scripts/chroot_dispatch.sh'],
    install_requires=['empy', 'PyYAML', 'jenkins', 'argparse', 'rosdep', 'rosdistro >= 0.2.7', 'rospkg', 'catkin-pkg', 'distribute'],
    package_data = {'jenkins_tools': ['resources/templates/*']},
    author='Wim Meeussen',
    author_email='wim@hidof.com',
    maintainer='Dirk Thomas',
    maintainer_email='dthomas@osrfoundation.org',
    url='http://www.ros.org/wiki/jenkins_tools',
    download_url='http://pr.willowgarage.com/downloads/jenkins_tools/',
    keywords=['ROS'],
    classifiers=['Programming Language :: Python',
                 'License :: OSI Approved :: BSD License'],
    description="A tool for running scripts in a chroot environment on Jenkins or locally",
    long_description="""
A tool for running scripts in a chroot environment on Jenkins or locally""",
    license='BSD'
)
<commit_msg>0.0.54<commit_after>#!/usr/bin/env python

from setuptools import setup, find_packages

setup(
    name='jenkins_tools',
    version='0.0.54',
    packages=['jenkins_tools'],
    package_dir = {'jenkins_tools':'src/jenkins_tools'},
    scripts = ['scripts/run_chroot_jenkins_now',
               'scripts/run_chroot_jenkins_periodic',
               'scripts/run_chroot_jenkins_vcs',
               'scripts/run_chroot_local',
               'scripts/delete_jenkins',
               'scripts/generate_jenkins_devel',
               'scripts/generate_jenkins_doc',
               'scripts/generate_jenkins_prerelease',
               'scripts/chroot_create.sh',
               'scripts/chroot_update.sh',
               'scripts/chroot_dispatch.sh'],
    install_requires=['empy', 'PyYAML', 'jenkins', 'argparse', 'rosdep', 'rosdistro >= 0.2.7', 'rospkg', 'catkin-pkg', 'distribute'],
    package_data = {'jenkins_tools': ['resources/templates/*']},
    author='Wim Meeussen',
    author_email='wim@hidof.com',
    maintainer='Dirk Thomas',
    maintainer_email='dthomas@osrfoundation.org',
    url='http://www.ros.org/wiki/jenkins_tools',
    download_url='http://pr.willowgarage.com/downloads/jenkins_tools/',
    keywords=['ROS'],
    classifiers=['Programming Language :: Python',
                 'License :: OSI Approved :: BSD License'],
    description="A tool for running scripts in a chroot environment on Jenkins or locally",
    long_description="""
A tool for running scripts in a chroot environment on Jenkins or locally""",
    license='BSD'
)
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name='zseqfile',
    author="Wouter Bolsterlee",
    author_email="uws@xs4all.nl",
    url="https://github.com/wbolster/zseqfile",
    version='0.1',
    py_modules=['zseqfile'],
    license="BSD License",
    classifiers=[
        "License :: OSI Approved :: BSD License",
    ]
)
<commit_msg>Add description<commit_after>from setuptools import setup

setup(
    name='zseqfile',
    description="Library to simplify sequential access to compressed files",
    author="Wouter Bolsterlee",
    author_email="uws@xs4all.nl",
    url="https://github.com/wbolster/zseqfile",
    version='0.1',
    py_modules=['zseqfile'],
    license="BSD License",
    classifiers=[
        "License :: OSI Approved :: BSD License",
    ]
)
<|endoftext|>


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

#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Developers.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

__version__ = '0.0.0-dev'

from setuptools import find_packages, setup
from distutils.command.build_py import build_py

classes = """
    Development Status :: 1 - Planning
    License :: OSI Approved :: BSD License
    Topic :: Software Development :: Libraries
    Programming Language :: Python
    Programming Language :: Python :: 2.7
    Operating System :: Unix
    Operating System :: POSIX
    Operating System :: MacOS :: MacOS X
"""
classifiers = [s.strip() for s in classes.split('\n') if s]

long_description = """The BiPy Project"""

setup(name='bipy',
      cmdclass={'build_py': build_py},
      version=__version__,
      license='BSD',
      description='bipy',
      long_description=long_description,
      author="The BiPy Developers",
      author_email="gregcaporaso@gmail.com",
      maintainer="The BiPy Developers",
      maintainer_email="gregcaporaso@gmail.com",
      url='https://github.com/biocore/bipy',
      packages=find_packages(),
      install_requires=['numpy >= 1.5.1, <=1.7.1', 'matplotlib >= 1.1.0',
                        'scipy >=0.13.0'],
      extras_require={'test': ["nose >= 0.10.1", "tox >= 1.6.1", "pep8"],
                      'doc': "Sphinx >= 0.3"},
      classifiers=classifiers
      )
<commit_msg>TST: Require a numpy version we test, remote tox (not used)<commit_after>#!/usr/bin/env python

#-----------------------------------------------------------------------------
# Copyright (c) 2013, The BiPy Developers.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

__version__ = '0.0.0-dev'

from setuptools import find_packages, setup
from distutils.command.build_py import build_py

classes = """
    Development Status :: 1 - Planning
    License :: OSI Approved :: BSD License
    Topic :: Software Development :: Libraries
    Programming Language :: Python
    Programming Language :: Python :: 2.7
    Operating System :: Unix
    Operating System :: POSIX
    Operating System :: MacOS :: MacOS X
"""
classifiers = [s.strip() for s in classes.split('\n') if s]

long_description = """The BiPy Project"""

setup(name='bipy',
      cmdclass={'build_py': build_py},
      version=__version__,
      license='BSD',
      description='bipy',
      long_description=long_description,
      author="The BiPy Developers",
      author_email="gregcaporaso@gmail.com",
      maintainer="The BiPy Developers",
      maintainer_email="gregcaporaso@gmail.com",
      url='https://github.com/biocore/bipy',
      packages=find_packages(),
      install_requires=['numpy >= 1.7', 'matplotlib >= 1.1.0',
                        'scipy >=0.13.0'],
      extras_require={'test': ["nose >= 0.10.1", "pep8"],
                      'doc': "Sphinx >= 0.3"},
      classifiers=classifiers
      )
<|endoftext|>


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

import itertools
from setuptools.command.test import test
from setuptools import setup, find_packages

# Python 2 setuptools test class is not an object
class TestsWithCoverage(test, object):

    description = "run unit tests with coverage"

    # Copypasta from setuptools 36.0.1 because older versions don't have it
    @staticmethod
    def install_dists(dist):
        ir_d = dist.fetch_build_eggs(dist.install_requires or [])
        tr_d = dist.fetch_build_eggs(dist.tests_require or [])
        return itertools.chain(ir_d, tr_d)

    def run(self):
        # Must install test_requires before importing coverage
        self.install_dists(self.distribution)

        from coverage import coverage

        cov = coverage(data_file=".coverage", branch=True,
                       source=self.distribution.packages)
        cov.start()

        # Unittest calls exit prior to python 3. How naughty
        try:
            super(TestsWithCoverage, self).run()
        except SystemExit:
            pass

        cov.stop()
        cov.xml_report(outfile="coverage.xml")
        cov.html_report()

setup(
    name="pydora",
    version="1.8.0",
    description="Python wrapper for Pandora API",
    long_description=open("README.rst", "r").read(),
    author="Mike Crute",
    author_email="mcrute@gmail.com",
    url="https://github.com/mcrute/pydora",
    test_suite="tests.discover_suite",
    packages=find_packages(exclude=["tests", "tests.*"]),
    cmdclass={
        "test": TestsWithCoverage,
    },
    setup_requires=[
        "wheel",
        "flake8>=3.3",
    ],
    tests_require=[
        "mock>=2.0",
        "coverage>=4.1",
    ],
    install_requires=[
        "pycrypto>=2.6",
        "requests>=2",
    ],
    entry_points={
        "console_scripts": [
            "pydora = pydora.player:main",
            "pydora-configure = pydora.configure:main",
        ],
    },
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "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",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Multimedia :: Sound/Audio :: Players",
    ]
)
<commit_msg>Release 1.9.0<commit_after>#!/usr/bin/env python

import itertools
from setuptools.command.test import test
from setuptools import setup, find_packages

# Python 2 setuptools test class is not an object
class TestsWithCoverage(test, object):

    description = "run unit tests with coverage"

    # Copypasta from setuptools 36.0.1 because older versions don't have it
    @staticmethod
    def install_dists(dist):
        ir_d = dist.fetch_build_eggs(dist.install_requires or [])
        tr_d = dist.fetch_build_eggs(dist.tests_require or [])
        return itertools.chain(ir_d, tr_d)

    def run(self):
        # Must install test_requires before importing coverage
        self.install_dists(self.distribution)

        from coverage import coverage

        cov = coverage(data_file=".coverage", branch=True,
                       source=self.distribution.packages)
        cov.start()

        # Unittest calls exit prior to python 3. How naughty
        try:
            super(TestsWithCoverage, self).run()
        except SystemExit:
            pass

        cov.stop()
        cov.xml_report(outfile="coverage.xml")
        cov.html_report()

setup(
    name="pydora",
    version="1.9.0",
    description="Python wrapper for Pandora API",
    long_description=open("README.rst", "r").read(),
    author="Mike Crute",
    author_email="mcrute@gmail.com",
    url="https://github.com/mcrute/pydora",
    test_suite="tests.discover_suite",
    packages=find_packages(exclude=["tests", "tests.*"]),
    cmdclass={
        "test": TestsWithCoverage,
    },
    setup_requires=[
        "wheel",
        "flake8>=3.3",
    ],
    tests_require=[
        "mock>=2.0",
        "coverage>=4.1",
    ],
    install_requires=[
        "pycrypto>=2.6",
        "requests>=2",
    ],
    entry_points={
        "console_scripts": [
            "pydora = pydora.player:main",
            "pydora-configure = pydora.configure:main",
        ],
    },
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "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",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Multimedia :: Sound/Audio :: Players",
    ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages
from setuptools.command.build_py import build_py as _build_py
import os
import sys

# Prevents pkg_resources import in entry point script,
# see https://github.com/ninjaaron/fast-entry_points.
# This saves about 200 ms on startup time for non-wheel installs.
import fastentrypoints  # noqa: F401

# https://packaging.python.org/guides/single-sourcing-package-version/
pkg_dir = os.path.dirname(os.path.abspath(__file__))
version_path = os.path.join(pkg_dir, "dvc", "version.py")
if sys.version_info[0] == 2:
    import imp

    dvc_version = imp.load_source("dvc.version", version_path)
else:
    import importlib.util

    spec = importlib.util.spec_from_file_location("dvc.version", version_path)
    dvc_version = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(dvc_version)

version = dvc_version.__version__  # noqa: F821

# To achieve consistency between the build version and the one provided
# by your package during runtime, you need to **pin** the build version.
#
# This custom class will replace the version.py module with a **static**
# `__version__` that your package can read at runtime, assuring consistancy.
#
# References:
#   - https://docs.python.org/3.7/distutils/extending.html
#   - https://github.com/python/mypy
class build_py(_build_py):
    def pin_version(self):
        path = os.path.join(self.build_lib, "dvc")
        self.mkpath(path)
        with open(os.path.join(path, "version.py"), "w") as fobj:
            fobj.write("# AUTOGENERATED at build time by setup.py\n")
            fobj.write('__version__ = "{}"\n'.format(version))

    def run(self):
        self.execute(self.pin_version, ())
        _build_py.run(self)

install_requires = [
    "ply>=3.9",  # See https://github.com/pyinstaller/pyinstaller/issues/1945
    "configparser>=3.5.0",
    "future>=0.16.0",
    "colorama>=0.3.9",
    "configobj>=5.0.6",
    "gitpython>=2.1.8",
    "gitdb2>=2.0.6",  # See https://github.com/iterative/dvc/issues/1880
    "setuptools>=34.0.0",
    "nanotime>=0.5.2",
    "pyasn1>=0.4.1",
    "schema>=0.6.7",
    "jsonpath-ng>=1.4.3",
    "requests>=2.22.0",
    "grandalf==0.6",
    "asciimatics>=1.10.0",
    "distro>=1.3.0",
    "appdirs>=1.4.3",
    "treelib>=1.5.5",
    "inflect>=2.1.0",
    "humanize>=0.5.1",
    "ruamel.yaml>=0.16.1",
    "funcy>=1.12",
    "pathspec>=0.6.0",
    "shortuuid>=0.5.0",
    "tqdm>=4.35.0",
    "packaging>=19.0",
    "win-unicode-console>=0.5; sys_platform == 'win32'",
]

if sys.version_info[0] == 2:
    install_requires.append("networkx>=2.1,<2.3")
else:
    install_requires.append("networkx>=2.1,<2.4")

# Extra dependencies for remote integrations

gs = ["google-cloud-storage==1.19.0"]
s3 = ["boto3==1.9.115"]
azure = ["azure-storage-blob==2.1.0"]
oss = ["oss2==2.6.1"]
ssh = ["paramiko>=2.5.0"]
# gssapi should not be included in all_remotes, because it doesn't have wheels
# for linux and mac, so it will fail to compile if user doesn't have all the
# requirements, including kerberos itself. Once all the wheels are available,
# we can start shipping it by default.
ssh_gssapi = ["paramiko[gssapi]>=2.5.0"]
hdfs = ["pyarrow==0.14.0"]
all_remotes = gs + s3 + azure + ssh + oss

if os.name != "nt" or sys.version_info[0] != 2:
    # NOTE: there are no pyarrow wheels for python2 on windows
    all_remotes += hdfs

# Extra dependecies to run tests
tests_requirements = [
    "PyInstaller==3.5",
    "wheel>=0.31.1",
    "pydot>=1.2.4",
    # Test requirements:
    "pytest>=4.6.0",
    "pytest-timeout>=1.3.3",
    "pytest-cov>=2.6.1",
    "pytest-xdist>=1.26.1",
    "pytest-mock>=1.10.4",
    "flaky>=3.5.3",
    "mock>=3.0.0",
    "xmltodict>=0.11.0",
    "awscli>=1.16.125",
    "google-compute-engine==2.8.13",
    "pywin32; sys_platform == 'win32'",
    "Pygments",  # required by collective.checkdocs,
    "collective.checkdocs",
    "flake8",
    "psutil",
    "flake8-docstrings",
    "pydocstyle<4.0",
    "jaraco.windows==3.9.2",
    "mock-ssh-server>=0.6.0",
    "moto>=1.3.14.dev55",
    "rangehttpserver==1.2.0",
]

if (sys.version_info) >= (3, 6):
    tests_requirements.append("black==19.3b0")

setup(
    name="dvc",
    version=version,
    description="Git for data scientists - manage your code and data together",
    long_description=open("README.rst", "r").read(),
    author="Dmitry Petrov",
    author_email="dmitry@dataversioncontrol.com",
    download_url="https://github.com/iterative/dvc",
    license="Apache License 2.0",
    install_requires=install_requires,
    extras_require={
        "all": all_remotes,
        "gs": gs,
        "s3": s3,
        "azure": azure,
        "oss": oss,
        "ssh": ssh,
        "ssh_gssapi": ssh_gssapi,
        "hdfs": hdfs,
        # NOTE: https://github.com/inveniosoftware/troubleshooting/issues/1
        ":python_version=='2.7'": [
            "futures",
            "pathlib2",
            "zc.lockfile>=1.2.1",
        ],
        ":python_version>='3.0'": ["flufl.lock>=3.2"],
        "tests": tests_requirements,
    },
    keywords="data science, data version control, machine learning",
    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
    ],
    packages=find_packages(exclude=["tests"]),
    include_package_data=True,
    url="http://dvc.org",
    entry_points={"console_scripts": ["dvc = dvc.main:main"]},
    cmdclass={"build_py": build_py},
    zip_safe=False,
)
<commit_msg>setup: add upper limit for tqdm version<commit_after>from setuptools import setup, find_packages
from setuptools.command.build_py import build_py as _build_py
import os
import sys

# Prevents pkg_resources import in entry point script,
# see https://github.com/ninjaaron/fast-entry_points.
# This saves about 200 ms on startup time for non-wheel installs.
import fastentrypoints  # noqa: F401

# https://packaging.python.org/guides/single-sourcing-package-version/
pkg_dir = os.path.dirname(os.path.abspath(__file__))
version_path = os.path.join(pkg_dir, "dvc", "version.py")
if sys.version_info[0] == 2:
    import imp

    dvc_version = imp.load_source("dvc.version", version_path)
else:
    import importlib.util

    spec = importlib.util.spec_from_file_location("dvc.version", version_path)
    dvc_version = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(dvc_version)

version = dvc_version.__version__  # noqa: F821

# To achieve consistency between the build version and the one provided
# by your package during runtime, you need to **pin** the build version.
#
# This custom class will replace the version.py module with a **static**
# `__version__` that your package can read at runtime, assuring consistancy.
#
# References:
#   - https://docs.python.org/3.7/distutils/extending.html
#   - https://github.com/python/mypy
class build_py(_build_py):
    def pin_version(self):
        path = os.path.join(self.build_lib, "dvc")
        self.mkpath(path)
        with open(os.path.join(path, "version.py"), "w") as fobj:
            fobj.write("# AUTOGENERATED at build time by setup.py\n")
            fobj.write('__version__ = "{}"\n'.format(version))

    def run(self):
        self.execute(self.pin_version, ())
        _build_py.run(self)

install_requires = [
    "ply>=3.9",  # See https://github.com/pyinstaller/pyinstaller/issues/1945
    "configparser>=3.5.0",
    "future>=0.16.0",
    "colorama>=0.3.9",
    "configobj>=5.0.6",
    "gitpython>=2.1.8",
    "gitdb2>=2.0.6",  # See https://github.com/iterative/dvc/issues/1880
    "setuptools>=34.0.0",
    "nanotime>=0.5.2",
    "pyasn1>=0.4.1",
    "schema>=0.6.7",
    "jsonpath-ng>=1.4.3",
    "requests>=2.22.0",
    "grandalf==0.6",
    "asciimatics>=1.10.0",
    "distro>=1.3.0",
    "appdirs>=1.4.3",
    "treelib>=1.5.5",
    "inflect>=2.1.0",
    "humanize>=0.5.1",
    "ruamel.yaml>=0.16.1",
    "funcy>=1.12",
    "pathspec>=0.6.0",
    "shortuuid>=0.5.0",
    "tqdm>=4.35.0,<5",
    "packaging>=19.0",
    "win-unicode-console>=0.5; sys_platform == 'win32'",
]

if sys.version_info[0] == 2:
    install_requires.append("networkx>=2.1,<2.3")
else:
    install_requires.append("networkx>=2.1,<2.4")

# Extra dependencies for remote integrations

gs = ["google-cloud-storage==1.19.0"]
s3 = ["boto3==1.9.115"]
azure = ["azure-storage-blob==2.1.0"]
oss = ["oss2==2.6.1"]
ssh = ["paramiko>=2.5.0"]
# gssapi should not be included in all_remotes, because it doesn't have wheels
# for linux and mac, so it will fail to compile if user doesn't have all the
# requirements, including kerberos itself. Once all the wheels are available,
# we can start shipping it by default.
ssh_gssapi = ["paramiko[gssapi]>=2.5.0"]
hdfs = ["pyarrow==0.14.0"]
all_remotes = gs + s3 + azure + ssh + oss

if os.name != "nt" or sys.version_info[0] != 2:
    # NOTE: there are no pyarrow wheels for python2 on windows
    all_remotes += hdfs

# Extra dependecies to run tests
tests_requirements = [
    "PyInstaller==3.5",
    "wheel>=0.31.1",
    "pydot>=1.2.4",
    # Test requirements:
    "pytest>=4.6.0",
    "pytest-timeout>=1.3.3",
    "pytest-cov>=2.6.1",
    "pytest-xdist>=1.26.1",
    "pytest-mock>=1.10.4",
    "flaky>=3.5.3",
    "mock>=3.0.0",
    "xmltodict>=0.11.0",
    "awscli>=1.16.125",
    "google-compute-engine==2.8.13",
    "pywin32; sys_platform == 'win32'",
    "Pygments",  # required by collective.checkdocs,
    "collective.checkdocs",
    "flake8",
    "psutil",
    "flake8-docstrings",
    "pydocstyle<4.0",
    "jaraco.windows==3.9.2",
    "mock-ssh-server>=0.6.0",
    "moto>=1.3.14.dev55",
    "rangehttpserver==1.2.0",
]

if (sys.version_info) >= (3, 6):
    tests_requirements.append("black==19.3b0")

setup(
    name="dvc",
    version=version,
    description="Git for data scientists - manage your code and data together",
    long_description=open("README.rst", "r").read(),
    author="Dmitry Petrov",
    author_email="dmitry@dataversioncontrol.com",
    download_url="https://github.com/iterative/dvc",
    license="Apache License 2.0",
    install_requires=install_requires,
    extras_require={
        "all": all_remotes,
        "gs": gs,
        "s3": s3,
        "azure": azure,
        "oss": oss,
        "ssh": ssh,
        "ssh_gssapi": ssh_gssapi,
        "hdfs": hdfs,
        # NOTE: https://github.com/inveniosoftware/troubleshooting/issues/1
        ":python_version=='2.7'": [
            "futures",
            "pathlib2",
            "zc.lockfile>=1.2.1",
        ],
        ":python_version>='3.0'": ["flufl.lock>=3.2"],
        "tests": tests_requirements,
    },
    keywords="data science, data version control, machine learning",
    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
    ],
    packages=find_packages(exclude=["tests"]),
    include_package_data=True,
    url="http://dvc.org",
    entry_points={"console_scripts": ["dvc = dvc.main:main"]},
    cmdclass={"build_py": build_py},
    zip_safe=False,
)
<|endoftext|>


<commit_before>from __future__ import print_function
from setuptools import setup

setup(
    name='nominatim',
    version='0.1',
    author='Damian Braun',
    author_email='brunek5252@gmail.com',
    url='https://github.com/damianbraun/nominatim',
    description='OSM Nominatim API module',
    packages=['nominatim'],
    platforms='any',
    classifiers=[
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4'
        ]
    )
<commit_msg>update setup.py classifiers<commit_after>from __future__ import print_function
from setuptools import setup

setup(
    name='nominatim',
    version='0.1',
    author='Damian Braun',
    author_email='brunek5252@gmail.com',
    url='https://github.com/damianbraun/nominatim',
    description='OSM Nominatim API module',
    packages=['nominatim'],
    platforms='any',
    classifiers=[
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'License :: OSI Approved :: Apache Software License',
        'Natural Language :: English',
        'Topic :: Software Development :: Libraries :: Python Modules'
        ]
    )
<|endoftext|>


<commit_before>import distribute_setup
distribute_setup.use_setuptools()

from setuptools import setup, Extension, find_packages

classifiers = ['Development Status :: 3 - Alpha',
               'Operating System :: POSIX :: Linux',
               'License :: OSI Approved :: MIT License',
               'Intended Audience :: Developers',
               'Programming Language :: Python :: 2.6',
               'Programming Language :: Python :: 2.7',
               'Programming Language :: Python :: 3',
               'Topic :: Software Development',
               'Topic :: Home Automation',
               'Topic :: System :: Hardware']

setup(name             = 'Beaglebone PRU ADC',
      version          = '0.0.1',
      author           = 'Mike Kroutikov',
      author_email     = 'pgmmpk@gmail.com',
      description      = 'Fast analog sensor capture for Beaglebone Black',
      long_description = open('README.md').read(),
      license          = 'MIT',
      keywords         = 'BeagleBone PRU ADC',
      url              = 'https://github.com/pgmmpk/beaglebone_pru_adc/',
      classifiers      = classifiers,
      packages         = find_packages(),
      py_modules       = ['beaglebone_pru_adc'],
      ext_modules      = [
          Extension('beaglebone_pru_adc._pru_adc',
              ['src/pru_adc.c', 'prussdrv/prussdrv.c'],
              include_dirs = ['prussdrv', 'src']
          )
      ]
)<commit_msg>fixed setup to copy firmware<commit_after>import distribute_setup
distribute_setup.use_setuptools()

from setuptools import setup, Extension, find_packages

classifiers = ['Development Status :: 3 - Alpha',
               'Operating System :: POSIX :: Linux',
               'License :: OSI Approved :: MIT License',
               'Intended Audience :: Developers',
               'Programming Language :: Python :: 2.6',
               'Programming Language :: Python :: 2.7',
               'Programming Language :: Python :: 3',
               'Topic :: Software Development',
               'Topic :: Home Automation',
               'Topic :: System :: Hardware']

setup(name             = 'beaglebone_pru_adc',
      version          = '0.0.1',
      author           = 'Mike Kroutikov',
      author_email     = 'pgmmpk@gmail.com',
      description      = 'Fast analog sensor capture for Beaglebone Black',
      long_description = open('README.md').read(),
      license          = 'MIT',
      keywords         = 'BeagleBone PRU ADC',
      url              = 'https://github.com/pgmmpk/beaglebone_pru_adc/',
      classifiers      = classifiers,
      packages         = find_packages(),
      py_modules       = ['beaglebone_pru_adc'],
      package_data     = {'beaglebone_pru_adc': ['firmware/*.bin']},
      ext_modules      = [
          Extension('beaglebone_pru_adc._pru_adc',
              ['src/pru_adc.c', 'prussdrv/prussdrv.c'],
              include_dirs = ['prussdrv', 'src']
          )
      ]
)
<|endoftext|>


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

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

setup(
    name = 'flask-whooshee',
    version = '0.0.9',
    description = 'Flask - SQLAlchemy - Whoosh integration',
    long_description = 'Flask - SQLAlchemy - Whoosh integration that allows to create and search custom indexes.',
    keywords = 'flask, sqlalchemy, whoosh',
    author = 'Bohuslav "Slavek" Kabrda',
    author_email = 'bkabrda@redhat.com',
    url = 'https://github.com/bkabrda/flask-whooshee',
    license = 'GPLv2+',
    py_modules = ['flask_whooshee', ],
    install_requires = open('requirements.txt').read().splitlines(),
    setup_requires = [],
    classifiers = ['Development Status :: 3 - Alpha',
                   'Environment :: Web Environment',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
                   'Topic :: Software Development :: Libraries :: Python Modules'
                  ]
)
<commit_msg>Release version 0.1.0, call this a beta<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

setup(
    name = 'flask-whooshee',
    version = '0.1.0',
    description = 'Flask - SQLAlchemy - Whoosh integration',
    long_description = 'Flask - SQLAlchemy - Whoosh integration that allows to create and search custom indexes.',
    keywords = 'flask, sqlalchemy, whoosh',
    author = 'Bohuslav "Slavek" Kabrda',
    author_email = 'bkabrda@redhat.com',
    url = 'https://github.com/bkabrda/flask-whooshee',
    license = 'GPLv2+',
    py_modules = ['flask_whooshee', ],
    install_requires = open('requirements.txt').read().splitlines(),
    setup_requires = [],
    classifiers = ['Development Status :: 4 - Beta',
                   'Environment :: Web Environment',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
                   'Topic :: Software Development :: Libraries :: Python Modules'
                  ]
)
<|endoftext|>


<commit_before>import os
from distutils.core import setup

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

README = read('README.md')

setup(
    name = "django-phased",
    version = "0.2.0",
    url = 'http://github.com/codysoyland/django-phased',
    license = 'BSD',
    description = "Simple two-phase template rendering application useful for caching of authenticated requests.",
    long_description = README,
    author = 'Cody Soyland',
    author_email = 'codysoyland@gmail.com',
    packages = [
        'phased',
        'phased.templatetags',
    ],
    classifiers = [
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP',
    ]
)
<commit_msg>Bumped version to 0.3.0.<commit_after>import os
from distutils.core import setup

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

README = read('README.md')

setup(
    name = "django-phased",
    version = "0.3.0",
    url = 'http://github.com/codysoyland/django-phased',
    license = 'BSD',
    description = "Simple two-phase template rendering application useful for caching of authenticated requests.",
    long_description = README,
    author = 'Cody Soyland',
    author_email = 'codysoyland@gmail.com',
    packages = [
        'phased',
        'phased.templatetags',
    ],
    classifiers = [
        'Development Status :: 4 - Beta',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP',
    ]
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='pipestash',
    version='0.1.1',
    author='GorillaNation',
    author_email='noc@evolvemediallc.com',
    packages=['pipestash', 'pipestash.output'],
    scripts=['bin/pipestash'],
    url='https://github.com/GorillaNation/pipestash',
    license='LICENSE.txt',
    description="read from stdin, write events to logstash's redis input",
    long_description=open('README.markdown').read(),
    install_requires=[
        "python-redis",
    ],
)
<commit_msg>Bumped version number from 0.1.1 to 0.1.2<commit_after>from distutils.core import setup

setup(
    name='pipestash',
    version='0.1.2',
    author='GorillaNation',
    author_email='noc@evolvemediallc.com',
    packages=['pipestash', 'pipestash.output'],
    scripts=['bin/pipestash'],
    url='https://github.com/GorillaNation/pipestash',
    license='LICENSE.txt',
    description="read from stdin, write events to logstash's redis input",
    long_description=open('README.markdown').read(),
    install_requires=[
        "python-redis",
    ],
)
<|endoftext|>


<commit_before>import re
from setuptools import setup, find_packages

FRAMEWORKS = [
    "Flask>=0.12.2",
    "Django>=1.11.16",
    "bottle>=0.12.13",
    "tornado>=4.5.2",
    "pyramid>=1.9.1",
    "webapp2>=3.0.0b1",
    "falcon>=2.0.0",
    "aiohttp>=3.0.0",
]
EXTRAS_REQUIRE = {
    "frameworks": FRAMEWORKS,
    "tests": [
        "pytest",
        'mock; python_version == "3.5"',
        "webtest==2.0.34",
        "webtest-aiohttp==2.0.0",
        "pytest-aiohttp>=0.3.0",
    ]
    + FRAMEWORKS,
    "lint": [
        "mypy==0.761",
        "flake8==3.7.9",
        "flake8-bugbear==20.1.4",
        "pre-commit>=1.20,<3.0",
    ],
    "docs": ["Sphinx==2.4.3", "sphinx-issues==1.2.0", "sphinx-typlog-theme==0.8.0"]
    + FRAMEWORKS,
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]

def find_version(fname):
    """Attempts to find the version number in the file names fname.
    Raises RuntimeError if not found.
    """
    version = ""
    with open(fname, "r") as fp:
        reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
        for line in fp:
            m = reg.match(line)
            if m:
                version = m.group(1)
                break
    if not version:
        raise RuntimeError("Cannot find version information")
    return version

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

setup(
    name="webargs",
    version=find_version("src/webargs/__init__.py"),
    description=(
        "Declarative parsing and validation of HTTP request objects, "
        "with built-in support for popular web frameworks, including "
        "Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp."
    ),
    long_description=read("README.rst"),
    author="Steven Loria",
    author_email="sloria1@gmail.com",
    url="https://github.com/marshmallow-code/webargs",
    packages=find_packages("src"),
    package_dir={"": "src"},
    install_requires=["marshmallow>=2.15.2"],
    extras_require=EXTRAS_REQUIRE,
    license="MIT",
    zip_safe=False,
    keywords=(
        "webargs",
        "http",
        "flask",
        "django",
        "bottle",
        "tornado",
        "aiohttp",
        "webapp2",
        "request",
        "arguments",
        "validation",
        "parameters",
        "rest",
        "api",
        "marshmallow",
    ),
    python_requires=">=3.5",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3 :: Only",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],
    test_suite="tests",
    project_urls={
        "Changelog": "https://webargs.readthedocs.io/en/latest/changelog.html",
        "Issues": "https://github.com/marshmallow-code/webargs/issues",
        "Funding": "https://opencollective.com/marshmallow",
        "Tidelift": "https://tidelift.com/subscription/pkg/pypi-webargs?utm_source=pypi-marshmallow&utm_medium=pypi",  # noqa
    },
)
<commit_msg>Bump sphinx from 2.4.3 to 2.4.4<commit_after>import re
from setuptools import setup, find_packages

FRAMEWORKS = [
    "Flask>=0.12.2",
    "Django>=1.11.16",
    "bottle>=0.12.13",
    "tornado>=4.5.2",
    "pyramid>=1.9.1",
    "webapp2>=3.0.0b1",
    "falcon>=2.0.0",
    "aiohttp>=3.0.0",
]
EXTRAS_REQUIRE = {
    "frameworks": FRAMEWORKS,
    "tests": [
        "pytest",
        'mock; python_version == "3.5"',
        "webtest==2.0.34",
        "webtest-aiohttp==2.0.0",
        "pytest-aiohttp>=0.3.0",
    ]
    + FRAMEWORKS,
    "lint": [
        "mypy==0.761",
        "flake8==3.7.9",
        "flake8-bugbear==20.1.4",
        "pre-commit>=1.20,<3.0",
    ],
    "docs": ["Sphinx==2.4.4", "sphinx-issues==1.2.0", "sphinx-typlog-theme==0.8.0"]
    + FRAMEWORKS,
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]

def find_version(fname):
    """Attempts to find the version number in the file names fname.
    Raises RuntimeError if not found.
    """
    version = ""
    with open(fname, "r") as fp:
        reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
        for line in fp:
            m = reg.match(line)
            if m:
                version = m.group(1)
                break
    if not version:
        raise RuntimeError("Cannot find version information")
    return version

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

setup(
    name="webargs",
    version=find_version("src/webargs/__init__.py"),
    description=(
        "Declarative parsing and validation of HTTP request objects, "
        "with built-in support for popular web frameworks, including "
        "Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp."
    ),
    long_description=read("README.rst"),
    author="Steven Loria",
    author_email="sloria1@gmail.com",
    url="https://github.com/marshmallow-code/webargs",
    packages=find_packages("src"),
    package_dir={"": "src"},
    install_requires=["marshmallow>=2.15.2"],
    extras_require=EXTRAS_REQUIRE,
    license="MIT",
    zip_safe=False,
    keywords=(
        "webargs",
        "http",
        "flask",
        "django",
        "bottle",
        "tornado",
        "aiohttp",
        "webapp2",
        "request",
        "arguments",
        "validation",
        "parameters",
        "rest",
        "api",
        "marshmallow",
    ),
    python_requires=">=3.5",
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3 :: Only",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
    ],
    test_suite="tests",
    project_urls={
        "Changelog": "https://webargs.readthedocs.io/en/latest/changelog.html",
        "Issues": "https://github.com/marshmallow-code/webargs/issues",
        "Funding": "https://opencollective.com/marshmallow",
        "Tidelift": "https://tidelift.com/subscription/pkg/pypi-webargs?utm_source=pypi-marshmallow&utm_medium=pypi",  # noqa
    },
)
<|endoftext|>


<commit_before>import sys
from glob import glob
from os import environ
from os.path import join
from typing import List, cast

from pybind11.setup_helpers import ParallelCompile, Pybind11Extension, build_ext
from setuptools import Extension, setup

extra_includes = []
extra_library_dirs = []
qpdf_source_tree = environ.get('QPDF_SOURCE_TREE', None)
if qpdf_source_tree:
    # Point this to qpdf source tree built with shared libaries
    extra_includes.append(join(qpdf_source_tree, 'include'))
    extra_library_dirs.append(join(qpdf_source_tree, 'libqpdf/build/.libs'))
if 'bsd' in sys.platform:
    extra_includes.append('/usr/local/include')

try:
    from setuptools_scm import get_version

    __version__ = get_version()
except ImportError:
    __version__ = '0.0.1'

ext_modules = [
    Pybind11Extension(
        'pikepdf._qpdf',
        sorted(glob('src/qpdf/*.cpp')),
        depends=sorted(glob('src/qpdf/*.h')),
        include_dirs=[
            # Path to pybind11 headers
            *extra_includes,
        ],
        library_dirs=[*extra_library_dirs],
        libraries=['qpdf'],
        cxx_std=17,
    )
]

if sys.platform == 'cygwin':
    # On cygwin, use gnu++17 instead of c++17
    eca = ext_modules[0].extra_compile_args
    eca[eca.index('-std=c++17')] = '-std=gnu++17'

# Debug build
# ext_modules[0].extra_compile_args.append('-g3')

if __name__ == '__main__':
    if ParallelCompile:
        ParallelCompile().install()
    setup(
        setup_requires=[  # can be removed whenever we can drop pip 9 support
            'setuptools_scm',  # so that version will work
            'setuptools_scm_git_archive',  # enable version from github tarballs
        ],
        ext_modules=cast(List[Extension], ext_modules),
        use_scm_version=True,
        cmdclass={"build_ext": build_ext},
    )
<commit_msg>setup: use rpath linking for QPDF_SOURCE_TREE<commit_after>import sys
from glob import glob
from itertools import chain
from os import environ
from os.path import exists, join
from typing import List, cast

from pybind11.setup_helpers import ParallelCompile, Pybind11Extension, build_ext
from setuptools import Extension, setup

extra_includes = []
extra_library_dirs = []
qpdf_source_tree = environ.get('QPDF_SOURCE_TREE', '')
if qpdf_source_tree:
    # Point this to qpdf source tree built with shared libaries
    extra_includes.append(join(qpdf_source_tree, 'include'))
    extra_library_dirs.append(join(qpdf_source_tree, 'libqpdf/build/.libs'))
if 'bsd' in sys.platform:
    extra_includes.append('/usr/local/include')

try:
    from setuptools_scm import get_version

    __version__ = get_version()
except ImportError:
    __version__ = '0.0.1'

for extra_path in chain([qpdf_source_tree], extra_includes, extra_library_dirs):
    if extra_path and not exists(extra_path):
        raise FileNotFoundError(extra_path)

# Use cast because mypy has trouble seeing Pybind11Extension is a subclass of
# Extension.
extmodule: Extension = cast(
    Extension,
    Pybind11Extension(
        'pikepdf._qpdf',
        sorted(glob('src/qpdf/*.cpp')),
        depends=sorted(glob('src/qpdf/*.h')),
        include_dirs=[
            # Path to pybind11 headers
            *extra_includes,
        ],
        library_dirs=[*extra_library_dirs],
        libraries=['qpdf'],
        cxx_std=17,
    ),
)

if sys.platform == 'cygwin':
    # On cygwin, use gnu++17 instead of c++17
    eca = extmodule.extra_compile_args
    eca[eca.index('-std=c++17')] = '-std=gnu++17'

# Debug build
# module[0].extra_compile_args.append('-g3')

if qpdf_source_tree:
    for lib in extra_library_dirs:
        extmodule.extra_link_args.append(  # type: ignore
            f'-Wl,-rpath={lib},--enable-new-dtags'
        )

if __name__ == '__main__':
    with ParallelCompile("PIKEPDF_NUM_BUILD_JOBS"):  # optional envvar
        setup(
            setup_requires=[  # can be removed whenever we can drop pip 9 support
                'setuptools_scm',  # so that version will work
                'setuptools_scm_git_archive',  # enable version from github tarballs
            ],
            ext_modules=[extmodule],
            use_scm_version=True,
            cmdclass={"build_ext": build_ext},  # type: ignore
        )
<|endoftext|>


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

from setuptools import setup
import os

def fopen(filename):
    return open(os.path.join(os.path.dirname(__file__), filename))

def read(filename):
    return fopen(filename).read()

setup(
    name='dockerpty',
    version='0.0.3',
    description='Python library to use the pseudo-tty of a docker container',
    long_description=read('README.md'),
    url='https://github.com/d11wtq/dockerpty',
    author='Chris Corbyn',
    author_email='chris@w3style.co.uk',
    license='Apache 2.0',
    keywords='docker, tty, pty, terminal',
    packages=['dockerpty'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Topic :: Terminals',
        'Topic :: Terminals :: Terminal Emulators/X Terminals',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<commit_msg>Version bump 0.0.5<commit_after># dockerpty.
#
# Copyright 2014 Chris Corbyn <chris@w3style.co.uk>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from setuptools import setup
import os

def fopen(filename):
    return open(os.path.join(os.path.dirname(__file__), filename))

def read(filename):
    return fopen(filename).read()

setup(
    name='dockerpty',
    version='0.0.5',
    description='Python library to use the pseudo-tty of a docker container',
    long_description=read('README.md'),
    url='https://github.com/d11wtq/dockerpty',
    author='Chris Corbyn',
    author_email='chris@w3style.co.uk',
    license='Apache 2.0',
    keywords='docker, tty, pty, terminal',
    packages=['dockerpty'],
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Topic :: Terminals',
        'Topic :: Terminals :: Terminal Emulators/X Terminals',
        'Topic :: Software Development :: Libraries',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)
<|endoftext|>


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

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

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

setup(
    name='ckanserviceprovider',

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

    description="A library for making web services that make functions available as synchronous or asynchronous jobs",
    long_description=long_description,

    # The project's main homepage.
    url='https://github.com/ckan/ckan-service-provider',

    # Choose your license
    license='AGPL',

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

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',

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

    # What does your project relate to?
    keywords='ckan',

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

    # List run-time dependencies here.  These will be installed by pip when your
    # project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
    install_requires=['APScheduler==2.1.2', 'Flask==0.9', 'SQLAlchemy==0.7.8', 'requests==2.5.0', 'flask-admin', 'flask-login==0.3.0'],

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

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

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

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

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

setup(
    name='ckanserviceprovider',

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

    description="A library for making web services that make functions available as synchronous or asynchronous jobs",
    long_description=long_description,

    # The project's main homepage.
    url='https://github.com/ckan/ckan-service-provider',

    # Choose your license
    license='AGPL',

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

        # Pick your license as you wish (should match "license" above)
        'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',

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

    # What does your project relate to?
    keywords='ckan',

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

    # List run-time dependencies here.  These will be installed by pip when your
    # project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
    install_requires=['APScheduler==2.1.2', 'Flask==0.9', 'SQLAlchemy==0.7.8', 'requests==2.5.0', 'flask-admin', 'flask-login==0.3.0'],

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

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

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


<commit_before>from distutils.core import setup

setup(
    name="attrdict",
    version="0.2.1",
    author="Brendan Curran-Johnson",
    author_email="brendan@bcjbcj.ca",
    packages=["attrdict"],
    url="https://github.com/bcj/AttrDict",
    license="LICENSE.txt",
    description="A dict with attribute-style access",
    long_description=open('README.rst').read(),
)
<commit_msg>fixed license in setup.py<commit_after>from distutils.core import setup

setup(
    name="attrdict",
    version="0.2.1",
    author="Brendan Curran-Johnson",
    author_email="brendan@bcjbcj.ca",
    packages=["attrdict"],
    url="https://github.com/bcj/AttrDict",
    license="MIT License",
    description="A dict with attribute-style access",
    long_description=open('README.rst').read(),
)
<|endoftext|>


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

from setuptools import setup, find_packages
import subprocess
import singer.release

setup(name="singer-python",
      version="1.0.0",
      description="Singer.io utility library",
      author="Stitch",
      classifiers=['Programming Language :: Python :: 3 :: Only'],
      url="http://singer.io",
      packages=find_packages(),
      package_data = {
          'singer': [
              'logging.conf'
              ]
          },
      cmdclass={'release': singer.release.Release}
)
<commit_msg>1.1.0<commit_after>#!/usr/bin/env python

from setuptools import setup, find_packages
import subprocess
import singer.release

setup(name="singer-python",
      version="1.1.0",
      description="Singer.io utility library",
      author="Stitch",
      classifiers=['Programming Language :: Python :: 3 :: Only'],
      url="http://singer.io",
      packages=find_packages(),
      package_data = {
          'singer': [
              'logging.conf'
              ]
          },
      cmdclass={'release': singer.release.Release}
)
<|endoftext|>