<commit_before># -*- coding: utf-8 -*-
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

setup(name = "ws4py",
      version = '0.3.0',
      description = "WebSocket library for Python",
      maintainer = "Sylvain Hellegouarch",
      maintainer_email = "sh@defuze.org",
      url = "https://github.com/Lawouach/WebSocket-for-Python",
      download_url = "http://www.defuze.org/oss/ws4py/",
      packages = ["ws4py", "ws4py.client", "ws4py.server", "ws4py.server.wsgi"],
      tests_require=['unittest2', 'gevent', 'cherrypy'],
      test_suite='unittest2.collector',
      platforms = ["any"],
      license = 'BSD',
      long_description = "WebSocket library for Python",
      classifiers=[
          'Development Status :: 4 - Beta',
          'Framework :: CherryPy',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Communications',
          'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
          'Topic :: Software Development :: Libraries :: Python Modules'
          ],
     )
<commit_msg>the wsgi package is gone<commit_after># -*- coding: utf-8 -*-
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

setup(name = "ws4py",
      version = '0.3.0',
      description = "WebSocket library for Python",
      maintainer = "Sylvain Hellegouarch",
      maintainer_email = "sh@defuze.org",
      url = "https://github.com/Lawouach/WebSocket-for-Python",
      download_url = "http://www.defuze.org/oss/ws4py/",
      packages = ["ws4py", "ws4py.client", "ws4py.server"],
      tests_require=['unittest2', 'gevent', 'cherrypy'],
      test_suite='unittest2.collector',
      platforms = ["any"],
      license = 'BSD',
      long_description = "WebSocket library for Python",
      classifiers=[
          'Development Status :: 4 - Beta',
          'Framework :: CherryPy',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: BSD License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.6',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.2',
          'Programming Language :: Python :: 3.3',
          'Programming Language :: Python :: Implementation :: CPython',
          'Programming Language :: Python :: Implementation :: PyPy',
          'Topic :: Communications',
          'Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware',
          'Topic :: Software Development :: Libraries :: Python Modules'
          ],
     )
<|endoftext|>


<commit_before># Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://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 io
import os

import setuptools

name = "google-cloud-vision"
description = "Cloud Vision API API client library"
version = "2.3.1"
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
    "google-api-core[grpc] >= 1.22.2, < 2.0.0dev",
    "proto-plus >= 1.15.0",
]

extras = {"libcst": "libcst >= 0.2.5"}

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

readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
    readme = readme_file.read()

packages = [
    package
    for package in setuptools.PEP420PackageFinder.find()
    if package.startswith("google")
]

namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")

setuptools.setup(
    name=name,
    version=version,
    description=description,
    long_description=readme,
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    license="Apache 2.0",
    url="https://github.com/googleapis/python-vision",
    classifiers=[
        release_status,
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Operating System :: OS Independent",
        "Topic :: Internet",
    ],
    platforms="Posix; MacOS X; Windows",
    packages=packages,
    namespace_packages=namespaces,
    install_requires=dependencies,
    extras_require=extras,
    python_requires=">=3.6",
    scripts=[
        "scripts/fixup_vision_v1_keywords.py",
        "scripts/fixup_vision_v1p1beta1_keywords.py",
        "scripts/fixup_vision_v1p2beta1_keywords.py",
        "scripts/fixup_vision_v1p3beta1_keywords.py",
        "scripts/fixup_vision_v1p4beta1_keywords.py",
    ],
    include_package_data=True,
    zip_safe=False,
)
<commit_msg>chore: prevent normalization of semver versioning (#137)<commit_after># Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://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 io
import os

import setuptools

# Disable version normalization performed by setuptools.setup()
try:
    # Try the approach of using sic(), added in setuptools 46.1.0
    from setuptools import sic
except ImportError:
    # Try the approach of replacing packaging.version.Version
    sic = lambda v: v
    try:
        # setuptools >=39.0.0 uses packaging from setuptools.extern
        from setuptools.extern import packaging
    except ImportError:
        # setuptools <39.0.0 uses packaging from pkg_resources.extern
        from pkg_resources.extern import packaging
    packaging.version.Version = packaging.version.LegacyVersion

name = "google-cloud-vision"
description = "Cloud Vision API API client library"
version = "2.3.1"
release_status = "Development Status :: 5 - Production/Stable"
dependencies = [
    "google-api-core[grpc] >= 1.22.2, < 2.0.0dev",
    "proto-plus >= 1.15.0",
]

extras = {"libcst": "libcst >= 0.2.5"}

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

readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
    readme = readme_file.read()

packages = [
    package
    for package in setuptools.PEP420PackageFinder.find()
    if package.startswith("google")
]

namespaces = ["google"]
if "google.cloud" in packages:
    namespaces.append("google.cloud")

setuptools.setup(
    name=name,
    version=sic(version),
    description=description,
    long_description=readme,
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    license="Apache 2.0",
    url="https://github.com/googleapis/python-vision",
    classifiers=[
        release_status,
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Operating System :: OS Independent",
        "Topic :: Internet",
    ],
    platforms="Posix; MacOS X; Windows",
    packages=packages,
    namespace_packages=namespaces,
    install_requires=dependencies,
    extras_require=extras,
    python_requires=">=3.6",
    scripts=[
        "scripts/fixup_vision_v1_keywords.py",
        "scripts/fixup_vision_v1p1beta1_keywords.py",
        "scripts/fixup_vision_v1p2beta1_keywords.py",
        "scripts/fixup_vision_v1p3beta1_keywords.py",
        "scripts/fixup_vision_v1p4beta1_keywords.py",
    ],
    include_package_data=True,
    zip_safe=False,
)
<|endoftext|>


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

from setuptools import setup, find_packages
from codecs import open
from os import path

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

about = {}
with open(path.join(here, 'itolapi', '__version__.py')) as f:
    exec(f.read(), about)

setup(name='itolapi',
      version=about['__version__'],
      description='API for interacting with itol.embl.de',
      long_description=long_description,
      url='https://github.com/albertyw/itolapi',
      author='Albert Wang',
      author_email='git@albertyw.com',
      license='MIT',
      packages=find_packages(exclude=['tests']),
      install_requires=[
          'requests>=2.0, <3.0',
          'six>=1.11.0,<2.0',
      ],
      scripts=['itolapi/itol.py', 'itolapi/itolexport.py'],
      test_suite="itolapi.tests",
      tests_require=[
          'mock>=2.0.0,<3.0.0',
          'codecov>=2.0.9,<3.0.0',
          'codeclimate-test-reporter>=0.2.3,<0.3.0',
          'coverage>=4.0,<4.4',
      ],
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: MIT License',
          'Natural Language :: English',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.4',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Programming Language :: Python :: 3.7',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
      ],
      keywords='tree life compbio biology bioinformatics',
      )
<commit_msg>Do not support python 3.4 and python 3.5<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
from codecs import open
from os import path

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

about = {}
with open(path.join(here, 'itolapi', '__version__.py')) as f:
    exec(f.read(), about)

setup(name='itolapi',
      version=about['__version__'],
      description='API for interacting with itol.embl.de',
      long_description=long_description,
      url='https://github.com/albertyw/itolapi',
      author='Albert Wang',
      author_email='git@albertyw.com',
      license='MIT',
      packages=find_packages(exclude=['tests']),
      install_requires=[
          'requests>=2.0, <3.0',
          'six>=1.11.0,<2.0',
      ],
      scripts=['itolapi/itol.py', 'itolapi/itolexport.py'],
      test_suite="itolapi.tests",
      tests_require=[
          'mock>=2.0.0,<3.0.0',
          'codecov>=2.0.9,<3.0.0',
          'codeclimate-test-reporter>=0.2.3,<0.3.0',
          'coverage>=4.0,<4.4',
      ],
      classifiers=[
          'Development Status :: 5 - Production/Stable',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Science/Research',
          'License :: OSI Approved :: MIT License',
          'Natural Language :: English',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.6',
          'Programming Language :: Python :: 3.7',
          'Topic :: Scientific/Engineering :: Bio-Informatics',
      ],
      keywords='tree life compbio biology bioinformatics',
      )
<|endoftext|>


<commit_before>#!/usr/bin/python

from setuptools import setup

setup(name="catsnap",
      version="6.0.0",
      description="catalog and store images",
      author="Erin Call",
      author_email="hello@erincall.com",
      url="https://github.com/ErinCall/",
      packages=['catsnap',
                'catsnap.document',
                'catsnap.config',
                'catsnap.batch'],
      install_requires=[
          "Flask==0.9",
          "gunicorn==19.9.0",
          "boto==2.40.0",
          "requests==2.21.0",
          "psycopg2-binary==2.7.7",
          "sqlalchemy==1.2.17",
          "yoyo-migrations==6.0.0",
          "wand==0.5.0",
          "celery==3.1.16",
          "redis==2.10.3",
          "gevent==1.1b5",
          "Flask-Sockets==0.1",
          "PyYAML==3.11",

          "mock==1.0.1",
          "nose==1.1.2",
          "selenium==3.141.0",
          "splinter==0.10.0",
          "bcrypt==3.1.6",
      ],
      )
<commit_msg>Revert "Update gunicorn by 19 major versions :O [#41]"<commit_after>#!/usr/bin/python

from setuptools import setup

setup(name="catsnap",
      version="6.0.0",
      description="catalog and store images",
      author="Erin Call",
      author_email="hello@erincall.com",
      url="https://github.com/ErinCall/",
      packages=['catsnap',
                'catsnap.document',
                'catsnap.config',
                'catsnap.batch'],
      install_requires=[
          "Flask==0.9",
          "gunicorn==0.14.6",
          "boto==2.40.0",
          "requests==2.21.0",
          "psycopg2-binary==2.7.7",
          "sqlalchemy==1.2.17",
          "yoyo-migrations==6.0.0",
          "wand==0.5.0",
          "celery==3.1.16",
          "redis==2.10.3",
          "gevent==1.1b5",
          "Flask-Sockets==0.1",
          "PyYAML==3.11",

          "mock==1.0.1",
          "nose==1.1.2",
          "selenium==3.141.0",
          "splinter==0.10.0",
          "bcrypt==3.1.6",
      ],
      )
<|endoftext|>


<commit_before>from distutils.core import setup
import setuptools

setup(name='pbnh',
      version='0.2',
      description='A Better Pastebin',
      author='Bryce Handerson, Ethan Madden',
      author_email='maddene@madden.ninja',
      url='https://github.com/bhanderson/pbnh',
      packages=setuptools.find_packages(exclude=['docs', 'tests*']),
      include_package_data=True,
      package_data={'pbnh.app': ['static/*', 'static/codemirror/*',  'static/codemirror/langs/*', 'templates/*'],
                    },
      install_requires=['docutils',
                        'Flask',
                        'psycopg2',
                        'python-magic',
                        'pyYAML',
                        'SQLAlchemy',
                        'SQLAlchemy-utils'
                        ],
      tests_require=['nose',
                     'pycurl',
                     ]
     )
<commit_msg>fix package_data<commit_after>from distutils.core import setup
import setuptools

setup(name='pbnh',
      version='0.2',
      description='A Better Pastebin',
      author='Bryce Handerson, Ethan Madden',
      author_email='maddene@madden.ninja',
      url='https://github.com/bhanderson/pbnh',
      packages=setuptools.find_packages(exclude=['docs', 'tests*']),
      include_package_data=True,
      package_data={'pbnh.app': ['static/*', 'static/codemirror/*.*',  'static/codemirror/langs/*', 'templates/*'],
                    },
      install_requires=['docutils',
                        'Flask',
                        'psycopg2',
                        'python-magic',
                        'pyYAML',
                        'SQLAlchemy',
                        'SQLAlchemy-utils'
                        ],
      tests_require=['nose',
                     'pycurl',
                     ]
     )
<|endoftext|>


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

from io import open
from os import path

from setuptools import find_packages, setup

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

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

setup(
    name="functions-framework",
    version="3.0.0",
    description="An open source FaaS (Function as a service) framework for writing portable Python functions -- brought to you by the Google Cloud Functions team.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/googlecloudplatform/functions-framework-python",
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
    ],
    keywords="functions-framework",
    packages=find_packages(where="src"),
    namespace_packages=["google", "google.cloud"],
    package_dir={"": "src"},
    python_requires=">=3.5, <4",
    install_requires=[
        "flask>=1.0,<3.0",
        "click>=7.0,<9.0",
        "watchdog>=1.0.0,<2.0.0",
        "gunicorn>=19.2.0,<21.0; platform_system!='Windows'",
        "cloudevents>=1.2.0,<2.0.0",
    ],
    entry_points={
        "console_scripts": [
            "ff=functions_framework._cli:_cli",
            "functions-framework=functions_framework._cli:_cli",
            "functions_framework=functions_framework._cli:_cli",
            "functions-framework-python=functions_framework._cli:_cli",
            "functions_framework_python=functions_framework._cli:_cli",
        ]
    },
)
<commit_msg>feat: allow for watchdog>=2.0.0 (#186)<commit_after># Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from io import open
from os import path

from setuptools import find_packages, setup

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

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

setup(
    name="functions-framework",
    version="3.0.0",
    description="An open source FaaS (Function as a service) framework for writing portable Python functions -- brought to you by the Google Cloud Functions team.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://github.com/googlecloudplatform/functions-framework-python",
    author="Google LLC",
    author_email="googleapis-packages@google.com",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
    ],
    keywords="functions-framework",
    packages=find_packages(where="src"),
    namespace_packages=["google", "google.cloud"],
    package_dir={"": "src"},
    python_requires=">=3.5, <4",
    install_requires=[
        "flask>=1.0,<3.0",
        "click>=7.0,<9.0",
        "watchdog>=1.0.0",
        "gunicorn>=19.2.0,<21.0; platform_system!='Windows'",
        "cloudevents>=1.2.0,<2.0.0",
    ],
    entry_points={
        "console_scripts": [
            "ff=functions_framework._cli:_cli",
            "functions-framework=functions_framework._cli:_cli",
            "functions_framework=functions_framework._cli:_cli",
            "functions-framework-python=functions_framework._cli:_cli",
            "functions_framework_python=functions_framework._cli:_cli",
        ]
    },
)
<|endoftext|>


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

# Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# 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 logging
import uuid

# Import the SDK
import boto, boto.ec2, boto.opsworks
from boto.vpc import VPCConnection
from boto.opsworks.layer1 import OpsWorksConnection

def create_and_associate_route_table(conn, subnet):
    # create new route table
    rtb = conn.create_route_table(vpc.id)

    # replace
    conn.associate_route_table(rtb.id, subnet.id)

    return rtb

def setup_internet_gateway(conn, rtbs):
    # set Internet Gateway to public subnet
    igw = conn.create_internet_gateway()
    conn.attach_internet_gateway(igw.id, vpc.id)

    for rtb in rtbs:
        conn.create_route(rtb.id, "0.0.0.0/0", gateway_id=igw.id)
        conn.create_route(rtb.id, "0.0.0.0/0", gateway_id=igw.id)

#s3 = boto.opsworks.connect_to_region('us-east-1')

#print boto.opsworks.regions()

# create VPCConnection
ec2region = boto.ec2.get_region("ap-northeast-1")
ec2_conn = boto.ec2.connect_to_region("ap-northeast-1")
vpc_conn = boto.vpc.VPCConnection(region=ec2region)
# create a VPC
vpc = vpc_conn.create_vpc('10.24.0.0/16')
subnet_a_pub = vpc_conn.create_subnet(vpc.id, "10.24.0.0/24", 'ap-northeast-1a')
rtb_main = vpc_conn.get_all_route_tables(filters=(("vpc-id", vpc.id),))[0]	# get main route table
subnet_a_pvt = vpc_conn.create_subnet(vpc.id, "10.24.128.0/24", 'ap-northeast-1a')
subnet_b_pub = vpc_conn.create_subnet(vpc.id, "10.24.1.0/24", 'ap-northeast-1c')
subnet_b_pvt = vpc_conn.create_subnet(vpc.id, "10.24.129.0/24", 'ap-northeast-1c')
# get or create route tables
rtb_a_pub = rtb_main
vpc_conn.associate_route_table(rtb_a_pub.id, subnet_a_pub.id)			# set main route table
rtb_a_pvt = create_and_associate_route_table(vpc_conn, subnet_a_pvt)
rtb_b_pub = create_and_associate_route_table(vpc_conn, subnet_b_pub)
rtb_b_pvt = create_and_associate_route_table(vpc_conn, subnet_b_pvt)

setup_internet_gateway(vpc_conn, [rtb_a_pub, rtb_b_pub])

print("VPC has been created : " + vpc.id)

# create OpsWorksConnection
ow_conn = boto.opsworks.layer1.OpsWorksConnection()
# create a Stack
result = ow_conn.create_stack('Test', 'ap-northeast-1', 'arn:aws:iam::259692501178:role/aws-opsworks-service-role', 'arn:aws:iam::259692501178:instance-profile/aws-opsworks-ec2-role', vpc.id, default_subnet_id=subnet_a_pvt.id)
stack_id = result[StackId]

print "OpsWorks Stack has been created : " + stack_id

# TODO create nat instances

# TODO setup route tables

# TODO create and set Custom Json

# TODO start nat instances

<commit_msg>add set_tag module<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright 2013. Amazon Web Services, Inc. All Rights Reserved.
#
# 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 logging
import uuid

# Import the SDK
import boto, boto.ec2, boto.opsworks
from boto.vpc import VPCConnection
from boto.opsworks.layer1 import OpsWorksConnection

# create connections
ec2region = boto.ec2.get_region("ap-northeast-1")
ec2_conn = boto.ec2.connect_to_region("ap-northeast-1")
vpc_conn = boto.vpc.VPCConnection(region=ec2region)

def set_name(resource, name):
    ec2_conn.create_tags([resource.id], {"Name": name})

def create_subnet(vpc_id, cidr_block, availability_zone, name=""):
    subnet = vpc_conn.create_subnet(vpc_id, cidr_block, availability_zone)
    set_name(subnet, name)
    return subnet

def create_and_associate_route_table(subnet, name=""):
    # create new route table
    rtb = vpc_conn.create_route_table(vpc.id)
    set_name(rtb, name)

    # replace
    vpc_conn.associate_route_table(rtb.id, subnet.id)

    return rtb

def setup_internet_gateway(rtbs, name=""):
    # create
    igw = vpc_conn.create_internet_gateway()
    set_name(igw, name)
    vpc_conn.attach_internet_gateway(igw.id, vpc.id)

    #set
    for rtb in rtbs:
        vpc_conn.create_route(rtb.id, "0.0.0.0/0", gateway_id=igw.id)
        vpc_conn.create_route(rtb.id, "0.0.0.0/0", gateway_id=igw.id)

#s3 = boto.opsworks.connect_to_region('us-east-1')

#print boto.opsworks.regions()

# create a VPC
vpc = vpc_conn.create_vpc('10.27.0.0/16')
set_name(vpc, "TestVPC")

# create subnets
subnet_a_pub = create_subnet(vpc.id, "10.27.0.0/24", 'ap-northeast-1a', "TestVPC public segment A")
rtb_main = vpc_conn.get_all_route_tables(filters=(("vpc-id", vpc.id),))[0]	# get main route table
subnet_a_pvt = create_subnet(vpc.id, "10.27.128.0/24", 'ap-northeast-1a', "TestVPC private segment A")
subnet_b_pub = create_subnet(vpc.id, "10.27.1.0/24", 'ap-northeast-1c', "TestVPC public segment B")
subnet_b_pvt = create_subnet(vpc.id, "10.27.129.0/24", 'ap-northeast-1c', "TestVPC private segment B")
# get or create route tables
rtb_a_pub = rtb_main
vpc_conn.associate_route_table(rtb_a_pub.id, subnet_a_pub.id)			# set main route table
set_name(rtb_a_pub, "TestVPC public segment A")
rtb_a_pvt = create_and_associate_route_table(subnet_a_pvt, "TestVPC private segment A")
rtb_b_pub = create_and_associate_route_table(subnet_b_pub, "TestVPC public segment B")
rtb_b_pvt = create_and_associate_route_table(subnet_b_pvt, "TestVPC private segment B")
# set Internet Gateway
setup_internet_gateway([rtb_a_pub, rtb_b_pub], "TestVPC Internet Gateway")

print("VPC has been created : " + vpc.id)

# create OpsWorksConnection
ow_conn = boto.opsworks.layer1.OpsWorksConnection()
# create a Stack
result = ow_conn.create_stack('Test', 'ap-northeast-1', 'arn:aws:iam::259692501178:role/aws-opsworks-service-role', 'arn:aws:iam::259692501178:instance-profile/aws-opsworks-ec2-role', vpc.id, default_subnet_id=subnet_a_pvt.id)
stack_id = result["StackId"]

print "OpsWorks Stack has been created : " + stack_id

# TODO create nat instances

# TODO setup route tables

# TODO create and set Custom Json

# TODO start nat instances

<|endoftext|>


<commit_before>from setuptools import setup

setup(
    name="yape",
    description="Yet another pbuttons tool",
    url="https://github.com/murrayo/yape",
    author="Fabian,Murray",
    author_email="fabian@fabianhaupt.de",
    license="MIT",
    packages=["yape"],
    entry_points={
        "console_scripts": [
            "yape=yape.command_line:main",
            "yape-profile=yape.command_line:main_profile",
        ]
    },
    test_suite="nose.collector",
    tests_require=["nose"],
    install_requires=[
        "setuptools_scm>=3.1.0",
        "setuptools>=41.0.1",
        "gitchangelog>=3.0.4",
        "pre-commit>=1.14.4",
        "black>=18.9b0",
        "pystache>=0.5.4",
       	"matplotlib==3.1.1",
		"numpy==1.17.2",
		"pandas==0.25.1",
		"bokeh==1.3.4",
		"pytz==2019.3",
		"PyYAML==5.3.1"
    ],
    version="2.2.9",
    setup_requires=["setuptools_scm"],
    zip_safe=False,
)
<commit_msg>version fix<commit_after>from setuptools import setup

setup(
    name="yape",
    description="Yet another pbuttons tool",
    url="https://github.com/murrayo/yape",
    author="Fabian,Murray",
    author_email="fabian@fabianhaupt.de",
    license="MIT",
    packages=["yape"],
    entry_points={
        "console_scripts": [
            "yape=yape.command_line:main",
            "yape-profile=yape.command_line:main_profile",
        ]
    },
    test_suite="nose.collector",
    tests_require=["nose"],
    install_requires=[
        "setuptools_scm>=3.1.0",
        "setuptools>=41.0.1",
        "gitchangelog>=3.0.4",
        "pre-commit>=1.14.4",
        "black>=18.9b0",
        "pystache>=0.5.4",
       	"matplotlib==3.1.1",
		"numpy==1.17.2",
		"pandas==0.25.1",
		"bokeh==1.3.4",
		"pytz==2019.3",
		"PyYAML==5.3.1"
    ],
    version="2.2.8",
    setup_requires=["setuptools_scm"],
    zip_safe=False,
)
<|endoftext|>


<commit_before>#!/bin/env python

# Increment this version before a release
OSG_PYPP_VERSION = '3.2.1.2pre'

"""
File: setup.py

Build script for osgpyplusplus python bindings for OpenSceneGraph.

Requires that boost.python and OpenSceneGraph be installed.
On windows, these dependencies must have been built with MSVC9/2008
(or whatever your python distribution was built with).

This script takes the generated code under src/<module_name>/generated_code
as given. This script is not capable of regenerating those binding
codes.

If necessary, regenerate the binding source code using CMake.
(For example, if you have added features to the bindings).
"""

from distutils.core import setup
from distutils.extension import Extension
from shutil import copy
from glob import glob
import os
import sys

# Populate build parameters shared by all modules
include_dirs = ['src/modules',]
library_dirs = []
libraries = ['OpenThreads'] # OpenThreads library is used by all modules
shared_libraries = []
plugin_libraries = []
cflags = [
    # Constructor for Matrixd takes more than 15 arguments...
    '-DBOOST_PYTHON_MAX_ARITY=18',]
if sys.platform == 'win32' :
    # TODO - find or set these values more generally
    OSG_DIR = "C:/Program Files (x86)/OpenSceneGraph321vs2008"
    include_dirs.extend( [
        'C:/boost/include/boost-1_56',
        OSG_DIR + '/include',
        ] )
    library_dirs.extend([
        OSG_DIR + '/lib',
        'C:/boost/lib',
        ])
    libraries.extend(['boost_python-vc90-mt-1_56',])
    # Third party shared libraries need to be packaged along with bdist binary distributions...
    # OpenSceneGraph shared libraries
    debug_libs = set(glob(OSG_DIR+'/bin/o*d.dll'))
    release_libs = set(glob(OSG_DIR+'/bin/ot*.dll')) - debug_libs # OpenThreads shared libraries
    shared_libraries.extend(release_libs)
    release_libs = set(glob(OSG_DIR+'/bin/osg*.dll')) - debug_libs # OpenSceneGraph shared libraries
    shared_libraries.extend(release_libs)
    #
    debug_libs = set(glob(OSG_DIR+'/bin/osgPlugins*/osgdb*d.dll'))
    release_libs = set(glob(OSG_DIR+'/bin/osgPlugins*/osgdb*.dll')) - debug_libs # File format plugins
    plugin_libraries.extend(release_libs)
    # Boost shared libraries
    shared_libraries.append('C:/boost/lib/boost_python-vc90-mt-1_56.dll')
    # Collada shared libraries
    shared_libraries.append("C:/Users/brunsc/Build/Collada DOM 2.2/collada-dom/dom/build/vc9-1.4/libcollada14dom21.dll")
    # shared_libraries.append(r'C:/Program Files (x86)/OpenSceneGraph321vs2008/bin/ot20-OpenThreads.dll') # OpenThreads libraries
    # shared_libraries.extend(glob(os.path.join(OSG_DIR, 'bin', 'osgPlugins-3.2.1','osgdb*.dll'))) # File format plugins
    cflags.append('/EHsc') # Avoid compiler warning about exception handling

# Per-module parameters
# Create one python module for each OpenSceneGraph namespace
moduleInfo = dict()
for module_name in ['osg', 'osgUtil', 'osgGA', 'osgDB', 'osgText', 'osgViewer']:
    moduleInfo[module_name] = dict()
    mi = moduleInfo[module_name]
    mi["source_files"] = glob(os.path.join('src','modules',module_name,'generated_code','*.cpp'))
    mi["includes"] = [
        'src/modules/%s' % module_name,
        'src/modules/%s/generated_code' % module_name,
        ]
    mi["includes"].extend(include_dirs)
    mi["libraries"] = [module_name] # assume osg C++ library has same name
    mi["libraries"].extend(libraries)
# Append module specific libraries
for module_name in ['osgUtil', 'osgGA', 'osgDB', 'osgText', 'osgViewer']:
    moduleInfo[module_name]["libraries"].append('osg')
for module_name in ['osgGA', 'osgDB', 'osgText', 'osgViewer']:
    moduleInfo[module_name]["libraries"].append('osgUtil')
for module_name in ['osgText', 'osgViewer']:
    moduleInfo[module_name]["libraries"].append('osgDB')
moduleInfo['osgViewer']["libraries"].append('osgGA')

# Create final list of extension modules
extension_modules = []
for module_name in ['osg', 'osgUtil', 'osgGA', 'osgDB', 'osgText', 'osgViewer']:
# for module_name in ['osgText',]: # osgText module only, just for quick testing
    extension_modules.append(Extension(
        # binary module name begins with underscore "_", so we can wrap module with a python file
        'osgpypp._%s' % module_name,
        moduleInfo[module_name]["source_files"],
        include_dirs=moduleInfo[module_name]["includes"],
        library_dirs=library_dirs,
        libraries=moduleInfo[module_name]["libraries"],
        extra_compile_args=cflags,
        ))

# Temporarily copy shared libraries into source folder, because I cannot figure out any other
# way to get them into a bdist package.
print "Temporarily copying shared libraries into osgpypp source folder"
for fname in shared_libraries:
    copy(fname, "src/osgpypp/")
    # print fname
if not os.path.exists("src/osgpypp/osgPlugins-3.2.1/"):
    os.makedirs("src/osgpypp/osgPlugins-3.2.1/")
for fname in plugin_libraries:
    copy(fname, "src/osgpypp/osgPlugins-3.2.1/")
    # print fname

setup(name='osgpyplusplus',
      version=OSG_PYPP_VERSION,
      description='python bindings for OpenSceneGraph API, created using Boost.Python and pyplusplus',
      author='Christopher Bruns',
      author_email='brunsc@janelia.hhmi.org',
      maintainer='Christopher Bruns',
      maintainer_email='brunsc@janelia.hhmi.org',
      url='https://github.com/JaneliaSciComp/osgpyplusplus',
      # download_url='https://github.com/JaneliaSciComp/osgpyplusplus/releases',
      packages=['osgpypp',],
      package_dir={'osgpypp': 'src/osgpypp'},
      package_data={'osgpypp': ['*.dll', "osgPlugins-3.2.1/*.dll"],},
      # data_files installs files right into Python27 folder...
      # data_files = [('osgpypp', glob(r'C:/Program Files (x86)/OpenSceneGraph321vs2008/bin/ot*.dll'))],
      ext_package='',
      ext_modules=extension_modules,
     )

print "removing copies of shared libraries"
for fname in shared_libraries:
    temp_fname = os.path.join("src", "osgpypp", os.path.basename(fname))
    # print "removing %s" % temp_fname
    os.remove(temp_fname)
for fname in plugin_libraries:
    temp_fname = os.path.join("src", "osgpypp", "osgPlugins-3.2.1", os.path.basename(fname))
    # print "removing %s" % temp_fname
    os.remove(temp_fname)
try:
    os.rmdir("src/osgpypp/osgPlugins-3.2.1/")
except:
    pass
<commit_msg>Rename distribution to osgpypp, to match package name<commit_after>#!/bin/env python

# Increment this version before a release
OSG_PYPP_VERSION = '3.2.1.2pre'

"""
File: setup.py

Build script for osgpyplusplus python bindings for OpenSceneGraph.

Requires that boost.python and OpenSceneGraph be installed.
On windows, these dependencies must have been built with MSVC9/2008
(or whatever your python distribution was built with).

This script takes the generated code under src/<module_name>/generated_code
as given. This script is not capable of regenerating those binding
codes.

If necessary, regenerate the binding source code using CMake.
(For example, if you have added features to the bindings).
"""

from distutils.core import setup
from distutils.extension import Extension
from shutil import copy
from glob import glob
import os
import sys

# Populate build parameters shared by all modules
include_dirs = ['src/modules',]
library_dirs = []
libraries = ['OpenThreads'] # OpenThreads library is used by all modules
shared_libraries = []
plugin_libraries = []
cflags = [
    # Constructor for Matrixd takes more than 15 arguments...
    '-DBOOST_PYTHON_MAX_ARITY=18',]
if sys.platform == 'win32' :
    # TODO - find or set these values more generally
    OSG_DIR = "C:/Program Files (x86)/OpenSceneGraph321vs2008"
    include_dirs.extend( [
        'C:/boost/include/boost-1_56',
        OSG_DIR + '/include',
        ] )
    library_dirs.extend([
        OSG_DIR + '/lib',
        'C:/boost/lib',
        ])
    libraries.extend(['boost_python-vc90-mt-1_56',])
    # Third party shared libraries need to be packaged along with bdist binary distributions...
    # OpenSceneGraph shared libraries
    debug_libs = set(glob(OSG_DIR+'/bin/o*d.dll'))
    release_libs = set(glob(OSG_DIR+'/bin/ot*.dll')) - debug_libs # OpenThreads shared libraries
    shared_libraries.extend(release_libs)
    release_libs = set(glob(OSG_DIR+'/bin/osg*.dll')) - debug_libs # OpenSceneGraph shared libraries
    shared_libraries.extend(release_libs)
    #
    debug_libs = set(glob(OSG_DIR+'/bin/osgPlugins*/osgdb*d.dll'))
    release_libs = set(glob(OSG_DIR+'/bin/osgPlugins*/osgdb*.dll')) - debug_libs # File format plugins
    plugin_libraries.extend(release_libs)
    # Boost shared libraries
    shared_libraries.append('C:/boost/lib/boost_python-vc90-mt-1_56.dll')
    # Collada shared libraries
    shared_libraries.append("C:/Users/brunsc/Build/Collada DOM 2.2/collada-dom/dom/build/vc9-1.4/libcollada14dom21.dll")
    # shared_libraries.append(r'C:/Program Files (x86)/OpenSceneGraph321vs2008/bin/ot20-OpenThreads.dll') # OpenThreads libraries
    # shared_libraries.extend(glob(os.path.join(OSG_DIR, 'bin', 'osgPlugins-3.2.1','osgdb*.dll'))) # File format plugins
    cflags.append('/EHsc') # Avoid compiler warning about exception handling

# Per-module parameters
# Create one python module for each OpenSceneGraph namespace
moduleInfo = dict()
for module_name in ['osg', 'osgUtil', 'osgGA', 'osgDB', 'osgText', 'osgViewer']:
    moduleInfo[module_name] = dict()
    mi = moduleInfo[module_name]
    mi["source_files"] = glob(os.path.join('src','modules',module_name,'generated_code','*.cpp'))
    mi["includes"] = [
        'src/modules/%s' % module_name,
        'src/modules/%s/generated_code' % module_name,
        ]
    mi["includes"].extend(include_dirs)
    mi["libraries"] = [module_name] # assume osg C++ library has same name
    mi["libraries"].extend(libraries)
# Append module specific libraries
for module_name in ['osgUtil', 'osgGA', 'osgDB', 'osgText', 'osgViewer']:
    moduleInfo[module_name]["libraries"].append('osg')
for module_name in ['osgGA', 'osgDB', 'osgText', 'osgViewer']:
    moduleInfo[module_name]["libraries"].append('osgUtil')
for module_name in ['osgText', 'osgViewer']:
    moduleInfo[module_name]["libraries"].append('osgDB')
moduleInfo['osgViewer']["libraries"].append('osgGA')

# Create final list of extension modules
extension_modules = []
for module_name in ['osg', 'osgUtil', 'osgGA', 'osgDB', 'osgText', 'osgViewer']:
# for module_name in ['osgText',]: # osgText module only, just for quick testing
    extension_modules.append(Extension(
        # binary module name begins with underscore "_", so we can wrap module with a python file
        'osgpypp._%s' % module_name,
        moduleInfo[module_name]["source_files"],
        include_dirs=moduleInfo[module_name]["includes"],
        library_dirs=library_dirs,
        libraries=moduleInfo[module_name]["libraries"],
        extra_compile_args=cflags,
        ))

# Temporarily copy shared libraries into source folder, because I cannot figure out any other
# way to get them into a bdist package.
print "Temporarily copying shared libraries into osgpypp source folder"
for fname in shared_libraries:
    copy(fname, "src/osgpypp/")
    # print fname
if not os.path.exists("src/osgpypp/osgPlugins-3.2.1/"):
    os.makedirs("src/osgpypp/osgPlugins-3.2.1/")
for fname in plugin_libraries:
    copy(fname, "src/osgpypp/osgPlugins-3.2.1/")
    # print fname

setup(name='osgpypp',
      version=OSG_PYPP_VERSION,
      description='python bindings for OpenSceneGraph API, created using Boost.Python and pyplusplus',
      author='Christopher Bruns',
      author_email='brunsc@janelia.hhmi.org',
      maintainer='Christopher Bruns',
      maintainer_email='brunsc@janelia.hhmi.org',
      url='https://github.com/JaneliaSciComp/osgpyplusplus',
      # download_url='https://github.com/JaneliaSciComp/osgpyplusplus/releases',
      packages=['osgpypp',],
      package_dir={'osgpypp': 'src/osgpypp'},
      package_data={'osgpypp': ['*.dll', "osgPlugins-3.2.1/*.dll"],},
      # data_files installs files right into Python27 folder...
      # data_files = [('osgpypp', glob(r'C:/Program Files (x86)/OpenSceneGraph321vs2008/bin/ot*.dll'))],
      ext_package='',
      ext_modules=extension_modules,
     )

print "removing copies of shared libraries"
for fname in shared_libraries:
    temp_fname = os.path.join("src", "osgpypp", os.path.basename(fname))
    # print "removing %s" % temp_fname
    os.remove(temp_fname)
for fname in plugin_libraries:
    temp_fname = os.path.join("src", "osgpypp", "osgPlugins-3.2.1", os.path.basename(fname))
    # print "removing %s" % temp_fname
    os.remove(temp_fname)
try:
    os.rmdir("src/osgpypp/osgPlugins-3.2.1/")
except:
    pass
<|endoftext|>


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

# Copyright (C) 2017 Michael Hogg

# This file is part of pyoctree - See LICENSE.txt for information on usage and redistribution

from setuptools import setup, find_packages
from setuptools.extension import Extension
from codecs import open
from os import path
import numpy

# get current path
here = path.abspath(path.dirname(__file__))

# function to open the readme file
def readme():
    with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
        return f.read()

# find the version
exec(open(path.join('pyoctree','version.py')).read())

try:
    from Cython.Distutils import build_ext
except ImportError:
    from setuptools.command.build_ext import build_ext
    use_cython = False
else:
    use_cython = True

# Supply correct openmp compiler arguments depending on os. Based on SO question:
# http://stackoverflow.com/questions/30985862/how-to-identify-compiler-before-defining-cython-extensions
# However, need to add extra link args in addition to build args, as these are required for gcc.
# From http://stackoverflow.com/questions/16737260/how-to-tell-distutils-to-use-gcc, the distutils --compiler
# option expects "unix", "msvc", "cygwin", "mingw32", "bcpp", or "emx". Therefore, should add support for
# all these, but will currently support only mscv, mingw32, and unix.
# The current code has been tested on Windows 10 and CentOS 6. The CentOS compiler type is "unix", which uses gcc by default.
BUILD_ARGS = {}
BUILD_ARGS['msvc']    = ['/openmp', '/EHsc', ]
BUILD_ARGS['mingw32'] = ['-fopenmp', ]
BUILD_ARGS['unix']    = ['-fopenmp', ]  # On CentOS, "compiler" variable equals 'unix' for gcc compiler
LINK_ARGS = {}
LINK_ARGS['msvc']     = []
LINK_ARGS['mingw32']  = []
LINK_ARGS['unix']     = ['-lgomp', ]    # gcc requires -lgomp for linking. Otherwise get unrecognised symbol error

# Custom class to add compiler depended build and link arguments
class build_ext_compiler_check(build_ext):
    def build_extensions(self):
        compiler = self.compiler.compiler_type
        for ext in self.extensions:
            if compiler in BUILD_ARGS:
                ext.extra_compile_args = BUILD_ARGS[compiler]
            if compiler in LINK_ARGS:
                ext.extra_link_args    = LINK_ARGS[compiler]
        build_ext.build_extensions(self)

cmdclass    = {}
ext_modules = []
if use_cython:
    ext_modules += [ Extension("pyoctree.pyoctree", sources=["pyoctree/pyoctree.pyx","pyoctree/cOctree.cpp"],include_dirs=[numpy.get_include()],language="c++")]
    cmdclass.update({ 'build_ext': build_ext_compiler_check })
else:
    ext_modules += [ Extension("pyoctree.pyoctree", sources=["pyoctree/pyoctree.cpp","pyoctree/cOctree.cpp"],include_dirs=[numpy.get_include()],language="c++")]

setup(
    name = 'pyoctree',
    version = __version__,
    description = 'Octree structure containing 3D triangular mesh model',
    long_description = readme(),
    license = 'MIT license',
    keywords = ["octree","triangle","mesh","python","cython","ray","tracing"],
    author = 'Michael Hogg',
    author_email = 'michael.christopher.hogg@gmail.com',
    url = "https://github.com/mhogg/pyoctree",
    download_url = "https://github.com/mhogg/pyoctree/releases",
    packages = find_packages(),
    package_data = {'readme':   ['README.rst'],
                    'license':  ['LICENSE.txt'],
                    'examples': [path.join('Examples','*')]},
    classifiers = [
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Cython",
        "Programming Language :: C++",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        ],
    ext_modules = ext_modules,
    cmdclass = cmdclass,
)
<commit_msg>Fix package_data in setup.py<commit_after># -*- coding: utf-8 -*-

# Copyright (C) 2017 Michael Hogg

# This file is part of pyoctree - See LICENSE.txt for information on usage and redistribution

from setuptools import setup, find_packages
from setuptools.extension import Extension
from codecs import open
from os import path
import numpy

# get current path
here = path.abspath(path.dirname(__file__))

# function to open the readme file
def readme():
    with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
        return f.read()

# find the version
exec(open(path.join('pyoctree','version.py')).read())

try:
    from Cython.Distutils import build_ext
except ImportError:
    from setuptools.command.build_ext import build_ext
    use_cython = False
else:
    use_cython = True

# Supply correct openmp compiler arguments depending on os. Based on SO question:
# http://stackoverflow.com/questions/30985862/how-to-identify-compiler-before-defining-cython-extensions
# However, need to add extra link args in addition to build args, as these are required for gcc.
# From http://stackoverflow.com/questions/16737260/how-to-tell-distutils-to-use-gcc, the distutils --compiler
# option expects "unix", "msvc", "cygwin", "mingw32", "bcpp", or "emx". Therefore, should add support for
# all these, but will currently support only mscv, mingw32, and unix.
# The current code has been tested on Windows 10 and CentOS 6. The CentOS compiler type is "unix", which uses gcc by default.
BUILD_ARGS = {}
BUILD_ARGS['msvc']    = ['/openmp', '/EHsc', ]
BUILD_ARGS['mingw32'] = ['-fopenmp', ]
BUILD_ARGS['unix']    = ['-fopenmp', ]  # On CentOS, "compiler" variable equals 'unix' for gcc compiler
LINK_ARGS = {}
LINK_ARGS['msvc']     = []
LINK_ARGS['mingw32']  = []
LINK_ARGS['unix']     = ['-lgomp', ]    # gcc requires -lgomp for linking. Otherwise get unrecognised symbol error

# Custom class to add compiler depended build and link arguments
class build_ext_compiler_check(build_ext):
    def build_extensions(self):
        compiler = self.compiler.compiler_type
        for ext in self.extensions:
            if compiler in BUILD_ARGS:
                ext.extra_compile_args = BUILD_ARGS[compiler]
            if compiler in LINK_ARGS:
                ext.extra_link_args    = LINK_ARGS[compiler]
        build_ext.build_extensions(self)

cmdclass    = {}
ext_modules = []
if use_cython:
    ext_modules += [ Extension("pyoctree.pyoctree", sources=["pyoctree/pyoctree.pyx","pyoctree/cOctree.cpp"],include_dirs=[numpy.get_include()],language="c++")]
    cmdclass.update({ 'build_ext': build_ext_compiler_check })
else:
    ext_modules += [ Extension("pyoctree.pyoctree", sources=["pyoctree/pyoctree.cpp","pyoctree/cOctree.cpp"],include_dirs=[numpy.get_include()],language="c++")]

setup(
    name = 'pyoctree',
    version = __version__,
    description = 'Octree structure containing 3D triangular mesh model',
    long_description = readme(),
    license = 'MIT license',
    keywords = ["octree","triangle","mesh","python","cython","ray","tracing"],
    author = 'Michael Hogg',
    author_email = 'michael.christopher.hogg@gmail.com',
    url = "https://github.com/mhogg/pyoctree",
    download_url = "https://github.com/mhogg/pyoctree/releases",
    packages = find_packages(),
    include_package_data = True,
    package_data = {'': ['README.rst','LICENSE.txt'],
                    'pyoctree': ['Examples\*']},
    classifiers = [
        "Development Status :: 4 - Beta",
        "Environment :: Other Environment",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Programming Language :: Cython",
        "Programming Language :: C++",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.6",
        ],
    ext_modules = ext_modules,
    cmdclass = cmdclass,
)
<|endoftext|>


<commit_before>"""A setuptools based setup module.

See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

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

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

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

setup(
    name='hedgehog-client',
    version='0.3.0',
    description='Client library for communicating with Hedgehog Robot Controllers',
    long_description=long_description,
    url="https://github.com/PRIArobotics/HedgehogClient",
    author="Clemens Koza",
    author_email="koza@pria.at",
    license="AGPLv3+",

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development',
        'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
        'Programming Language :: Python :: 3',
    ],

    keywords='hedgehog robotics controller client',

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

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    install_requires=['hedgehog-protocol', 'hedgehog-utils[discovery]'],

    # You can install these using the following syntax, for example:
    # $ pip install -e .[dev,test]
    extras_require={
        'test': ['hedgehog-server'],
    },

    # package_data={
    #     'proto': ['*.proto'],
    # },

    entry_points={
        'console_scripts': [
        ],
    },
)
<commit_msg>Finish 0.4.0: - add typing information - adapt to protocol 0.4.0 - add OO API - improve multithreading capability - bug fixes, including shutdown on SIGINT<commit_after>"""A setuptools based setup module.

See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

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

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

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

setup(
    name='hedgehog-client',
    version='0.4.0',
    description='Client library for communicating with Hedgehog Robot Controllers',
    long_description=long_description,
    url="https://github.com/PRIArobotics/HedgehogClient",
    author="Clemens Koza",
    author_email="koza@pria.at",
    license="AGPLv3+",

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Topic :: Software Development',
        'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
        'Programming Language :: Python :: 3',
    ],

    keywords='hedgehog robotics controller client',

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

    # List run-time dependencies here.  These will be installed by pip when
    # your project is installed. For an analysis of "install_requires" vs pip's
    # requirements files see:
    # https://packaging.python.org/en/latest/requirements.html
    install_requires=['hedgehog-protocol', 'hedgehog-utils[discovery]'],

    # You can install these using the following syntax, for example:
    # $ pip install -e .[dev,test]
    extras_require={
        'test': ['hedgehog-server'],
    },

    # package_data={
    #     'proto': ['*.proto'],
    # },

    entry_points={
        'console_scripts': [
        ],
    },
)
<|endoftext|>


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

# setup.py
# Part of python-daemon, an implementation of PEP 3143.
#
# Copyright © 2008–2010 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2008 Robert Niederreiter, Jens Klein
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Foundation.
# No warranty expressed or implied. See the file LICENSE.PSF-2 for details.

""" Distribution setup for python-daemon library.
    """

import textwrap
from setuptools import setup, find_packages

distribution_name = "python-daemon"
main_module_name = 'daemon'
main_module = __import__(main_module_name, fromlist=['_metadata'])
metadata = main_module._metadata

short_description, long_description = (
    textwrap.dedent(d).strip()
    for d in main_module.__doc__.split(u'\n\n', 1)
    )

setup(
    name=distribution_name,
    version=metadata.version,
    packages=find_packages(exclude=["test"]),

    # setuptools metadata
    zip_safe=False,
    test_suite="test.suite",
    tests_require=[
        "MiniMock >=1.2.2",
        ],
    install_requires=[
        "setuptools",
        "lockfile >=0.7",
        ],

    # PyPI metadata
    author=metadata.author_name,
    author_email=metadata.author_email,
    description=short_description,
    license=metadata.license,
    keywords=u"daemon fork unix".split(),
    url=metadata.url,
    long_description=long_description,
    classifiers=[
        # Reference: http://pypi.python.org/pypi?%3Aaction=list_classifiers
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: Python Software Foundation License",
        "Operating System :: POSIX",
        "Programming Language :: Python",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Python Modules",
        ],
    )
<commit_msg>Explicitly use byte-based ‘str’ arguments for ‘distutils.core.setup()’.<commit_after># -*- coding: utf-8 -*-

# setup.py
# Part of python-daemon, an implementation of PEP 3143.
#
# Copyright © 2008–2010 Ben Finney <ben+python@benfinney.id.au>
# Copyright © 2008 Robert Niederreiter, Jens Klein
#
# This is free software: you may copy, modify, and/or distribute this work
# under the terms of the Python Software Foundation License, version 2 or
# later as published by the Python Software Foundation.
# No warranty expressed or implied. See the file LICENSE.PSF-2 for details.

""" Distribution setup for python-daemon library.
    """

import textwrap
from setuptools import setup, find_packages

distribution_name = "python-daemon"
main_module_name = 'daemon'
main_module = __import__(main_module_name, fromlist=['_metadata'])
metadata = main_module._metadata

short_description, long_description = (
    textwrap.dedent(d).strip()
    for d in main_module.__doc__.split(u'\n\n', 1)
    )

setup(
    name=distribution_name,
    version=str(metadata.version),
    packages=find_packages(exclude=["test"]),

    # setuptools metadata
    zip_safe=False,
    test_suite="test.suite",
    tests_require=[
        "MiniMock >=1.2.2",
        ],
    install_requires=[
        "setuptools",
        "lockfile >=0.7",
        ],

    # PyPI metadata
    author=str(metadata.author_name),
    author_email=str(metadata.author_email),
    description=str(short_description),
    license=str(metadata.license),
    keywords="daemon fork unix".split(),
    url=str(metadata.url),
    long_description=str(long_description),
    classifiers=[
        # Reference: http://pypi.python.org/pypi?%3Aaction=list_classifiers
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: Python Software Foundation License",
        "Operating System :: POSIX",
        "Programming Language :: Python",
        "Intended Audience :: Developers",
        "Topic :: Software Development :: Libraries :: Python Modules",
        ],
    )
<|endoftext|>


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

from setuptools import setup, find_packages

setup(
    name='django-slack',

    url="https://chris-lamb.co.uk/projects/django-slack",
    version='4.3.0',
    description="Provides easy-to-use integration between Django projects and "
        "the Slack group chat and IM tool.",

    author="Chris Lamb",
    author_email="chris@chris-lamb.co.uk",
    license="BSD",

    packages=find_packages(),
    include_package_data=True,
    install_requires=(
        'Django>=1.6.8',
        'requests',
        'six',
    ),
)
<commit_msg>Releasing version 4.4.0<commit_after>#!/usr/bin/env python

from setuptools import setup, find_packages

setup(
    name='django-slack',

    url="https://chris-lamb.co.uk/projects/django-slack",
    version='4.4.0',
    description="Provides easy-to-use integration between Django projects and "
        "the Slack group chat and IM tool.",

    author="Chris Lamb",
    author_email="chris@chris-lamb.co.uk",
    license="BSD",

    packages=find_packages(),
    include_package_data=True,
    install_requires=(
        'Django>=1.6.8',
        'requests',
        'six',
    ),
)
<|endoftext|>


<commit_before>"""
WeasyPrint
----------

WeasyPrint converts web documents (HTML, CSS, SVG, ...) to PDF.

See the documentation at http://weasyprint.org/

"""

from setuptools import setup, find_packages

setup(
    name='WeasyPrint',
    version='0.2dev',  # Also change this in weasy/__init__.py
    url='http://weasyprint.org/',
    license='GNU Affero General Public License',
    description='WeasyPrint converts web documents to PDF.',
    long_description=__doc__,
    packages=find_packages(),
    package_data={
        'weasy.tests': ['resources/*',
                        # Make sure the directories are created
                        '*_results/.gitignore'],
        'weasy.css': ['*.css']},
    zip_safe=False,
    install_requires=[
        # Keep this in sync with the "install" documentation
        'lxml',
        'cssutils>=0.9.8a3',
        'PIL',
        # Not installable by pip:
        #  Pango>=1.29.3
        #  PyGObject
        #  PyCairo
    ],
    test_loader='attest:FancyReporter.test_loader',
    test_suite='weasy.tests',
    entry_points={
        'console_scripts': [
            'weasyprint = weasy:main',
        ],
    },
    use_2to3=True
)
<commit_msg>Add some metadata in setup.py<commit_after>"""
WeasyPrint
----------

WeasyPrint converts web documents (HTML, CSS, SVG, ...) to PDF.

See the documentation at http://weasyprint.org/

"""

from setuptools import setup, find_packages

setup(
    name='WeasyPrint',
    version='0.2dev',  # Also change this in weasy/__init__.py
    url='http://weasyprint.org/',
    license='GNU Affero General Public License v3',
    description='WeasyPrint converts web documents to PDF.',
    long_description=__doc__,
    author='Simon Sapin',
    author_email='simon.sapin@kozea.fr',
    plateforms='Any',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU Affero General Public License v3',
        'Programming Language :: Python :: 2.7',
        'Topic :: Internet :: WWW/HTTP',
        'Topic :: Text Processing :: Markup :: HTML',
        'Topic :: Printing',
    ],
    packages=find_packages(),
    package_data={
        'weasy.tests': ['resources/*',
                        # Make sure the directories are created
                        '*_results/.gitignore'],
        'weasy.css': ['*.css']},
    zip_safe=False,
    install_requires=[
        # Keep this in sync with the "install" documentation
        'lxml',
        'cssutils>=0.9.8a3',
        'PIL',
        # Not installable by pip:
        #  Pango>=1.29.3
        #  PyGObject
        #  PyCairo
    ],
    test_loader='attest:FancyReporter.test_loader',
    test_suite='weasy.tests',
    entry_points={
        'console_scripts': [
            'weasyprint = weasy:main',
        ],
    },
    use_2to3=True
)
<|endoftext|>


<commit_before>import sys

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

if sys.version_info <= (2, 4):
  error = 'Requires Python Version 2.5 or above... exiting.'
  print >> sys.stderr, error
  sys.exit(1)

requirements = [
    'requests',
]

setup(name='googlemaps',
      version='2.0-dev',
      description='API Client library for Google Maps',
      scripts=[],
      url='https://github.com/googlemaps/google-maps-services-python',
      packages=['googlemaps'],
      license='Apache 2.0',
      platforms='Posix; MacOS X; Windows',
      setup_requires=requirements,
      install_requires=requirements,
      classifiers=['Development Status :: 1 - Planning',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: Apache Software License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.5',
                   'Programming Language :: Python :: 2.6',
                   'Programming Language :: Python :: 2.7',
                   'Programming Language :: Python :: 3.2',
                   'Topic :: Internet',
                   ]
      )
<commit_msg>Change from planning to in beta<commit_after>import sys

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

if sys.version_info <= (2, 4):
  error = 'Requires Python Version 2.5 or above... exiting.'
  print >> sys.stderr, error
  sys.exit(1)

requirements = [
    'requests',
]

setup(name='googlemaps',
      version='2.0-dev',
      description='API Client library for Google Maps',
      scripts=[],
      url='https://github.com/googlemaps/google-maps-services-python',
      packages=['googlemaps'],
      license='Apache 2.0',
      platforms='Posix; MacOS X; Windows',
      setup_requires=requirements,
      install_requires=requirements,
      classifiers=['Development Status :: 4 - Beta',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: Apache Software License',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.5',
                   'Programming Language :: Python :: 2.6',
                   'Programming Language :: Python :: 2.7',
                   'Programming Language :: Python :: 3.2',
                   'Topic :: Internet',
                   ]
      )
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

setup(
    name = "django-report-builder",
    version = "1.11",
    author = "David Burke",
    author_email = "david@burkesoftware.com",
    description = ("Query and Report builder for Django ORM"),
    license = "BSD",
    keywords = "django report",
    url = "https://github.com/burke-software/django-report-builder",
    packages=find_packages(),
    include_package_data=True,
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        'Environment :: Web Environment',
        'Framework :: Django',
        'Programming Language :: Python',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        "License :: OSI Approved :: BSD License",
    ],
    install_requires=['openpyxl']
)
<commit_msg>Update setup.py<commit_after>from setuptools import setup, find_packages

setup(
    name = "django-report-builder",
    version = "1.11",
    author = "David Burke",
    author_email = "david@burkesoftware.com",
    description = ("Query and Report builder for Django ORM"),
    license = "BSD",
    keywords = "django report",
    url = "https://github.com/burke-software/django-report-builder",
    packages=find_packages(),
    include_package_data=True,
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        'Environment :: Web Environment',
        'Framework :: Django',
        'Programming Language :: Python',
        'Intended Audience :: Developers',
        'Intended Audience :: System Administrators',
        "License :: OSI Approved :: BSD License",
    ],
    install_requires=['openpyxl','python-dateutil']
)
<|endoftext|>


<commit_before>import os
from setuptools import setup

exec(open('dynpy/version.py').read())

setup(name='dynpy',
      version=__version__,
      description='Dynamical systems for Python',
      author='Artemy Kolchinsky',
      author_email='artemyk@gmail.com',
      url='https://github.com/artemyk/dynpy',
      packages=['dynpy'],
      install_requires = ['numpy>=1.6','scipy>=0.13','coverage>=3.7.0','six>=1.8.0'],
     )
<commit_msg>Adding zip_safe option<commit_after>import os
from setuptools import setup

exec(open('dynpy/version.py').read())

setup(name='dynpy',
      version=__version__,
      description='Dynamical systems for Python',
      author='Artemy Kolchinsky',
      author_email='artemyk@gmail.com',
      url='https://github.com/artemyk/dynpy',
      packages=['dynpy'],
      install_requires=['numpy>=1.6','scipy>=0.13','coverage>=3.7.0','six>=1.8.0'],
      zip_safe=False
     )
<|endoftext|>


<commit_before>#!/usr/bin/env python
# vim: set sw=4 et:

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import glob

__version__ = '1.3.3'

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        # should work with setuptools <18, 18 18.5
        self.test_suite = ' '

    def run_tests(self):
        import pytest
        import sys
        import os
        errcode = pytest.main(['--doctest-module', './warcio', '--cov', 'warcio', '-v', 'test/'])
        sys.exit(errcode)

setup(
    name='warcio',
    version=__version__,
    author='Ilya Kreymer',
    author_email='ikreymer@gmail.com',
    license='Apache 2.0',
    packages=find_packages(),
    url='https://github.com/webrecorder/warcio',
    description='Streaming WARC (and ARC) IO library',
    long_description=open('README.rst').read(),
    provides=[
        'warcio',
        ],
    install_requires=[
        'six',
        ],
    data_files=[
        ('test/data', glob.glob('test/data/*')),
    ],
    zip_safe=True,
    entry_points="""
        [console_scripts]
        warcio = warcio.cli:main
    """,
    cmdclass={'test': PyTest},
    test_suite='',
    tests_require=[
        'pytest',
        'pytest-cov',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
    ]
)
<commit_msg>bump version to 1.4<commit_after>#!/usr/bin/env python
# vim: set sw=4 et:

from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import glob

__version__ = '1.4'

class PyTest(TestCommand):
    def finalize_options(self):
        TestCommand.finalize_options(self)
        # should work with setuptools <18, 18 18.5
        self.test_suite = ' '

    def run_tests(self):
        import pytest
        import sys
        import os
        errcode = pytest.main(['--doctest-module', './warcio', '--cov', 'warcio', '-v', 'test/'])
        sys.exit(errcode)

setup(
    name='warcio',
    version=__version__,
    author='Ilya Kreymer',
    author_email='ikreymer@gmail.com',
    license='Apache 2.0',
    packages=find_packages(),
    url='https://github.com/webrecorder/warcio',
    description='Streaming WARC (and ARC) IO library',
    long_description=open('README.rst').read(),
    provides=[
        'warcio',
        ],
    install_requires=[
        'six',
        ],
    data_files=[
        ('test/data', glob.glob('test/data/*')),
    ],
    zip_safe=True,
    entry_points="""
        [console_scripts]
        warcio = warcio.cli:main
    """,
    cmdclass={'test': PyTest},
    test_suite='',
    tests_require=[
        'pytest',
        'pytest-cov',
    ],
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'License :: OSI Approved :: Apache Software License',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Topic :: Software Development :: Libraries :: Python Modules',
        'Topic :: Utilities',
    ]
)
<|endoftext|>


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

from setuptools import setup

setup(
    name='clize',
    version='4.0.1',
    description='Turn functions into command-line interfaces',
    license='MIT',
    url='https://github.com/epsy/clize',
    author='Yann Kaiser',
    author_email='kaiser.yann@gmail.com',
    install_requires=[
        'six',
        'sigtools >= 2.0',
        'attrs',
        'od',
        'docutils',
    ],
    tests_require=[
        'repeated_test',
        'unittest2',
        'python-dateutil',
        'Pygments',
    ],
    extras_require={
        'datetime': ['python-dateutil'],
    },
    packages=('clize', 'clize.tests'),
    test_suite='clize.tests',
    keywords=[
        'CLI', 'options', 'arguments', 'getopts', 'getopt', 'argparse',
        'introspection', 'flags', 'decorator', 'subcommands',
        ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: System Administrators",
        "Operating System :: OS Independent",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: User Interfaces",
        ],
)
<commit_msg>version 4.0.2<commit_after>#!/usr/bin/env python

from setuptools import setup

setup(
    name='clize',
    version='4.0.2',
    description='Turn functions into command-line interfaces',
    license='MIT',
    url='https://github.com/epsy/clize',
    author='Yann Kaiser',
    author_email='kaiser.yann@gmail.com',
    install_requires=[
        'six',
        'sigtools >= 2.0',
        'attrs',
        'od',
        'docutils',
    ],
    tests_require=[
        'repeated_test',
        'unittest2',
        'python-dateutil',
        'Pygments',
    ],
    extras_require={
        'datetime': ['python-dateutil'],
    },
    packages=('clize', 'clize.tests'),
    test_suite='clize.tests',
    keywords=[
        'CLI', 'options', 'arguments', 'getopts', 'getopt', 'argparse',
        'introspection', 'flags', 'decorator', 'subcommands',
        ],
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 2",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.3",
        "Programming Language :: Python :: 3.4",
        "Programming Language :: Python :: 3.5",
        "Programming Language :: Python :: 3.6",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
        "Environment :: Console",
        "Intended Audience :: Developers",
        "Intended Audience :: System Administrators",
        "Operating System :: OS Independent",
        "Topic :: Software Development",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Topic :: Software Development :: User Interfaces",
        ],
)
<|endoftext|>


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

long_description = open('README.rst').read()

setup(name='billy',
      version=__version__,
      packages=find_packages(),
      package_data={'billy': ['schemas/*.json',
                              'schemas/api/*.json',
                              'schemas/relax/api.rnc'],
                    'billy.web.admin': ['templates/billy/*.html'],
                   },
      author="James Turk",
      author_email="james@openstates.org",
      license="BSD",
      url="http://github.com/openstates/billy/",
      description='scraping, storing, and sharing legislative information',
      long_description=long_description,
      platforms=['any'],
      entry_points="""[console_scripts]
billy-update = billy.bin.update:main
billy-util = billy.bin.util:main
""",
      install_requires=[
          'six',
          #"django-pjax",
          "boto",
          "icalendar",
          "lxml>=2.2",
          "name_tools>=0.1.2",
          "nose",
          "pymongo>=2.2,<3.0.0",
          "scrapelib==1.0.2",
          "unicodecsv!=0.9.3",
          "validictory",
          "pyelasticsearch",
      ]
)
<commit_msg>add Django to setup.py<commit_after>#!/usr/bin/env python
from setuptools import setup, find_packages
from billy import __version__

long_description = open('README.rst').read()

setup(name='billy',
      version=__version__,
      packages=find_packages(),
      package_data={'billy': ['schemas/*.json',
                              'schemas/api/*.json',
                              'schemas/relax/api.rnc'],
                    'billy.web.admin': ['templates/billy/*.html'],
                   },
      author="James Turk",
      author_email="james@openstates.org",
      license="BSD",
      url="http://github.com/openstates/billy/",
      description='scraping, storing, and sharing legislative information',
      long_description=long_description,
      platforms=['any'],
      entry_points="""[console_scripts]
billy-update = billy.bin.update:main
billy-util = billy.bin.util:main
""",
      install_requires=[
          'Django<1.10',
          'six',
          #"django-pjax",
          "boto",
          "icalendar",
          "lxml>=2.2",
          "name_tools>=0.1.2",
          "nose",
          "pymongo>=2.2,<3.0.0",
          "scrapelib==1.0.2",
          "unicodecsv!=0.9.3",
          "validictory",
          "pyelasticsearch",
      ]
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

__version__ = '0.4.1'

setup(
    name="Flask-Rest-JSONAPI",
    version=__version__,
    description='Flask extension to create web api according to jsonapi specification with Flask, Marshmallow and data \
                 provider of your choice (SQLAlchemy, MongoDB, ...)',
    url='https://github.com/miLibris/flask-rest-jsonapi',
    author='miLibris API Team',
    author_email='pf@milibris.net',
    license='MIT',
    classifiers=[
        'Framework :: Flask',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'License :: OSI Approved :: MIT License',
    ],
    keywords='web api jsonapi flask',
    packages=find_packages(exclude=['tests']),
    zip_safe=False,
    platforms='any',
    install_requires=['Flask',
                      'marshmallow_jsonapi',
                      'six',
                      'sqlalchemy'],
    setup_requires=['pytest-runner'],
    tests_require=['pytest'],
    extras_require={'tests': 'pytest', 'docs': 'sphinx', 'mongo_data_layer': 'pymongo'}
)
<commit_msg>Bumped version number to 0.4.2<commit_after>from setuptools import setup, find_packages

__version__ = '0.4.2'

setup(
    name="Flask-Rest-JSONAPI",
    version=__version__,
    description='Flask extension to create web api according to jsonapi specification with Flask, Marshmallow and data \
                 provider of your choice (SQLAlchemy, MongoDB, ...)',
    url='https://github.com/miLibris/flask-rest-jsonapi',
    author='miLibris API Team',
    author_email='pf@milibris.net',
    license='MIT',
    classifiers=[
        'Framework :: Flask',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'License :: OSI Approved :: MIT License',
    ],
    keywords='web api jsonapi flask',
    packages=find_packages(exclude=['tests']),
    zip_safe=False,
    platforms='any',
    install_requires=['Flask',
                      'marshmallow_jsonapi',
                      'six',
                      'sqlalchemy'],
    setup_requires=['pytest-runner'],
    tests_require=['pytest'],
    extras_require={'tests': 'pytest', 'docs': 'sphinx', 'mongo_data_layer': 'pymongo'}
)
<|endoftext|>


<commit_before>#!/usr/bin/env python
# encoding: utf-8
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#
# $Id$

import os.path

try:
    from ez_setup import use_setuptools
    use_setuptools()
except ImportError:
    pass

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

version = '1.9'

_descr = u'''**********
tika
***************

.. contents::
Tika python pure REST based library.
'''
_keywords = 'tika digital babel fish apache'
_classifiers = [
    'Development Status :: 3 - Alpha',
    'Environment :: Console',
    'Intended Audience :: Developers',
    'Intended Audience :: Information Technology',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Topic :: Database :: Front-Ends',
    'Topic :: Scientific/Engineering',
    'Topic :: Software Development :: Libraries :: Python Modules',
]

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

long_description = _descr

setup(
    name='tika',
    version=version,
    description='Apache Tika Python library',
    long_description=long_description,
    classifiers=_classifiers,
    keywords=_keywords,
    author='Chris Mattmann',
    author_email='chris.a.mttmnn@nasa.gov',
    url='http://github.com/chrismattmann/tika-python',
    download_url='http://github.com/chrismattmann/tika-python',
    license=read('LICENSE.txt'),
    packages=find_packages(exclude=['ez_setup']),
    namespace_packages=['tika'],
    include_package_data=True,
    zip_safe=True,
    test_suite='tika.tests',
    entry_points={
        'console_scripts': [
            'tika-python = tika.tika:main'
        ],
    },
    package_data = {
        # And include any *.conf files found in the 'conf' subdirectory
        # for the package
    },
    install_requires=[
        'setuptools',
        'requests'
    ],
    extras_require={
    },
)
<commit_msg>Tika Python 1.9 version bump<commit_after>#!/usr/bin/env python
# encoding: utf-8
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#
# $Id$

import os.path

try:
    from ez_setup import use_setuptools
    use_setuptools()
except ImportError:
    pass

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

version = '1.9.1'

_descr = u'''**********
tika
***************

.. contents::
Tika python pure REST based library.
'''
_keywords = 'tika digital babel fish apache'
_classifiers = [
    'Development Status :: 3 - Alpha',
    'Environment :: Console',
    'Intended Audience :: Developers',
    'Intended Audience :: Information Technology',
    'Intended Audience :: Science/Research',
    'License :: OSI Approved :: Apache Software License',
    'Operating System :: OS Independent',
    'Programming Language :: Python',
    'Topic :: Database :: Front-Ends',
    'Topic :: Scientific/Engineering',
    'Topic :: Software Development :: Libraries :: Python Modules',
]

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

long_description = _descr

setup(
    name='tika',
    version=version,
    description='Apache Tika Python library',
    long_description=long_description,
    classifiers=_classifiers,
    keywords=_keywords,
    author='Chris Mattmann',
    author_email='chris.a.mttmnn@nasa.gov',
    url='http://github.com/chrismattmann/tika-python',
    download_url='http://github.com/chrismattmann/tika-python',
    license=read('LICENSE.txt'),
    packages=find_packages(exclude=['ez_setup']),
    namespace_packages=['tika'],
    include_package_data=True,
    zip_safe=True,
    test_suite='tika.tests',
    entry_points={
        'console_scripts': [
            'tika-python = tika.tika:main'
        ],
    },
    package_data = {
        # And include any *.conf files found in the 'conf' subdirectory
        # for the package
    },
    install_requires=[
        'setuptools',
        'requests'
    ],
    extras_require={
    },
)
<|endoftext|>


<commit_before>from setuptools import setup, find_packages

try:
    from functools import singledispatch
    install_requires_single_dispatch = []
except ImportError:
    install_requires_single_dispatch = ['singledispatch']

setup(
    name='eventsourcing',
    version='1.0.2',
    description='Event sourcing in Python',
    author='John Bywater',
    author_email='john.bywater@appropriatesoftware.net',
    url = 'https://github.com/johnbywater/eventsourcing',
    packages=find_packages(),
    install_requires= install_requires_single_dispatch + [
        'six',
        'python-dateutil',
    ],
    extras_require={
        'test': [
            'sqlalchemy',
            'mock',
            'cassandra-driver==2.6.0',
            'numpy',
        ],
        'sqlalchemy': [
            'sqlalchemy',
        ],
        'cassandra': [
            'cassandra-driver==2.6.0',
        ],
    },
    zip_safe=False,
    long_description = """
This package provides generic support for event sourcing in Python, in a 'domain driven design' style.

An extensive
`README file is available on GitHub <https://github.com/johnbywater/eventsourcing/blob/master/README.md>`_.
""",
    keywords=['event sourcing', 'event store', 'domain driven design', 'ddd', 'cqrs', 'cqs'],
    classifiers = [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
   ],
)
<commit_msg>Increased package version number.<commit_after>from setuptools import setup, find_packages

try:
    from functools import singledispatch
    install_requires_single_dispatch = []
except ImportError:
    install_requires_single_dispatch = ['singledispatch']

setup(
    name='eventsourcing',
    version='1.0.3',
    description='Event sourcing in Python',
    author='John Bywater',
    author_email='john.bywater@appropriatesoftware.net',
    url = 'https://github.com/johnbywater/eventsourcing',
    packages=find_packages(),
    install_requires= install_requires_single_dispatch + [
        'six',
        'python-dateutil',
    ],
    extras_require={
        'test': [
            'sqlalchemy',
            'mock',
            'cassandra-driver==2.6.0',
            'numpy',
        ],
        'sqlalchemy': [
            'sqlalchemy',
        ],
        'cassandra': [
            'cassandra-driver==2.6.0',
        ],
    },
    zip_safe=False,
    long_description = """
This package provides generic support for event sourcing in Python, in a 'domain driven design' style.

An extensive
`README file is available on GitHub <https://github.com/johnbywater/eventsourcing/blob/master/README.md>`_.
""",
    keywords=['event sourcing', 'event store', 'domain driven design', 'ddd', 'cqrs', 'cqs'],
    classifiers = [
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Software Development :: Libraries :: Python Modules',
   ],
)
<|endoftext|>


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

from setuptools import setup, find_packages

setup(
    name='ppp_questionparsing_grammatical',
    version='0.6.4',
    description='Natural language processing module for the PPP.',
    url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
    author='Projet Pensées Profondes',
    author_email='ppp2014@listes.ens-lyon.fr',
    license='MIT',
    classifiers=[
        'Environment :: No Input/Output (Daemon)',
        'Development Status :: 1 - Planning',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
        'Topic :: Software Development :: Libraries',
    ],
    install_requires=[
        'python3-memcached',
        'ppp_datamodel>=0.6.4, <0.7',
        'ppp_libmodule>=0.6, <0.8',
        'jsonrpclib-pelix',
        'nltk'
    ],
    packages=[
        'ppp_questionparsing_grammatical',
        'ppp_questionparsing_grammatical.data',
    ],
    package_data={
        'ppp_questionparsing_grammatical': ['data/*.pickle','data/*.txt','data/*.json'],
    },
)

import sys
if 'install' in sys.argv:
    import nltk
    nltk.download("wordnet")
<commit_msg>Bump version number.<commit_after>#!/usr/bin/env python3

from setuptools import setup, find_packages

setup(
    name='ppp_questionparsing_grammatical',
    version='0.6.5',
    description='Natural language processing module for the PPP.',
    url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
    author='Projet Pensées Profondes',
    author_email='ppp2014@listes.ens-lyon.fr',
    license='MIT',
    classifiers=[
        'Environment :: No Input/Output (Daemon)',
        'Development Status :: 1 - Planning',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.2',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
        'Topic :: Software Development :: Libraries',
    ],
    install_requires=[
        'python3-memcached',
        'ppp_datamodel>=0.6.4, <0.7',
        'ppp_libmodule>=0.6, <0.8',
        'jsonrpclib-pelix',
        'nltk'
    ],
    packages=[
        'ppp_questionparsing_grammatical',
        'ppp_questionparsing_grammatical.data',
    ],
    package_data={
        'ppp_questionparsing_grammatical': ['data/*.pickle','data/*.txt','data/*.json'],
    },
)

import sys
if 'install' in sys.argv:
    import nltk
    nltk.download("wordnet")
<|endoftext|>


<commit_before>#!/usr/bin/env python
from distutils.core import setup

setup(name='django-modeltranslation',
      version='0.2',
      description='Translates Django models using a registration approach.',
      long_description='The modeltranslation application can be used to '
                       'translate dynamic content of existing models to an '
                       'arbitrary number of languages without having to '
                       'change the original model classes. It uses a '
                       'registration approach (comparable to Django\'s admin '
                       'app) to be able to add translations to existing or '
                       'new projects and is fully integrated into the Django '
                       'admin backend.',
      author='Peter Eschler',
      author_email='p.eschler@nmy.de',
      maintainer='Dirk Eschler',
      maintainer_email='d.eschler@nmy.de',
      url='http://code.google.com/p/django-modeltranslation/',
      packages=['modeltranslation', 'modeltranslation.management',
                'modeltranslation.management.commands'],
      requires=['django(>=1.0)'],
      download_url='http://django-modeltranslation.googlecode.com/files/django-modeltranslation-0.2.tar.gz',
      classifiers=['Framework :: Django',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: BSD License'],
      license='New BSD')
<commit_msg>Bumped version to 0.3.<commit_after>#!/usr/bin/env python
from distutils.core import setup

setup(name='django-modeltranslation',
      version='0.3',
      description='Translates Django models using a registration approach.',
      long_description='The modeltranslation application can be used to '
                       'translate dynamic content of existing models to an '
                       'arbitrary number of languages without having to '
                       'change the original model classes. It uses a '
                       'registration approach (comparable to Django\'s admin '
                       'app) to be able to add translations to existing or '
                       'new projects and is fully integrated into the Django '
                       'admin backend.',
      author='Peter Eschler',
      author_email='p.eschler@nmy.de',
      maintainer='Dirk Eschler',
      maintainer_email='d.eschler@nmy.de',
      url='http://code.google.com/p/django-modeltranslation/',
      packages=['modeltranslation', 'modeltranslation.management',
                'modeltranslation.management.commands'],
      requires=['django(>=1.0)'],
      download_url='http://django-modeltranslation.googlecode.com/files/django-modeltranslation-0.2.tar.gz',
      classifiers=['Framework :: Django',
                   'Intended Audience :: Developers',
                   'License :: OSI Approved :: BSD License'],
      license='New BSD')
<|endoftext|>