<commit_before># This file is part of fedmsg.
# Copyright (C) 2012 Red Hat, Inc.
#
# fedmsg 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.
#
# fedmsg 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 fedmsg; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Authors:  Ralph Bean <rbean@redhat.com>
#

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

import sys

f = open('README.rst')
long_description = f.read().strip()
long_description = long_description.split('split here', 1)[1]
f.close()

# Ridiculous as it may seem, we need to import multiprocessing and
# logging here in order to get tests to pass smoothly on python 2.7.
try:
    import multiprocessing
    import logging
except Exception:
    pass

install_requires = [
    'pyzmq',
    'fabulous',
    'kitchen',
    'moksha>=0.8.8',
    'requests',
    #'daemon',

    # These are "optional" for now to make installation from pypi easier.
    #'M2Crypto',
    #'m2ext',
]

if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
    install_requires.extend([
        'argparse',
        'ordereddict',
    ])

setup(
    name='fedmsg',
    version='0.3.6',
    description="Fedora Messaging Client API",
    long_description=long_description,
    author='Ralph Bean',
    author_email='rbean@redhat.com',
    url='http://github.com/ralphbean/fedmsg/',
    license='LGPLv2+',
    install_requires=install_requires,
    tests_require=[
        'nose',
    ],
    test_suite='nose.collector',
    packages=[
        'fedmsg',
        'fedmsg.commands',
        'fedmsg.consumers',
        'fedmsg.text',
        'fedmsg.tests',
    ],
    include_package_data=True,
    zip_safe=False,
    entry_points={
        'console_scripts': [
            "fedmsg-logger=fedmsg.commands.logger:logger",
            "fedmsg-tail=fedmsg.commands.tail:tail",
            "fedmsg-hub=fedmsg.commands.hub:hub",
            "fedmsg-relay=fedmsg.commands.relay:relay",
            "fedmsg-gateway=fedmsg.commands.gateway:gateway",
            "fedmsg-config=fedmsg.commands.config:config",
            "fedmsg-irc=fedmsg.commands.ircbot:ircbot",
        ],
        'moksha.consumer': [
            "fedmsg-dummy=fedmsg.consumers.dummy:DummyConsumer",
            "fedmsg-relay=fedmsg.consumers.relay:RelayConsumer",
            "fedmsg-gateway=fedmsg.consumers.gateway:GatewayConsumer",
            "fedmsg-ircbot=fedmsg.consumers.ircbot:IRCBotConsumer",
        ],
        'moksha.producer': [
        ],
    }
)
<commit_msg>Version bump, 0.3.7.<commit_after># This file is part of fedmsg.
# Copyright (C) 2012 Red Hat, Inc.
#
# fedmsg 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.
#
# fedmsg 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 fedmsg; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Authors:  Ralph Bean <rbean@redhat.com>
#

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

import sys

f = open('README.rst')
long_description = f.read().strip()
long_description = long_description.split('split here', 1)[1]
f.close()

# Ridiculous as it may seem, we need to import multiprocessing and
# logging here in order to get tests to pass smoothly on python 2.7.
try:
    import multiprocessing
    import logging
except Exception:
    pass

install_requires = [
    'pyzmq',
    'fabulous',
    'kitchen',
    'moksha>=0.8.8',
    'requests',
    #'daemon',

    # These are "optional" for now to make installation from pypi easier.
    #'M2Crypto',
    #'m2ext',
]

if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
    install_requires.extend([
        'argparse',
        'ordereddict',
    ])

setup(
    name='fedmsg',
    version='0.3.7',
    description="Fedora Messaging Client API",
    long_description=long_description,
    author='Ralph Bean',
    author_email='rbean@redhat.com',
    url='http://github.com/ralphbean/fedmsg/',
    license='LGPLv2+',
    install_requires=install_requires,
    tests_require=[
        'nose',
    ],
    test_suite='nose.collector',
    packages=[
        'fedmsg',
        'fedmsg.commands',
        'fedmsg.consumers',
        'fedmsg.text',
        'fedmsg.tests',
    ],
    include_package_data=True,
    zip_safe=False,
    entry_points={
        'console_scripts': [
            "fedmsg-logger=fedmsg.commands.logger:logger",
            "fedmsg-tail=fedmsg.commands.tail:tail",
            "fedmsg-hub=fedmsg.commands.hub:hub",
            "fedmsg-relay=fedmsg.commands.relay:relay",
            "fedmsg-gateway=fedmsg.commands.gateway:gateway",
            "fedmsg-config=fedmsg.commands.config:config",
            "fedmsg-irc=fedmsg.commands.ircbot:ircbot",
        ],
        'moksha.consumer': [
            "fedmsg-dummy=fedmsg.consumers.dummy:DummyConsumer",
            "fedmsg-relay=fedmsg.consumers.relay:RelayConsumer",
            "fedmsg-gateway=fedmsg.consumers.gateway:GatewayConsumer",
            "fedmsg-ircbot=fedmsg.consumers.ircbot:IRCBotConsumer",
        ],
        'moksha.producer': [
        ],
    }
)
<|endoftext|>


<commit_before>'''
cloudelements: SDK for Cloud Elements

Note that "python setup.py test" invokes pytest on the package. With appropriately
configured setup.cfg, this will check both xxx_test modules and docstrings.

Copyright 2015, LeadGenius.
Licensed under MIT.
'''
import sys
from setuptools import setup, find_packages
import os

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.markdown')).read()
CHANGES = open(os.path.join(here, 'CHANGELOG.txt')).read()
requires = open(os.path.join(here, 'requirements.txt')).read().splitlines()

version = "0.1.4"

setup(name="cloudelements",
      version=version,
      description="SDK for Cloud Elements",
      long_description=README + '\n\n\n' + CHANGES,
      classifiers=[
        'Programming Language :: Python'
      ],
      keywords="", # Separate with spaces
      author="LeadGenius",
      author_email="developer@leadgenius.com",
      url="http://leadgenius.github.com/cloudelements",
      license="MIT",
      packages=find_packages(exclude=['examples', 'tests']),
      include_package_data=True,
      zip_safe=False,
      tests_require=['pytest'],
      setup_requires=['setuptools_git'],
      install_requires=requires,
      entry_points={}
)
<commit_msg>Update version<commit_after>'''
cloudelements: SDK for Cloud Elements

Note that "python setup.py test" invokes pytest on the package. With appropriately
configured setup.cfg, this will check both xxx_test modules and docstrings.

Copyright 2015, LeadGenius.
Licensed under MIT.
'''
import sys
from setuptools import setup, find_packages
import os

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.markdown')).read()
CHANGES = open(os.path.join(here, 'CHANGELOG.txt')).read()
requires = open(os.path.join(here, 'requirements.txt')).read().splitlines()

version = "0.2"

setup(name="cloudelements",
      version=version,
      description="SDK for Cloud Elements",
      long_description=README + '\n\n\n' + CHANGES,
      classifiers=[
        'Programming Language :: Python'
      ],
      keywords="", # Separate with spaces
      author="LeadGenius",
      author_email="developer@leadgenius.com",
      url="http://leadgenius.github.com/cloudelements",
      license="MIT",
      packages=find_packages(exclude=['examples', 'tests']),
      include_package_data=True,
      zip_safe=False,
      tests_require=['pytest'],
      setup_requires=['setuptools_git'],
      install_requires=requires,
      entry_points={}
)
<|endoftext|>


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

from distutils import sysconfig
from setuptools import setup, Extension
import os
import subprocess
import sys
import shutil
import re

cflags = sysconfig.get_config_var('CFLAGS')
sysconfig._config_vars['CFLAGS'] = re.sub(' +', ' ', cflags.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
opt = sysconfig.get_config_var('OPT')
sysconfig._config_vars['OPT'] = re.sub(' +', ' ', opt.replace('-g', '').replace('-Os', ''))
ldshared = sysconfig.get_config_var('LDSHARED')
sysconfig._config_vars['LDSHARED'] = re.sub(' +', ' ', ldshared.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
ldflags = sysconfig.get_config_var('LDFLAGS')
sysconfig._config_vars['LDFLAGS'] = re.sub(' +', ' ', ldflags.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
pycflags = sysconfig.get_config_var('PY_CFLAGS')
sysconfig._config_vars['PY_CFLAGS'] = re.sub(' +', ' ', pycflags.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
sysconfig._config_vars['CFLAGSFORSHARED'] = ''
os.environ['ARCHFLAGS'] = ''

if os.environ.get("MASON_BUILD", "false") == "true":
    # run bootstrap.sh to get mason builds
    subprocess.call(['./bootstrap.sh'])
    mapnik_config = 'mason_packages/.link/bin/mapnik-config'
    mason_build = True
else:
    mapnik_config = 'mapnik-config'
    mason_build = False

boost_python_lib = os.environ.get("BOOST_PYTHON_LIB", 'boost_python')

try:
    linkflags = subprocess.check_output([mapnik_config, '--libs']).rstrip('\n').split(' ')
    lib_path = linkflags[0][2:]
    linkflags.extend(subprocess.check_output([mapnik_config, '--ldflags']).rstrip('\n').split(' '))
except:
    raise Exception("Failed to find proper linking flags from mapnik config");

## Dynamically make the mapnik/paths.py file if it doesn't exist.
if os.path.isfile('mapnik/paths.py'):
    create_paths = False
else:
    create_paths = True
    f_paths = open('mapnik/paths.py', 'w')
    f_paths.write('import os\n')
    f_paths.write('\n')

if mason_build:
    lib_files = os.listdir(lib_path)
    lib_files = [os.path.join(lib_path, f) for f in lib_files if f.startswith('libmapnik.')]
    for f in lib_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik', os.path.basename(f)))
        except shutil.Error:
            pass
    input_plugin_path = subprocess.check_output([mapnik_config, '--input-plugins']).rstrip('\n')
    input_plugin_files = os.listdir(input_plugin_path)
    input_plugin_files = [os.path.join(input_plugin_path, f) for f in input_plugin_files]
    if not os.path.exists(os.path.join('mapnik','plugins','input')):
        os.makedirs(os.path.join('mapnik','plugins', 'input'))
    for f in input_plugin_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik', 'plugins', 'input', os.path.basename(f)))
        except shutil.Error:
            pass
    font_path = subprocess.check_output([mapnik_config, '--fonts']).rstrip('\n')
    font_files = os.listdir(font_path)
    font_files = [os.path.join(font_path, f) for f in font_files]
    if not os.path.exists(os.path.join('mapnik','plugins','fonts')):
        os.makedirs(os.path.join('mapnik','plugins','fonts'))
    for f in font_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','fonts', os.path.basename(f)))
        except shutil.Error:
            pass
    if create_paths:
        f_paths.write('mapniklibpath = os.path.dirname(os.path.realpath(__file__))\n')
elif create_paths:
    f_paths.write("mapniklibpath = '"+lib_path+"/mapnik/plugins'\n")
    f_paths.write('mapniklibpath = os.path.normpath(mapniklibpath)\n')

if create_paths:
    f_paths.write("inputpluginspath = os.path.join(mapniklibpath,'input')\n")
    f_paths.write("fontscollectionpath = os.path.join(mapniklibpath,'fonts')\n")
    f_paths.write("__all__ = [mapniklibpath,inputpluginspath,fontscollectionpath]\n")
    f_paths.close()

if not mason_build:
    icu_path = subprocess.check_output([mapnik_config, '--icu-data']).rstrip('\n')
else:
    icu_path = 'mason_packages/.link/share/icu/'
if icu_path:
    icu_files = os.listdir(icu_path)
    icu_files = [os.path.join(icu_path, f) for f in icu_files]
    if not os.path.exists(os.path.join('mapnik','plugins','icu')):
        os.makedirs(os.path.join('mapnik','plugins','icu'))
    for f in icu_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','icu', os.path.basename(f)))
        except shutil.Error:
            pass

if not mason_build:
    gdal_path = subprocess.check_output([mapnik_config, '--gdal-data']).rstrip('\n')
else:
    gdal_path = 'mason_packages/.link/share/gdal/'
    if os.path.exists('mason_packages/.link/share/gdal/gdal/'):
        gdal_path = 'mason_packages/.link/share/gdal/gdal/'
if gdal_path:
    gdal_files = os.listdir(gdal_path)
    gdal_files = [os.path.join(gdal_path, f) for f in gdal_files]
    if not os.path.exists(os.path.join('mapnik','plugins','gdal')):
        os.makedirs(os.path.join('mapnik','plugins','gdal'))
    for f in gdal_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','gdal', os.path.basename(f)))
        except shutil.Error:
            pass

if not mason_build:
    proj_path = subprocess.check_output([mapnik_config, '--proj-lib']).rstrip('\n')
else:
    proj_path = 'mason_packages/.link/share/proj/'
    if os.path.exists('mason_packages/.link/share/proj/proj/'):
        proj_path = 'mason_packages/.link/share/proj/proj/'
if proj_path:
    proj_files = os.listdir(proj_path)
    proj_files = [os.path.join(proj_path, f) for f in proj_files]
    if not os.path.exists(os.path.join('mapnik','plugins','proj')):
        os.makedirs(os.path.join('mapnik','plugins','proj'))
    for f in proj_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','proj', os.path.basename(f)))
        except shutil.Error:
            pass

extra_comp_args = subprocess.check_output([mapnik_config, '--cflags']).rstrip('\n').split(' ')

if sys.platform == 'darwin':
    extra_comp_args.append('-mmacosx-version-min=10.8')
    linkflags.append('-mmacosx-version-min=10.8')

if os.environ.get("CC",False) == False:
    os.environ["CC"] = subprocess.check_output([mapnik_config, '--cxx']).rstrip('\n')
if os.environ.get("CXX",False) == False:
    os.environ["CXX"] = subprocess.check_output([mapnik_config, '--cxx']).rstrip('\n')

setup(
    name = "mapnik",
    version = "0.1",
    packages = ['mapnik'],
    author = "Blake Thompson",
    author_email = "flippmoke@gmail.com",
    description = "Python bindings for Mapnik",
    license = "GNU LESSER GENERAL PUBLIC LICENSE",
    keywords = "mapnik mapbox mapping carteography",
    url = "http://mapnik.org/",
    tests_require = [
        'nose',
    ],
    package_data = {
        'mapnik': ['libmapnik.*', 'plugins/*/*'],
    },
    test_suite = 'nose.collector',
    ext_modules = [
        Extension('mapnik._mapnik', [
                'src/mapnik_color.cpp',
                'src/mapnik_coord.cpp',
                'src/mapnik_datasource.cpp',
                'src/mapnik_datasource_cache.cpp',
                'src/mapnik_envelope.cpp',
                'src/mapnik_expression.cpp',
                'src/mapnik_feature.cpp',
                'src/mapnik_featureset.cpp',
                'src/mapnik_font_engine.cpp',
                'src/mapnik_fontset.cpp',
                'src/mapnik_gamma_method.cpp',
                'src/mapnik_geometry.cpp',
                'src/mapnik_grid.cpp',
                'src/mapnik_grid_view.cpp',
                'src/mapnik_image.cpp',
                'src/mapnik_image_view.cpp',
                'src/mapnik_label_collision_detector.cpp',
                'src/mapnik_layer.cpp',
                'src/mapnik_logger.cpp',
                'src/mapnik_map.cpp',
                'src/mapnik_palette.cpp',
                'src/mapnik_parameters.cpp',
                'src/mapnik_proj_transform.cpp',
                'src/mapnik_projection.cpp',
                'src/mapnik_python.cpp',
                'src/mapnik_query.cpp',
                'src/mapnik_raster_colorizer.cpp',
                'src/mapnik_rule.cpp',
                'src/mapnik_scaling_method.cpp',
                'src/mapnik_style.cpp',
                'src/mapnik_svg_generator_grammar.cpp',
                'src/mapnik_symbolizer.cpp',
                'src/mapnik_text_placement.cpp',
                'src/mapnik_view_transform.cpp',
                'src/python_grid_utils.cpp',
            ],
            language='c++',
            libraries = [
                'mapnik',
                'mapnik-wkt',
                'mapnik-json',
                'boost_thread',
                'boost_system',
                boost_python_lib,
            ],
            extra_compile_args = extra_comp_args,
            extra_link_args = linkflags,
        )
    ]
)
<commit_msg>Setup relative link paths for linux [publish]<commit_after>#! /usr/bin/env python

from distutils import sysconfig
from setuptools import setup, Extension
import os
import subprocess
import sys
import shutil
import re

cflags = sysconfig.get_config_var('CFLAGS')
sysconfig._config_vars['CFLAGS'] = re.sub(' +', ' ', cflags.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
opt = sysconfig.get_config_var('OPT')
sysconfig._config_vars['OPT'] = re.sub(' +', ' ', opt.replace('-g', '').replace('-Os', ''))
ldshared = sysconfig.get_config_var('LDSHARED')
sysconfig._config_vars['LDSHARED'] = re.sub(' +', ' ', ldshared.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
ldflags = sysconfig.get_config_var('LDFLAGS')
sysconfig._config_vars['LDFLAGS'] = re.sub(' +', ' ', ldflags.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
pycflags = sysconfig.get_config_var('PY_CFLAGS')
sysconfig._config_vars['PY_CFLAGS'] = re.sub(' +', ' ', pycflags.replace('-g', '').replace('-Os', '').replace('-arch i386', ''))
sysconfig._config_vars['CFLAGSFORSHARED'] = ''
os.environ['ARCHFLAGS'] = ''

if os.environ.get("MASON_BUILD", "false") == "true":
    # run bootstrap.sh to get mason builds
    subprocess.call(['./bootstrap.sh'])
    mapnik_config = 'mason_packages/.link/bin/mapnik-config'
    mason_build = True
else:
    mapnik_config = 'mapnik-config'
    mason_build = False

boost_python_lib = os.environ.get("BOOST_PYTHON_LIB", 'boost_python')

try:
    linkflags = subprocess.check_output([mapnik_config, '--libs']).rstrip('\n').split(' ')
    lib_path = linkflags[0][2:]
    linkflags.extend(subprocess.check_output([mapnik_config, '--ldflags']).rstrip('\n').split(' '))
except:
    raise Exception("Failed to find proper linking flags from mapnik config");

## Dynamically make the mapnik/paths.py file if it doesn't exist.
if os.path.isfile('mapnik/paths.py'):
    create_paths = False
else:
    create_paths = True
    f_paths = open('mapnik/paths.py', 'w')
    f_paths.write('import os\n')
    f_paths.write('\n')

if mason_build:
    lib_files = os.listdir(lib_path)
    lib_files = [os.path.join(lib_path, f) for f in lib_files if f.startswith('libmapnik.')]
    for f in lib_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik', os.path.basename(f)))
        except shutil.Error:
            pass
    input_plugin_path = subprocess.check_output([mapnik_config, '--input-plugins']).rstrip('\n')
    input_plugin_files = os.listdir(input_plugin_path)
    input_plugin_files = [os.path.join(input_plugin_path, f) for f in input_plugin_files]
    if not os.path.exists(os.path.join('mapnik','plugins','input')):
        os.makedirs(os.path.join('mapnik','plugins', 'input'))
    for f in input_plugin_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik', 'plugins', 'input', os.path.basename(f)))
        except shutil.Error:
            pass
    font_path = subprocess.check_output([mapnik_config, '--fonts']).rstrip('\n')
    font_files = os.listdir(font_path)
    font_files = [os.path.join(font_path, f) for f in font_files]
    if not os.path.exists(os.path.join('mapnik','plugins','fonts')):
        os.makedirs(os.path.join('mapnik','plugins','fonts'))
    for f in font_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','fonts', os.path.basename(f)))
        except shutil.Error:
            pass
    if create_paths:
        f_paths.write('mapniklibpath = os.path.dirname(os.path.realpath(__file__))\n')
elif create_paths:
    f_paths.write("mapniklibpath = '"+lib_path+"/mapnik/plugins'\n")
    f_paths.write('mapniklibpath = os.path.normpath(mapniklibpath)\n')

if create_paths:
    f_paths.write("inputpluginspath = os.path.join(mapniklibpath,'input')\n")
    f_paths.write("fontscollectionpath = os.path.join(mapniklibpath,'fonts')\n")
    f_paths.write("__all__ = [mapniklibpath,inputpluginspath,fontscollectionpath]\n")
    f_paths.close()

if not mason_build:
    icu_path = subprocess.check_output([mapnik_config, '--icu-data']).rstrip('\n')
else:
    icu_path = 'mason_packages/.link/share/icu/'
if icu_path:
    icu_files = os.listdir(icu_path)
    icu_files = [os.path.join(icu_path, f) for f in icu_files]
    if not os.path.exists(os.path.join('mapnik','plugins','icu')):
        os.makedirs(os.path.join('mapnik','plugins','icu'))
    for f in icu_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','icu', os.path.basename(f)))
        except shutil.Error:
            pass

if not mason_build:
    gdal_path = subprocess.check_output([mapnik_config, '--gdal-data']).rstrip('\n')
else:
    gdal_path = 'mason_packages/.link/share/gdal/'
    if os.path.exists('mason_packages/.link/share/gdal/gdal/'):
        gdal_path = 'mason_packages/.link/share/gdal/gdal/'
if gdal_path:
    gdal_files = os.listdir(gdal_path)
    gdal_files = [os.path.join(gdal_path, f) for f in gdal_files]
    if not os.path.exists(os.path.join('mapnik','plugins','gdal')):
        os.makedirs(os.path.join('mapnik','plugins','gdal'))
    for f in gdal_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','gdal', os.path.basename(f)))
        except shutil.Error:
            pass

if not mason_build:
    proj_path = subprocess.check_output([mapnik_config, '--proj-lib']).rstrip('\n')
else:
    proj_path = 'mason_packages/.link/share/proj/'
    if os.path.exists('mason_packages/.link/share/proj/proj/'):
        proj_path = 'mason_packages/.link/share/proj/proj/'
if proj_path:
    proj_files = os.listdir(proj_path)
    proj_files = [os.path.join(proj_path, f) for f in proj_files]
    if not os.path.exists(os.path.join('mapnik','plugins','proj')):
        os.makedirs(os.path.join('mapnik','plugins','proj'))
    for f in proj_files:
        try:
            shutil.copyfile(f, os.path.join('mapnik','plugins','proj', os.path.basename(f)))
        except shutil.Error:
            pass

extra_comp_args = subprocess.check_output([mapnik_config, '--cflags']).rstrip('\n').split(' ')

if sys.platform == 'darwin':
    extra_comp_args.append('-mmacosx-version-min=10.8')
    linkflags.append('-mmacosx-version-min=10.8')
else:
    linkflags.append('-Wl,-z,origin')
    linkflags.append('-Wl,-rpath=$ORIGIN')

if os.environ.get("CC",False) == False:
    os.environ["CC"] = subprocess.check_output([mapnik_config, '--cxx']).rstrip('\n')
if os.environ.get("CXX",False) == False:
    os.environ["CXX"] = subprocess.check_output([mapnik_config, '--cxx']).rstrip('\n')

setup(
    name = "mapnik",
    version = "0.1",
    packages = ['mapnik'],
    author = "Blake Thompson",
    author_email = "flippmoke@gmail.com",
    description = "Python bindings for Mapnik",
    license = "GNU LESSER GENERAL PUBLIC LICENSE",
    keywords = "mapnik mapbox mapping carteography",
    url = "http://mapnik.org/",
    tests_require = [
        'nose',
    ],
    package_data = {
        'mapnik': ['libmapnik.*', 'plugins/*/*'],
    },
    test_suite = 'nose.collector',
    ext_modules = [
        Extension('mapnik._mapnik', [
                'src/mapnik_color.cpp',
                'src/mapnik_coord.cpp',
                'src/mapnik_datasource.cpp',
                'src/mapnik_datasource_cache.cpp',
                'src/mapnik_envelope.cpp',
                'src/mapnik_expression.cpp',
                'src/mapnik_feature.cpp',
                'src/mapnik_featureset.cpp',
                'src/mapnik_font_engine.cpp',
                'src/mapnik_fontset.cpp',
                'src/mapnik_gamma_method.cpp',
                'src/mapnik_geometry.cpp',
                'src/mapnik_grid.cpp',
                'src/mapnik_grid_view.cpp',
                'src/mapnik_image.cpp',
                'src/mapnik_image_view.cpp',
                'src/mapnik_label_collision_detector.cpp',
                'src/mapnik_layer.cpp',
                'src/mapnik_logger.cpp',
                'src/mapnik_map.cpp',
                'src/mapnik_palette.cpp',
                'src/mapnik_parameters.cpp',
                'src/mapnik_proj_transform.cpp',
                'src/mapnik_projection.cpp',
                'src/mapnik_python.cpp',
                'src/mapnik_query.cpp',
                'src/mapnik_raster_colorizer.cpp',
                'src/mapnik_rule.cpp',
                'src/mapnik_scaling_method.cpp',
                'src/mapnik_style.cpp',
                'src/mapnik_svg_generator_grammar.cpp',
                'src/mapnik_symbolizer.cpp',
                'src/mapnik_text_placement.cpp',
                'src/mapnik_view_transform.cpp',
                'src/python_grid_utils.cpp',
            ],
            language='c++',
            libraries = [
                'mapnik',
                'mapnik-wkt',
                'mapnik-json',
                'boost_thread',
                'boost_system',
                boost_python_lib,
            ],
            extra_compile_args = extra_comp_args,
            extra_link_args = linkflags,
        )
    ]
)
<|endoftext|>


<commit_before>import os
import sys

from distutils.core import setup
from distutils.sysconfig import get_python_lib

# Warn if we are installing over top of an existing installation. This can
# cause issues where files that were deleted from a more recent Django are
# still present in site-packages. See #18115.
overlay_warning = False
if "install" in sys.argv:
    lib_paths = [get_python_lib()]
    if lib_paths[0].startswith("/usr/lib/"):
        # We have to try also with an explicit prefix of /usr/local in order to
        # catch Debian's custom user site-packages directory.
        lib_paths.append(get_python_lib(prefix="/usr/local"))
    for lib_path in lib_paths:
        existing_path = os.path.abspath(os.path.join(lib_path, "django"))
        if os.path.exists(existing_path):
            # We note the need for the warning here, but present it after the
            # command is run, so it's more likely to be seen.
            overlay_warning = True
            break

def fullsplit(path, result=None):
    """
    Split a pathname into components (the opposite of os.path.join)
    in a platform-neutral way.
    """
    if result is None:
        result = []
    head, tail = os.path.split(path)
    if head == '':
        return [tail] + result
    if head == path:
        return result
    return fullsplit(head, [tail] + result)

EXCLUDE_FROM_PACKAGES = ['django.conf.project_template',
                         'django.conf.app_template',
                         'django.bin']

def is_package(package_name):
    for pkg in EXCLUDE_FROM_PACKAGES:
        if package_name.startswith(pkg):
            return False
    return True

# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, package_data = [], {}

root_dir = os.path.dirname(__file__)
if root_dir != '':
    os.chdir(root_dir)
django_dir = 'django'

for dirpath, dirnames, filenames in os.walk(django_dir):
    # Ignore PEP 3147 cache dirs and those whose names start with '.'
    dirnames[:] = [d for d in dirnames if not d.startswith('.') and d != '__pycache__']
    parts = fullsplit(dirpath)
    package_name = '.'.join(parts)
    if '__init__.py' in filenames and is_package(package_name):
        packages.append(package_name)
    elif filenames:
        relative_path = []
        while '.'.join(parts) not in packages:
            relative_path.append(parts.pop())
        relative_path.reverse()
        path = os.path.join(*relative_path)
        package_files = package_data.setdefault('.'.join(parts), [])
        package_files.extend([os.path.join(path, f) for f in filenames])

# Dynamically calculate the version based on django.VERSION.
version = __import__('django').get_version()

setup(
    name='Django',
    version=version,
    url='http://www.djangoproject.com/',
    author='Django Software Foundation',
    author_email='foundation@djangoproject.com',
    description=('A high-level Python Web framework that encourages '
                 'rapid development and clean, pragmatic design.'),
    license='BSD',
    packages=packages,
    package_data=package_data,
    scripts=['django/bin/django-admin.py'],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

if overlay_warning:
    sys.stderr.write("""

========
WARNING!
========

You have just installed Django over top of an existing
installation, without removing it first. Because of this,
your install may now include extraneous files from a
previous version that have since been removed from
Django. This is known to cause a variety of problems. You
should manually remove the

%(existing_path)s

directory and re-install Django.

""" % {"existing_path": existing_path})
<commit_msg>Fixed #20615 -- Added trove classifiers for major Python versions.<commit_after>import os
import sys

from distutils.core import setup
from distutils.sysconfig import get_python_lib

# Warn if we are installing over top of an existing installation. This can
# cause issues where files that were deleted from a more recent Django are
# still present in site-packages. See #18115.
overlay_warning = False
if "install" in sys.argv:
    lib_paths = [get_python_lib()]
    if lib_paths[0].startswith("/usr/lib/"):
        # We have to try also with an explicit prefix of /usr/local in order to
        # catch Debian's custom user site-packages directory.
        lib_paths.append(get_python_lib(prefix="/usr/local"))
    for lib_path in lib_paths:
        existing_path = os.path.abspath(os.path.join(lib_path, "django"))
        if os.path.exists(existing_path):
            # We note the need for the warning here, but present it after the
            # command is run, so it's more likely to be seen.
            overlay_warning = True
            break

def fullsplit(path, result=None):
    """
    Split a pathname into components (the opposite of os.path.join)
    in a platform-neutral way.
    """
    if result is None:
        result = []
    head, tail = os.path.split(path)
    if head == '':
        return [tail] + result
    if head == path:
        return result
    return fullsplit(head, [tail] + result)

EXCLUDE_FROM_PACKAGES = ['django.conf.project_template',
                         'django.conf.app_template',
                         'django.bin']

def is_package(package_name):
    for pkg in EXCLUDE_FROM_PACKAGES:
        if package_name.startswith(pkg):
            return False
    return True

# Compile the list of packages available, because distutils doesn't have
# an easy way to do this.
packages, package_data = [], {}

root_dir = os.path.dirname(__file__)
if root_dir != '':
    os.chdir(root_dir)
django_dir = 'django'

for dirpath, dirnames, filenames in os.walk(django_dir):
    # Ignore PEP 3147 cache dirs and those whose names start with '.'
    dirnames[:] = [d for d in dirnames if not d.startswith('.') and d != '__pycache__']
    parts = fullsplit(dirpath)
    package_name = '.'.join(parts)
    if '__init__.py' in filenames and is_package(package_name):
        packages.append(package_name)
    elif filenames:
        relative_path = []
        while '.'.join(parts) not in packages:
            relative_path.append(parts.pop())
        relative_path.reverse()
        path = os.path.join(*relative_path)
        package_files = package_data.setdefault('.'.join(parts), [])
        package_files.extend([os.path.join(path, f) for f in filenames])

# Dynamically calculate the version based on django.VERSION.
version = __import__('django').get_version()

setup(
    name='Django',
    version=version,
    url='http://www.djangoproject.com/',
    author='Django Software Foundation',
    author_email='foundation@djangoproject.com',
    description=('A high-level Python Web framework that encourages '
                 'rapid development and clean, pragmatic design.'),
    license='BSD',
    packages=packages,
    package_data=package_data,
    scripts=['django/bin/django-admin.py'],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Environment :: Web Environment',
        'Framework :: Django',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Internet :: WWW/HTTP :: WSGI',
        'Topic :: Software Development :: Libraries :: Application Frameworks',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

if overlay_warning:
    sys.stderr.write("""

========
WARNING!
========

You have just installed Django over top of an existing
installation, without removing it first. Because of this,
your install may now include extraneous files from a
previous version that have since been removed from
Django. This is known to cause a variety of problems. You
should manually remove the

%(existing_path)s

directory and re-install Django.

""" % {"existing_path": existing_path})
<|endoftext|>


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

from distutils.core import setup
from distutils.extension import Extension
from distutils.version import LooseVersion
from distutils.sysconfig import parse_makefile
from Cython.Distutils import build_ext
from Cython.Build import cythonize
from cython import __version__ as cython_version

import numpy
import sys
import os

from subprocess import Popen, PIPE
import json

def find_dependency(soname, incname):
    def test(prefix):
        sofile = os.path.join(prefix, 'lib/{}'.format(soname))
        incdir = os.path.join(prefix, 'include/{}'.format(incname))
        if os.path.isfile(sofile) and os.path.isdir(incdir):
            return os.path.join(prefix, 'lib'), \
                   os.path.join(prefix, 'include')
        return None
    if 'VIRTUAL_ENV' in os.environ:
        ret = test(os.environ['VIRTUAL_ENV'])
        if ret is not None:
            return ret[0], ret[1]
    if 'CONDA_BUILD' in os.environ:
        d = os.environ.get('PREFIX', None)
        if d:
            ret = test(d)
            if ret is not None:
                return ret[0], ret[1]
    if 'CONDA_DEFAULT_ENV' in os.environ:
        # shell out to conda to get info
        s = Popen(['conda', 'info', '--json'], shell=False, stdout=PIPE).stdout.read()
        s = json.loads(s)
        if 'default_prefix' in s:
            ret = test(str(s['default_prefix']))
            if ret is not None:
                return ret[0], ret[1]
    return None, None

def find_cython_dependency(dirname):
    def test(prefix):
        incdir = os.path.join(prefix, 'cython/{}'.format(dirname))
        if os.path.isdir(incdir):
            return os.path.join(prefix, 'cython')
        return None
    if 'VIRTUAL_ENV' in os.environ:
        ret = test(os.environ['VIRTUAL_ENV'])
        if ret is not None:
            return ret
    if 'CONDA_BUILD' in os.environ:
        d = os.environ.get('PREFIX', None)
        if d:
            ret = test(d)
            if ret is not None:
                return ret
    if 'CONDA_DEFAULT_ENV' in os.environ:
        # shell out to conda to get info
        s = Popen(['conda', 'info', '--json'], shell=False, stdout=PIPE).stdout.read()
        s = json.loads(s)
        if 'default_prefix' in s:
            ret = test(str(s['default_prefix']))
            if ret is not None:
                return ret
    return None

clang = False
if sys.platform.lower().startswith('darwin'):
    clang = True

so_ext = 'dylib' if clang else 'so'

min_cython_version = '0.20.2' if clang else '0.20.1'
if LooseVersion(cython_version) < LooseVersion(min_cython_version):
    raise ValueError(
        'cython support requires cython>={}'.format(min_cython_version))

cc = os.environ.get('CC', None)
cxx = os.environ.get('CXX', None)
debug_build = False

distributions_lib, distributions_inc = find_dependency(
    'libdistributions_shared.{}'.format(so_ext), 'distributions')
microscopes_common_lib, microscopes_common_inc = find_dependency(
    'libmicroscopes_common.{}'.format(so_ext), 'microscopes')
microscopes_common_cython_inc = find_cython_dependency('microscopes')
microscopes_irm_lib, microscopes_irm_inc = find_dependency(
    'libmicroscopes_irm.{}'.format(so_ext), 'microscopes')

if distributions_inc is not None:
    print 'Using distributions_inc:', distributions_inc
if distributions_lib is not None:
    print 'Using distributions_lib:', distributions_lib
if microscopes_common_inc is not None:
    print 'Using microscopes_common_inc:', microscopes_common_inc
if microscopes_common_cython_inc is not None:
    print 'Using microscopes_common_cython_inc:', microscopes_common_cython_inc
if microscopes_common_lib is not None:
    print 'Using microscopes_common_lib:', microscopes_common_lib
if microscopes_irm_inc is not None:
    print 'Using microscopes_irm_inc:', microscopes_irm_inc
if microscopes_irm_lib is not None:
    print 'Using microscopes_irm_lib:', microscopes_irm_lib
if cc is not None:
    print 'Using CC={}'.format(cc)
if cxx is not None:
    print 'Using CXX={}'.format(cxx)
if debug_build:
    print 'Debug build'

extra_compile_args = [
    '-std=c++0x',
    '-Wno-deprecated-register',
    '-Wno-unused-function',
]
# taken from distributions
math_opt_flags = [
    '-mfpmath=sse',
    '-msse4.1',
    '-ffast-math',
    '-funsafe-math-optimizations',
]
extra_compile_args.extend(math_opt_flags)
if clang:
    extra_compile_args.extend([
        '-mmacosx-version-min=10.7',  # for anaconda
        '-stdlib=libc++',
    ])
if debug_build:
    extra_compile_args.append('-DDEBUG_MODE')

include_dirs = [numpy.get_include()]
if 'EXTRA_INCLUDE_PATH' in os.environ:
    include_dirs.append(os.environ['EXTRA_INCLUDE_PATH'])
if distributions_inc is not None:
    include_dirs.append(distributions_inc)
if microscopes_common_inc is not None:
    include_dirs.append(microscopes_common_inc)
if microscopes_irm_inc is not None:
    include_dirs.append(microscopes_irm_inc)

library_dirs = []
if distributions_lib is not None:
    library_dirs.append(distributions_lib)
if microscopes_common_lib is not None:
    library_dirs.append(microscopes_common_lib)
if microscopes_irm_lib is not None:
    library_dirs.append(microscopes_irm_lib)

extra_link_args = []
if 'EXTRA_LINK_ARGS' in os.environ:
    extra_link_args.append(os.environ['EXTRA_LINK_ARGS'])

def make_extension(module_name):
    sources = [module_name.replace('.', '/') + '.pyx']
    return Extension(
        module_name,
        sources=sources,
        language="c++",
        include_dirs=include_dirs,
        libraries=["microscopes_common", "microscopes_irm",
                   "protobuf", "distributions_shared"],
        library_dirs=library_dirs,
        extra_compile_args=extra_compile_args,
        extra_link_args=extra_link_args)

extensions = cythonize([
    make_extension('microscopes.cxx.irm.model'),
    make_extension('microscopes.cxx.irm._model'),
], include_path=[microscopes_common_cython_inc])

setup(
    version='0.1',
    name='microscopes-irm',
    description='XYZ',
    long_description='XYZ long',
    packages=(
        'microscopes.cxx.irm',
    ),
    ext_modules=extensions)
<commit_msg>setup.py accepts DEBUG env var [skip ci]<commit_after>#!/usr/bin/env python

from distutils.core import setup
from distutils.extension import Extension
from distutils.version import LooseVersion
from distutils.sysconfig import parse_makefile
from Cython.Distutils import build_ext
from Cython.Build import cythonize
from cython import __version__ as cython_version

import numpy
import sys
import os

from subprocess import Popen, PIPE
import json

def find_dependency(soname, incname):
    def test(prefix):
        sofile = os.path.join(prefix, 'lib/{}'.format(soname))
        incdir = os.path.join(prefix, 'include/{}'.format(incname))
        if os.path.isfile(sofile) and os.path.isdir(incdir):
            return os.path.join(prefix, 'lib'), \
                   os.path.join(prefix, 'include')
        return None
    if 'VIRTUAL_ENV' in os.environ:
        ret = test(os.environ['VIRTUAL_ENV'])
        if ret is not None:
            return ret[0], ret[1]
    if 'CONDA_BUILD' in os.environ:
        d = os.environ.get('PREFIX', None)
        if d:
            ret = test(d)
            if ret is not None:
                return ret[0], ret[1]
    if 'CONDA_DEFAULT_ENV' in os.environ:
        # shell out to conda to get info
        s = Popen(['conda', 'info', '--json'], shell=False, stdout=PIPE).stdout.read()
        s = json.loads(s)
        if 'default_prefix' in s:
            ret = test(str(s['default_prefix']))
            if ret is not None:
                return ret[0], ret[1]
    return None, None

def find_cython_dependency(dirname):
    def test(prefix):
        incdir = os.path.join(prefix, 'cython/{}'.format(dirname))
        if os.path.isdir(incdir):
            return os.path.join(prefix, 'cython')
        return None
    if 'VIRTUAL_ENV' in os.environ:
        ret = test(os.environ['VIRTUAL_ENV'])
        if ret is not None:
            return ret
    if 'CONDA_BUILD' in os.environ:
        d = os.environ.get('PREFIX', None)
        if d:
            ret = test(d)
            if ret is not None:
                return ret
    if 'CONDA_DEFAULT_ENV' in os.environ:
        # shell out to conda to get info
        s = Popen(['conda', 'info', '--json'], shell=False, stdout=PIPE).stdout.read()
        s = json.loads(s)
        if 'default_prefix' in s:
            ret = test(str(s['default_prefix']))
            if ret is not None:
                return ret
    return None

clang = False
if sys.platform.lower().startswith('darwin'):
    clang = True

so_ext = 'dylib' if clang else 'so'

min_cython_version = '0.20.2' if clang else '0.20.1'
if LooseVersion(cython_version) < LooseVersion(min_cython_version):
    raise ValueError(
        'cython support requires cython>={}'.format(min_cython_version))

cc = os.environ.get('CC', None)
cxx = os.environ.get('CXX', None)
debug_build = 'DEBUG' in os.environ

distributions_lib, distributions_inc = find_dependency(
    'libdistributions_shared.{}'.format(so_ext), 'distributions')
microscopes_common_lib, microscopes_common_inc = find_dependency(
    'libmicroscopes_common.{}'.format(so_ext), 'microscopes')
microscopes_common_cython_inc = find_cython_dependency('microscopes')
microscopes_irm_lib, microscopes_irm_inc = find_dependency(
    'libmicroscopes_irm.{}'.format(so_ext), 'microscopes')

if distributions_inc is not None:
    print 'Using distributions_inc:', distributions_inc
if distributions_lib is not None:
    print 'Using distributions_lib:', distributions_lib
if microscopes_common_inc is not None:
    print 'Using microscopes_common_inc:', microscopes_common_inc
if microscopes_common_cython_inc is not None:
    print 'Using microscopes_common_cython_inc:', microscopes_common_cython_inc
if microscopes_common_lib is not None:
    print 'Using microscopes_common_lib:', microscopes_common_lib
if microscopes_irm_inc is not None:
    print 'Using microscopes_irm_inc:', microscopes_irm_inc
if microscopes_irm_lib is not None:
    print 'Using microscopes_irm_lib:', microscopes_irm_lib
if cc is not None:
    print 'Using CC={}'.format(cc)
if cxx is not None:
    print 'Using CXX={}'.format(cxx)
if debug_build:
    print 'Debug build'

extra_compile_args = [
    '-std=c++0x',
    '-Wno-deprecated-register',
    '-Wno-unused-function',
]
# taken from distributions
math_opt_flags = [
    '-mfpmath=sse',
    '-msse4.1',
    '-ffast-math',
    '-funsafe-math-optimizations',
]
extra_compile_args.extend(math_opt_flags)
if clang:
    extra_compile_args.extend([
        '-mmacosx-version-min=10.7',  # for anaconda
        '-stdlib=libc++',
    ])
if debug_build:
    extra_compile_args.append('-DDEBUG_MODE')

include_dirs = [numpy.get_include()]
if 'EXTRA_INCLUDE_PATH' in os.environ:
    include_dirs.append(os.environ['EXTRA_INCLUDE_PATH'])
if distributions_inc is not None:
    include_dirs.append(distributions_inc)
if microscopes_common_inc is not None:
    include_dirs.append(microscopes_common_inc)
if microscopes_irm_inc is not None:
    include_dirs.append(microscopes_irm_inc)

library_dirs = []
if distributions_lib is not None:
    library_dirs.append(distributions_lib)
if microscopes_common_lib is not None:
    library_dirs.append(microscopes_common_lib)
if microscopes_irm_lib is not None:
    library_dirs.append(microscopes_irm_lib)

extra_link_args = []
if 'EXTRA_LINK_ARGS' in os.environ:
    extra_link_args.append(os.environ['EXTRA_LINK_ARGS'])

def make_extension(module_name):
    sources = [module_name.replace('.', '/') + '.pyx']
    return Extension(
        module_name,
        sources=sources,
        language="c++",
        include_dirs=include_dirs,
        libraries=["microscopes_common", "microscopes_irm",
                   "protobuf", "distributions_shared"],
        library_dirs=library_dirs,
        extra_compile_args=extra_compile_args,
        extra_link_args=extra_link_args)

extensions = cythonize([
    make_extension('microscopes.cxx.irm.model'),
    make_extension('microscopes.cxx.irm._model'),
], include_path=[microscopes_common_cython_inc])

setup(
    version='0.1',
    name='microscopes-irm',
    description='XYZ',
    long_description='XYZ long',
    packages=(
        'microscopes.cxx.irm',
    ),
    ext_modules=extensions)
<|endoftext|>


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

setup(name='crowdtruth',
    version='2.0-alpha',
    description="Disagreement based metrics for the processing and evaluation of crowdsourced annotations",
    long_description="CrowdTruth is an approach to machine-human computing for collecting annotation data on text, images and videos. The approach is focussed specifically on collecting gold standard data for training and evaluation of cognitive computing systems. The original framework was inspired by the IBM Watson project for providing improved (multi-perspective) gold standard (medical) text annotation data for the training and evaluation of various IBM Watson components, such as Medical Relation Extraction, Medical Factor Extraction and Question-Answer passage alignment.",
    classifiers=[],
    keywords=['CrowdTruth','crowdsourcing','disagreement','metrics','crowdflower','amazon mechanical turk'],
    author='Vrije Universiteit Amsterdam',
    author_email='crowdwatson@gmail.com',
    url='http://crowdtruth.org',
    license='Apache 2.0',
    download_url = 'https://github.com/CrowdTruth/CrowdTruth-core/archive/v2.0-alpha.tar.gz',
    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
    include_package_data=True,
    zip_safe=False,
    test_suite='nose.collector',
    install_requires=[
        'pymodm>=0.3.0',
        'pandas'
        ],
    setup_requires=[],
    entry_points="""
        [console_scripts]
        CrowdTruth = crowdtruth:CrowdTruth
    """,
    )
<commit_msg>correct code download url<commit_after>from setuptools import setup, find_packages
import sys, os

setup(name='crowdtruth',
    version='2.0-alpha.1',
    description="Disagreement based metrics for the processing and evaluation of crowdsourced annotations",
    long_description="CrowdTruth is an approach to machine-human computing for collecting annotation data on text, images and videos. The approach is focussed specifically on collecting gold standard data for training and evaluation of cognitive computing systems. The original framework was inspired by the IBM Watson project for providing improved (multi-perspective) gold standard (medical) text annotation data for the training and evaluation of various IBM Watson components, such as Medical Relation Extraction, Medical Factor Extraction and Question-Answer passage alignment.",
    classifiers=[],
    keywords=['CrowdTruth','crowdsourcing','disagreement','metrics','crowdflower','amazon mechanical turk'],
    author='Vrije Universiteit Amsterdam',
    author_email='crowdwatson@gmail.com',
    url='http://crowdtruth.org',
    license='Apache 2.0',
    download_url = 'https://github.com/CrowdTruth/CrowdTruth-core/archive/v2.0-alpha.1.tar.gz',
    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
    include_package_data=True,
    zip_safe=False,
    test_suite='nose.collector',
    install_requires=[
        'pymodm>=0.3.0',
        'pandas'
        ],
    setup_requires=[],
    entry_points="""
        [console_scripts]
        CrowdTruth = crowdtruth:CrowdTruth
    """,
    )
<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name = "gmail-client",
    version = "0.0.4",
    author = "Wilberto Morales",
    author_email = "wilbertomorales777@gmail.com",
    description = ("A Pythonic interface for Google Mail. Based of https://github.com/charlierguo/gmai"),
    license = "MIT",
    keywords = "google gmail client",
    url = "https://github.com/wilbertom/gmail",
    packages=['gmail_client'],
    classifiers=[
        "Topic :: Communications :: Email",
        "License :: OSI Approved :: MIT License",
    ],
)
<commit_msg>Up the version<commit_after>from setuptools import setup

setup(
    name = "gmail-client",
    version = "0.0.5",
    author = "Wilberto Morales",
    author_email = "wilbertomorales777@gmail.com",
    description = ("A Pythonic interface for Google Mail. Based of https://github.com/charlierguo/gmai"),
    license = "MIT",
    keywords = "google gmail client",
    url = "https://github.com/wilbertom/gmail",
    packages=['gmail_client'],
    classifiers=[
        "Topic :: Communications :: Email",
        "License :: OSI Approved :: MIT License",
    ],
)
<|endoftext|>


<commit_before>import codecs
import os
import re
import sys
from setuptools import setup

with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
    README = readme.read()

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

def read(filepath):
    return codecs.open(filepath, "r", "utf-8").read()

def get_entity(package, entity):
    """
    eg, get_entity('spectator', 'version') returns `__version__` value in
    `__init__.py`.
    """
    init_py = open(os.path.join(package, "__init__.py")).read()
    find = "__%s__ = ['\"]([^'\"]+)['\"]" % entity
    return re.search(find, init_py).group(1)

def get_version():
    return get_entity("spectator", "version")

def get_license():
    return get_entity("spectator", "license")

def get_author():
    return get_entity("spectator", "author")

def get_author_email():
    return get_entity("spectator", "author_email")

# Do `python setup.py tag` to tag with the current version number.
if sys.argv[-1] == "tag":
    os.system("git tag -a %s -m 'version %s'" % (get_version(), get_version()))
    os.system("git push --tags")
    sys.exit()

# Do `python setup.py publish` to send current version to PyPI.
if sys.argv[-1] == "publish":
    os.system("python setup.py sdist")
    os.system("twine upload dist/django-spectator-%s.tar.gz" % (get_version()))
    sys.exit()

# Do `python setup.py testpublish` to send current version to Test PyPI.
if sys.argv[-1] == "testpublish":
    os.system("python setup.py sdist")
    os.system(
        "twine upload --repository-url https://test.pypi.org/legacy/ dist/django-spectator-%s.tar.gz"  # noqa: E501
        % (get_version())
    )
    sys.exit()

dev_require = [
    "django-debug-toolbar>=2.0,<3.0",
    "flake8>=3.8,<3.9",
    "black==19.10b0"
]
tests_require = dev_require + [
    "factory-boy>=2.12.0,<3.0",
    "freezegun>=0.3.12,<0.4",
    "coverage",
]

setup(
    name="django-spectator",
    version=get_version(),
    packages=["spectator"],
    install_requires=[
        "django-imagekit>=4.0,<4.1",
        "hashids>=1.2.0,<1.4",
        "pillow>=6.1.0,<7.3",
    ],
    dependency_links=[],
    tests_require=tests_require,
    extras_require={
        "dev": dev_require + [
            "Django>=3.0,<3.2",
        ],
        "test": tests_require
    },
    include_package_data=True,
    license=get_license(),
    description="A Django app to track book reading, movie viewing, "
    "gig going, play watching, etc.",
    long_description=read(os.path.join(os.path.dirname(__file__), "README.rst")),
    url="https://github.com/philgyford/django-spectator",
    author=get_author(),
    author_email=get_author_email(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Framework :: Django :: 2.2",
        "Framework :: Django :: 3.0",
        "Framework :: Django :: 3.1",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
    ],
    keywords="",
    project_urls={
        "Blog posts": "https://www.gyford.com/phil/writing/tags/django-spectator/",
        "Bug Reports": "https://github.com/philgyford/django-spectator/issues",
        "Documentation": (
            "https://github.com/philgyford/django-spectator/blob/master/README.rst"
        ),
        "Source": "https://github.com/philgyford/django-spectator",
    },
)
<commit_msg>Change requirement for devproject to force use of Django 3.1<commit_after>import codecs
import os
import re
import sys
from setuptools import setup

with open(os.path.join(os.path.dirname(__file__), "README.rst")) as readme:
    README = readme.read()

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

def read(filepath):
    return codecs.open(filepath, "r", "utf-8").read()

def get_entity(package, entity):
    """
    eg, get_entity('spectator', 'version') returns `__version__` value in
    `__init__.py`.
    """
    init_py = open(os.path.join(package, "__init__.py")).read()
    find = "__%s__ = ['\"]([^'\"]+)['\"]" % entity
    return re.search(find, init_py).group(1)

def get_version():
    return get_entity("spectator", "version")

def get_license():
    return get_entity("spectator", "license")

def get_author():
    return get_entity("spectator", "author")

def get_author_email():
    return get_entity("spectator", "author_email")

# Do `python setup.py tag` to tag with the current version number.
if sys.argv[-1] == "tag":
    os.system("git tag -a %s -m 'version %s'" % (get_version(), get_version()))
    os.system("git push --tags")
    sys.exit()

# Do `python setup.py publish` to send current version to PyPI.
if sys.argv[-1] == "publish":
    os.system("python setup.py sdist")
    os.system("twine upload dist/django-spectator-%s.tar.gz" % (get_version()))
    sys.exit()

# Do `python setup.py testpublish` to send current version to Test PyPI.
if sys.argv[-1] == "testpublish":
    os.system("python setup.py sdist")
    os.system(
        "twine upload --repository-url https://test.pypi.org/legacy/ dist/django-spectator-%s.tar.gz"  # noqa: E501
        % (get_version())
    )
    sys.exit()

dev_require = [
    "django-debug-toolbar>=2.0,<3.0",
    "flake8>=3.8,<3.9",
    "black==19.10b0"
]
tests_require = dev_require + [
    "factory-boy>=2.12.0,<3.0",
    "freezegun>=0.3.12,<0.4",
    "coverage",
]

setup(
    name="django-spectator",
    version=get_version(),
    packages=["spectator"],
    install_requires=[
        "django-imagekit>=4.0,<4.1",
        "hashids>=1.2.0,<1.4",
        "pillow>=6.1.0,<7.3",
    ],
    dependency_links=[],
    tests_require=tests_require,
    extras_require={
        "dev": dev_require + [
            "Django>=3.1,<3.2",
        ],
        "test": tests_require
    },
    include_package_data=True,
    license=get_license(),
    description="A Django app to track book reading, movie viewing, "
    "gig going, play watching, etc.",
    long_description=read(os.path.join(os.path.dirname(__file__), "README.rst")),
    url="https://github.com/philgyford/django-spectator",
    author=get_author(),
    author_email=get_author_email(),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Framework :: Django :: 2.2",
        "Framework :: Django :: 3.0",
        "Framework :: Django :: 3.1",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
    ],
    keywords="",
    project_urls={
        "Blog posts": "https://www.gyford.com/phil/writing/tags/django-spectator/",
        "Bug Reports": "https://github.com/philgyford/django-spectator/issues",
        "Documentation": (
            "https://github.com/philgyford/django-spectator/blob/master/README.rst"
        ),
        "Source": "https://github.com/philgyford/django-spectator",
    },
)
<|endoftext|>


<commit_before>from setuptools import setup

from slaveapi import __version__

setup(
    name="slaveapi",
    version=__version__,
    description="A tool for interacting with build and test slaves.",
    author="Mozilla Release Engineering",
    packages=["slaveapi", "slaveapi.actions", "slaveapi.clients", "slaveapi.web"],
    scripts=["slaveapi-server.py"],
    install_requires=[
        "gevent==0.13.8",
        "greenlet==0.4.1",
        "pycrypto>=2.6",
        "Jinja2>=2.7.1",
        "MarkupSafe>=0.18",
        "WebOb>=1.2.3",
        "requests>=1.2.3",
        "bzrest==0.7",
        "dnspython>=1.11.0",
        "paramiko>=1.11.0",
        "flask==0.10.1",
        "werkzeug==0.9.3",
        "itsdangerous==0.23",
        "docopt>=0.6.1",
        "python-daemon>=1.5.5",
        "gevent_subprocess==0.1.1",
        "furl>=0.3.5",
        "orderedmultidict>=0.7.1",
        "pytz>=2013.7",
        "mozpoolclient==0.1.5",
    ],
)
<commit_msg>Bustage fix -- add slaveapi.machines to packages list for setup.py to include it in sdist<commit_after>from setuptools import setup

from slaveapi import __version__

setup(
    name="slaveapi",
    version=__version__,
    description="A tool for interacting with build and test slaves.",
    author="Mozilla Release Engineering",
    packages=["slaveapi", "slaveapi.actions", "slaveapi.clients", "slaveapi.web", "slaveapi.machines"],
    scripts=["slaveapi-server.py"],
    install_requires=[
        "gevent==0.13.8",
        "greenlet==0.4.1",
        "pycrypto>=2.6",
        "Jinja2>=2.7.1",
        "MarkupSafe>=0.18",
        "WebOb>=1.2.3",
        "requests>=1.2.3",
        "bzrest==0.7",
        "dnspython>=1.11.0",
        "paramiko>=1.11.0",
        "flask==0.10.1",
        "werkzeug==0.9.3",
        "itsdangerous==0.23",
        "docopt>=0.6.1",
        "python-daemon>=1.5.5",
        "gevent_subprocess==0.1.1",
        "furl>=0.3.5",
        "orderedmultidict>=0.7.1",
        "pytz>=2013.7",
        "mozpoolclient==0.1.5",
    ],
)
<|endoftext|>


<commit_before>from __future__ import with_statement
from distutils.core import setup

from jsonschema import __version__

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

classifiers = [
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Programming Language :: Python :: 2",
    "Programming Language :: Python :: 2 :: Only",
    "Programming Language :: Python :: 2.5",
    "Programming Language :: Python :: 2.6",
    "Programming Language :: Python :: 2.7",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python :: Implementation :: PyPy",
]

setup(
    name="jsonschema",
    version=__version__,
    py_modules=["jsonschema"],
    author="Julian Berman",
    author_email="Julian@GrayVines.com",
    classifiers=classifiers,
    description="An implementation of JSON-Schema validation for Python",
    license="MIT/X",
    long_description=long_description,
    url="http://github.com/Julian/jsonschema",
)
<commit_msg>Fixed classifiers for py3.<commit_after>from __future__ import with_statement
from distutils.core import setup

from jsonschema import __version__

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

classifiers = [
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
    "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.1",
    "Programming Language :: Python :: 3.2",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python :: Implementation :: PyPy",
]

setup(
    name="jsonschema",
    version=__version__,
    py_modules=["jsonschema"],
    author="Julian Berman",
    author_email="Julian@GrayVines.com",
    classifiers=classifiers,
    description="An implementation of JSON-Schema validation for Python",
    license="MIT/X",
    long_description=long_description,
    url="http://github.com/Julian/jsonschema",
)
<|endoftext|>


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

import os
import re
import sys
import glob
import getpass
import tempfile

dirname = os.path.dirname(os.path.abspath(sys.argv[0]))
py_dirname = os.path.join(dirname, "lib", "python")
print(py_dirname)
sys.path.append(py_dirname)
from unix_sessions.manager import Manager

from distutils.core import setup
from distutils import log
from distutils.command.install_data import install_data
from distutils.command.install_scripts import install_scripts
from distutils.cmd import Command

class pre_command(object):
    def run(self):
        install_cmd = self.get_finalized_command('install')
        self.install_base = os.path.normpath(os.path.abspath(getattr(install_cmd, 'install_base')))
        self.admin_user = getpass.getuser()
        return super().run()

class subst_command(Command):
    def _init(self):
        if not hasattr(self, 'r_list'):
            v_dict = {
                'UXS_HOME_DIR':             self.install_base,
                'UXS_RC_DIR_NAME':          Manager.RC_DIR_NAME,
                'UXS_ADMIN_USER':           self.admin_user,
                'PYTHON_EXECUTABLE':        sys.executable,
            }
            self.r_list = []
            for key, val in v_dict.items():
                self.r_list.append((re.compile(r"@{0}@".format(key)), val))

    def transform_file(self, infile, outfile):
        self._init()
        log.info("substituting {0} -> {1}...".format(infile, outfile))
        with open(outfile, "w") as f_out, open(infile, "r") as f_in:
            source = f_in.read()
            for regular_expression, substitution in self.r_list:
                source = regular_expression.sub(substitution, source)
                #print("___>", substitution)
            f_out.write(source)

    def copy_file(self, infile, outfile, preserve_mode=1, preserve_times=1, link=None, level=1):
        with tempfile.TemporaryDirectory(prefix=os.path.basename(infile)) as tmpdir:
            tmpfile = os.path.join(tmpdir, os.path.basename(infile))
            self.transform_file(infile, tmpfile)
            result = super().copy_file(tmpfile, outfile, preserve_mode=preserve_mode, preserve_times=preserve_times, link=link, level=level)
        return result

    def copy_tree(self, infile, outfile, preserve_mode=1, preserve_times=1,
                  preserve_symlinks=0, level=1):
        with tempfile.TemporaryDirectory(prefix=os.path.basename(infile)) as tmpdir:
            for dirpath, dirnames, filenames in os.walk(infile):
                rdir = os.path.relpath(dirpath, infile)
                tmpd = os.path.join(tmpdir, rdir)
                if not os.path.isdir(tmpd):
                    os.makedirs(tmpd)
                for filename in filenames:
                    in_filename = os.path.join(dirpath, filename)
                    out_filename = os.path.join(tmpd, filename)
                    self.transform_file(in_filename, out_filename)
            result = super().copy_tree(tmpdir, outfile, preserve_mode=preserve_mode, preserve_times=preserve_times, preserve_symlinks=preserve_symlinks, level=level)
        return result

class subst_install_data(pre_command, install_data, subst_command):
    pass

class subst_install_scripts(pre_command, install_scripts, subst_command):
    pass

setup(
    name = "unix-sessions",
    version = "0.1",
    requires = [],
    description = "Tool to manage unix environment",
    author = "Simone Campagna",
    author_email = "simone.campagna@tiscali.it",
    url="https://github.com/simone-campagna/unix-sessions",
    packages = ["unix_sessions", "unix_sessions.translators", "unix_sessions.utils", "unix_sessions.application"],
    package_dir = {"unix_sessions": "lib/python/unix_sessions"},
    scripts = [
	'bin/shelf',
    ],
    data_files = [
        ('etc/unix-sessions', glob.glob('etc/unix-sessions/*.config')),
        ('etc/unix-sessions/init.d', glob.glob('etc/unix-sessions/init.d/shelf.*')),
        ('etc/unix-sessions/packages', []),
    ],
    cmdclass = {
        'install_data': subst_install_data,
        'install_scripts': subst_install_scripts,
    },
)

<commit_msg>Removed useless print<commit_after>#
# Copyright 2013 Simone Campagna
#
# 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.
#

__author__ = 'Simone Campagna'

import os
import re
import sys
import glob
import getpass
import tempfile

dirname = os.path.dirname(os.path.abspath(sys.argv[0]))
py_dirname = os.path.join(dirname, "lib", "python")
sys.path.append(py_dirname)
from unix_sessions.manager import Manager

from distutils.core import setup
from distutils import log
from distutils.command.install_data import install_data
from distutils.command.install_scripts import install_scripts
from distutils.cmd import Command

class pre_command(object):
    def run(self):
        install_cmd = self.get_finalized_command('install')
        self.install_base = os.path.normpath(os.path.abspath(getattr(install_cmd, 'install_base')))
        self.admin_user = getpass.getuser()
        return super().run()

class subst_command(Command):
    def _init(self):
        if not hasattr(self, 'r_list'):
            v_dict = {
                'UXS_HOME_DIR':             self.install_base,
                'UXS_RC_DIR_NAME':          Manager.RC_DIR_NAME,
                'UXS_ADMIN_USER':           self.admin_user,
                'PYTHON_EXECUTABLE':        sys.executable,
            }
            self.r_list = []
            for key, val in v_dict.items():
                self.r_list.append((re.compile(r"@{0}@".format(key)), val))

    def transform_file(self, infile, outfile):
        self._init()
        log.info("substituting {0} -> {1}...".format(infile, outfile))
        with open(outfile, "w") as f_out, open(infile, "r") as f_in:
            source = f_in.read()
            for regular_expression, substitution in self.r_list:
                source = regular_expression.sub(substitution, source)
                #print("___>", substitution)
            f_out.write(source)

    def copy_file(self, infile, outfile, preserve_mode=1, preserve_times=1, link=None, level=1):
        with tempfile.TemporaryDirectory(prefix=os.path.basename(infile)) as tmpdir:
            tmpfile = os.path.join(tmpdir, os.path.basename(infile))
            self.transform_file(infile, tmpfile)
            result = super().copy_file(tmpfile, outfile, preserve_mode=preserve_mode, preserve_times=preserve_times, link=link, level=level)
        return result

    def copy_tree(self, infile, outfile, preserve_mode=1, preserve_times=1,
                  preserve_symlinks=0, level=1):
        with tempfile.TemporaryDirectory(prefix=os.path.basename(infile)) as tmpdir:
            for dirpath, dirnames, filenames in os.walk(infile):
                rdir = os.path.relpath(dirpath, infile)
                tmpd = os.path.join(tmpdir, rdir)
                if not os.path.isdir(tmpd):
                    os.makedirs(tmpd)
                for filename in filenames:
                    in_filename = os.path.join(dirpath, filename)
                    out_filename = os.path.join(tmpd, filename)
                    self.transform_file(in_filename, out_filename)
            result = super().copy_tree(tmpdir, outfile, preserve_mode=preserve_mode, preserve_times=preserve_times, preserve_symlinks=preserve_symlinks, level=level)
        return result

class subst_install_data(pre_command, install_data, subst_command):
    pass

class subst_install_scripts(pre_command, install_scripts, subst_command):
    pass

setup(
    name = "unix-sessions",
    version = "0.1",
    requires = [],
    description = "Tool to manage unix environment",
    author = "Simone Campagna",
    author_email = "simone.campagna@tiscali.it",
    url="https://github.com/simone-campagna/unix-sessions",
    packages = ["unix_sessions", "unix_sessions.translators", "unix_sessions.utils", "unix_sessions.application"],
    package_dir = {"unix_sessions": "lib/python/unix_sessions"},
    scripts = [
	'bin/shelf',
    ],
    data_files = [
        ('etc/unix-sessions', glob.glob('etc/unix-sessions/*.config')),
        ('etc/unix-sessions/init.d', glob.glob('etc/unix-sessions/init.d/shelf.*')),
        ('etc/unix-sessions/packages', []),
    ],
    cmdclass = {
        'install_data': subst_install_data,
        'install_scripts': subst_install_scripts,
    },
)

<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(name='corpkit',
      version='0.26',
      description='A toolkit for working with parsed corpora',
      url='http://github.com/interrogator/corpkit',
      author='Daniel McDonald',
      package_data={'corpkit': ['*.jar', 'corpkit/*.jar'],
                    'corpkit': ['*.sh', 'corpkit/*.sh'],
                    'corpkit': ['*.ipynb', 'corpkit/*.ipynb'],
                    'dictionaries': ['*.p', 'dictionaries/*.p']},
      author_email='mcdonaldd@unimelb.edu.au',
      license='MIT',
      packages=['corpkit', 'dictionaries'],
      install_requires=[
                        "matplotlib >= 1.4.3",
                        "nltk >= 3.0.0",
                       ],
      #extras_require = {
      #                  'dependencies':  ["ReportLab>=1.2", "RXP"],
      #                  'view': ["pandas>=0.15.2"],
      #                 }
      #entry_points = {
      #                'corpkit': [
      #                'rst2pdf = project_a.tools.pdfgen [PDF]',
      #                'rst2html = project_a.tools.htmlgen',
      #                           ],
      #                }
      zip_safe=False)

#beautifulsoup4>=4.3.2
#lxml>=3.4.2
#numpy>=1.9.2
#pandas>=0.15.2
<commit_msg>added pandas<commit_after>from setuptools import setup, find_packages

setup(name='corpkit',
      version='0.26',
      description='A toolkit for working with parsed corpora',
      url='http://github.com/interrogator/corpkit',
      author='Daniel McDonald',
      package_data={'corpkit': ['*.jar', 'corpkit/*.jar'],
                    'corpkit': ['*.sh', 'corpkit/*.sh'],
                    'corpkit': ['*.ipynb', 'corpkit/*.ipynb'],
                    'dictionaries': ['*.p', 'dictionaries/*.p']},
      author_email='mcdonaldd@unimelb.edu.au',
      license='MIT',
      packages=['corpkit', 'dictionaries'],
      install_requires=[
                        "matplotlib >= 1.4.3",
                        "nltk >= 3.0.0",
                        "pandas >= 0.16.1",
                       ],
      #extras_require = {
      #                  'dependencies':  ["ReportLab>=1.2", "RXP"],
      #                  'view': ["pandas>=0.15.2"],
      #                 }
      #entry_points = {
      #                'corpkit': [
      #                'rst2pdf = project_a.tools.pdfgen [PDF]',
      #                'rst2html = project_a.tools.htmlgen',
      #                           ],
      #                }
      zip_safe=False)

#beautifulsoup4>=4.3.2
#lxml>=3.4.2
#numpy>=1.9.2
<|endoftext|>


<commit_before>import setuptools

setuptools.setup(name='umbra',
        version='0.1',
        description='Google Chrome remote control interface',
        url='https://github.com/internetarchive/umbra',
        author='Eldon Stegall',
        author_email='eldon@archive.org',
        long_description=open('README.md').read(),
        license='Apache License 2.0',
        packages=['umbra'],
        install_requires=['kombu', 'websocket-client-py3','argparse'],
        scripts=['bin/umbra', 'bin/load_url.py', 'bin/dump_queue.py'],
        zip_safe=False,
        classifiers=[
            'Development Status :: 3 - Alpha Development Status',
            'Environment :: Console',
            'License :: OSI Approved :: Apache Software License',
            'Programming Language :: Python :: 3',
            'Topic :: System :: Archiving',
        ])
<commit_msg>specify classifier 'Programming Language :: Python :: 3.3' since websocket-client-py3 requires python 3.3, doesn't work with 3.2<commit_after>import setuptools

setuptools.setup(name='umbra',
        version='0.1',
        description='Google Chrome remote control interface',
        url='https://github.com/internetarchive/umbra',
        author='Eldon Stegall',
        author_email='eldon@archive.org',
        long_description=open('README.md').read(),
        license='Apache License 2.0',
        packages=['umbra'],
        install_requires=['kombu', 'websocket-client-py3','argparse'],
        scripts=['bin/umbra', 'bin/load_url.py', 'bin/dump_queue.py'],
        zip_safe=False,
        classifiers=[
            'Development Status :: 3 - Alpha Development Status',
            'Environment :: Console',
            'License :: OSI Approved :: Apache Software License',
            'Programming Language :: Python :: 3.3',
            'Topic :: System :: Archiving',
        ])
<|endoftext|>


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

import codecs
import os

from setuptools import setup

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

with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = '\n' + f.read()

required = [
    'psutil==5.1.3'
    ]

test = [
    'pytest'
    ]

setup(
    name='pyrostest',
    version='0.1.8',
    description='The most lit ros testing framework',
    long_description=long_description,
    packages=['pyrostest'],
    package_data={
        'pyrostest': ['data/*']
    },
    install_requires=required,
    tests_require=test,
    url='https://github.com/gtagency/pyrostest',
    author='Joshua Morton',
    author_email='joshua.morton13@gmail.com',
    maintainer='Raphael Gontijo Lopes',
    maintainer_email='raphaelgontijolopes@gmail.com',
    license='MIT',
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        ],
    )

<commit_msg>Update version.<commit_after>#! /usr/bin/env python
# -*- coding: utf-8 -*-

import codecs
import os

from setuptools import setup

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

with codecs.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = '\n' + f.read()

required = [
    'psutil==5.1.3'
    ]

test = [
    'pytest'
    ]

setup(
    name='pyrostest',
    version='0.1.9',
    description='The most lit ros testing framework',
    long_description=long_description,
    packages=['pyrostest'],
    package_data={
        'pyrostest': ['data/*']
    },
    install_requires=required,
    tests_require=test,
    url='https://github.com/gtagency/pyrostest',
    author='Joshua Morton',
    author_email='joshua.morton13@gmail.com',
    maintainer='Raphael Gontijo Lopes',
    maintainer_email='raphaelgontijolopes@gmail.com',
    license='MIT',
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        ],
    )

<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name="ymage",
    version="0.6",
    description="Simple slideshow creator",
    author="Bogdan Popa",
    author_email="popa.bogdanp@gmail.com",
    url="http://github.com/Bogdanp/ymage",
    packages=[
        "ymage"
    ],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Operating System :: MacOS :: MacOS X",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python"
    ],
    install_requires=[
        "pyglet>=1.1"
    ],
    entry_points={
        "console_scripts": ["ymage = ymage.ymage:main"]
    }
)
<commit_msg>Switched to distutils from setuptools.<commit_after>from distutils.core import setup

setup(
    name="ymage",
    version="0.6",
    description="Simple slideshow creator",
    author="Bogdan Popa",
    author_email="popa.bogdanp@gmail.com",
    url="http://github.com/Bogdanp/ymage",
    packages=[
        "ymage"
    ],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Operating System :: MacOS :: MacOS X",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX :: Linux",
        "Programming Language :: Python"
    ],
    install_requires=[
        "pyglet>=1.1"
    ],
    entry_points={
        "console_scripts": ["ymage = ymage.ymage:main"]
    }
)
<|endoftext|>


<commit_before># Copyright 2021 Google LLC
#
# 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.
# -*- coding: utf-8 -*-

import os, sys, setuptools
from setuptools import setup

# TODO remove this restriction after https://github.com/tensorflow/tensorflow/issues/44485 is resolved
if sys.version_info >= (3, 9):
    # NOTE if the next line causes a syntax error, you are likely using Python 2, and need to upgrade to Python 3
    sys.exit(
        f"Sorry, Python versions above 3.8 is not supported. You have: {sys.version_info.major}.{sys.version_info.minor}"
    )

def read(fname):
    with open(os.path.join(os.path.dirname(__file__), fname)) as f:
        data = f.read()
    return data

setup(
    name="BIG-bench",
    version="0.0.1",
    author="The BIG-Bench Language Models Benchmark team.",
    author_email="bigbench@google.com",
    description=(
        "The official api specification for tasks for the 2021 ICLR Large Language Models Workshop."
    ),
    # include PEP-420 subpackages under benchmark_tasks
    packages=(
        setuptools.find_packages()
        + [
            "bigbench.benchmark_tasks." + x
            for x in setuptools.find_namespace_packages(
                where="bigbench/benchmark_tasks", include=["*"]
            )
        ]
    ),
    long_description=read("README.md"),
    install_requires=read("requirements.txt"),
    package_data={"": ["*.json", "*.jsonl", "*.txt", "*.tsv", "*.csv", "*.npz", "*.ckpt", "*.gz", "*.zip", "*.yaml"]},
    include_package_data=True,
)
<commit_msg>removing python version < 3.9 requirement (#481)<commit_after># Copyright 2021 Google LLC
#
# 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.
# -*- coding: utf-8 -*-

import os, sys, setuptools
from setuptools import setup

def read(fname):
    with open(os.path.join(os.path.dirname(__file__), fname)) as f:
        data = f.read()
    return data

setup(
    name="BIG-bench",
    version="0.0.1",
    author="The BIG-Bench Language Models Benchmark team.",
    author_email="bigbench@google.com",
    description=(
        "The official api specification for tasks for the 2021 ICLR Large Language Models Workshop."
    ),
    # include PEP-420 subpackages under benchmark_tasks
    packages=(
        setuptools.find_packages()
        + [
            "bigbench.benchmark_tasks." + x
            for x in setuptools.find_namespace_packages(
                where="bigbench/benchmark_tasks", include=["*"]
            )
        ]
    ),
    long_description=read("README.md"),
    install_requires=read("requirements.txt"),
    package_data={"": ["*.json", "*.jsonl", "*.txt", "*.tsv", "*.csv", "*.npz", "*.ckpt", "*.gz", "*.zip", "*.yaml"]},
    include_package_data=True,
)
<|endoftext|>


<commit_before># Copyright (c) 2017 David Preece - davep@polymath.tech, All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

from setuptools import setup

setup(
    name='messidge',
    version='1.1.0',
    author='David Preece',
    author_email='davep@20ft.nz',
    url='https://20ft.nz',
    license='BSD',
    packages=['messidge', 'messidge.broker', 'messidge.client'],
    install_requires=['pyzmq', 'libnacl', 'shortuuid', 'psutil', 'lru-dict', 'cbor', 'bottle', 'litecache'],
    description='A message passing library for gateways onto the public Internet.',
    long_description="There are some users, and some nodes (on a private LAN). Messidge brokers between the two. "
                     "It authenticates, encrypts, and can validate the provenance of an rpc call.",
    keywords='message messages message-passing authenticated encrypted gateway',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: Bottle',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Topic :: Security',
        'Topic :: Security :: Cryptography',
        'Topic :: Software Development :: Object Brokering',
        'Topic :: System :: Distributed Computing',
        'Topic :: System :: Networking',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6'
    ]
)
<commit_msg>Version bump<commit_after># Copyright (c) 2017 David Preece - davep@polymath.tech, All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

from setuptools import setup

setup(
    name='messidge',
    version='1.1.1',
    author='David Preece',
    author_email='davep@20ft.nz',
    url='https://20ft.nz',
    license='BSD',
    packages=['messidge', 'messidge.broker', 'messidge.client'],
    install_requires=['pyzmq', 'libnacl', 'shortuuid', 'psutil', 'lru-dict', 'cbor', 'bottle', 'litecache'],
    description='A message passing library for gateways onto the public Internet.',
    long_description="There are some users, and some nodes (on a private LAN). Messidge brokers between the two. "
                     "It authenticates, encrypts, and can validate the provenance of an rpc call.",
    keywords='message messages message-passing authenticated encrypted gateway',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: Bottle',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: BSD License',
        'Topic :: Security',
        'Topic :: Security :: Cryptography',
        'Topic :: Software Development :: Object Brokering',
        'Topic :: System :: Distributed Computing',
        'Topic :: System :: Networking',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6'
    ]
)
<|endoftext|>


<commit_before>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

setup(name = "FPyS2",
      version = "0.5",
      description = "Amazon FPS Library (version 2008-09-17)",
      author = "Wade Simmons",
      author_email = "wade@wades.im",
      url = "http://github.com/wadey/fpys2",
      packages = ["fpys2"],
      test_suite = "fpys2.tests",
      install_requires = ["wsgi_intercept",
                          ],
      entry_points = {},
      license = 'MIT License',
      long_description = """\
FPyS is a library for interacting with the Amazon Flexible Payment Service.

FPys communicates with the service via the available REST interface.  It handles the
details of request signing and response parsing for the application developer.

An Amazon web services account is required to begin working with FPyS in the development
environment.  An approved account is required to move software into production.

Development Trac: http://fpys.achievewith.us
Mailing List: http://groups.google.com/group/fpys/
""",
      classifiers = [
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Software Development :: Libraries :: Python Modules",
        ])
<commit_msg>Updated setup file.<commit_after>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

setup(name = "FPyS2",
      version = "0.6",
      description = "Amazon FPS Library (version 2008-09-17)",
      author = "Travis Fischer",
      author_email = "trav.fischer@gmail.com",
      url = "http://github.com/travisfischer/fpys2",
      packages = ["fpys2"],
      test_suite = "fpys2.tests",
      install_requires = ["wsgi_intercept",
                          ],
      entry_points = {},
      license = 'MIT License',
      long_description = """\
FPyS is a library for interacting with the Amazon Flexible Payment Service.

FPys communicates with the service via the available REST interface.  It handles the
details of request signing and response parsing for the application developer.

An Amazon web services account is required to begin working with FPyS in the development
environment.  An approved account is required to move software into production.

Development Trac: http://fpys.achievewith.us
Mailing List: http://groups.google.com/group/fpys/
""",
      classifiers = [
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Software Development :: Libraries :: Python Modules",
        ])
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

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

with open('LICENSE') as f:
    license = f.read()

setup(
    name='basenji',
    version='0.0.1',
    description='DNA RNNs',
    long_description=readme,
    author='David Kelley',
    author_email='drk@calicolabs.com',
    url='https://github.com/davek44/basenji',
    license=license,
    packages=find_packages(exclude=('tests', 'docs'))
)
<commit_msg>install requires<commit_after>from setuptools import setup, find_packages

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

with open('LICENSE') as f:
    license = f.read()

setup(
    name='basenji',
    version='0.0.1',
    description='Sequential regulatory activity machine learning',
    long_description=readme,
    author='David Kelley',
    author_email='drk@calicolabs.com',
    url='https://github.com/calico/basenji',
    license=license,
    packages=find_packages(exclude=('tests', 'docs')),
    install_requires=['h5py','joblib','matplotlib','numpy','pandas','pyBigWig','pysam','scipy','seaborn','sklearn','statsmodels','tensorflow']
)
<|endoftext|>


<commit_before>from setuptools import setup

from dynamic_validation import VERSION

REQUIREMENTS = [
    'django',
    'django-fields',
    'django-admin-ext',
    'django-autoload',
]

TEST_REQUIREMENTS = [
    'mock'
]

setup(
    name="django-dynamic-validation",
    version=VERSION,
    author="Matthew J. Morrison & Aaron Madison",
    author_email="mattjmorrison@mattjmorrison.com",
    description="Define user generated validation requirements for django models.",
    long_description=open('README.txt', 'r').read(),
    url="https://github.com/imtapps/django-dynamic-validation",
    packages=("dynamic_validation",),
    install_requires=REQUIREMENTS,
    tests_require=TEST_REQUIREMENTS,
    test_suite='runtests.runtests',
    zip_safe=False,
    classifiers = [
        "Development Status :: 3 - Alpha",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries :: Application Frameworks",
    ],
    dependency_links = (
        'https://bitbucket.org/twanschik/django-autoload/get/tip.tar.gz#egg=django-autoload',
    )
)<commit_msg>added find_packages to setup.py<commit_after>from setuptools import setup, find_packages

from dynamic_validation import VERSION

REQUIREMENTS = [
    'django',
    'django-fields',
    'django-admin-ext',
    'django-autoload',
]

TEST_REQUIREMENTS = [
    'mock'
]

setup(
    name="django-dynamic-validation",
    version=VERSION,
    author="Matthew J. Morrison & Aaron Madison",
    author_email="mattjmorrison@mattjmorrison.com",
    description="Define user generated validation requirements for django models.",
    long_description=open('README.txt', 'r').read(),
    url="https://github.com/imtapps/django-dynamic-validation",
    packages=find_packages("dynamic_validation",),
    install_requires=REQUIREMENTS,
    tests_require=TEST_REQUIREMENTS,
    test_suite='runtests.runtests',
    zip_safe=False,
    classifiers = [
        "Development Status :: 3 - Alpha",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries :: Application Frameworks",
    ],
    dependency_links = (
        'https://bitbucket.org/twanschik/django-autoload/get/tip.tar.gz#egg=django-autoload',
    )
)<|endoftext|>