<commit_before># -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# setup.py - Setup script for kaa.base
# -----------------------------------------------------------------------------
# $Id$
#
# -----------------------------------------------------------------------------
# Copyright 2005-2012 Dirk Meyer, Jason Tackaberry
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version
# 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys
import os
import time
import platform

# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.hexversion < 0x02050000:
    print('Python 2.5 or later required.')
    sys.exit(1)

# TODO: remove below at some suitable time in the future.
#
# Older version of kaa.base (0.6.0 or earlier) installed all package files
# directly under kaa/ whereas newer versions install under kaa/base/
#
# First chdir out of the src directory, which seems to confuse setuptools,
# and get a list of top-level kaa namespace paths.
cwd = os.getcwd()
os.chdir('/tmp')
paths = os.popen("%s -c 'import kaa; print \"\\x00\".join(kaa.__path__)' 2>/dev/null" % sys.executable).readline()
paths = paths.strip().split('\x00')
# We should not find a kaa.base module (e.g. rpc.py) in any of these paths.
# If we do, it means an old version is present.
conflicts = [p for p in paths if os.path.exists(os.path.join(p, 'rpc.py'))]
if conflicts:
    print('ERROR: detected conflicting files from an old kaa.base version.\n\n'
          "To fix, you'll need to run:\n"
          '   $ sudo rm -rf build %s\n\n'
          "Once you delete #2, you'll need to reinstall all the kaa\n"
          'sub-modules you use.' % ' '.join(conflicts))
    sys.exit(1)
os.chdir(cwd)

# If kaa.base is already installed as an egg and we're now attempting to
# install without --egg, we error out now, because this won't work (the
# egg package will always get imported).
eggs = [p for p in paths if '.egg/' in p]
if eggs and 'install' in sys.argv and not '--egg' in sys.argv:
    print('ERROR: attempting to install a non-egg version of kaa.base, but the following\n'
          'kaa eggs were found:\n')
    for egg in eggs:
        print('  * ' + egg)
    print('\nEither remove the current kaa egg(s) or install now with --egg')
    sys.exit(1)

# Remove anything to do with kaa from the path.  We want to use kaa.distribution
# from the source tree, not any previously installed kaa.base.
#
# Moreover, any installed kaa eggs will be a problem, because they install
# kaa/__init__.py stubs that declare the kaa namespace _and_ import kaa.base,
# which could get imported when kaa.distribution.core imports setuptools (because
# importing setuptools implicitly imports all declared namespace packages).
#
# So to avoid any problems, remove anything kaa from the path, since we don't
# need it.
[sys.path.remove(x) for x in sys.path[:] if '/kaa' in x and x != os.getcwd()]

# Now import the src directory and masquerade it as kaa and kaa.base modules so
# we can import distribution.core.
import src
sys.modules['kaa'] = sys.modules['kaa.base'] = src

# And now import it from the source tree.
from kaa.distribution.core import Extension, setup

extensions = []

objectrow_ext = Extension('kaa.base._objectrow', ['src/extensions/objectrow.c'])
if not objectrow_ext.has_python_h():
    extensions.append(objectrow_ext)

if sys.hexversion < 0x02060000:
    # Fixed os.listdir for Python 2.5.  This module is optional for Python 2.5
    # (only installed if headers/libs are available) and not compiled for later
    # versions.
    utils_ext = Extension('kaa.base._utils', ['src/extensions/utils.c'])
    if utils_ext.has_python_h():
        extensions.append(utils_ext)

setup(
    module = 'base',
    version = '0.99.2',
    license = 'LGPL',
    url = 'http://doc.freevo.org/api/kaa/base/',
    summary = 'An application framework specializing in asynchronous programming.',
    description  = 'kaa.base is an LGPL-licensed generic application framework, providing the '
                   'foundation for other modules within Kaa, and can be used in any type of project, '
                   'from small event-driven tools, to larger, complex applications.',
    rpminfo = {
        'requires': 'glib2 >= 2.6.0, python-sqlite2 >= 2.3.0, libxml2-python >= 2.6.0',
        'build_requires': 'glib2-devel >= 2.6.0, python-devel >= 2.5.0'
    },
    ext_modules = extensions,
    opts_2to3 = {
        # Everything listed in 'exclude' is imported directly here (for distribution),
        # so it must compile with both python 2.6 and 3.x.
        'exclude': ['distribution/*', 'saxutils.py', 'strutils.py'],
        'nofix': {
            '*.py': ['import'],
            'utils.py': ['filter'],
            'io.py': ['throw'],
            'rpc.py': ['throw'],
        }
    },
    # Don't declare kaa.base as part of the kaa namespace.  Doing so will
    # suppress installation of kaa/__init__.py when installing with pip.  This
    # needs to be installed with kaa.base in order to make our namespace hack
    # work (where everything in kaa.base is under kaa).
    # namespace_packages = ['kaa']
)
<commit_msg>Build _objectrow when python headers are present, not when they're _not_<commit_after># -*- coding: iso-8859-1 -*-
# -----------------------------------------------------------------------------
# setup.py - Setup script for kaa.base
# -----------------------------------------------------------------------------
# $Id$
#
# -----------------------------------------------------------------------------
# Copyright 2005-2012 Dirk Meyer, Jason Tackaberry
#
# This library is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version
# 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA
#
# -----------------------------------------------------------------------------

# python imports
import sys
import os
import time
import platform

# We require python 2.5 or later, so complain if that isn't satisfied.
if sys.hexversion < 0x02050000:
    print('Python 2.5 or later required.')
    sys.exit(1)

# TODO: remove below at some suitable time in the future.
#
# Older version of kaa.base (0.6.0 or earlier) installed all package files
# directly under kaa/ whereas newer versions install under kaa/base/
#
# First chdir out of the src directory, which seems to confuse setuptools,
# and get a list of top-level kaa namespace paths.
cwd = os.getcwd()
os.chdir('/tmp')
paths = os.popen("%s -c 'import kaa; print \"\\x00\".join(kaa.__path__)' 2>/dev/null" % sys.executable).readline()
paths = paths.strip().split('\x00')
# We should not find a kaa.base module (e.g. rpc.py) in any of these paths.
# If we do, it means an old version is present.
conflicts = [p for p in paths if os.path.exists(os.path.join(p, 'rpc.py'))]
if conflicts:
    print('ERROR: detected conflicting files from an old kaa.base version.\n\n'
          "To fix, you'll need to run:\n"
          '   $ sudo rm -rf build %s\n\n'
          "Once you delete #2, you'll need to reinstall all the kaa\n"
          'sub-modules you use.' % ' '.join(conflicts))
    sys.exit(1)
os.chdir(cwd)

# If kaa.base is already installed as an egg and we're now attempting to
# install without --egg, we error out now, because this won't work (the
# egg package will always get imported).
eggs = [p for p in paths if '.egg/' in p]
if eggs and 'install' in sys.argv and not '--egg' in sys.argv:
    print('ERROR: attempting to install a non-egg version of kaa.base, but the following\n'
          'kaa eggs were found:\n')
    for egg in eggs:
        print('  * ' + egg)
    print('\nEither remove the current kaa egg(s) or install now with --egg')
    sys.exit(1)

# Remove anything to do with kaa from the path.  We want to use kaa.distribution
# from the source tree, not any previously installed kaa.base.
#
# Moreover, any installed kaa eggs will be a problem, because they install
# kaa/__init__.py stubs that declare the kaa namespace _and_ import kaa.base,
# which could get imported when kaa.distribution.core imports setuptools (because
# importing setuptools implicitly imports all declared namespace packages).
#
# So to avoid any problems, remove anything kaa from the path, since we don't
# need it.
[sys.path.remove(x) for x in sys.path[:] if '/kaa' in x and x != os.getcwd()]

# Now import the src directory and masquerade it as kaa and kaa.base modules so
# we can import distribution.core.
import src
sys.modules['kaa'] = sys.modules['kaa.base'] = src

# And now import it from the source tree.
from kaa.distribution.core import Extension, setup

extensions = []

objectrow_ext = Extension('kaa.base._objectrow', ['src/extensions/objectrow.c'])
if objectrow_ext.has_python_h():
    extensions.append(objectrow_ext)

if sys.hexversion < 0x02060000:
    # Fixed os.listdir for Python 2.5.  This module is optional for Python 2.5
    # (only installed if headers/libs are available) and not compiled for later
    # versions.
    utils_ext = Extension('kaa.base._utils', ['src/extensions/utils.c'])
    if utils_ext.has_python_h():
        extensions.append(utils_ext)

setup(
    module = 'base',
    version = '0.99.2',
    license = 'LGPL',
    url = 'http://doc.freevo.org/api/kaa/base/',
    summary = 'An application framework specializing in asynchronous programming.',
    description  = 'kaa.base is an LGPL-licensed generic application framework, providing the '
                   'foundation for other modules within Kaa, and can be used in any type of project, '
                   'from small event-driven tools, to larger, complex applications.',
    rpminfo = {
        'requires': 'glib2 >= 2.6.0, python-sqlite2 >= 2.3.0, libxml2-python >= 2.6.0',
        'build_requires': 'glib2-devel >= 2.6.0, python-devel >= 2.5.0'
    },
    ext_modules = extensions,
    opts_2to3 = {
        # Everything listed in 'exclude' is imported directly here (for distribution),
        # so it must compile with both python 2.6 and 3.x.
        'exclude': ['distribution/*', 'saxutils.py', 'strutils.py'],
        'nofix': {
            '*.py': ['import'],
            'utils.py': ['filter'],
            'io.py': ['throw'],
            'rpc.py': ['throw'],
        }
    },
    # Don't declare kaa.base as part of the kaa namespace.  Doing so will
    # suppress installation of kaa/__init__.py when installing with pip.  This
    # needs to be installed with kaa.base in order to make our namespace hack
    # work (where everything in kaa.base is under kaa).
    # namespace_packages = ['kaa']
)
<|endoftext|>


<commit_before>from distutils.core import setup

setup(
    name='maasivepy',
    version='1.2.5',
    author='Josh Austin',
    author_email='josh@maasive.net',
    py_modules=['maasivepy'],
)
<commit_msg>fix setup.py typo<commit_after>from distutils.core import setup

setup(
    name='maasivepy',
    version='1.2.5',
    author='Josh Austin',
    author_email='josh@maasive.net',
    packages=['maasivepy'],
)
<|endoftext|>


<commit_before># Copyright edalize contributors
# Licensed under the 2-Clause BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-2-Clause

import os
from setuptools import setup

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

setup(
    name = "edalize",
    version = "0.2.3",
    packages=['edalize'],
    package_data = {'edalize' : [
        'templates/yosys/edalize_yosys_procs.tcl.j2',
        'templates/yosys/yosys-makefile.j2',
        'templates/yosys/yosys-script-tcl.j2',
        'templates/icestorm/icestorm-makefile.j2',
        'templates/spyglass/Makefile.j2',
        'templates/spyglass/spyglass-project.prj.j2',
        'templates/spyglass/spyglass-run-goal.tcl.j2',
        'templates/vcs/Makefile.j2',
        'templates/vivado/vivado-makefile.j2',
        'templates/vivado/vivado-program.tcl.j2',
        'templates/vivado/vivado-project.tcl.j2',
        'templates/vivado/vivado-project-yosys.tcl.j2',
        'templates/vivado/vivado-run.tcl.j2',
        'templates/vivado/vivado-run-yosys.tcl.j2',
        'templates/vivado/vivado-synth.tcl.j2',
        'templates/vunit/run.py.j2',
        'templates/quartus/quartus-project.tcl.j2',
        'templates/quartus/quartus-std-makefile.j2',
        'templates/quartus/quartus-pro-makefile.j2',
        'templates/trellis/trellis-makefile.j2',
        'templates/ascentlint/Makefile.j2',
        'templates/ascentlint/run-ascentlint.tcl.j2',
        'templates/symbiflow/symbiflow-vpr-makefile.j2',
        'templates/symbiflow/symbiflow-nextpnr-xilinx-makefile.j2',
        'templates/symbiflow/symbiflow-nextpnr-fpga_interchange-makefile.j2',
        'templates/symbiflow/nextpnr-xilinx-makefile.j2',
        'templates/symbiflow/nextpnr-fpga_interchange-makefile.j2',
        'templates/libero/libero-project.tcl.j2',
        'templates/libero/libero-run.tcl.j2',
        'templates/libero/libero-syn-user.tcl.j2',
        'templates/ghdl/Makefile.j2',
    ]},
    author = "Olof Kindgren",
    author_email = "olof.kindgren@gmail.com",
    description = ("Edalize is a library for interfacing EDA tools, primarily for FPGA development"),
    license = "BSD-2-Clause",
    keywords = ["VHDL", "verilog", "EDA", "hdl", "rtl", "synthesis", "FPGA", "simulation", "Xilinx", "Altera"],
    url = "https://github.com/olofk/edalize",
    long_description=read('README.rst'),
    classifiers=[
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: BSD License",
        "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
        "Topic :: Utilities",
    ],
    install_requires=[
        # 2.11.0 and .1 introduced an incompatible change in template output,
        # which was fixed in 2.11.2 and later.
        # https://github.com/pallets/jinja/issues/1138
        'Jinja2>=2.11.3',
    ],
    tests_require=[
        'pytest>=3.3.0',
        'vunit_hdl>=4.0.8'
    ],
    # The reporting modules have dependencies that shouldn't be required for
    # all Edalize users.
    extras_require={
        "reporting": ["pyparsing", "pandas"],
    },
    # Supported Python versions: 3.5+
    python_requires=">=3.5, <4",
)
<commit_msg>Prepare for release<commit_after># Copyright edalize contributors
# Licensed under the 2-Clause BSD License, see LICENSE for details.
# SPDX-License-Identifier: BSD-2-Clause

import os
from setuptools import setup

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

setup(
    name = "edalize",
    version = "0.2.4",
    packages=['edalize'],
    package_data = {'edalize' : [
        'templates/yosys/edalize_yosys_procs.tcl.j2',
        'templates/yosys/yosys-makefile.j2',
        'templates/yosys/yosys-script-tcl.j2',
        'templates/icestorm/icestorm-makefile.j2',
        'templates/spyglass/Makefile.j2',
        'templates/spyglass/spyglass-project.prj.j2',
        'templates/spyglass/spyglass-run-goal.tcl.j2',
        'templates/vcs/Makefile.j2',
        'templates/vivado/vivado-makefile.j2',
        'templates/vivado/vivado-program.tcl.j2',
        'templates/vivado/vivado-project.tcl.j2',
        'templates/vivado/vivado-project-yosys.tcl.j2',
        'templates/vivado/vivado-run.tcl.j2',
        'templates/vivado/vivado-run-yosys.tcl.j2',
        'templates/vivado/vivado-synth.tcl.j2',
        'templates/vunit/run.py.j2',
        'templates/quartus/quartus-project.tcl.j2',
        'templates/quartus/quartus-std-makefile.j2',
        'templates/quartus/quartus-pro-makefile.j2',
        'templates/trellis/trellis-makefile.j2',
        'templates/ascentlint/Makefile.j2',
        'templates/ascentlint/run-ascentlint.tcl.j2',
        'templates/symbiflow/symbiflow-vpr-makefile.j2',
        'templates/symbiflow/symbiflow-nextpnr-xilinx-makefile.j2',
        'templates/symbiflow/symbiflow-nextpnr-fpga_interchange-makefile.j2',
        'templates/symbiflow/nextpnr-xilinx-makefile.j2',
        'templates/symbiflow/nextpnr-fpga_interchange-makefile.j2',
        'templates/libero/libero-project.tcl.j2',
        'templates/libero/libero-run.tcl.j2',
        'templates/libero/libero-syn-user.tcl.j2',
        'templates/ghdl/Makefile.j2',
    ]},
    author = "Olof Kindgren",
    author_email = "olof.kindgren@gmail.com",
    description = ("Edalize is a library for interfacing EDA tools, primarily for FPGA development"),
    license = "BSD-2-Clause",
    keywords = ["VHDL", "verilog", "EDA", "hdl", "rtl", "synthesis", "FPGA", "simulation", "Xilinx", "Altera"],
    url = "https://github.com/olofk/edalize",
    long_description=read('README.rst'),
    classifiers=[
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: BSD License",
        "Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
        "Topic :: Utilities",
    ],
    install_requires=[
        # 2.11.0 and .1 introduced an incompatible change in template output,
        # which was fixed in 2.11.2 and later.
        # https://github.com/pallets/jinja/issues/1138
        'Jinja2>=2.11.3',
    ],
    tests_require=[
        'pytest>=3.3.0',
        'vunit_hdl>=4.0.8'
    ],
    # The reporting modules have dependencies that shouldn't be required for
    # all Edalize users.
    extras_require={
        "reporting": ["pyparsing", "pandas"],
    },
    # Supported Python versions: 3.5+
    python_requires=">=3.5, <4",
)
<|endoftext|>


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

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

install_requires = [
    'aiohttp==1.0.5',
    'aiohttp_jinja2',
    'asyncio',
    'aiohttp_debugtoolbar',
    'aiohttp_autoreload',
    'schematics>=2.0.0.dev2',
    'aiopg==0.11.0',
    'ipython==5.3.0',
]

tests_require = [
    'pytest',
    'pytest-aiohttp'
]

setup(name='djaio',
      version='0.0.18',
      description='Djaio - Django-inspired AsyncIO web framework',
      author='Vadim Tregubov',
      author_email='vatregubov@sberned.ru',
      url='https://github.com/Sberned/djaio',
      packages=find_packages(),
      install_requires=install_requires,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Operating System :: MacOS',
          'Operating System :: POSIX :: Linux',
          'Topic :: System :: Software Distribution',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
      ],
      tests_require=tests_require
)
<commit_msg>bump version<commit_after>#!/usr/bin/env python
import os
from setuptools import setup, find_packages

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

install_requires = [
    'aiohttp==1.0.5',
    'aiohttp_jinja2',
    'asyncio',
    'aiohttp_debugtoolbar',
    'aiohttp_autoreload',
    'schematics>=2.0.0.dev2',
    'aiopg==0.11.0',
    'ipython==5.3.0',
]

tests_require = [
    'pytest',
    'pytest-aiohttp'
]

setup(name='djaio',
      version='0.0.19',
      description='Djaio - Django-inspired AsyncIO web framework',
      author='Vadim Tregubov',
      author_email='vatregubov@sberned.ru',
      url='https://github.com/Sberned/djaio',
      packages=find_packages(),
      install_requires=install_requires,
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Operating System :: MacOS',
          'Operating System :: POSIX :: Linux',
          'Topic :: System :: Software Distribution',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.5',
      ],
      tests_require=tests_require
)
<|endoftext|>


<commit_before>from distutils.core import setup
import os
try:
    import py2exe
except ImportError:
    pass
import sys

setup(
    name='Sushi',
    description='Automatic subtitle shifter based on audio',
    version='0.4.3',
    url='https://github.com/tp7/Sushi',
    console=['sushi.py'],
    license='MIT',
    options={
        'py2exe': {
            'compressed': True,
            'optimize': 2,
            "excludes": ["translation", "Tkconstants", "Tkinter", "tcl", 'pyreadline', 'email',
                         'numpy.core.multiarray_tests', 'numpy.core.operand_flag_tests', 'numpy.core.struct_ufunc_test',
                         'numpy.core.umath_tests', 'numpy.core._dotblas', 'matplotlib'],
            "dll_excludes": ['w9xpopen.exe', 'AVICAP32.dll', 'AVIFIL32.dll', 'MSACM32.dll', 'MSVFW32.dll'],
        }
    },
    zipfile='lib/library.zip',
    data_files=[
        ('', ('readme.md', 'LICENSE')),
        ('licenses', ('licenses/OpenCV.txt', 'licenses/SciPy.txt'))
    ]
)

try:
    dist_dir = next(sys.argv[i + 1].strip('"') for i, arg in enumerate(sys.argv) if arg.lower() == '-d')
except StopIteration:
    dist_dir = 'dist'

# move our license to the right directory
license_output_path = os.path.join(dist_dir, 'licenses', 'Sushi.txt')
if os.path.exists(license_output_path):
    os.remove(license_output_path)
os.rename(os.path.join(dist_dir, 'LICENSE'), license_output_path)

<commit_msg>Bump version<commit_after>from distutils.core import setup
import os
try:
    import py2exe
except ImportError:
    pass
import sys

setup(
    name='Sushi',
    description='Automatic subtitle shifter based on audio',
    version='0.4.4',
    url='https://github.com/tp7/Sushi',
    console=['sushi.py'],
    license='MIT',
    options={
        'py2exe': {
            'compressed': True,
            'optimize': 2,
            "excludes": ["translation", "Tkconstants", "Tkinter", "tcl", 'pyreadline', 'email',
                         'numpy.core.multiarray_tests', 'numpy.core.operand_flag_tests', 'numpy.core.struct_ufunc_test',
                         'numpy.core.umath_tests', 'numpy.core._dotblas', 'matplotlib'],
            "dll_excludes": ['w9xpopen.exe', 'AVICAP32.dll', 'AVIFIL32.dll', 'MSACM32.dll', 'MSVFW32.dll'],
        }
    },
    zipfile='lib/library.zip',
    data_files=[
        ('', ('readme.md', 'LICENSE')),
        ('licenses', ('licenses/OpenCV.txt', 'licenses/SciPy.txt'))
    ]
)

try:
    dist_dir = next(sys.argv[i + 1].strip('"') for i, arg in enumerate(sys.argv) if arg.lower() == '-d')
except StopIteration:
    dist_dir = 'dist'

# move our license to the right directory
license_output_path = os.path.join(dist_dir, 'licenses', 'Sushi.txt')
if os.path.exists(license_output_path):
    os.remove(license_output_path)
os.rename(os.path.join(dist_dir, 'LICENSE'), license_output_path)

<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name="lazy_paged_sequence",
    author="Misty De Meo",
    author_email="mistydemeo@gmail.com",
    license="AGPL",
    version="0.3",
    py_modules=["lazy_paged_sequence"]
)
<commit_msg>setup.py: add a description<commit_after>from setuptools import setup

setup(
    name="lazy_paged_sequence",
    author="Misty De Meo",
    description=("Simple iterable interface to "
                 "paged data structures such as REST API clients"),
    author_email="mistydemeo@gmail.com",
    license="AGPL",
    version="0.3",
    py_modules=["lazy_paged_sequence"]
)
<|endoftext|>


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

version = "0.9.1"

setup(
    name="Pylons",
    version=version,
    description='Pylons Web Framework',
    long_description="""
Pylons
======

The Pylons web framework is aimed at making webapps and large programmatic website
development in Python easy. Several key points:

* A framework to make writing web applications in Python easy

* Inspired by Rails and TurboGears

* Utilizes a minimalist, component-based philosophy that makes it easy to expand on

* Built mainly as a customization of Myghty with Routes and Paste integration

* Harness existing knowledge about Python

Knowing Python makes Pylons easy
---------------------------------

Pylons makes it easy to expand on your knowledge of Python to master Pylons for web
development. Using a MVC style dispath, Python knowledge is used at various levels:

* The Controller is just a basic Python class, called for each request. Customizing the
  response is as easy as overriding __call__ to make your webapp work how you want.

* Myghty templating compiles directly to Python byte-code for speed and utilizes Python
  for template control rather than creating its own template syntax for "for, while, etc"

Current Status
---------------

Pylons %s described on this page is stable.

There is also an
unstable `develoment version <http://www.pylonshq.com/svn/Pylons/trunk#egg=Pylons-dev>`_
of Pylons.

Download and Installation
-------------------------

Pylons can be installed with `Easy Install
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_ by typing::

    > easy_install Pylons

Dependant packages are automatically installed from
the `Pylons download page <http://www.pylonshq.com/download/>`_ .

"""%version,
    keywords='web wsgi framework sqlalchemy formencode myghty templates buffet',
    license='BSD',
    author='Ben Bangert, James Gardner',
    author_email='ben@groovie.org',
    url='http://www.pylonshq.com/',
    packages=find_packages(exclude=['ez_setup']),
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        "Routes>=1.4", "Myghty>=1.0.2", "Paste>=0.9.7",
        "PasteDeploy>=0.9.6", "PasteScript==dev,>=0.9.6", "FormEncode>=0.5.1",
        "simplejson>=1.4", "WSGIUtils==0.7", "WebHelpers>=0.1.3",
        "nose>=0.8.7", "Beaker>=0.6.1",
    ],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    extras_require = {
        'pudge': ["docutils>=0.4", "elementtree>=1.2.6", "kid>=0.9",
            "pudge==dev,>=0.1.1dev", "buildutils==dev,>=0.1.2dev",],
        'test': ["py>=0.8.0_alpha2"],
        'cheetah':["Cheetah>=1.0", "TurboCheetah>=0.9.5"],
        'kid':["kid>=0.9", "TurboKid==dev,>=0.9.1dev"],
        'full':[
            "docutils>=0.4", "elementtree>=1.2.6",
            "pudge==dev,>=0.1.1dev", "buildutils==dev,>=0.1.2dev",
            "py>=0.8.0_alpha2",
            "Cheetah>=1.0", "TurboCheetah>=0.9.5",
            "kid>=0.9", "TurboKid==dev,>=0.9.1dev",
        ],
    },
    entry_points="""
    [paste.paster_command]
    controller=pylons.commands:ControllerCommand
    shell=pylons.commands:ShellCommand

    [paste.paster_create_template]
    pylons=pylons.util:PylonsTemplate

    [distutils.commands]
    lang_extract = pylons.i18n:LangExtract
    lang_compile = pylons.i18n:LangCompile

    [python.templating.engines]
    pylonsmyghty = pylons.templating:MyghtyTemplatePlugin
    """,
)
<commit_msg>[svn] Bumping dev version up to 0.9.2.<commit_after>from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

version = "0.9.2"

setup(
    name="Pylons",
    version=version,
    description='Pylons Web Framework',
    long_description="""
Pylons
======

The Pylons web framework is aimed at making webapps and large programmatic website
development in Python easy. Several key points:

* A framework to make writing web applications in Python easy

* Inspired by Rails and TurboGears

* Utilizes a minimalist, component-based philosophy that makes it easy to expand on

* Built mainly as a customization of Myghty with Routes and Paste integration

* Harness existing knowledge about Python

Knowing Python makes Pylons easy
---------------------------------

Pylons makes it easy to expand on your knowledge of Python to master Pylons for web
development. Using a MVC style dispath, Python knowledge is used at various levels:

* The Controller is just a basic Python class, called for each request. Customizing the
  response is as easy as overriding __call__ to make your webapp work how you want.

* Myghty templating compiles directly to Python byte-code for speed and utilizes Python
  for template control rather than creating its own template syntax for "for, while, etc"

Current Status
---------------

Pylons %s described on this page is stable.

There is also an
unstable `develoment version <http://www.pylonshq.com/svn/Pylons/trunk#egg=Pylons-dev>`_
of Pylons.

Download and Installation
-------------------------

Pylons can be installed with `Easy Install
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_ by typing::

    > easy_install Pylons

Dependant packages are automatically installed from
the `Pylons download page <http://www.pylonshq.com/download/>`_ .

"""%version,
    keywords='web wsgi framework sqlalchemy formencode myghty templates buffet',
    license='BSD',
    author='Ben Bangert, James Gardner',
    author_email='ben@groovie.org',
    url='http://www.pylonshq.com/',
    packages=find_packages(exclude=['ez_setup']),
    zip_safe=False,
    include_package_data=True,
    install_requires=[
        "Routes>=1.4", "Myghty>=1.0.2", "Paste>=0.9.7",
        "PasteDeploy>=0.9.6", "PasteScript==dev,>=0.9.6", "FormEncode>=0.5.1",
        "simplejson>=1.4", "WSGIUtils==0.7", "WebHelpers>=0.1.3",
        "nose>=0.8.7", "Beaker>=0.6.1",
    ],
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: BSD License",
        "Programming Language :: Python",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    extras_require = {
        'pudge': ["docutils>=0.4", "elementtree>=1.2.6", "kid>=0.9",
            "pudge==dev,>=0.1.1dev", "buildutils==dev,>=0.1.2dev",],
        'test': ["py>=0.8.0_alpha2"],
        'cheetah':["Cheetah>=1.0", "TurboCheetah>=0.9.5"],
        'kid':["kid>=0.9", "TurboKid==dev,>=0.9.1dev"],
        'full':[
            "docutils>=0.4", "elementtree>=1.2.6",
            "pudge==dev,>=0.1.1dev", "buildutils==dev,>=0.1.2dev",
            "py>=0.8.0_alpha2",
            "Cheetah>=1.0", "TurboCheetah>=0.9.5",
            "kid>=0.9", "TurboKid==dev,>=0.9.1dev",
        ],
    },
    entry_points="""
    [paste.paster_command]
    controller=pylons.commands:ControllerCommand
    shell=pylons.commands:ShellCommand

    [paste.paster_create_template]
    pylons=pylons.util:PylonsTemplate

    [distutils.commands]
    lang_extract = pylons.i18n:LangExtract
    lang_compile = pylons.i18n:LangCompile

    [python.templating.engines]
    pylonsmyghty = pylons.templating:MyghtyTemplatePlugin
    """,
)
<|endoftext|>


<commit_before>import codecs

from os import path
from setuptools import find_packages, setup

def read(*parts):
    filename = path.join(path.dirname(__file__), *parts)
    with codecs.open(filename, encoding="utf-8") as fp:
        return fp.read()

setup(
    author="",
    author_email="",
    description="An app for Django sites that supports open, by invitation, and by application teams",
    name="pinax-teams",
    long_description=read("README.rst"),
    version="0.11.1",
    url="http://pinax-teams.rtfd.org/",
    license="MIT",
    packages=find_packages(),
    tests_require=[
        "Django>=1.7",
        "django-reversion>=1.8.1",
        "pinax-invitations>=4.0.1",
        "unicode-slugify>=0.1.1",
        "Pillow>=2.3.0",
        "django-user-accounts>=1.3",
        "six>=1.9.0"
    ],
    install_requires=[
        "Django>=1.7",
        "django-reversion>=1.8.1",
        "pinax-invitations>=4.0.1",
        "unicode-slugify>=0.1.1",
        "Pillow>=2.3.0",
        "django-user-accounts>=1.3",
        "six>=1.9.0"
    ],
    test_suite="runtests.runtests",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT 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 :: Software Development :: Libraries :: Python Modules",
    ],
    zip_safe=False
)
<commit_msg>0.11.2<commit_after>import codecs

from os import path
from setuptools import find_packages, setup

def read(*parts):
    filename = path.join(path.dirname(__file__), *parts)
    with codecs.open(filename, encoding="utf-8") as fp:
        return fp.read()

setup(
    author="",
    author_email="",
    description="An app for Django sites that supports open, by invitation, and by application teams",
    name="pinax-teams",
    long_description=read("README.rst"),
    version="0.11.2",
    url="http://pinax-teams.rtfd.org/",
    license="MIT",
    packages=find_packages(),
    tests_require=[
        "Django>=1.7",
        "django-reversion>=1.8.1",
        "pinax-invitations>=4.0.1",
        "unicode-slugify>=0.1.1",
        "Pillow>=2.3.0",
        "django-user-accounts>=1.3",
        "six>=1.9.0"
    ],
    install_requires=[
        "Django>=1.7",
        "django-reversion>=1.8.1",
        "pinax-invitations>=4.0.1",
        "unicode-slugify>=0.1.1",
        "Pillow>=2.3.0",
        "django-user-accounts>=1.3",
        "six>=1.9.0"
    ],
    test_suite="runtests.runtests",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT 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 :: Software Development :: Libraries :: Python Modules",
    ],
    zip_safe=False
)
<|endoftext|>


<commit_before>"""
Lemur
=====

Is a TLS management and orchestration tool.

:copyright: (c) 2015 by Netflix, see AUTHORS for more
:license: Apache, see LICENSE for more details.
"""
from __future__ import absolute_import

import sys
import json
import os.path
import datetime

from distutils import log
from distutils.core import Command
from setuptools.command.develop import develop
from setuptools.command.install import install
from setuptools.command.sdist import sdist
from setuptools import setup, find_packages
from subprocess import check_output

ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))

# When executing the setup.py, we need to be able to import ourselves, this
# means that we need to add the src/ directory to the sys.path.
sys.path.insert(0, ROOT)

about = {}
with open(os.path.join(ROOT, "lemur", "__about__.py")) as f:
    exec(f.read(), about)

install_requires = [
    'Flask==0.11.1',
    'Flask-RESTful==0.3.5',
    'Flask-SQLAlchemy==2.1',
    'Flask-Script==2.0.5',
    'Flask-Migrate==2.0.2',
    'Flask-Bcrypt==0.7.1',
    'Flask-Principal==0.4.0',
    'Flask-Mail==0.9.1',
    'SQLAlchemy-Utils==0.32.12',
    'requests==2.11.1',
    'psycopg2==2.6.2',
    'arrow==0.10.0',
    'six==1.10.0',
    'gunicorn==19.6.0',
    'marshmallow-sqlalchemy==0.12.0',
    'marshmallow==2.10.5',
    'cryptography==1.7',
    'pyjwt==1.4.2',
    'xmltodict==0.10.2',
    'lockfile==0.12.2',
    'inflection==0.3.1',
    'future==0.16.0',
    'boto3==1.4.3',
    'boto==2.45.0',  # we might make this optional
    'acme==0.9.3',
    'retrying==1.3.3',
    'tabulate==0.7.7',
    'pem==16.1.0'
]

tests_require = [
    'pyflakes',
    'moto==0.4.30',
    'nose==1.3.7',
    'pytest==3.0.5',
    'factory-boy==2.8.1',
    'fake-factory==0.7.2',
    'pytest-flask==0.10.0',
    'freezegun==0.3.8'
]

docs_require = [
    'sphinx',
    'sphinxcontrib-httpdomain',
    'sphinx-rtd-theme'
]

dev_requires = [
    'flake8>=3.2,<4.0',
    'pre-commit',
    'invoke',
    'twine'
]

class SmartInstall(install):
    """
    Installs Lemur into the Python environment.
    If the package indicator is missing, this will also force a run of
    `build_static` which is required for JavaScript assets and other things.
    """
    def _needs_static(self):
        return not os.path.exists(os.path.join(ROOT, 'lemur/static/dist'))

    def run(self):
        if self._needs_static():
            self.run_command('build_static')
        install.run(self)

class DevelopWithBuildStatic(develop):
    def install_for_development(self):
        self.run_command('build_static')
        return develop.install_for_development(self)

class SdistWithBuildStatic(sdist):
    def make_release_tree(self, *a, **kw):
        dist_path = self.distribution.get_fullname()

        sdist.make_release_tree(self, *a, **kw)

        self.reinitialize_command('build_static', work_path=dist_path)
        self.run_command('build_static')

        with open(os.path.join(dist_path, 'lemur-package.json'), 'w') as fp:
            json.dump({
                'createdAt': datetime.datetime.utcnow().isoformat() + 'Z',
            }, fp)

class BuildStatic(Command):
    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        log.info("running [npm install --quiet] in {0}".format(ROOT))
        try:
            check_output(['npm', 'install', '--quiet'], cwd=ROOT)

            log.info("running [gulp build]")
            check_output([os.path.join(ROOT, 'node_modules', '.bin', 'gulp'), 'build'], cwd=ROOT)
            log.info("running [gulp package]")
            check_output([os.path.join(ROOT, 'node_modules', '.bin', 'gulp'), 'package'], cwd=ROOT)
        except Exception as e:
            log.warn("Unable to build static content")

setup(
    name=about["__title__"],
    version=about["__version__"],
    author=about["__author__"],
    author_email=about["__email__"],
    url=about["__uri__"],
    description=about["__summary__"],
    long_description=open(os.path.join(ROOT, 'README.rst')).read(),
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    extras_require={
        'tests': tests_require,
        'docs': docs_require,
        'dev': dev_requires,
    },
    cmdclass={
        'build_static': BuildStatic,
        'sdist': SdistWithBuildStatic,
        'install': SmartInstall
    },
    entry_points={
        'console_scripts': [
            'lemur = lemur.manage:main',
        ],
        'lemur.plugins': [
            'verisign_issuer = lemur.plugins.lemur_verisign.plugin:VerisignIssuerPlugin',
            'acme_issuer = lemur.plugins.lemur_acme.plugin:ACMEIssuerPlugin',
            'aws_destination = lemur.plugins.lemur_aws.plugin:AWSDestinationPlugin',
            'aws_source = lemur.plugins.lemur_aws.plugin:AWSSourcePlugin',
            'aws_s3 = lemur.plugins.lemur_aws.plugin:S3DestinationPlugin',
            'email_notification = lemur.plugins.lemur_email.plugin:EmailNotificationPlugin',
            'slack_notification = lemur.plugins.lemur_slack.plugin:SlackNotificationPlugin',
            'java_truststore_export = lemur.plugins.lemur_java.plugin:JavaTruststoreExportPlugin',
            'java_keystore_export = lemur.plugins.lemur_java.plugin:JavaKeystoreExportPlugin',
            'openssl_export = lemur.plugins.lemur_openssl.plugin:OpenSSLExportPlugin',
            'atlas_metric = lemur.plugins.lemur_atlas.plugin:AtlasMetricPlugin',
            'kubernetes_destination = lemur.plugins.lemur_kubernetes.plugin:KubernetesDestinationPlugin',
            'cryptography_issuer = lemur.plugins.lemur_cryptography.plugin:CryptographyIssuerPlugin',
            'cfssl_issuer = lemur.plugins.lemur_cfssl.plugin:CfsslIssuerPlugin',
            'digicert_issuer = lemur.plugins.lemur_digicert.plugin:DigiCertIssuerPlugin',
            'digicert_cis_issuer = lemur.plugins.lemur_digicert.plugin:DigiCertCISIssuerPlugin',
        ],
    },
    classifiers=[
        'Framework :: Flask',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development',
        "Programming Language :: Python :: 3.5",
        "Natural Language :: English",
        "License :: OSI Approved :: Apache Software License"
    ]
)
<commit_msg>[Doppins] Upgrade dependency requests to ==2.12.4 (#543)<commit_after>"""
Lemur
=====

Is a TLS management and orchestration tool.

:copyright: (c) 2015 by Netflix, see AUTHORS for more
:license: Apache, see LICENSE for more details.
"""
from __future__ import absolute_import

import sys
import json
import os.path
import datetime

from distutils import log
from distutils.core import Command
from setuptools.command.develop import develop
from setuptools.command.install import install
from setuptools.command.sdist import sdist
from setuptools import setup, find_packages
from subprocess import check_output

ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))

# When executing the setup.py, we need to be able to import ourselves, this
# means that we need to add the src/ directory to the sys.path.
sys.path.insert(0, ROOT)

about = {}
with open(os.path.join(ROOT, "lemur", "__about__.py")) as f:
    exec(f.read(), about)

install_requires = [
    'Flask==0.11.1',
    'Flask-RESTful==0.3.5',
    'Flask-SQLAlchemy==2.1',
    'Flask-Script==2.0.5',
    'Flask-Migrate==2.0.2',
    'Flask-Bcrypt==0.7.1',
    'Flask-Principal==0.4.0',
    'Flask-Mail==0.9.1',
    'SQLAlchemy-Utils==0.32.12',
    'requests==2.12.4',
    'psycopg2==2.6.2',
    'arrow==0.10.0',
    'six==1.10.0',
    'gunicorn==19.6.0',
    'marshmallow-sqlalchemy==0.12.0',
    'marshmallow==2.10.5',
    'cryptography==1.7',
    'pyjwt==1.4.2',
    'xmltodict==0.10.2',
    'lockfile==0.12.2',
    'inflection==0.3.1',
    'future==0.16.0',
    'boto3==1.4.3',
    'boto==2.45.0',  # we might make this optional
    'acme==0.9.3',
    'retrying==1.3.3',
    'tabulate==0.7.7',
    'pem==16.1.0'
]

tests_require = [
    'pyflakes',
    'moto==0.4.30',
    'nose==1.3.7',
    'pytest==3.0.5',
    'factory-boy==2.8.1',
    'fake-factory==0.7.2',
    'pytest-flask==0.10.0',
    'freezegun==0.3.8'
]

docs_require = [
    'sphinx',
    'sphinxcontrib-httpdomain',
    'sphinx-rtd-theme'
]

dev_requires = [
    'flake8>=3.2,<4.0',
    'pre-commit',
    'invoke',
    'twine'
]

class SmartInstall(install):
    """
    Installs Lemur into the Python environment.
    If the package indicator is missing, this will also force a run of
    `build_static` which is required for JavaScript assets and other things.
    """
    def _needs_static(self):
        return not os.path.exists(os.path.join(ROOT, 'lemur/static/dist'))

    def run(self):
        if self._needs_static():
            self.run_command('build_static')
        install.run(self)

class DevelopWithBuildStatic(develop):
    def install_for_development(self):
        self.run_command('build_static')
        return develop.install_for_development(self)

class SdistWithBuildStatic(sdist):
    def make_release_tree(self, *a, **kw):
        dist_path = self.distribution.get_fullname()

        sdist.make_release_tree(self, *a, **kw)

        self.reinitialize_command('build_static', work_path=dist_path)
        self.run_command('build_static')

        with open(os.path.join(dist_path, 'lemur-package.json'), 'w') as fp:
            json.dump({
                'createdAt': datetime.datetime.utcnow().isoformat() + 'Z',
            }, fp)

class BuildStatic(Command):
    def initialize_options(self):
        pass

    def finalize_options(self):
        pass

    def run(self):
        log.info("running [npm install --quiet] in {0}".format(ROOT))
        try:
            check_output(['npm', 'install', '--quiet'], cwd=ROOT)

            log.info("running [gulp build]")
            check_output([os.path.join(ROOT, 'node_modules', '.bin', 'gulp'), 'build'], cwd=ROOT)
            log.info("running [gulp package]")
            check_output([os.path.join(ROOT, 'node_modules', '.bin', 'gulp'), 'package'], cwd=ROOT)
        except Exception as e:
            log.warn("Unable to build static content")

setup(
    name=about["__title__"],
    version=about["__version__"],
    author=about["__author__"],
    author_email=about["__email__"],
    url=about["__uri__"],
    description=about["__summary__"],
    long_description=open(os.path.join(ROOT, 'README.rst')).read(),
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=install_requires,
    extras_require={
        'tests': tests_require,
        'docs': docs_require,
        'dev': dev_requires,
    },
    cmdclass={
        'build_static': BuildStatic,
        'sdist': SdistWithBuildStatic,
        'install': SmartInstall
    },
    entry_points={
        'console_scripts': [
            'lemur = lemur.manage:main',
        ],
        'lemur.plugins': [
            'verisign_issuer = lemur.plugins.lemur_verisign.plugin:VerisignIssuerPlugin',
            'acme_issuer = lemur.plugins.lemur_acme.plugin:ACMEIssuerPlugin',
            'aws_destination = lemur.plugins.lemur_aws.plugin:AWSDestinationPlugin',
            'aws_source = lemur.plugins.lemur_aws.plugin:AWSSourcePlugin',
            'aws_s3 = lemur.plugins.lemur_aws.plugin:S3DestinationPlugin',
            'email_notification = lemur.plugins.lemur_email.plugin:EmailNotificationPlugin',
            'slack_notification = lemur.plugins.lemur_slack.plugin:SlackNotificationPlugin',
            'java_truststore_export = lemur.plugins.lemur_java.plugin:JavaTruststoreExportPlugin',
            'java_keystore_export = lemur.plugins.lemur_java.plugin:JavaKeystoreExportPlugin',
            'openssl_export = lemur.plugins.lemur_openssl.plugin:OpenSSLExportPlugin',
            'atlas_metric = lemur.plugins.lemur_atlas.plugin:AtlasMetricPlugin',
            'kubernetes_destination = lemur.plugins.lemur_kubernetes.plugin:KubernetesDestinationPlugin',
            'cryptography_issuer = lemur.plugins.lemur_cryptography.plugin:CryptographyIssuerPlugin',
            'cfssl_issuer = lemur.plugins.lemur_cfssl.plugin:CfsslIssuerPlugin',
            'digicert_issuer = lemur.plugins.lemur_digicert.plugin:DigiCertIssuerPlugin',
            'digicert_cis_issuer = lemur.plugins.lemur_digicert.plugin:DigiCertCISIssuerPlugin',
        ],
    },
    classifiers=[
        'Framework :: Flask',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        'Operating System :: OS Independent',
        'Topic :: Software Development',
        "Programming Language :: Python :: 3.5",
        "Natural Language :: English",
        "License :: OSI Approved :: Apache Software License"
    ]
)
<|endoftext|>


<commit_before>#
# Copyright 2018 Analytics Zoo Authors.
#
# 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 tempfile
import subprocess
from unittest import TestCase

import numpy as np
from zoo import init_nncontext
from zoo.orca.data import SparkXShards
from zoo.orca.learn.openvino.estimator import Estimator
from bigdl.dataset.base import maybe_download

property_path = os.path.join(os.path.split(__file__)[0],
                             "../../../../../../zoo/target/classes/app.properties")
data_url = "http://10.239.45.10:8081/repository/raw"

with open(property_path) as f:
    for _ in range(2):  # skip the first two lines
        next(f)
    for line in f:
        if "inner-ftp-uri" in line:
            line = line.strip()
            data_url = line.split("=")[1].replace("\\", "")

class TestEstimatorForOpenVINO(TestCase):
    def test_openvino(self):
        with tempfile.TemporaryDirectory() as local_path:
            model_url = data_url + "/analytics-zoo-data/openvino2020_resnet50.tar"
            model_path = maybe_download("openvino2020_resnet50.tar",
                                        local_path, model_url)
            cmd = "tar -xvf " + model_path + " -C " + local_path
            subprocess.Popen(cmd.split())
            model_path = os.path.join(local_path, "openvino2020_resnet50/resnet_v1_50.xml")
            est = Estimator.from_openvino(model_path=model_path)

            # ndarray
            input_data = np.random.random([20, 4, 3, 224, 224])
            result = est.predict(input_data)
            print(result)

            # xshards
            input_data_list = [np.random.random([1, 4, 3, 224, 224]),
                               np.random.random([2, 4, 3, 224, 224])]
            sc = init_nncontext()
            rdd = sc.parallelize(input_data_list, numSlices=2)
            shards = SparkXShards(rdd)

            def pre_processing(images):
                return {"x": images}

            shards = shards.transform_shard(pre_processing)
            result = est.predict(shards)
            result_c = result.collect()
            print(result_c)

if __name__ == "__main__":
    import pytest

    pytest.main([__file__])
<commit_msg>fix tar (#3137)<commit_after>#
# Copyright 2018 Analytics Zoo Authors.
#
# 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 tempfile
import subprocess
import tarfile
from unittest import TestCase

import numpy as np
from zoo import init_nncontext
from zoo.orca.data import SparkXShards
from zoo.orca.learn.openvino.estimator import Estimator
from bigdl.dataset.base import maybe_download

property_path = os.path.join(os.path.split(__file__)[0],
                             "../../../../../../zoo/target/classes/app.properties")
data_url = "http://10.239.45.10:8081/repository/raw"

with open(property_path) as f:
    for _ in range(2):  # skip the first two lines
        next(f)
    for line in f:
        if "inner-ftp-uri" in line:
            line = line.strip()
            data_url = line.split("=")[1].replace("\\", "")

class TestEstimatorForOpenVINO(TestCase):
    def test_openvino(self):
        with tempfile.TemporaryDirectory() as local_path:
            model_url = data_url + "/analytics-zoo-data/openvino2020_resnet50.tar"
            model_path = maybe_download("openvino2020_resnet50.tar",
                                        local_path, model_url)
            tar = tarfile.open(model_path)
            tar.extractall(path=local_path)
            tar.close()
            model_path = os.path.join(local_path, "openvino2020_resnet50/resnet_v1_50.xml")
            est = Estimator.from_openvino(model_path=model_path)

            # ndarray
            input_data = np.random.random([20, 4, 3, 224, 224])
            result = est.predict(input_data)
            print(result)

            # xshards
            input_data_list = [np.random.random([1, 4, 3, 224, 224]),
                               np.random.random([2, 4, 3, 224, 224])]
            sc = init_nncontext()
            rdd = sc.parallelize(input_data_list, numSlices=2)
            shards = SparkXShards(rdd)

            def pre_processing(images):
                return {"x": images}

            shards = shards.transform_shard(pre_processing)
            result = est.predict(shards)
            result_c = result.collect()
            print(result_c)

if __name__ == "__main__":
    import pytest

    pytest.main([__file__])
<|endoftext|>


<commit_before>import sys
sys.path.insert(0, 'src/reversion')
from distutils.core import setup
from version import __version__

# Load in babel support, if available.
try:
    from babel.messages import frontend as babel
    cmdclass = {"compile_catalog": babel.compile_catalog,
                "extract_messages": babel.extract_messages,
                "init_catalog": babel.init_catalog,
                "update_catalog": babel.update_catalog,}
except ImportError:
    cmdclass = {}

setup(name="django-reversion",
      version='.'.join(str(x) for x in __version__),
      license="BSD",
      description="An extension to the Django web framework that provides comprehensive version control facilities",
      long_description=open("README.markdown").read(),
      author="Dave Hall",
      author_email="dave@etianen.com",
      url="http://github.com/etianen/django-reversion",
      download_url="http://github.com/downloads/etianen/django-reversion/django-reversion-1.6.5.tar.gz",
      zip_safe=False,
      packages=["reversion", "reversion.management", "reversion.management.commands", "reversion.migrations"],
      package_dir={"": "src"},
      package_data = {"reversion": ["locale/*/LC_MESSAGES/django.*", "templates/reversion/*.html"]},
      cmdclass = cmdclass,
      classifiers=["Development Status :: 5 - Production/Stable",
                   "Environment :: Web Environment",
                   "Intended Audience :: Developers",
                   "License :: OSI Approved :: BSD License",
                   "Operating System :: OS Independent",
                   "Programming Language :: Python",
                   "Framework :: Django",])
<commit_msg>Removing download URL.<commit_after>import sys
sys.path.insert(0, 'src/reversion')
from distutils.core import setup
from version import __version__

# Load in babel support, if available.
try:
    from babel.messages import frontend as babel
    cmdclass = {"compile_catalog": babel.compile_catalog,
                "extract_messages": babel.extract_messages,
                "init_catalog": babel.init_catalog,
                "update_catalog": babel.update_catalog,}
except ImportError:
    cmdclass = {}

setup(name="django-reversion",
      version='.'.join(str(x) for x in __version__),
      license="BSD",
      description="An extension to the Django web framework that provides comprehensive version control facilities",
      long_description=open("README.markdown").read(),
      author="Dave Hall",
      author_email="dave@etianen.com",
      url="http://github.com/etianen/django-reversion",
      zip_safe=False,
      packages=["reversion", "reversion.management", "reversion.management.commands", "reversion.migrations"],
      package_dir={"": "src"},
      package_data = {"reversion": ["locale/*/LC_MESSAGES/django.*", "templates/reversion/*.html"]},
      cmdclass = cmdclass,
      classifiers=["Development Status :: 5 - Production/Stable",
                   "Environment :: Web Environment",
                   "Intended Audience :: Developers",
                   "License :: OSI Approved :: BSD License",
                   "Operating System :: OS Independent",
                   "Programming Language :: Python",
                   "Framework :: Django",])
<|endoftext|>


<commit_before>""" This is the setup.py script for setting up the package and fulfilling any
necessary requirements.

References:
https://github.com/pypa/sampleproject/blob/master/setup.py
https://github.com/biopython/biopython/blob/master/setup.py
http://python-packaging.readthedocs.io/en/latest/index.html
"""
# Modules Used
from setuptools import setup, find_packages
from codecs import open  # To use a consistent encoding
from os import path
import os
import sys
import pkg_resources
from importlib import import_module

# Save the standard error of the setup file. This can be removed soon.
sys.stderr = open('err.txt', 'w')

# Set the home path of the setup script/package
home = path.abspath(path.dirname(__file__))
name = 'OrthoEvol'

def readme():
    """Get the long description from the README file."""
    with open(path.join(home, 'README.rst'), encoding='utf-8') as f:
        return f.read()

# Setup the package by adding information to these parameters

setup(
    name=name,
    author='Rob Gilmore & Shaurita Hutchins',
    description="This package aids in the analysis of orthologous genes.",
    version='0.1.0a1',
    long_description=readme(),
    url='https://github.com/datasnakes/OrthoEvolution',
    license='MIT',
    keywords='bioinformatics science evolution orthology psychiatry genetics',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'Topic :: Scientific/Engineering :: Visualization',
        'Topic :: Scientific/Engineering :: Medical Science Apps.',
        'Programming Language :: Python :: 3',
        'Operating System :: POSIX :: Linux',
        'Operating System :: Unix',
        'Natural Language :: English',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Framework :: Flask',
        'Framework :: R-Shiny',
        'Framework :: Cookiecutter'
    ],
    # Packages will be automatically found if not in this list.
    packages=find_packages(exclude=['Docs', 'Examples', 'Tests']),
    include_package_data=True,
    entry_points={
        'console_scripts': ['d~s=Orthologs.command_line:main']
    },
    zip_safe=False,
    test_suite='nose.collector',
    tests_require=['nose']
)

# Set up the permissions for the BioSQL Perl scripts
scripts = import_module("OrthoEvol.Manager.BioSQL.biosql_repo.scripts")
biosql_scripts = pkg_resources.resource_filename(scripts.__name__, "")
for file in os.listdir(biosql_scripts):
    if '.pl' in file:
        script_path = os.path.join(biosql_scripts, file)
        os.chmod(script_path, mode=755)
<commit_msg>Added email and updated package version<commit_after>""" This is the setup.py script for setting up the package and fulfilling any
necessary requirements.

References:
https://github.com/pypa/sampleproject/blob/master/setup.py
https://github.com/biopython/biopython/blob/master/setup.py
http://python-packaging.readthedocs.io/en/latest/index.html
"""
# Modules Used
from setuptools import setup, find_packages
from codecs import open  # To use a consistent encoding
from os import path
import os
import sys
import pkg_resources
from importlib import import_module

# Save the standard error of the setup file. This can be removed soon.
sys.stderr = open('err.txt', 'w')

# Set the home path of the setup script/package
home = path.abspath(path.dirname(__file__))
name = 'OrthoEvol'

def readme():
    """Get the long description from the README file."""
    with open(path.join(home, 'README.rst'), encoding='utf-8') as f:
        return f.read()

# Setup the package by adding information to these parameters

setup(
    name=name,
    author='Rob Gilmore & Shaurita Hutchins',
    author_email='datasnakes@gmail.com',
    description="This package aids in the analysis of orthologous genes.",
    version='0.9.0a2',
    long_description=readme(),
    url='https://github.com/datasnakes/OrthoEvolution',
    license='MIT',
    keywords='bioinformatics science evolution orthology psychiatry genetics',
    download_url='',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'Topic :: Scientific/Engineering :: Visualization',
        'Topic :: Scientific/Engineering :: Medical Science Apps.',
        'Programming Language :: Python :: 3',
        'Operating System :: POSIX :: Linux',
        'Operating System :: Unix',
        'Natural Language :: English',
        'Programming Language :: Python :: 3 :: Only',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Framework :: Flask',
        'Framework :: R-Shiny',
        'Framework :: Cookiecutter'
    ],
    # Packages will be automatically found if not in this list.
    packages=find_packages(exclude=['Docs', 'Examples', 'Tests']),
    include_package_data=True,
    entry_points={
        'console_scripts': ['d~s=Orthologs.command_line:main']
    },
    zip_safe=False,
    test_suite='nose.collector',
    tests_require=['nose']
)

# Set up the permissions for the BioSQL Perl scripts
scripts = import_module("OrthoEvol.Manager.BioSQL.biosql_repo.scripts")
biosql_scripts = pkg_resources.resource_filename(scripts.__name__, "")
for file in os.listdir(biosql_scripts):
    if '.pl' in file:
        script_path = os.path.join(biosql_scripts, file)
        os.chmod(script_path, mode=755)
<|endoftext|>


<commit_before># -*- coding: utf-8 -*-
# vim:ts=4:sw=4:noexpandtab
# c-basic-indent: 4; tab-width: 4; indent-tabs-mode: true;
import sys

import setuptools

py26reqs = ['importlib'] if sys.version_info < (2, 7) else []

setup_params = dict(
	name="pmxbot",
	use_hg_version=True,
	packages=setuptools.find_packages(),
	include_package_data=True,
	entry_points=dict(
		console_scripts = [
			'pmxbot=pmxbot.core:run',
			'pmxbotweb=pmxbot.web.viewer:run',
		],
		pmxbot_handlers = [
			'pmxbot logging = pmxbot.logging:Logger.initialize',
			'pmxbot karma = pmxbot.karma:Karma.initialize',
			'pmxbot quotes = pmxbot.quotes:Quotes.initialize',
			'pmxbot core commands = pmxbot.commands',
			'pmxbot notifier = pmxbot.notify:Notify.init',
			'pmxbot feedparser = pmxbot.rss:RSSFeeds',
			'pmxbot rolls = pmxbot.rolls:ParticipantLogger.initialize',
			'pmxbot config = pmxbot.config_',
			'pmxbot system commands = pmxbot.system',
		],
	),
	install_requires=[
		"irc>=8.0,<9.0dev",
		"popquotes>=1.3",
		"excuses>=1.1.2",
		"pyyaml",
		"feedparser",
		"pytz",
		"wordnik>=2.1.2,<3.0",
		"jaraco.util>=6.6,<7dev",
		"beautifulsoup4",
		#for viewer
		"jinja2",
		"cherrypy>=3.2.3dev-20121007,<3.3dev",
		"jaraco.compat>=1.0.3",
	] + py26reqs,
	description="IRC bot - full featured, yet extensible and customizable",
	license = 'MIT',
	author="YouGov, Plc.",
	author_email="open.source@yougov.com",
	maintainer = 'Jason R. Coombs',
	maintainer_email = 'Jason.Coombs@YouGov.com',
	url = 'http://bitbucket.org/yougov/pmxbot',
	dependency_links = [
		'https://bitbucket.org/cherrypy/cherrypy/downloads',
	],
	classifiers=[
		'Development Status :: 5 - Production/Stable',
		'License :: OSI Approved :: MIT License',
		'Operating System :: POSIX',
		'Operating System :: Microsoft :: Windows',
		'Operating System :: MacOS :: MacOS X',
		'Programming Language :: Python :: 2.7',
		'Programming Language :: Python :: 3',
		'Topic :: Communications :: Chat :: Internet Relay Chat',
		'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
	],
	long_description = open('README.rst').read(),
	setup_requires=[
		'hgtools<3.0dev',
		'pytest-runner>=1.1,<3.0dev',
	],
	tests_require=[
		'pymongo',
		'pytest',
		'jaraco.test>=1.0.2,<2.0dev',
	],
	use_2to3=True,
)

if __name__ == '__main__':
	setuptools.setup(**setup_params)
<commit_msg>The CherryPy 3.2.3 release is final and official<commit_after># -*- coding: utf-8 -*-
# vim:ts=4:sw=4:noexpandtab
# c-basic-indent: 4; tab-width: 4; indent-tabs-mode: true;
import sys

import setuptools

py26reqs = ['importlib'] if sys.version_info < (2, 7) else []

setup_params = dict(
	name="pmxbot",
	use_hg_version=True,
	packages=setuptools.find_packages(),
	include_package_data=True,
	entry_points=dict(
		console_scripts = [
			'pmxbot=pmxbot.core:run',
			'pmxbotweb=pmxbot.web.viewer:run',
		],
		pmxbot_handlers = [
			'pmxbot logging = pmxbot.logging:Logger.initialize',
			'pmxbot karma = pmxbot.karma:Karma.initialize',
			'pmxbot quotes = pmxbot.quotes:Quotes.initialize',
			'pmxbot core commands = pmxbot.commands',
			'pmxbot notifier = pmxbot.notify:Notify.init',
			'pmxbot feedparser = pmxbot.rss:RSSFeeds',
			'pmxbot rolls = pmxbot.rolls:ParticipantLogger.initialize',
			'pmxbot config = pmxbot.config_',
			'pmxbot system commands = pmxbot.system',
		],
	),
	install_requires=[
		"irc>=8.0,<9.0dev",
		"popquotes>=1.3",
		"excuses>=1.1.2",
		"pyyaml",
		"feedparser",
		"pytz",
		"wordnik>=2.1.2,<3.0",
		"jaraco.util>=6.6,<7dev",
		"beautifulsoup4",
		#for viewer
		"jinja2",
		"cherrypy>=3.2.3,<3.3dev",
		"jaraco.compat>=1.0.3",
	] + py26reqs,
	description="IRC bot - full featured, yet extensible and customizable",
	license = 'MIT',
	author="YouGov, Plc.",
	author_email="open.source@yougov.com",
	maintainer = 'Jason R. Coombs',
	maintainer_email = 'Jason.Coombs@YouGov.com',
	url = 'http://bitbucket.org/yougov/pmxbot',
	classifiers=[
		'Development Status :: 5 - Production/Stable',
		'License :: OSI Approved :: MIT License',
		'Operating System :: POSIX',
		'Operating System :: Microsoft :: Windows',
		'Operating System :: MacOS :: MacOS X',
		'Programming Language :: Python :: 2.7',
		'Programming Language :: Python :: 3',
		'Topic :: Communications :: Chat :: Internet Relay Chat',
		'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
	],
	long_description = open('README.rst').read(),
	setup_requires=[
		'hgtools<3.0dev',
		'pytest-runner>=1.1,<3.0dev',
	],
	tests_require=[
		'pymongo',
		'pytest',
		'jaraco.test>=1.0.2,<2.0dev',
	],
	use_2to3=True,
)

if __name__ == '__main__':
	setuptools.setup(**setup_params)
<|endoftext|>


<commit_before># This program demonstrates multithreading

import threading, time
print('Start of program.')

def takeANap():
    time.sleep(5)
    print('Wake up!')

threadObj = threading.Thread(target=takeANap)
threadObj.start()

print('End of program.')
<commit_msg>Update P5_threadDemo.py added docstrings and wrapped in main function<commit_after>"""Thread demo

This program uses :py:mod:`threading` to demonstrate multithreading.

"""

import time
print('Start of program.')

def takeANap() -> None:
    """Take a nap

    Simple 5 second timer using :func:`time.sleep` followed by a 'Wake up!' print statement.

    Returns:
        None. Waits 5 seconds, then prints an exclamation.
    """
    time.sleep(5)
    print('Wake up!')

def main():
    import threading
    threadObj = threading.Thread(target=takeANap)
    threadObj.start()

    print('End of program.')

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


<commit_before># The Logrus
#
# Copyright 2015-2017 Joe Block <jpb@unixorn.net>
#
# 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.

"""
logrus is a collection of utility functions.
"""

import os
import shutil
import subprocess
from setuptools import setup, find_packages, Command

def system_call(command):
  """Run a command and return stdout.

  Would be better to use subprocess.check_output, but this works on 2.6,
  which is still the system Python on CentOS 7."""
  p = subprocess.Popen([command], stdout=subprocess.PIPE, shell=True)
  return p.stdout.read()

name = 'logrus'
version = "0.1.%s" % (system_call('git rev-list HEAD --count').strip())

class CleanCommand(Command):
  """
  Add a clean option to setup.py's commands
  """
  description = 'Clean up'
  user_options = []

  def initialize_options(self):
    self.cwd = None

  def finalize_options(self):
    self.cwd = os.getcwd()

  def run(self):
    assert os.getcwd() == self.cwd, "Must be in package root: %s" % self.cwd
    if os.path.isdir('build'):
      shutil.rmtree('build')
    if os.path.isdir('dist'):
      shutil.rmtree('dist')

setup(
  name=name,
  author="Joe Block",
  author_email="jpb@unixorn.net",
  description="The Logrus is a collection of random utility functions",
  url="https://github.com/unixorn/logrus",
  packages=find_packages(),
  version=version,
  download_url="https://github.com/unixorn/logrus/tarball/%s" % version,
  classifiers=[
    "Development Status :: 3 - Alpha",
    "Operating System :: POSIX",
    "License :: OSI Approved :: Apache Software License",
    "Programming Language :: Python :: 2.6",
    "Topic :: Software Development :: Libraries :: Python Modules",
  ],
  cmdclass={
    "clean": CleanCommand,
  },
  keywords=["devops", "utility"],
)
<commit_msg>Standardize docstring quoting<commit_after># The Logrus
#
# Copyright 2015-2017 Joe Block <jpb@unixorn.net>
#
# 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.

'''
logrus is a collection of utility functions.
'''

import os
import shutil
import subprocess
from setuptools import setup, find_packages, Command

def system_call(command):
  '''
  Run a command and return stdout.

  Would be better to use subprocess.check_output, but this works on 2.6,
  which is still the system Python on CentOS 7.'''
  p = subprocess.Popen([command], stdout=subprocess.PIPE, shell=True)
  return p.stdout.read()

name = 'logrus'
version = "0.1.%s" % (system_call('git rev-list HEAD --count').strip())

class CleanCommand(Command):
  '''
  Add a clean option to setup.py's commands
  '''
  description = 'Clean up'
  user_options = []

  def initialize_options(self):
    self.cwd = None

  def finalize_options(self):
    self.cwd = os.getcwd()

  def run(self):
    assert os.getcwd() == self.cwd, "Must be in package root: %s" % self.cwd
    if os.path.isdir('build'):
      shutil.rmtree('build')
    if os.path.isdir('dist'):
      shutil.rmtree('dist')

setup(
  name=name,
  author="Joe Block",
  author_email="jpb@unixorn.net",
  description="The Logrus is a collection of random utility functions",
  url="https://github.com/unixorn/logrus",
  packages=find_packages(),
  version=version,
  download_url="https://github.com/unixorn/logrus/tarball/%s" % version,
  classifiers=[
    "Development Status :: 3 - Alpha",
    "Operating System :: POSIX",
    "License :: OSI Approved :: Apache Software License",
    "Programming Language :: Python :: 2.6",
    "Topic :: Software Development :: Libraries :: Python Modules",
  ],
  cmdclass={
    "clean": CleanCommand,
  },
  keywords=["devops", "utility"],
)
<|endoftext|>


<commit_before>import setuptools

def long_description():
    try:
        with open('README.md') as f:
            return f.read()
    except:
        return ''

setuptools.setup(
    name='sourcer',
    version='0.3.6',
    author='jvs',
    author_email='vonseg@protonmail.com',
    url='https://github.com/jvs/sourcer',
    description='simple parsing library',
    long_description=long_description(),
    long_description_content_type='text/markdown',
    python_requires='>=3.6',
    install_requires=[],
    packages=['sourcer'],
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Topic :: Software Development :: Interpreters',
        'Topic :: Software Development :: Compilers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
    ],
    platforms='any',
    license='MIT License',
    keywords=['packrat', 'parser', 'peg'],
)
<commit_msg>Bump version number.<commit_after>import setuptools

def long_description():
    try:
        with open('README.md') as f:
            return f.read()
    except:
        return ''

setuptools.setup(
    name='sourcer',
    version='0.3.8',
    author='jvs',
    author_email='vonseg@protonmail.com',
    url='https://github.com/jvs/sourcer',
    description='simple parsing library',
    long_description=long_description(),
    long_description_content_type='text/markdown',
    python_requires='>=3.6',
    install_requires=[],
    packages=['sourcer'],
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Topic :: Software Development :: Interpreters',
        'Topic :: Software Development :: Compilers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python',
    ],
    platforms='any',
    license='MIT License',
    keywords=['packrat', 'parser', 'peg'],
)
<|endoftext|>


<commit_before>
import os
from setuptools import setup, find_packages

VERSION = '0.9.4'

setup(
        namespace_packages = ['tiddlywebplugins'],
        name = 'tiddlywebplugins.templates',
        version = VERSION,
        description = 'A TiddlyWeb plugin with tools and packaging for templates.',
        long_description=file(os.path.join(os.path.dirname(__file__), 'README')).read(),
        author = 'Chris Dent',
        url = 'http://pypi.python.org/pypi/tiddlywebplugins.templates',
        packages = find_packages(exclude=['test']),
        author_email = 'cdent@peermore.com',
        platforms = 'Posix; MacOS X; Windows',
        install_requires = ['setuptools',
            'tiddlwyeb>=1.4.13',
            'Jinja2'],
        include_package_data = True,
        zip_safe = False,
        license = 'BSD'
)
<commit_msg>release 0.9.5 to cover really stupid typo in dependencies<commit_after>
import os
from setuptools import setup, find_packages

VERSION = '0.9.5'

setup(
        namespace_packages = ['tiddlywebplugins'],
        name = 'tiddlywebplugins.templates',
        version = VERSION,
        description = 'A TiddlyWeb plugin with tools and packaging for templates.',
        long_description=file(os.path.join(os.path.dirname(__file__), 'README')).read(),
        author = 'Chris Dent',
        url = 'http://pypi.python.org/pypi/tiddlywebplugins.templates',
        packages = find_packages(exclude=['test']),
        author_email = 'cdent@peermore.com',
        platforms = 'Posix; MacOS X; Windows',
        install_requires = ['setuptools',
            'tiddlyweb>=1.4.13',
            'Jinja2'],
        include_package_data = True,
        zip_safe = False,
        license = 'BSD'
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name='rawdisk',
    author='D. Bakunas',
    version='0.1dev',
    description='Experimental python code to learn different disk formats',
    packages=find_packages(),
    license='LICENSE.txt',
    long_description=open('README.md').read(),
    install_requires=[
        'hexdump >= 2.0',
        'hurry.filesize >= 0.9',
        'yapsy >= 1.10.323'
    ],
    entry_points={
        'console_scripts': [
            'rawdisk = rawdisk.main:main',
        ]
    }
)
<commit_msg>Make sure plugin configuration files are included<commit_after>from setuptools import setup, find_packages

setup(
    name='rawdisk',
    author='D. Bakunas',
    version='0.2dev',
    description='Experimental python code to learn different disk formats',
    packages=find_packages(),
    package_data = {'rawdisk.plugins.filesystems' : ['*.yapsy-plugin']},
    license='LICENSE.txt',
    long_description=open('README.md').read(),
    install_requires=[
        'hexdump >= 2.0',
        'hurry.filesize >= 0.9',
        'yapsy >= 1.10.323'
    ],
    entry_points={
        'console_scripts': [
            'rawdisk = rawdisk.main:main',
        ]
    }
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
"""
ARTview - the ARM Radar Toolkit Viewer.

ARTview, is an open source Python module that
allows access to Py-ART functions within a PyQt graphical interface and
provides visualization of weather radar data.

"""

import os
import shutil
import sys
import re
import subprocess
import glob

if sys.version_info[0] < 3:
    import __builtin__ as builtins
else:
    import builtins

DOCLINES = __doc__.split("\n")

CLASSIFIERS = """\
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Atmospheric Science
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
"""

NAME = 'ARTview'
MAINTAINER = "ARTview Developers"
MAINTAINER_EMAIL = "nick.guy@uwyo.edu"
DESCRIPTION = DOCLINES[0]
LONG_DESCRIPTION = "\n".join(DOCLINES[2:])
URL = "https://github.com/nguy/artview"
DOWNLOAD_URL = "https://github.com/nguy/artview"
LICENSE = 'BSD'
CLASSIFIERS = filter(None, CLASSIFIERS.split('\n'))
PLATFORMS = ["Linux", "Mac OS-X", "Unix"]
MAJOR = 1
MINOR = 2
MICRO = 3
ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
SCRIPTS = glob.glob('scripts/*') + ['scripts/artview']

# Return the git revision as a string
def git_version():
    def _minimal_ext_cmd(cmd):
        # construct minimal environment
        env = {}
        for k in ['SYSTEMROOT', 'PATH']:
            v = os.environ.get(k)
            if v is not None:
                env[k] = v
        # LANGUAGE is used on win32
        env['LANGUAGE'] = 'C'
        env['LANG'] = 'C'
        env['LC_ALL'] = 'C'
        out = subprocess.Popen(
            cmd, stdout=subprocess.PIPE, env=env).communicate()[0]
        return out

    try:
        out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
        GIT_REVISION = out.strip().decode('ascii')
    except OSError:
        GIT_REVISION = "Unknown"

    return GIT_REVISION

# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'):
    os.remove('MANIFEST')

# This is a bit hackish: we are setting a global variable so that the main
# artview __init__ can detect if it is being loaded by the setup routine, to
# avoid attempting to load components that aren't built yet. While ugly, it's
# a lot more robust than what was previously being used.
builtins.__ARTVIEW_SETUP__ = True

def write_version_py(filename='artview/version.py'):
    cnt = """
# THIS FILE IS GENERATED FROM ARTVIEW SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'
git_revision = '%(git_revision)s'
release = %(isrelease)s

if not release:
    version = full_version
"""
    # Adding the git rev number needs to be done inside write_version_py(),
    # otherwise import of artview.version messes up the build under Python 3.
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    elif os.path.exists('artview/version.py'):
        # must be a source distribution, use existing version file
        try:
            from artview.version import git_revision as GIT_REVISION
        except ImportError:
            raise ImportError("Unable to import git_revision. Try removing "
                              "artview/version.py and the build directory "
                              "before building.")
    else:
        GIT_REVISION = "Unknown"

    if not ISRELEASED:
        FULLVERSION += '.dev+' + GIT_REVISION[:7]

    a = open(filename, 'w')
    try:
        a.write(cnt % {'version': VERSION,
                       'full_version': FULLVERSION,
                       'git_revision': GIT_REVISION,
                       'isrelease': str(ISRELEASED)})
    finally:
        a.close()

def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration(None, parent_package, top_path)
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)

    config.add_subpackage('artview')
    config.add_data_files(('artview', '*.txt'))

    return config

def setup_package():

    # rewrite version file
    write_version_py()

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

    setup(
        name=NAME,
        maintainer=MAINTAINER,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        url=URL,
        version=VERSION,
        download_url=DOWNLOAD_URL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        platforms=PLATFORMS,
        configuration=configuration,
        scripts=SCRIPTS,
    )

def pre_instalation_tests():
    # make tests before installing
    # to avoid risking breaking instalation do it in a try
    try:
        from tests.qt import test_matplotlib_qt_backend
        ans = test_matplotlib_qt_backend()
        if ans is False:
            exit(-1)
    except:
        pass

    # test dependencies
    from pkg_resources import parse_version
    dependencies = {
        'pyart': '1.5',
        'matplotlib': '1.1.0',
        # 'mpl_toolkits.basemap': '0.99',
        }
    for key in dependencies.keys():
        dep = __import__(key, locals(), globals(), ['__name__'])
        if dependencies[key] is not None:
            if (parse_version(dep.__version__) <
                parse_version(dependencies[key])):
                raise Exception('Missing Dependency: %s >= %s. Has %s, %s' %
                                (key, dependencies[key], key, dep.__version__))

    # test pyqt4 (non standard version)
    from PyQt4.Qt import PYQT_VERSION_STR
    if (parse_version(PYQT_VERSION_STR) <
        parse_version('4.6')):
        raise Exception('Missing Dependency: %s >= %s. Has %s, %s' %
                        ('PyQt4', '4.6', 'PyQt4', PYQT_VERSION_STR))

if __name__ == '__main__':
    pre_instalation_tests()
    setup_package()
<commit_msg>MAINT: Start v1.3+dev<commit_after>#!/usr/bin/env python
"""
ARTview - the ARM Radar Toolkit Viewer.

ARTview, is an open source Python module that
allows access to Py-ART functions within a PyQt graphical interface and
provides visualization of weather radar data.

"""

import os
import shutil
import sys
import re
import subprocess
import glob

if sys.version_info[0] < 3:
    import __builtin__ as builtins
else:
    import builtins

DOCLINES = __doc__.split("\n")

CLASSIFIERS = """\
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Atmospheric Science
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
"""

NAME = 'ARTview'
MAINTAINER = "ARTview Developers"
MAINTAINER_EMAIL = "nick.guy@uwyo.edu"
DESCRIPTION = DOCLINES[0]
LONG_DESCRIPTION = "\n".join(DOCLINES[2:])
URL = "https://github.com/nguy/artview"
DOWNLOAD_URL = "https://github.com/nguy/artview"
LICENSE = 'BSD'
CLASSIFIERS = filter(None, CLASSIFIERS.split('\n'))
PLATFORMS = ["Linux", "Mac OS-X", "Unix"]
MAJOR = 1
MINOR = 3
MICRO = 0
ISRELEASED = False
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
SCRIPTS = glob.glob('scripts/*') + ['scripts/artview']

# Return the git revision as a string
def git_version():
    def _minimal_ext_cmd(cmd):
        # construct minimal environment
        env = {}
        for k in ['SYSTEMROOT', 'PATH']:
            v = os.environ.get(k)
            if v is not None:
                env[k] = v
        # LANGUAGE is used on win32
        env['LANGUAGE'] = 'C'
        env['LANG'] = 'C'
        env['LC_ALL'] = 'C'
        out = subprocess.Popen(
            cmd, stdout=subprocess.PIPE, env=env).communicate()[0]
        return out

    try:
        out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
        GIT_REVISION = out.strip().decode('ascii')
    except OSError:
        GIT_REVISION = "Unknown"

    return GIT_REVISION

# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'):
    os.remove('MANIFEST')

# This is a bit hackish: we are setting a global variable so that the main
# artview __init__ can detect if it is being loaded by the setup routine, to
# avoid attempting to load components that aren't built yet. While ugly, it's
# a lot more robust than what was previously being used.
builtins.__ARTVIEW_SETUP__ = True

def write_version_py(filename='artview/version.py'):
    cnt = """
# THIS FILE IS GENERATED FROM ARTVIEW SETUP.PY
short_version = '%(version)s'
version = '%(version)s'
full_version = '%(full_version)s'
git_revision = '%(git_revision)s'
release = %(isrelease)s

if not release:
    version = full_version
"""
    # Adding the git rev number needs to be done inside write_version_py(),
    # otherwise import of artview.version messes up the build under Python 3.
    FULLVERSION = VERSION
    if os.path.exists('.git'):
        GIT_REVISION = git_version()
    elif os.path.exists('artview/version.py'):
        # must be a source distribution, use existing version file
        try:
            from artview.version import git_revision as GIT_REVISION
        except ImportError:
            raise ImportError("Unable to import git_revision. Try removing "
                              "artview/version.py and the build directory "
                              "before building.")
    else:
        GIT_REVISION = "Unknown"

    if not ISRELEASED:
        FULLVERSION += '.dev+' + GIT_REVISION[:7]

    a = open(filename, 'w')
    try:
        a.write(cnt % {'version': VERSION,
                       'full_version': FULLVERSION,
                       'git_revision': GIT_REVISION,
                       'isrelease': str(ISRELEASED)})
    finally:
        a.close()

def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration
    config = Configuration(None, parent_package, top_path)
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)

    config.add_subpackage('artview')
    config.add_data_files(('artview', '*.txt'))

    return config

def setup_package():

    # rewrite version file
    write_version_py()

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

    setup(
        name=NAME,
        maintainer=MAINTAINER,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        url=URL,
        version=VERSION,
        download_url=DOWNLOAD_URL,
        license=LICENSE,
        classifiers=CLASSIFIERS,
        platforms=PLATFORMS,
        configuration=configuration,
        scripts=SCRIPTS,
    )

def pre_instalation_tests():
    # make tests before installing
    # to avoid risking breaking instalation do it in a try
    try:
        from tests.qt import test_matplotlib_qt_backend
        ans = test_matplotlib_qt_backend()
        if ans is False:
            exit(-1)
    except:
        pass

    # test dependencies
    from pkg_resources import parse_version
    dependencies = {
        'pyart': '1.5',
        'matplotlib': '1.1.0',
        # 'mpl_toolkits.basemap': '0.99',
        }
    for key in dependencies.keys():
        dep = __import__(key, locals(), globals(), ['__name__'])
        if dependencies[key] is not None:
            if (parse_version(dep.__version__) <
                parse_version(dependencies[key])):
                raise Exception('Missing Dependency: %s >= %s. Has %s, %s' %
                                (key, dependencies[key], key, dep.__version__))

    # test pyqt4 (non standard version)
    from PyQt4.Qt import PYQT_VERSION_STR
    if (parse_version(PYQT_VERSION_STR) <
        parse_version('4.6')):
        raise Exception('Missing Dependency: %s >= %s. Has %s, %s' %
                        ('PyQt4', '4.6', 'PyQt4', PYQT_VERSION_STR))

if __name__ == '__main__':
    pre_instalation_tests()
    setup_package()
<|endoftext|>


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

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

import os
import sys

# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
    os.environ['C_INCLUDE_PATH'] = '/usr/local/include'

version = '2.0.59'

setup(  name = 'coi-services',
        version = version,
        description = 'OOI ION COI Services',
        url = 'https://github.com/ooici/coi-services',
        download_url = 'http://sddevrepo.oceanobservatories.org/releases/',
        license = 'Apache 2.0',
        author = 'Michael Meisinger',
        author_email = 'mmeisinger@ucsd.edu',
        keywords = ['ooici','ioncore', 'pyon', 'coi'],
        packages = find_packages(),
        dependency_links = [
            'http://sddevrepo.oceanobservatories.org/releases/',
        ],
        test_suite = 'pyon',
        install_requires = [
            'pyzmq==2.2.0',
            'coverage-model',
            'ion-functions',
            'pyon',
            'Flask==0.9',
            'python-dateutil==1.5',
            'WebTest==1.4.0',
            'seawater==2.0.1',
            'pygsw==0.0.10',
            'matplotlib==1.1.1',
            'Pydap==3.1.RC1',
            'netCDF4>=1.0',
            'elasticpy==0.12',
            'pyparsing==1.5.6',
            'ntplib',
            'xlrd==0.8.0',
            'apscheduler==2.1.0',
            'pyproj==1.9.3',
            'udunitspy==0.0.6',
        ],
        entry_points = """
            [pydap.handler]
            coverage = ion.util.pydap.handlers.coverage:Handler
        """,
     )

<commit_msg>Bump Version to 2.0.60-dev<commit_after>#!/usr/bin/env python

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

import os
import sys

# Add /usr/local/include to the path for macs, fixes easy_install for several packages (like gevent and pyyaml)
if sys.platform == 'darwin':
    os.environ['C_INCLUDE_PATH'] = '/usr/local/include'

version = '2.0.60-dev'

setup(  name = 'coi-services',
        version = version,
        description = 'OOI ION COI Services',
        url = 'https://github.com/ooici/coi-services',
        download_url = 'http://sddevrepo.oceanobservatories.org/releases/',
        license = 'Apache 2.0',
        author = 'Michael Meisinger',
        author_email = 'mmeisinger@ucsd.edu',
        keywords = ['ooici','ioncore', 'pyon', 'coi'],
        packages = find_packages(),
        dependency_links = [
            'http://sddevrepo.oceanobservatories.org/releases/',
        ],
        test_suite = 'pyon',
        install_requires = [
            'pyzmq==2.2.0',
            'coverage-model',
            'ion-functions',
            'pyon',
            'Flask==0.9',
            'python-dateutil==1.5',
            'WebTest==1.4.0',
            'seawater==2.0.1',
            'pygsw==0.0.10',
            'matplotlib==1.1.1',
            'Pydap==3.1.RC1',
            'netCDF4>=1.0',
            'elasticpy==0.12',
            'pyparsing==1.5.6',
            'ntplib',
            'xlrd==0.8.0',
            'apscheduler==2.1.0',
            'pyproj==1.9.3',
            'udunitspy==0.0.6',
        ],
        entry_points = """
            [pydap.handler]
            coverage = ion.util.pydap.handlers.coverage:Handler
        """,
     )

<|endoftext|>


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

import os
import sys

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

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
    name='confgen',
    version='0.1.0',
    description='ConfGen is a little command utility that will \
    help you to generate some configurations thanks to jinja2 templating',
    long_description=readme + '\n\n' + history,
    author='Natjohan',
    author_email='contact@natjohan.info',
    url='https://github.com/natjohan/confgen',
    packages=find_packages(),
    package_dir={'confgen': 'confgen'},
    include_package_data=True,
    install_requires=[
        'Jinja2==2.5',
    ],
    license="BSD",
    zip_safe=False,
    keywords='confgen',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Environment :: Console',
        'Topic :: Utilities',
    ],
    test_suite='tests',
    entry_points={
        "console_scripts": [
          "confgen = confgen.app:main",
        ],
      },
)<commit_msg>change for python 2.X only<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

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

if sys.argv[-1] == 'publish':
    os.system('python setup.py sdist upload')
    sys.exit()

readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
    name='confgen',
    version='0.1.1',
    description='ConfGen is a little command utility that will \
    help you to generate some configurations thanks to jinja2 templating',
    long_description=readme + '\n\n' + history,
    author='Natjohan',
    author_email='contact@natjohan.info',
    url='https://github.com/natjohan/confgen',
    packages=find_packages(),
    package_dir={'confgen': 'confgen'},
    include_package_data=True,
    install_requires=[
        'Jinja2==2.5',
    ],
    license="BSD",
    zip_safe=False,
    keywords='confgen',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: BSD License',
        'Operating System :: OS Independent',
        'Natural Language :: English',
        "Programming Language :: Python :: 2",
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Environment :: Console',
        'Topic :: Utilities',
    ],
    test_suite='tests',
    entry_points={
        "console_scripts": [
          "confgen = confgen.app:main",
        ],
      },
)<|endoftext|>